Skip to content Skip to sidebar Skip to footer

Uncompyle6 Raising A Parse Error While Decompile A *.pyc File

While trying to help a fellow member from this post Decompile *.pyc file using uncompyle2, i encountered the following error when trying to decompile *.pyc using uncompyle6 , The

Solution 1:

You appear to be trying to decompile (decompyle) a piece of arbitrary data. You don't have any valid bytecode there, not for a regular Python interpreter.

JUMP_ABSOLUTE is used to jump back to the start of loops. It is not used with with statements, which is what the SETUP_WITH opcode deals with. The jumps are probably outside the code block and in this case forward rather than back, so uncompile6 is correctly flagging this as invalid.

There is a possibility that the bytecode was obfuscated, where bytecode meaning is altered from their normal positions. Bytecode is just a sequence of bytes, with each byte given a specific meaning (together with operand values). The Dropbox Python interpreter, for example, has altered that table significantly in an attempt to stop the casual curious engineer from looking at their code (pydecompyle6 compensates for this).

Post a Comment for "Uncompyle6 Raising A Parse Error While Decompile A *.pyc File"