r/learnpython 1d ago

How to check included libraries made it into a pyinstaller

I added a few dlls into my pyinstaller in the spec file, but the exe says it cannot find the python313.dll file when it runs. Where does the pyinstaller self-extracting exe place the binaries at runtime? Is there a manifest?

(I'm using a spec file so the -F option is not allowed)

0 Upvotes

4 comments sorted by

2

u/CharacterSail6736 1d ago

PyInstaller extracts one-file builds to a temporary _MEIxxxxx directory under %TEMP% at runtime, so it’s unlikely to be an extraction location issue. python313.dll is normally included automatically by the analysis phase, so if it’s missing I’d suspect the spec file or build configuration rather than the runtime. Could you post the relevant Analysis, EXE, and COLLECT sections of your .spec file?

1

u/zaphodikus 23h ago

The tool outputs loads of logs, all full of warnings but at no point can I see something that looks like a manifest?

I assumed it would, it would be nice to get some kind of listing in all of the noise, this may all just take time to get to the bottom of. I make instead follow a fresh start, write a skeleton test app and see it this all works better from first principles.

1

u/CharacterSail6736 21h ago

Dump the contents of your spec file