rocky / python-uncompyle6

A cross-version Python bytecode decompiler
GNU General Public License v3.0
3.79k stars 413 forks source link

otp\avatar\LocalAvatar.pyc from toontowninfinite: Parse error at or near `POP_TOP' instruction at offset 507 (Python 2.4) #97

Closed cmarshall108 closed 7 years ago

cmarshall108 commented 7 years ago

PARSE_ERROR_POP_TOP.pyc.zip

rocky commented 7 years ago

In order for me to be able to fix this, I'd need the corresponding source code. Don't have it? Well, decompile that part by hand, or find something similar that you have source code to.

cmarshall108 commented 7 years ago

Here is the source code dump which i've uploaded on dropbox; https://dl.dropboxusercontent.com/u/3925811/py2.rar

rocky commented 7 years ago

Ok. But which of the 100's of files in that are we talking about? Ideally, I'd like just the source to the function(s)/modules(s) that aren't decompiling.

rocky commented 7 years ago

Oh wait, in theory it probably is otp/avatar/LocalAvatar.pyc.py but it looks like when you ran uncompyle2 the last time to get that, uncompyle2 had the same problem in the same place too.

So again, what's the real source to this?

rocky commented 7 years ago

And https://github.com/ToontownInfinite/src/blob/master/otp/avatar/LocalAvatar.py#L364 seems to have code that when compiled for Python 2.4 produces a similar problem.

So thanks for the bug report. But if all you really want is source code for stuff you didn't write, maybe you can just used the github link.

cmarshall108 commented 7 years ago

The source code is located in packages, toontown and otp. The reason I want to decompile this source code is because this source code was dumped from a "test" client and is a lot different.

rocky commented 7 years ago

Ok. Current github master should work. This problem seems to be a Python 2.4 code generation problem only. There is a different but corresponding problem when the bytecode was created with Python 2.3.

On Wed, Apr 12, 2017, 8:35 AM AnythingTechPro notifications@github.com wrote:

The source code is located in packages, toontown and otp. The reason I want to decompile this source code is because this source code was dumped from a "test" client and is a lot different.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rocky/python-uncompyle6/issues/97#issuecomment-293562418, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAik0W2U0DqCNjT_yz2bhg5_n4cCC4cks5rvMUggaJpZM4M6WXy .