-
-
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
v5.7.0 -w package flask to run .exe file error #7325
Comments
No. If you use noconsole/windowed mode, you now need to set a fake If you want this to work without setting fake |
Also, you should not be importing |
I've opened issue with |
After upgrading to v5.7.0, -w packaged the flask application, and an error occurred when running .exe. Try to add the following code in the entry file to solve this problem, and it can run successfully. If you don't add this code block, is there any other way to solve it?
`
import os
import sys
import PyInstaller
if PyInstaller.version == "5.6.2":
pass
else:
sys.stdout = open(os.devnull, "w")
`
The text was updated successfully, but these errors were encountered: