rocky / python-uncompyle6

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

Unknown magic number 3495 in Demand_Change_Report.pyc #461

Closed BoldHu closed 1 year ago

BoldHu commented 1 year ago

When I use the tool to decompiler a pyc file, the result of .py file just have a sentence: Unknown magic number 3495 in Demand_Change_Report.pyc. How to fix it? I have tried several methods and change the .pyc' s magical code. All failed. Please help me.

image
rocky commented 1 year ago

The first thing you probably need to do to is learn how to read and follow instructions.

If you were to have followed instructions the problem would have been clearer. The weird error message comes from the fact that 3.11 support in xdis is only in the current git master version of xdis and you are not using that.

However, while getting a new xdis will remove that message you'll just get another message saying that 3.11 is not supported.

How to fix that? Well, you could write code to support 3.11. If you can't or do that or unable to invest the time, they you could support the project - please help the project. Or if you don't want to do that, hire some programmer of your choosing to do that. ;-) This too has been mentioned elsewhere ad nauseum.