google / google/openhtf

frontend_example with PyInstaller

Open
#1,067 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
722
Forks
237
Avg merge
11h 31m
Merged PRs (30d)
4

Description

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](https://github.com/google/openhtf/blob/master/examples/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)](https://stackoverflow.com/a/44352931).

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/](https://github.com/google/openhtf/tree/master/openhtf/output/web_gui/dist) folder so that the server serves these contents or something else would be necessary?

Best regards,

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.