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

Deparsing errors on JUMP_ABSOLUTE #292

Open
k870611 opened this issue Oct 23, 2019 · 2 comments
Open

Deparsing errors on JUMP_ABSOLUTE #292

k870611 opened this issue Oct 23, 2019 · 2 comments
Labels
Python 2.7 Questionable Activity Possibly non-ethical or illegal activity

Comments

@k870611
Copy link

k870611 commented Oct 23, 2019

Description

it gets to "272 709 JUMP_ABSOLUTE 847 'to 847'" in the instruction context and then fails right before an ELSE. "Parse error at or near `JUMP_ABSOLUTE' instruction at offset 709"

How to Reproduce

C:\Users\24131\Desktop\cscripts>uncompyle6 -o __init__.py .\dependencies\svtools\itp2baseaccess\__init__.pyc
Instruction context:
->
 272     709  JUMP_ABSOLUTE       847  'to 847'


# file .\dependencies\svtools\itp2baseaccess\__init__.pyc
# Deparsing stopped due to parse error
.\dependencies\svtools\itp2baseaccess\__init__.pyc --
# decompile failed

Expected behavior

Can decompile to py successfully

Environment

  • Uncompyle6 version: uncompyle6 3.5.0
  • Python version: Python 2.7.14
  • OS and Version: Windows7

Additional Environment or Context

I don't have source code and I disassemble
Python bytecode by https://stackoverflow.com/questions/11141387/given-a-python-pyc-file-is-there-a-tool-that-let-me-view-the-bytecode/42720524 (change import dis to import xdis.std as dis) => attach(disassemble_pyc_content.txt), hope it is helps

disassemble python byte code => disassemble_pyc_content.txt

fail python context => init.txt

@rocky
Copy link
Owner

rocky commented Oct 24, 2019

A couple of questions/comments

  1. Who are you? k870611 isn't descriptive.
  2. What are the circumstances by which you have come to not have the bytecode but not source code?

You can answer these questions privately if you prefer.

@k870611
Copy link
Author

k870611 commented Oct 25, 2019

  1. A developer
  2. I only have pyc, bytecode is decode by it, it is comes from a friend of mine, we want to know how to decode it.

@rocky rocky added Questionable Activity Possibly non-ethical or illegal activity Python 2.7 labels Oct 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Python 2.7 Questionable Activity Possibly non-ethical or illegal activity
Projects
None yet
Development

No branches or pull requests

2 participants