Open Wananrd opened 4 months ago
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?
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 nicegui-pack
(see https://nicegui.io/documentation/section_configuration_deployment#package_for_installation).
Besides a confirmation from another windows user I would like to know if the error also happens if you use
nicegui-pack
(see https://nicegui.io/documentation/section_configuration_deployment#package_for_installation).
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:
Currently, the only supported multi-processing framework is the multiprocessing module from the Python standard library, and even that requires you to make a multiprocessing.freeze_support() call before using any multiprocessing functionality.
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