-
Notifications
You must be signed in to change notification settings - Fork 23
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
Consider docker distribution #81
Comments
Hey @oceancolorcoder, I would like to work on this. |
Hi @alexdeathway, Thanks for your interest. If you have any tips or advice on making it run (PyQt5 GUI and all) in a docker container to make it more portable, that would be great. Let us know what you have in mind. |
@oceancolorcoder tried prototyping https://github.com/alexdeathway/HyperInSPACE/tree/docker-beta0.2 . |
Hi Sarvesh, Thanks for that. I haven't had time to go over it in much detail, and frankly have very little experience with docker, but someone on the team with more experience than me will take a look. I noticed a few things of concern: 1) it appears it might be specific to debian whereas we want to also support mac and windows (part of the inspiration to look into docker), 2) it is built on master when our primary inspiration for looking into docker was that the new complexity in our dev branch is creating the conda environment issues, and 3) what is port 8000 being used for? Thanks again for the suggestions and we'll take a closer look! |
This was just an outline for the docker setup so a couple of loose ends, nothing much of detailed analysis is required, Now coming to concerns.
Feel free to propose a guideline for docker setup |
We have a PyInstaller thanks to Nils and commit efa2445. I will close this issue after some testing. |
I've done some testing, following README_bundle.md in Linux (Ubuntu 18.04 LTS)
ImportError: cannot import name 'Sequence' from 'collections'
3074 WARNING: Failed to collect submodules for 'pyqtgraph.opengl' because importing 'pyqtgraph.opengl' raised: ModuleNotFoundError: No module named 'OpenGL' qt.qpa.xcb: X server does not support XInput 2 509861 WARNING: Hidden import "sklearn.neighbors._typedefs" not found! 524995 WARNING: Hidden import "MySQLdb" not found! 524995 WARNING: Hidden import "psycopg2" not found! 532794 INFO: Loading module hook 'hook-PyQt5.QtSvg.py' from '/tcenas/proj/ocean/color/conda/miniconda3/envs/hypercp/lib/python3.10/site-packages/PyInstaller/hooks'... /tcenas/home/gossn/.bashrc: line 221: bind: warning: line editing not enabled |
Updated with commit d7bdca9. The only thing remaining is an Apple Developer signature. Will hold open for now. Thanks Nils! |
Windows bundle failed due to change in filename of banner, I didn't anticipate during merge... I will fix and test asap. |
Tested Linux bundle from https://github.com/nasa/HyperCP/actions/runs/6670838805 on linux 5.4.0-150-generic #167-Ubuntu with the following result:
|
Local build on same also fails with:
|
I tested on Ubuntu, and it worked fine, not sure about the first issue but second one seem to be Conda missing dependency, by the way why we are bundling based on Conda doesn't that just add another layer of abstraction and transfer Conda problem to next layer? |
Thank you for testing. Good to hear it worked for you. It is a fair question regarding Conda, but not one I can personally answer. |
It may be more user friendly to use a Docker to contain the code for distribution to avoid conda environment issues.
The text was updated successfully, but these errors were encountered: