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

GUI executable #71

Closed
pgaviganHC opened this issue Aug 17, 2023 · 3 comments
Closed

GUI executable #71

pgaviganHC opened this issue Aug 17, 2023 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@pgaviganHC
Copy link
Contributor

A build process has been setup for a standalone exe of a console app for clients to use the table processing tool. This needs to be expanded to also generate an exe of the GUI.

@erikafungHCSC
Copy link
Contributor

erikafungHCSC commented Aug 21, 2023

I think the problem is due to dash callback: plotly/dash#1885
Tried this tutorial (https://github.com/JonThom/dash-background-callbacks-pyinstaller) and got it to work but not sure how to apply it to our exe

For reference, the error is:
File "dash_callback.py", line 318, in wrap_func
File "dash\long_callback\managers_init_.py", line 83, in register_func
File "dash\long_callback\managers_init_.py", line 103, in hash_function
File "inspect.py", line 1147, in getsource
File "inspect.py", line 1129, in getsourcelines
File "inspect.py", line 958, in findsource
OSError: could not get source code

@fnwaohaHC
Copy link
Contributor

So far exe is made and GUI opens but there is an issue with the call backs. Nothing happens once you submit a file.

Steps taken so far:

  • Recreate the venv before running the build
  • Run build.py

Add these lines to the GUI.spec file:

  • datas += [('table_processing\long_callbacks.py', '.'), ('cache', 'cache')] (line 25)
  • datas += [('.venv\Lib\site-packages\torchvision', 'torchvision')] (line 26)

Then type in terminal:

  • pyinstaller --noconfirm GUI.spec

@erikafungHCSC
Copy link
Contributor

Solved with #78

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

No branches or pull requests

4 participants