on-internet
← Community

Decompiling PYC file with Uncompyle6 getting AssertionError

Stack Overflow ·

I am trying to recover the original python scripts from a pyinstaller exe. I was able to extract the files from the exe and obtain the magic number. From what I read, the main .py file (found in the extract folder with no suffix) just needs to be renamed to main.pyc and the magic number appended should work. I followed these instructions and it worked, but my issue is the other .pyc files (found in the PYZ-00.pyz_extracted) all error out when I try to decompile them with uncompyle6 - even when I append the magic number. The error I'm getting is: Unknown type 0 Traceback (most recent call last)

Comments

Sign in or sign up to comment and upvote.

No comments yet.