[GH-ISSUE #321] Application opens and closes #280

Closed
opened 2026-02-26 12:21:03 +03:00 by kerem · 5 comments
Owner

Originally created by @Ghostttie on GitHub (Oct 31, 2022).
Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/321

Originally assigned to: @Ghostttie on GitHub.

Quick Checks For You

  • I have read/searched in the help post
  • I have searched other issues looking for an issue similar to mine
  • I have made sure my application/script runs before trying to package

Describe the bug
.py compiled to an exe perfectly but upon opening it instantly closes, I already have input("Press Enter to continue...") inside my code and before compiling it functioned as it should, I've now tried rebuilding it with the debug flag but I'm not too sure what's wrong.. Here is the log (https://pastebin.com/aJ16Awah) If anyone can help it's highly appreciated.

Your Environment:

  • Python version (python --version): 3.11.0
  • auto-py-to-exe version (pip show auto-py-to-exe): 2.23.1
  • PyInstaller version (pip show pyinstaller): 5.6.1
  • Eel version (pip show eel): 0.14.0
Originally created by @Ghostttie on GitHub (Oct 31, 2022). Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/321 Originally assigned to: @Ghostttie on GitHub. **Quick Checks For You** - [x] I have read/searched in the [help post](https://nitratine.net/blog/post/issues-when-using-auto-py-to-exe) - [X] I have [searched other issues](https://github.com/brentvollebregt/auto-py-to-exe/issues?q=is%3Aissue+) looking for an issue similar to mine - [X] I have made sure my application/script runs before trying to package **Describe the bug** .py compiled to an exe perfectly but upon opening it instantly closes, I already have `input("Press Enter to continue...")` inside my code and before compiling it functioned as it should, I've now tried rebuilding it with the debug flag but I'm not too sure what's wrong.. Here is the log (https://pastebin.com/aJ16Awah) If anyone can help it's highly appreciated. **Your Environment:** - Python version (`python --version`): 3.11.0 - auto-py-to-exe version (`pip show auto-py-to-exe`): 2.23.1 - PyInstaller version (`pip show pyinstaller`): 5.6.1 - Eel version (`pip show eel`): 0.14.0
kerem 2026-02-26 12:21:03 +03:00
Author
Owner

@brentvollebregt commented on GitHub (Nov 1, 2022):

When you followed the debugging steps in the help post, what did you find? Did you see an error in the console? If so, can you paste it here.

<!-- gh-comment-id:1298065068 --> @brentvollebregt commented on GitHub (Nov 1, 2022): When you followed the debugging steps in the help post, what did you find? Did you see an error in the console? If so, can you paste it here.
Author
Owner

@Ghostttie commented on GitHub (Nov 1, 2022):

When you followed the debugging steps in the help post, what did you find? Did you see an error in the console? If so, can you paste it here.

Thank you for the quick reply! Unfortunately when setting the debug option, building the application and then running it to see what errors may display in console I'm unable to see due to the window closing upon launch.. Only log I have is from the actual build with the debug flag which can be found here - https://pastebin.com/aJ16Awah

<!-- gh-comment-id:1298395216 --> @Ghostttie commented on GitHub (Nov 1, 2022): > When you followed the debugging steps in the help post, what did you find? Did you see an error in the console? If so, can you paste it here. Thank you for the quick reply! Unfortunately when setting the debug option, building the application and then running it to see what errors may display in console I'm unable to see due to the window closing upon launch.. Only log I have is from the actual build with the debug flag which can be found here - https://pastebin.com/aJ16Awah
Author
Owner

@brentvollebregt commented on GitHub (Nov 2, 2022):

Unfortunately when setting the debug option, building the application and then running it to see what errors may display in console I'm unable to see due to the window closing upon launch

Are you running the exe from a console? The console shouldn't close if the window closes it as the application doesn't own the console's process.

<!-- gh-comment-id:1299608109 --> @brentvollebregt commented on GitHub (Nov 2, 2022): > Unfortunately when setting the debug option, building the application and then running it to see what errors may display in console I'm unable to see due to the window closing upon launch Are you running the exe from a console? The console shouldn't close if the window closes it as the application doesn't own the console's process.
Author
Owner

@github-actions[bot] commented on GitHub (Dec 3, 2022):

This issue is stale because it has been open for 60 days with no activity. Remove stale label or comment on this issue or it will be closed in 5 days.

<!-- gh-comment-id:1335996099 --> @github-actions[bot] commented on GitHub (Dec 3, 2022): This issue is stale because it has been open for 60 days with no activity. Remove stale label or comment on this issue or it will be closed in 5 days.
Author
Owner

@github-actions[bot] commented on GitHub (Dec 8, 2022):

Closing issue due to no activity in more than 60 days.

<!-- gh-comment-id:1341829437 --> @github-actions[bot] commented on GitHub (Dec 8, 2022): Closing issue due to no activity in more than 60 days.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/auto-py-to-exe#280
No description provided.