ogelpre / labelprinterkit

Apache License 2.0
13 stars 6 forks source link

labelprinterkit distribution not found when converting python file to exe using python-to-exe. #3

Closed RokyB3 closed 6 months ago

RokyB3 commented 7 months ago

Hello,

I'm having problems converting my python program to an exe file using python-to-exe. I keep getting an error saying: Failed to execute script 'app' due to unhandled exception: The 'labelprinterkit' distribution was not found and is required by the application

Any ideas on how to fix this issue?

My anaconda environment has the labelprinterkit library installed.

I'm running the following command: pyinstaller --noconfirm --onedir --windowed ".../app.py"

Thanks for the help!

RokyB3 commented 6 months ago

Found a solution: add --collect-all labelprinterkit in the pyinstaller command.

i.e.: command should now look like: pyinstaller --noconfirm --onedir --windowed --collect-all labelprinterkit ".../app.py