You are missing a library within the distribution package,
- try to create a first distribution directory,
- run the program with the generated exe (in the manner of a launcher).
- check the errors it gives you, check the complete trackball and check where the file is needed, or what module is calling you.
- tries to manually add the libraries needed for the
program, you can get them directly from the installation directory in your path.
Once you find everything you need, add the dependencies to the spect file to be packaged within the application, or in a way that always generates the executable and depends on a directory in the same folder.
A tip:
the fastest way you can use to develop the application, is to generate a file __init__.py
that is responsible for importing the main structure, so you can put, for example:
import __all_modules_needed__
from app import main_loop
mainloop()
exit(0)
Which is pointed directly in the spec file as the main program, it will be added to the exe and will try to import the necessary main classes automatically and then, so as not to lose time in recompiling the package every time you generate a modification, you only alter the program in app.py
and the changes will be noticed directly, since when packaging the launch file, the base libraries are packaged, plus some python dependencies. allowing thus to diminish the times between versions, to part, that allows a faster load since it does not have to unpack all the contents of the EXE to temporary folders.