Pyinstaller packaging not working

Hi all, I never thought I’d have such a hard time compiling an app. It’s my first Python app and I have a complex project that has several modules and subfolders. My modules are spread out in the subfolders, as are SQLITE3 databases, image, text and audio files. I’m trying to compile the app and after struggling with pyinstaller I finally got it to compile, but when I run the exe nothing happens and even running it from a shell window returns no error messages. I’m stuck because there’s no visible error to debug. I created a script that creates a spec file adding resourse subfolders and all my dependencies.

Does anyone have any suggestions?

Thanks.:pray:

Build as a PyInstaller CLI program so that you can see the error messages in the terminal.

Also you will want to make sure that your GUI version catches and logs exceptions so that you can debug it when users see failures.

Thanks for the quick reply. Do I need to include all subfolders and files in the compile directives?

I can only suggest that you start simple and add more complex setups bit by bit. That way you can learn how pyinstaller works and what to do for each increase in complexity.

1 Like