pyinstaller 6.0.0 ImportError: DLL load failed

480 views
Skip to first unread message

Jason Yu

unread,
Oct 9, 2023, 7:27:36 AM10/9/23
to PyInstaller
My Python version is 3.8.10 and my Windows version is Win11.
When I compile to standalone exe with pyinstaller 6.0.0, the following error is generated:

  Traceback (most recent call last):
  File "Lib\site-packages\PyInstaller\hooks\rthooks\pyi_rth_win32comgenpy.py", line 46, in <module>
  File "Lib\site-packages\PyInstaller\hooks\rthooks\pyi_rth_win32comgenpy.py", line 25, in _pyi_rthook
  File "PyInstaller\loader\pyimod02_importers.py", line 391, in exec_module
  File "win32com\__init__.py", line 8, in <module>
  File "PyInstaller\loader\pyimod02_importers.py", line 391, in exec_module
  File "pythoncom.py", line 2, in <module>
  File "PyInstaller\loader\pyimod02_importers.py", line 391, in exec_module
  File "pywintypes.py", line 126, in <module>
  File "pywintypes.py", line 116, in __import_pywin32_system_module__
ImportError: DLL load failed while importing pywintypes: The specified module could not be found.

When I compile with pyinstaller 5.13.2 or below, no error is generated.
I use the pywin32 module in my code, is there something wrong?
  
Reply all
Reply to author
Forward
0 new messages