Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnboundLocalError: local variable 'tmp_file' referenced before assignment #3

Open
scaleoutsean opened this issue Dec 22, 2020 · 0 comments

Comments

@scaleoutsean
Copy link

root@ubuntu2004:~# python3 --version
Python 3.8.5

root@ubuntu2004:~# fdisk -l | grep sdb
Disk /dev/sdb: 96 GiB, 103079215104 bytes, 201326592 sectors

root@ubuntu2004:~# mount | grep sdb

root@ubuntu2004:~# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.1 LTS"

root@ubuntu2004:~# fiosynth -d /dev/sdb -w HE_Flash_Short -c 0.1 -f HE_FlashShort_sd-bcde
Results are in directory: HE_FlashShort_sd-bcde-2020-12-22_11-20
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/fiosynth-3.5.39-py3.8.egg/fiosynth_lib/fiosynth.py", line 468, in createOffsetFile
PermissionError: [Errno 13] Permission denied: '/tmp/offset.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/fiosynth-3.5.39-py3.8.egg/fiosynth_lib/fiosynth.py", line 471, in createOffsetFile
UnboundLocalError: local variable 'tmp_file' referenced before assignment

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/fiosynth", line 11, in <module>
    load_entry_point('fiosynth==3.5.39', 'console_scripts', 'fiosynth')()
  File "/usr/local/lib/python3.8/dist-packages/fiosynth-3.5.39-py3.8.egg/fiosynth_lib/fiosynth.py", line 747, in main
  File "/usr/local/lib/python3.8/dist-packages/fiosynth-3.5.39-py3.8.egg/fiosynth_lib/fiosynth.py", line 732, in runSuite
  File "/usr/local/lib/python3.8/dist-packages/fiosynth-3.5.39-py3.8.egg/fiosynth_lib/fiosynth.py", line 474, in createOffsetFile
UnboundLocalError: local variable 'tmp_file' referenced before assignment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant