When I run my main.py file from console like python main.py everything works just fine. However when I package the app with zippapp it opens up window and apparently shows some error which I am unable to read because it immediately closes.
How to debug/resolve this? Is it possible to somehow stop that so I can see the error?
I have folder in which is data folder and app folder, in the app folder there is main.py and there is my_function() which is being run. The zipapp command:
python -m zipapp Entire_package -m app.main:my_function
Lulz.
One just have to run the
.pyzfile from terminal/command line with python like this:python my_executable_pyz_file.pyzand then you get the error printed straight into the terminal/cmd window and you can read it.