Skip to content

Some questions on binary version with "--noconsole" option #7881

Answered by rokm
hwy1992129 asked this question in PyInstaller
Discussion options

You must be logged in to vote

If the error in noconsole executable (assuming we are talking about Windows here) results in an unhandled exception, PyInstaller's bootloader should pop up an error window with information about exception and its traceback.

If the error is handled but for example prints a warning to stdout/stderr (for example via logging) then you won't see it due to lack of console. So if you want to capture warnings that would otherwise go to stderr, you will need to redirect that to a log file.

Interestingly, certain errors arise only when the console is disabled. When I use the console option, those errors don't manifest.

Then your code or the 3rd party code you are using is being naive and expects …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by hwy1992129
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage Please triage and relabel this issue
2 participants
Converted from issue

This discussion was converted from issue #7880 on August 23, 2023 18:18.