Giter VIP home page Giter VIP logo

Comments (12)

KDot227 avatar KDot227 commented on July 4, 2024

I tried on a windows 10 virtual machine (my machine is windows 11) and it also does not currently work. I also tried running with admin but still have no luck.

from nicegui.

KDot227 avatar KDot227 commented on July 4, 2024

Also when left on it seems to make a LOT more processes of itself.

from nicegui.

KDot227 avatar KDot227 commented on July 4, 2024

One thing to note is that I did build pyinstaller from the bootloader I will try without right now too.

from nicegui.

KDot227 avatar KDot227 commented on July 4, 2024

Still doesn't work with prebuilt.

from nicegui.

falkoschindler avatar falkoschindler commented on July 4, 2024

Hi @KDot227,

Have you read https://nicegui.io/documentation/section_configuration_deployment#package_for_installation?

Just make sure to call ui.run with reload=False in your main script to disable the auto-reload feature.

Using reload=True (the default) might cause a hanging process.

from nicegui.

KDot227 avatar KDot227 commented on July 4, 2024

Hi @KDot227,

Have you read https://nicegui.io/documentation/section_configuration_deployment#package_for_installation?

Just make sure to call ui.run with reload=False in your main script to disable the auto-reload feature.

Using reload=True (the default) might cause a hanging process.

Just tried with it set to False and it still isn't working.

from nicegui.

afullerx avatar afullerx commented on July 4, 2024

I was able to build and run the provided example natively on Windows 10 with Python 3.12. I only changed the following line:

ui.run(storage_secret="THIS_NEEDS_TO_BE_CHANGED", reload=False, port=8882)

I only changed the port because of a conflict on my system. Note: the command is actually nicegui-pack.

from nicegui.

afullerx avatar afullerx commented on July 4, 2024

@KDot227, I should have mentioned I did this with both PyInstaller and NiceGUI running in a venv. You could see if that works. Here is my generated spec file for reference:

# -*- mode: python ; coding: utf-8 -*-


a = Analysis(
    ['d2.py'],
    pathex=[],
    binaries=[],
    datas=[('F:\\a\\dev\\python\\pyinstaller_test\\venv\\Lib\\site-packages\\nicegui', 'nicegui')],
    hiddenimports=[],
    hookspath=[],
    hooksconfig={},
    runtime_hooks=[],
    excludes=[],
    noarchive=False,
    optimize=0,
)
pyz = PYZ(a.pure)

exe = EXE(
    pyz,
    a.scripts,
    [],
    exclude_binaries=True,
    name='Your App Name',
    debug=False,
    bootloader_ignore_signals=False,
    strip=False,
    upx=True,
    console=True,
    disable_windowed_traceback=False,
    argv_emulation=False,
    target_arch=None,
    codesign_identity=None,
    entitlements_file=None,
)
coll = COLLECT(
    exe,
    a.binaries,
    a.datas,
    strip=False,
    upx=True,
    upx_exclude=[],
    name='Your App Name',
)

Hope this helps.

from nicegui.

KDot227 avatar KDot227 commented on July 4, 2024

I'm going to try using a different port and see if that works.

from nicegui.

KDot227 avatar KDot227 commented on July 4, 2024

didn't change anything. Will try your spec file now then if that doesn't work I'll make a venv.

from nicegui.

KDot227 avatar KDot227 commented on July 4, 2024

It's working with your spec file now. Not too sure why but I'm not complaining.

from nicegui.

KDot227 avatar KDot227 commented on July 4, 2024

thank you @afullerx

from nicegui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.