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

I'm trying to translate a * .pyc file * .py file and got the following errors. what is the problem. Can anyone help? #57

Closed
kuratkull opened this issue May 10, 2021 · 1 comment
Labels
duplicate This issue or pull request already exists. Please look over existing tickets here and in uncompyle6.

Comments

@kuratkull
Copy link

kuratkull commented May 10, 2021

i got the same error with uncompyle6.

Traceback (most recent call last):
  File "C:\Users\Q\AppData\Local\Programs\Python\Python39\Scripts\decompyle3-script.py", line 33, in <module>
    sys.exit(load_entry_point('decompyle3', 'console_scripts', 'decompyle3')())
  File "C:\Users\Q\AppData\Local\Programs\Python\Python39\Scripts\decompyle3-script.py", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "c:\users\Q\appdata\local\programs\python\python39\lib\importlib\metadata.py", line 77, in load
    module = import_module(match.group('module'))
  File "c:\users\Q\appdata\local\programs\python\python39\lib\importlib\__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 855, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "c:\users\Q\desktop\python-decompile3-master\decompyle3\__init__.py", line 48, in <module>
    import decompyle3.semantics.pysource
  File "c:\users\Q\desktop\python-decompile3-master\decompyle3\semantics\pysource.py", line 139, in <module>
    import decompyle3.parsers.main as python_parser
  File "c:\users\Q\desktop\python-decompile3-master\decompyle3\parsers\__init__.py", line 13, in <module>
    from decompyle3.parsers.treenode import *
  File "c:\users\Q\desktop\python-decompile3-master\decompyle3\parsers\treenode.py", line 2, in <module>
    from decompyle3.scanners.tok import NoneToken, Token
  File "c:\users\Q\desktop\python-decompile3-master\decompyle3\scanners\tok.py", line 201, in <module>
    NoneToken = Token("LOAD_CONST", offset=-1, attr=None, pattr=None)
  File "c:\users\Q\desktop\python-decompile3-master\decompyle3\scanners\tok.py", line 83, in __init__
    from xdis.std import _std_api
  File "c:\users\Q\appdata\local\programs\python\python39\lib\site-packages\xdis\std.py", line 220, in <module>
    _std_api = make_std_api()
  File "c:\users\Q\appdata\local\programs\python\python39\lib\site-packages\xdis\std.py", line 218, in make_std_api
    return _StdApi(python_version, variant)
  File "c:\users\Q\appdata\local\programs\python\python39\lib\site-packages\xdis\std.py", line 73, in __init__
    self.opc = opc = get_opcode_module(python_version, variant)
  File "c:\users\Q\appdata\local\programs\python\python39\lib\site-packages\xdis\op_imports.py", line 173, in get_opcode_module
    return op_imports[canonic_python_version[vers_str]]
KeyError: '3.9.5'
@rocky rocky added the duplicate This issue or pull request already exists. Please look over existing tickets here and in uncompyle6. label May 10, 2021
@rocky
Copy link
Owner

rocky commented May 10, 2021

#45

@rocky rocky closed this as completed May 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists. Please look over existing tickets here and in uncompyle6.
Projects
None yet
Development

No branches or pull requests

2 participants