python-exe-unpacker icon indicating copy to clipboard operation
python-exe-unpacker copied to clipboard

Error - Python 3.7

Open a1ch3mist opened this issue 6 years ago • 2 comments

downloaded and just tried running "py python_exe_unpack.py" gives the following error on Win10:


Traceback (most recent call last): File "C:\Users\user\AppData\Roaming\Python\Python37\site-packages\xdis\opcodes\base.py", line 209, in opcode_check assert all(item in opmap.items() for item in l['opmap'].items()) AssertionError

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "python_exe_unpack.py", line 16, in import uncompyle6 File "C:\Users\user\AppData\Roaming\Python\Python37\site-packages\uncompyle6_init_.py", line 52, in from uncompyle6.main import decompile_file File "C:\Users\user\AppData\Roaming\Python\Python37\site-packages\uncompyle6\main.py", line 6, in from uncompyle6.disas import check_object_path File "C:\Users\user\AppData\Roaming\Python\Python37\site-packages\uncompyle6\disas.py", line 26, in from xdis.main import disassemble_file as xdisassemble_file File "C:\Users\user\AppData\Roaming\Python\Python37\site-packages\xdis\main.py", line 30, in from xdis.op_imports import op_imports File "C:\Users\user\AppData\Roaming\Python\Python37\site-packages\xdis\op_imports.py", line 22, in from xdis.opcodes import opcode_37 as opcode_37 File "C:\Users\user\AppData\Roaming\Python\Python37\site-packages\xdis\opcodes\opcode_37.py", line 112, in finalize_opcodes(l) File "C:\Users\user\AppData\Roaming\Python\Python37\site-packages\xdis\opcodes\base.py", line 147, in finalize_opcodes opcode_check(l) File "C:\Users\user\AppData\Roaming\Python\Python37\site-packages\xdis\opcodes\base.py", line 214, in opcode_check sys.version_info) TypeError: not all arguments converted during string formatting

a1ch3mist avatar Feb 19 '19 20:02 a1ch3mist

The requirements.txt file requests an outdated uncompyle6 version.

Upgrading the package should fix this:

pip install --upgrade uncompyle6

MooseV2 avatar Feb 24 '19 20:02 MooseV2

I encountered the same problem using python3.7 version on win10, the update is meaningless.

yinhetest avatar Jul 23 '21 05:07 yinhetest