-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
app closed immediately while executable file Ok #4511
Comments
Here is a make-do method. Confirmed in my case. |
It is useful in debugging this kind of case to put your code in a "try" and in the "except" write the traceback to a file and then open that file in your editor. See: #3820 (comment) |
@ccimarp1990 whatever your issue is, it is unrelated to this one (different OS, probably different failure mode) - please open a new issue, and describe what was supposed to happen (what kind of interface was supposed to be shown?). |
I know there are similar issues on
app
reported. It seems these are related to GUI module liketkinter
. Here is a simple case running justinput()
without additional module import .Still failed to run app in
./dist
either by double click or command. Please help to analyze Debugging info and advise.System info
sgqt_test.py
in folder '~/downloads/playpy/'Click to expand Virtual Env info
DEBUGGING step 1
1. pyinstaller --log-level=DEBUG
This will redirect the DEBUG info to build_0.txt file.
Click to expand commands
2. Contents of build_0.txt
Click to expand outputs
3. Conclusion
This debugging step produces a One-Directory executable ./dist/sgqt_test/ and a folder ./build/sgqt_test/.
Double click the executable file
sgqt_test
in ./dist/sgqt_test/, a terminal window will prompt successfully waiting for input:Double click
sgqt_test
in ./build/sgqt_test/ but fail to get response.DEBUGGING step 2
1. pyinstaller -Fw --debug=all
Click to expand Command and std output
2. Conclusion
This debugging step produces a One-File executable ./dist/sgqt_test, an app ./dist/sgqt_test.app and a folder ./build/sgqt_test/.
Double click the app file or run it in command line, all fail to get response.
Double click the One-File executable it will successfully prompt a terminal window:
Click to expand Window
One More Thing
Though we cannot run app directly, when right click to Show Package Contents of
sgqt_test.app
and then run the executable filesgqt_test
in Sub-Folder MacOs, it will prompt successfully a window:Click to expand Window
The text was updated successfully, but these errors were encountered: