2

I got this error when I tried Uncompyle6 uncompyle6 main.pyc :


Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\user\AppData\Local\Programs\Python\Python311\Scripts\uncompyle6.exe\__main__.py", line 4, in <module>

...more lines

  File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\xdis\std.py", line 73, in __init__
    self.opc = opc = get_opcode_module(python_version, variant)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\xdis\op_imports.py", line 174, in get_opcode_module
    return op_imports[canonic_python_version[vers_str]]
                      ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
KeyError: '3.11.2'

So, I tried Decompyle3. Yet, I get the same error. I tried Decompyle3 because "it accepts bytecodes from Python version 3.7 on." I'm using Python 3.11.

So, if that's not gonna work, then what should I do???

PS: Is there any other software that could do this? I think something is wrong with my Python version.

lunix
  • 151
  • 1
  • 14

1 Answers1

2

I might be wrong here, but I believe KeyError: 3.11.2 means that version of python isn't supported (at least yet) by decompyle6. I know it works up to python 3.8.x

You can see more info here: https://github.com/rocky/python-decompile3/issues/45

WeddingDJ
  • 21
  • 3
  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Apr 28 '23 at 05:55