Pyinstaller problems #1141
-
QuestionFirst, I share the "minimal" source code to recreate the problem. import argparse
import multiprocessing
from nicegui import ui
def main():
parser = argparse.ArgumentParser(description="This is only a demo for the problem")
parser.add_argument("-p", "--port", type=int, help="set server port", default=7780)
args = parser.parse_args()
ui.run(port=args.port, title="Problem Demo")
if __name__ in {"__main__", "__mp_main__"}:
multiprocessing.freeze_support()
main()I have tried to convert my script using I have a Venv with this installed |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Hi @frankenstein91! |
Beta Was this translation helpful? Give feedback.
Hi @frankenstein91!
Please have a look at the documentation about packaging a NiceGUI app: https://nicegui.io/documentation#package_for_installation
It looks like you didn't set
reload=False, which might cause the runtime error.