Skip to content

PyInstaller fails to pack a simple NiceGui script #4490

@ghost

Description

Description

Can someone help me troubleshoot why I can't pack anything? I'm using Python 3.13 on Windows 23H2.
I'm trying to package my app with:

nicegui-pack --onefile --name "myapp" main.py

main.py

from nicegui import native, ui

ui.label('Hello from PyInstaller')

ui.run(reload=False, port=native.find_open_port())

But I get this error when launching the dist/myapp.exe:

Image

Running it directly with python .\main.py works:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions