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

decompyle failure #159

Open
pfremy opened this issue Nov 16, 2023 · 1 comment
Open

decompyle failure #159

pfremy opened this issue Nov 16, 2023 · 1 comment

Comments

@pfremy
Copy link

pfremy commented Nov 16, 2023

Description

Decompyle3 failed at decompiling some code, where uncompyle6 was successful.

That's too bad because the generated code is of higher quality.

How to Reproduce

See attached sources:
logh_utils.zip

I included the pyc file, the uncompyle3 output, the decompyle6 output.

(.env) C:\work\logh_home\log_enhancer.exe_extracted>python ..\python-decompile3\decompyle3\bin\decompile.py C:\work\logh_home\log_enhancer.exe_extracted\src\logh_utils.pyc  1>C:\work\logh_home\log_enhancer.exe_extracted\src\logh_utils.py

# file C:\work\logh_home\log_enhancer.exe_extracted\src\logh_utils.pyc
# Deparsing stopped due to parse error

Output Given

def sub_interp_node_to_string--- This code section failed: ---

L. 82 0 BUILD_LIST_0 0
2 STORE_FAST 'ret'

L. 83 4 LOAD_STR '%s %s'
6 LOAD_FAST 'prefix'
...

(see attached decompiled py)

Environment

(.env) C:\work\logh_home>pip list
Package      Version    Location
------------ ---------- -----------------------------------
click        8.1.7
colorama     0.4.6
decompyle3   3.9.1.dev0 c:\work\logh_home\python-decompile3
pip          21.2.4
setuptools   58.1.0
six          1.16.0
spark-parser 1.8.9
uncompyle6   3.9.0
xdis         6.1.0.dev0

(.env) C:\work\logh_home>python --version
Python 3.10.2

Platform : Windows 10 22H2

Workarounds

Use uncompyle6

Priority

Up to you

@mosadegh22
Copy link

mosadegh22 commented Mar 28, 2024

@mosadegh22 Please don't attach random bug reports onto someone else's ticket.

Repository owner deleted a comment from mosadegh22 Mar 30, 2024
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