Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
TL;DR Installing a
Python
version withPDM
doesn't play nice withPyInstaller
and the cause is 'probably' missinglib-dynload
files.Recently I discovered
PDM
and got exited on using it. I usePyInstaller
on many of my projects as I like the idea of using executables to run my apps.Note: With the previous tool I used, everything worked fine.
So, I switched one of my projects to
PDM
only to find out that the executable fromPyInstaller
was not working anymore, complaining about missingPython
modules.To keep it short, upon debugging I noticed that
PyInstaller
couldn't find files fromlib-dynload
, so it didn't copied the said folder into the package. Inspecting the folder from thePython
version, thatPDM
installed, I found only 2 files, which where irrelevant to my case.That's why
PyInstaller
ignored it!!!Workaround: Installing
PyEnv
and using it as thePython
version manager, instead ofPDM
, resolved the issue and the executable started to work again.Proposed solutions:
indygreg
about the case and have hisPython
binaries include the properlib-dynload
files.Python
builds (could bepyenv
's source)Python
version from sourceSome or all the above proposed solutions may already be available but as a new user I probably haven't discovered them yet.
Anyways, thanks @frostming for creating an awesome tool.
Beta Was this translation helpful? Give feedback.
All reactions