Código:
File "/home/n1sendev/Escritorio/TarketakVOS/exe_read.py", line 22, in UnpickleExecutable
unpickled_obj = load(f)
_pickle.UnpicklingError: invalid load key, ''.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "main.py", line 46, in <module>
main()
File "main.py", line 35, in main
boot_func()
File "/home/n1sendev/Escritorio/TarketakVOS/boot.py", line 10, in boot_func
loginMain()
File "/home/n1sendev/Escritorio/TarketakVOS/login.py", line 44, in loginMain
maincmd()
File "/home/n1sendev/Escritorio/TarketakVOS/usr_shell.py", line 62, in maincmd
UnpickleExecutable(cmd_input)
File "/home/n1sendev/Escritorio/TarketakVOS/exe_read.py", line 24, in UnpickleExecutable
except pickle.UnpicklingError as pic_errno1:
NameError: name 'pickle' is not defined
pero como se ve, me dice que pickle no esta definido.
Aca les dejo un fragmento del codigo:
Código
Tambien intente poner _pickle.UnpicklingError pero aun sigue el problema
try: unpickled_obj = load(f) ReadExecutebleIns(unpickled_obj, path) except pickle.UnpicklingError as pic_errno1: print("!Invalid binary: %s" % pic_errno1)
Saludos!