ImportError: cannot import name 'get_archive'
PabloEscobaro24 opened this issue · 13 comments
Traceback (most recent call last):
File "", line 198, in run_module_as_main
File "", line 88, in run_code
File "C:\Users\Руслан\AppData\Local\Programs\Python\Python311\Scripts\pydumpck.exe_main.py", line 4, in
File "C:\Users\Руслан\AppData\Local\Programs\Python\Python311\Lib\site-packages\pydumpck_init.py", line 22, in
from pydumpck.pyinstaller_dump import run
File "C:\Users\Руслан\AppData\Local\Programs\Python\Python311\Lib\site-packages\pydumpck\pyinstaller_dump.py", line 4, in
from pydumpck.py_common_dump import CommonDump
File "C:\Users\Руслан\AppData\Local\Programs\Python\Python311\Lib\site-packages\pydumpck\py_common_dump_init_.py", line 7, in
from ..py_package import PackageStruct, PackageDescription
File "C:\Users\Руслан\AppData\Local\Programs\Python\Python311\Lib\site-packages\pydumpck\py_package_init_.py", line 1, in
from .package_description import PackageDescription
File "C:\Users\Руслан\AppData\Local\Programs\Python\Python311\Lib\site-packages\pydumpck\py_package\package_description_init_.py", line 6, in
from PyInstaller.utils.cliutils.archive_viewer import get_archive, get_data, get_content, get_archive_content
ImportError: cannot import name 'get_archive' from 'PyInstaller.utils.cliutils.archive_viewer' (C:\Users\Руслан\AppData\Local\Programs\Python\Python311\Lib\site-packages\PyInstaller\utils\cliutils\archive_viewer.py)
Traceback (most recent call last):
File "C:\Users\test\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 197, in run_module_as_main
return run_code(code, main_globals, None,
File "C:\Users\test\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "C:\Users\test\AppData\Local\Programs\Python\Python39\Scripts\pydumpck.exe_main.py", line 4, in
File "C:\Users\test\AppData\Local\Programs\Python\Python39\lib\site-packages\pydumpck_init.py", line 21, in
from pydumpck.pyinstaller_dump import run
File "C:\Users\test\AppData\Local\Programs\Python\Python39\lib\site-packages\pydumpck\pyinstaller_dump.py", line 5, in
from pydumpck.py_common_dump import CommonDump
File "C:\Users\test\AppData\Local\Programs\Python\Python39\lib\site-packages\pydumpck\py_common_dump_init.py", line 9, in
from ..py_package import PackageStruct, PackageDescription
File "C:\Users\test\AppData\Local\Programs\Python\Python39\lib\site-packages\pydumpck\py_package_init_.py", line 1, in
from .package_description import PackageDescription
File "C:\Users\test\AppData\Local\Programs\Python\Python39\lib\site-packages\pydumpck\py_package\package_description_init_.py", line 6, in
from PyInstaller.utils.cliutils.archive_viewer import get_archive, get_data, get_content, get_archive_content
ImportError: cannot import name 'get_archive' from 'PyInstaller.utils.cliutils.archive_viewer' (C:\Users\test\AppData\Local\Programs\Python\Python39\lib\site-packages\PyInstaller\utils\cliutils\archive_viewer.py)
Same here? Installed it with pip install pydumpck.
Installed all the reqs and it doesnt work..
same issue
same issue
Package Version
altgraph 0.17.3
click 8.1.3
colorama 0.4.6
colorlog 6.7.0
et-xmlfile 1.1.0
openpyxl 3.1.2
pefile 2023.2.7
pip 23.0.1
pycryptodome 3.17
pydumpck 1.15.19
pyinstaller 5.10.1
pyinstaller-hooks-contrib 2023.2
pywin32-ctypes 0.2.0
setuptools 66.0.0
sgtpyutils 1.15.20
six 1.16.0
spark-parser 1.8.9
tinyaes 1.0.4
uncompyle6 3.9.0
wheel 0.38.4
xdis 6.0.5
same issue
why?
I have luckily found a fix for this lol
Just reinstall pyinstaller under 5.9.0 as 5.10 and above does not seem to work.
However I have been getting another error:
raise RuntimeError("%s is not a valid %s archive file" % (self.path, self.class.name))
RuntimeError: foo.exe is not a valid CArchiveReader archive file
Thankyou SalemShotts, this solved the issue for me.
still getting that issue
same @serfend
Traceback (most recent call last):
File "/venv3.11/bin/pydumpck", line 5, in <module>
from pydumpck import run
File "/venv3.11/lib64/python3.11/site-packages/pydumpck/__init__.py", line 22, in <module>
from pydumpck.pyinstaller_dump import run
File "/venv3.11/lib64/python3.11/site-packages/pydumpck/pyinstaller_dump.py", line 4, in <module>
from pydumpck.py_common_dump import CommonDump
File "/venv3.11/lib64/python3.11/site-packages/pydumpck/py_common_dump/__init__.py", line 7, in <module>
from ..py_package import PackageStruct, PackageDescription
File "/venv3.11/lib64/python3.11/site-packages/pydumpck/py_package/__init__.py", line 1, in <module>
from .package_description import PackageDescription
File "/venv3.11/lib64/python3.11/site-packages/pydumpck/py_package/package_description/__init__.py", line 6, in <module>
from PyInstaller.utils.cliutils.archive_viewer import get_archive, get_data, get_content, get_archive_content
ImportError: cannot import name 'get_archive' from 'PyInstaller.utils.cliutils.archive_viewer' (/venv3.11/lib64/python3.11/site-packages/PyInstaller/utils/cliutils/archive_viewer.py)
same @serfend pls help
Maybe I need to install a certain Package Version of some component ? Can you tell me if I need to synchronize with the version of the file I am trying to decompile? Sorry for the dumb question - I've never explored Python *.exe files before.
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:\Python312\Scripts\pydumpck.exe\__main__.py", line 4, in <module>
File "C:\Python312\Lib\site-packages\pydumpck\__init__.py", line 22, in <module>
from pydumpck.pyinstaller_dump import run
File "C:\Python312\Lib\site-packages\pydumpck\pyinstaller_dump.py", line 4, in <module>
from pydumpck.py_common_dump import CommonDump
File "C:\Python312\Lib\site-packages\pydumpck\py_common_dump\__init__.py", line 7, in <module>
from ..py_package import PackageStruct, PackageDescription
File "C:\Python312\Lib\site-packages\pydumpck\py_package\__init__.py", line 1, in <module>
from .package_description import PackageDescription
File "C:\Python312\Lib\site-packages\pydumpck\py_package\package_description\__init__.py", line 6, in <module>
from PyInstaller.utils.cliutils.archive_viewer import get_archive, get_data, get_content, get_archive_content
ImportError: cannot import name 'get_archive' from 'PyInstaller.utils.cliutils.archive_viewer' (C:\Python312\Lib\site-packages\PyInstaller\utils\cliutils\archive_viewer.py)
pip install pyinstaller==5.9.0