HDFGroup / hdf5-json

Specification and tools for representing HDF5 in JSON
https://hdf5-json.readthedocs.io
Other
73 stars 25 forks source link

Installation problem with h5serv #67

Closed mohammadsamani closed 2 years ago

mohammadsamani commented 5 years ago

I am trying to follow these instruction to install the h5serv: https://h5serv.readthedocs.io/en/latest/Installation/ServerSetup.html I use the git command to download the source codes. I think there's a problem on this line, when it says: From here cd to “server” (or “h5serv-master/server” if you extracted from ZIP file). Instead of "server", the subfolder inside h5serv is also called h5serv, and that is where app.py is. When I run app.py from there, I get the following message:

$ python app.py Traceback (most recent call last): File "app.py", line 40, in import h5serv.config as config ImportError: No module named h5serv.config

Now I can go to the source code and remove every instance of "h5serv." from all the python files, and finally app.py runs successfully, but I never saw the message "Starting event loop on port: 5000" What am I doing wrong?

jreadey commented 5 years ago

I think the Windows instructions got updated at some point, but not the Linux/OSX ones. I've updated the server setup.rst file: https://github.com/HDFGroup/h5serv/blob/develop/docs/Installation/ServerSetup.rst - basically you just run "python h5serv" now.

Let me know if this works for you.

mohammadsamani commented 5 years ago

Yes. That worked. Thank you!