-
-
Notifications
You must be signed in to change notification settings - Fork 627
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 and cpu_bound issue #3034
Comments
I want to know how to handle this issue? |
Does your code run fine when not packaged with pyinstaller? Is the exception happening whenever you start the program, or have you pressed CTRL-C or something else? |
No packaged it works. When after I packaged it and exeacute it, it could show the right page. However, I clicked the button, it appears this error. I don't do any other operation. |
Can anyone reproduce this? |
Besides a confirmation from another windows user I would like to know if the error also happens if you use |
It has the same error even i use the nicegui-pack |
I was able to replicate this error. However, after further investigation, it doesn't appear to be an issue with NiceGUI. From the PyInstaller documentation:
I modified demp.py to include: multiprocessing.freeze_support()
ui.run(reload=False) This prevented the error. @Wananrd, does this also resolve the issue for you? |
Description
I need to use pyinstaller to generate exe file, when i run the exe file, there's a question about cpu_bound, I guess it may be connected with muti-thread.
I want to know how to solve it.
My demo.py code
my build code
This is error info
The text was updated successfully, but these errors were encountered: