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
pyinstaller -w --onedir main.py opens and closes immediately #6992
Comments
Is |
Tkinter yes |
Any chance we can see the minimal reproducer, then? |
Or, you can try wrapping your whole entry-point script into a try/catch block, and write the exception information to a fixed location (e.g., your home directory), like suggested here: #5154 (comment). So if your program is crashing with uncaught exception, you'll know what's happening. |
Ah, I meant source code, not the binary. |
error.log clear |
https://drive.google.com/drive/folders/1ZBkli3uoGJh-ByVIIIazojrwM6rZDCTn?usp=sharing |
service/parser.py, line 15:
This assumes that That EDIT: you actually need to use By the way, with exception catching I meant the whole entry-point script: try:
from service.parser import app
if __name__ == '__main__':
app.mainloop()
except Exception as e:
import traceback
with open('/Users/username/error.log', 'w') as fp:
fp.write(f"ERROR {e}\n\n")
traceback.print_exc(file=fp) This gives:
|
I did this before, but I forgot to update the Google disk file. The problem was in the loguru, you had to put the file in there too, otherwise he couldn't access it, thank you very much and sorry for the trouble 😊 |
pyinstaller -w --onedir main.py
on macOS opens and closes immediately, the filemain.app/Contents/MacOS/main
opens, what to do?im use tkinter
The text was updated successfully, but these errors were encountered: