Closed sdrp closed 4 years ago
After some investigation, seems like we can use PyFladesk to package the server into an executable that can run on windows. See links below:
https://github.com/smoqadam/PyFladesk https://elc.github.io/posts/executable-flask-pyinstaller/
More generally the approach relies on PyInstaller: https://pypi.org/project/PyInstaller/
Creating a self-contained executable ended up being incredibly difficult given the complexity of connecting to the external camera and having to save / read from many different image and JSON files while communicating to the server. Plan is to move forward with maintaining a Windows version of the codebase that hopefully doesn't need to diverge from the Mac/Linux version by more than a few hardware compatibility lines.
The laptop we bought for MTC is an old HP model that runs Windows 10. Sud has this machine with him in Providence, and ultimately this is the one that we want to have running live at the clinic. Anyone can take this task, but it probably makes the most sense if Sud does this given that he can test it out on the actual machine before heading over.