-
Notifications
You must be signed in to change notification settings - Fork 216
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
frontend_example with PyInstaller #1067
Comments
In the end it's actually quite easy, just add this to
You obviously will need to adjust the "../.venv/src/openhtf/openhtf/output/web_gui" to appropriate path for your dev env setup. |
Thanks for reporting and identifying the issue! I'm reopening so that we can make this example work out of the box. |
Adding more detail for those who have trouble following the above discussion. Method 1 using VSCode terminal:
Method 2 in the form of a python script:
|
Hello.
I'm just asking since I'm curious about one aspect of the project. While trying to make a standalone binary from the frontend_example.py, it launches but I end up with a "500: Internal Server Error" message in the browser. This is it, no error in terminal. I assume that the binary isn't bundling the correct resources or that the path is different than when running from local script like in SO thread Bundling data files with PyInstaller (--onefile).
If the above assumption would be correct, most likely I'd have to figure out a way to swizzle the path to openhtf/openhtf/output/web_gui/dist/ folder so that the server serves these contents or something else would be necessary?
Best regards,
The text was updated successfully, but these errors were encountered: