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
{{ message }}
Repository navigation
Libraries packaged in unexpected location when using python installed via scoop #8023
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.
Activity
rokm commentedon Oct 20, 2023
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.bersbersbers commentedon Oct 20, 2023
Beautiful, thank you! It's not the only place where
scoops symlinks/junctions create problems, but I'm happy you choose to support it.