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
Windows incorrect process status code (4294967295) #5480
Comments
Keep the bootloader's return code consistent with that of python interpreter, which returns 1 if it exits due to exception in the python script. Fixes pyinstaller#5480.
You're right, the return code behavior is not consistent with that of python interpreter and unfrozen script. But this is not limited to Windows - it also happens on linux, where the return code of frozen program is 255 (0xFF), as opposed to 0xFFFFFFFF on Windows. |
@rokm you are correct, I also tested it on MacOS and it is the same, the return code is changed from I now saw the PR to fix this 👍 |
When running an executable compiled with PyInstaller the return code of unhandled exception is changed from 1 to 4294967295 (which probably means -1).
It is pretty easy to reproduce, this is my code:
error.py:
Now just build with
pyinstaller error.py
And running this with:
Output:
Running with python return 1 as the returncode and with pyinstaller 4294967295.
PyInstaller: 4.2
OS: Windows
Python: 3.7.9
This only happens in windows, is this expected?
The text was updated successfully, but these errors were encountered: