Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unknown magic number 62161 #34

Open
gaoruojie opened this issue Dec 8, 2017 · 2 comments
Open

unknown magic number 62161 #34

gaoruojie opened this issue Dec 8, 2017 · 2 comments

Comments

@gaoruojie
Copy link

Can't uncompyle routers2.pyc

Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/uncompyle2/init.py", line 203, in main
uncompyle_file(infile, outstream, showasm, showast)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/uncompyle2/init.py", line 135, in uncompyle_file
version, co = _load_module(filename)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/uncompyle2/init.py", line 71, in _load_module
raise ImportError, "Unknown magic number %s in %s" % (ord(magic[0])+256*ord(magic[1]), filename)
ImportError: Unknown magic number 62161 in routers2.pyc

decompiled 0 files: 0 okay, 1 failed, 0 verify failed

@rocky
Copy link

rocky commented Dec 8, 2017

Magic number 62161 is the magic number for the Python 2.6 release. See https://github.com/rocky/python-xdis/blob/master/xdis/magics.py#L84 and this code works for Python 2.7

@gaoruojie
Copy link
Author

Thanks rocky, I found that too. I don't know why this error occurs. Am I using this wrong? Have you tested to decompile a file with this magic number? Does it work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants