You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
C:\Build\project>dist\bug.exe
Traceback (most recent call last):
File "C:\Scoop\persist\python\Lib\site-packages\PyInstaller\hooks\rthooks\pyi_rth_mplconfig.py", line 45, in <module>
_pyi_rthook()
File "C:\Scoop\persist\python\Lib\site-packages\PyInstaller\hooks\rthooks\pyi_rth_mplconfig.py", line 31, in _pyi_rthook
import _pyi_rth_utils # PyInstaller's run-time hook utilities module
^^^^^^^^^^^^^^^^^^^^^
File "PyInstaller\loader\pyimod02_importers.py", line 391, in exec_module
File "PyInstaller\fake-modules\_pyi_rth_utils\__init__.py", line 23, in <module>
File "PyInstaller\loader\pyimod02_importers.py", line 391, in exec_module
File "PyInstaller\fake-modules\_pyi_rth_utils\_win32.py", line 12, in <module>
File "PyInstaller\loader\pyimod02_importers.py", line 391, in exec_module
File "ctypes\__init__.py", line 8, in <module>
ImportError: DLL load failed while importing _ctypes: The specified module could not be found.
[4880] Failed to execute script 'pyi_rth_mplconfig' due to unhandled exception!
Context information (for bug reports)
Output of pyinstaller --version: 6.1.0
Version of Python: 3.12.0
Platform: Windows
How you installed Python: scoop install python
Did you also try this on another platform? No, scoop is Windows-only.
try the latest development version, using the following command: same result.
Thanks for the initial analysis! This sounds like a DLL parent path preservation bug (which seems to affect either scoop-installed python, or perhaps python without virtual environment in general). I'll look into it.
Description of the issue
The following example code fails on my system:
bug.py
The output is:
Context information (for bug reports)
pyinstaller --version
:6.1.0
scoop install python
scoop
is Windows-only.libffi-8.dll
seems to be packaged in the wrong location inside the MEI, see https://github.com/orgs/pyinstaller/discussions/7431#discussioncomment-7335377.The text was updated successfully, but these errors were encountered: