Failed to load Python DLL - seems something's going wrong during the build process #8656
-
I created a little Systray App (HueConnect) in Python. The script runs fine from the command line. When building in onedir-mode, the build process with PyInstaller runs successfully (no errors shown and process completed successfully). When starting the application from /build/HueConnect, a popup error is shown and the application does not start up:
I checked Analysis-00.toc and EXE-00.toc and both contain references for the related python311.dll pointing to the correct location:
Interestingly in the error message the path to python311.dll is different: While J:\hueconnect\build\HueConnect exists, there is no "_internal" directory below that path. After creating the "_internal" directory manually, copying python311.dll to it and trying to start the application again, a different Error pops up: Here I'm stuck: Obv. something with embedding the pyhton interpreter and needed runtime libs did not work while building the EXE with pyinstaller. However, there is no errors issued when building the EXE: _J:\hueconnect>pyinstaller --onedir --clean --name HueConnect --add-data "hueconnect.conf;." --add-binary "icon_default.jpg;." --noconsole --noconfirm .\HueConnect.py Does anyone has an idea would could have gone wrong/what i might have missded? Any idea/hint is very welcome. Thanks a lot! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
You seem to be running .exe in the |
Beta Was this translation helpful? Give feedback.
Well, as I wrote earlier, just adding
--debug
won't do anything, because you are also using--noconsole
(which I missed initially). So you'll have to also remove--noconsole
if you want any console output at all.