rocky / python-uncompyle6

A cross-version Python bytecode decompiler
GNU General Public License v3.0
3.79k stars 413 forks source link

python 3.7.13 error on archlinux #395

Closed ahmedmoselhi closed 2 years ago

ahmedmoselhi commented 2 years ago

linux distro used : archlinux with python 3.7.13 installed (from aur) after i ran uncompyle6 i got the following error :

python3.7 -m uncompyle6

I don't know about Python version '3.7.13' yet.
xdis might need to be informed about version '3.7.13'

I don't know about Python version '3.7.13' yet.
xdis might need to be informed about version '3.7.13'

I don't know about Python version '3.7.13' yet.
xdis might need to be informed about version '3.7.13'

Traceback (most recent call last):

  File "/usr/lib/python3.7/runpy.py", line 183, in _run_module_as_main
    mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
  File "/usr/lib/python3.7/runpy.py", line 142, in _get_module_details
    return _get_module_details(pkg_main_name, error)
  File "/usr/lib/python3.7/runpy.py", line 109, in _get_module_details
    __import__(pkg_name)
  File "/home/ahmed/.local/lib/python3.7/site-packages/uncompyle6/__init__.py", line 54, in <module>
    from uncompyle6.main import decompile_file
  File "/home/ahmed/.local/lib/python3.7/site-packages/uncompyle6/main.py", line 19, in <module>
    from uncompyle6 import verify
  File "/home/ahmed/.local/lib/python3.7/site-packages/uncompyle6/verify.py", line 24, in <module>
    import xdis.std as dis
  File "/home/ahmed/.local/lib/python3.7/site-packages/xdis/std.py", line 236, in <module>
    _std_api = make_std_api()
  File "/home/ahmed/.local/lib/python3.7/site-packages/xdis/std.py", line 233, in make_std_api
    return _StdApi(python_version, variant)
  File "/home/ahmed/.local/lib/python3.7/site-packages/xdis/std.py", line 78, in __init__
    self.opc = opc = get_opcode_module(python_version, variant)
  File "/home/ahmed/.local/lib/python3.7/site-packages/xdis/op_imports.py", line 180, in get_opcode_module
    return op_imports[canonic_python_version[vers_str]]
KeyError: '3.7.13'`
rocky commented 2 years ago

3.7.13 was added to xdis around March 18 of this year. Until another release comes out, just use what is currently in git master.

ahmedmoselhi commented 2 years ago

3.7.13 was added to xdis around March 18 of this year. Until another release comes out, just use what is currently in git master.

after installing fron tree now i got this:

$ python3.7 uncompyle6
/usr/bin/python3.7: can't find '__main__' module in 'uncompyle6'
rocky commented 2 years ago

As with the manjaro problem, see if you can find someone on stack overflow to guide you here.