Skip to content
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

Fix pyinstaller packaging after introduction of "native" mode #579

Merged
merged 1 commit into from
Mar 21, 2023

Conversation

rodja
Copy link
Member

@rodja rodja commented Mar 21, 2023

After the introduction of native mode, frozen packages created with pyinstaller as described in https://nicegui.io/reference#package_for_installation produced an executable which hung in an endless restarting loop. After much analysis it seems to be caused by

https://github.com/zauberzeug/nicegui/blob/main/nicegui/native_mode.py#L15

After applying this PR, which enables freeze-support for multiprocessing the error is gone.

@rodja rodja added the bug Something isn't working label Mar 21, 2023
@rodja rodja added this to the v1.2.1 milestone Mar 21, 2023
@rodja rodja self-assigned this Mar 21, 2023
@rodja rodja merged commit f787779 into main Mar 21, 2023
Copy link
Contributor

@falkoschindler falkoschindler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't really judge what this is doing and which side-effects it might have.
If in doubt we should talk about it. But apparently it's already merged.

@rodja
Copy link
Member Author

rodja commented Mar 21, 2023

Oh, the merging was accidental @falkoschindler. I discovered that packaging an app with native=True still does not work with this fix. So I created another: #582

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants