Closed grisuno closed 1 week ago
Hi @grisuno, thanks for reporting this. I can't reproduce this error. Can you please tell me how you execute the script (arguments etc)?
without arguments, in a parrot 6.1
I tried this on Parrot 6.1 and I can't reproduce it. Can you please send me a screenshot of the very first exceptions?
The script enters an infinite loop, continuously displaying the same error message. It keeps repeating the last error, and I have to manually terminate the process using kill -9.
Error details:
python penelope.py
Oops...π
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Traceback (most recent call last):
File "/home/gris/tools/penelope/penelope.py", line 4282, in
Oops...π ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ Traceback (most recent call last): File "/usr/lib/python3.11/threading.py", line 1038, in _bootstrap_inner self.run() File "/usr/lib/python3.11/threading.py", line 975, in run self._target(*self._args, **self._kwargs) File "/home/gris/tools/penelope/penelope.py", line 349, in cmdloop self.preloop() File "/home/gris/tools/penelope/penelope.py", line 438, in preloop class.load_history(options.cmd_histfile) ^^^^^^^ NameError: name 'options' is not defined. Did you mean: 'Options'? This error keeps repeating indefinitely, and I have to stop the process by force using kill -9.
Thank you very much @grisuno for reporting this! Can you please try now to verify that it is fixed?
Thanks you bro, now works :) you are awesome ;)
Issue Description I encountered a NameError while executing the script located at /home/gris/tools/penelope/penelope.py. The error occurs in the cmdloop method when it attempts to call the preloop function.
Error Traceback arduino Copiar cΓ³digo Traceback (most recent call last): File "/usr/lib/python3.11/threading.py", line 1038, in _bootstrap_inner self.run() File "/usr/lib/python3.11/threading.py", line 975, in run self._target(*self._args, **self._kwargs) File "/home/$USER/tools/penelope/penelope.py", line 349, in cmdloop self.preloop() File "/home/$USER/tools/penelope/penelope.py", line 438, in preloop class.load_history(options.cmd_histfile) ^^^^^^^ NameError: name 'options' is not defined. Did you mean: 'Options'? Details The NameError indicates that the variable options is not defined in the current scope. The intended usage seems to be Options.cmd_histfile, which suggests that options was expected to be an instance of the Options class or similar. Upon encountering this error, the script enters an infinite loop, and I am forced to terminate it using killall.