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

How to Package a StreamSync App into an Executable Using PyInstaller? #432

Open
Masa0208 opened this issue May 17, 2024 · 0 comments
Open
Assignees

Comments

@Masa0208
Copy link

Masa0208 commented May 17, 2024

Hello,I have developed a Python application using StreamSync and I am trying to package it into an executable (.exe) using PyInstaller.
Here are the steps I have taken so far, but I am facing issues getting it to work correctly.


  1. Created run_main.py :
    image

  2. Created hook_streamsync.py :
    image

  3. Created a PyInstaller spec file using:
    pyinstaller --onefile --additional-hooks-dir=./hooks run_main.py --clean

  4. Edited the generated run_app.spec file to include the necessary static files from StreamSync:
    datas=[
    ('<path_to_streamsync_static>', 'streamsync/static')
    ]

  5. Built the executable using:
    pyinstaller run_main.spec --clean

  6. Copied ui.json and main.py to the dist folder
    image


The executable is generated successfully in the dist folder, but when I try to run it, I encounter issues with the StreamSync static logo repeated in the command line and the screen doesn't progress.
image

Could someone please guide me on how to correctly package a StreamSync application into an executable using PyInstaller?
Any help or suggestions would be greatly appreciated.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants