IndexError: tuple index out of range
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 28/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- python
- Domain
- reverse-engineering
Research direction
Reproduce the failure with the attached urls.pyc.txt and the shown uncompyle6 command. Start at uncompyle6/main.py's decompile flow, then inspect semantics/pysource.py and scanners/scanner2.py around the reported ingest call. Done means the attached Python 2.7 bytecode no longer raises IndexError and produces decompiler output.
Written by the indexing model from the issue text.
Description
Hi,
I am a bunch of pyc to be decompiled to py. The pyc is compiled by python version 2.7. So i downloaded the python-2.4 branch and setup the same in my python 2.7 env.
Now when I run the uncompyle6, I am getting the below error.
D:\>uncompyle6 -d "D:\Biotion85\mysite\urls.pyc"
# 2020.09.24 21:19:39 Arabian Standard Time
# uncompyle6 version 3.7.4
# Python bytecode 2.7 (62211)
# Decompiled from: Python 2.7.15 (default, May 6 2018, 17:56:56) [MSC v.1500 64 bit (AMD64)]
# Embedded file name: G:\Packages\source\source_8.5.3\mysite\urls.py
# Compiled at: 2020-09-10 16:53:00
Traceback (most recent call last):
File "C:\Program Files (x86)\Python27\Scripts\uncompyle6-script.py", line 11, in <module>
load_entry_point('uncompyle6==3.7.4', 'console_scripts', 'uncompyle6')()
File "build\bdist.win-amd64\egg\uncompyle6\bin\uncompile.py", line 190, in main_bin
File "build\bdist.win-amd64\egg\uncompyle6\main.py", line 327, in main
File "build\bdist.win-amd64\egg\uncompyle6\main.py", line 229, in decompile_file
File "build\bdist.win-amd64\egg\uncompyle6\main.py", line 148, in decompile
File "build\bdist.win-amd64\egg\uncompyle6\semantics\pysource.py", line 2574, in code_deparse
File "build\bdist.win-amd64\egg\uncompyle6\scanners\scanner2.py", line 362, in ingest
IndexError: tuple index out of range
attaching the pyc file for your reference.
urls.pyc.txt
Please help.
- Dominant language
- Python
- Stars
- 4.3k
- Forks
- 463
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from rocky/python-uncompyle6
-
Works on decompyle3
Difficulty 4/5 3-5 days Newbie friendliness 35/100
rocky/python-uncompyle6#506 · 1 comment ·
-
Python 3.8 Volunteer wanted Works on decompyle3
Difficulty 4/5 3-5 days Newbie friendliness 35/100
rocky/python-uncompyle6#492 · 4 comments ·
-
Redundant "else:" OpenControl Flow Python 3.8 Volunteer wanted Works on decompyle3
Difficulty 4/5 3-5 days Newbie friendliness 45/100
rocky/python-uncompyle6#486 ·
-
Missing "While True" OpenControl Flow Python 3.8 Volunteer wanted Works on decompyle3
Difficulty 4/5 3-5 days Newbie friendliness 45/100
rocky/python-uncompyle6#485 · 4 comments ·
-
Duplicate Python 3.9+
Difficulty 5/5 Over a week Newbie friendliness 25/100
rocky/python-uncompyle6#484 · 9 reactions ·
All issues in rocky/python-uncompyle6
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100