-
Notifications
You must be signed in to change notification settings - Fork 399
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
h5py version #12
Comments
Hi Wei, Thanks for the report! As discussed in h5py/h5py#712 and #4, the code works well with hdf5 v 1.8.16 but may fail with hdf5 v 1.10. Could you also check The default hdf5 (libhdf5-dev) comes with ubuntu 16.04 (code name 'xenial') is 1.8.16, it is upgraded to 1.10.0 in Ubuntu 18.04 (code name 'bionic') https://packages.ubuntu.com/bionic/libhdf5-dev If downgrading to 1.8.16 is not easy, a temporary (ugly) solution is:
It is not elegant, we will try to work out a better solution. |
Thanks! I have installed the specific hdf5, how to build h5py from the specific hdf5 then? The tutorial is just not good. I cannot find setup.py anywhere. |
Hi Wei, The source code for h5py can be found here: https://github.com/h5py/h5py , which is the place you can find setup.py. You may need to build from the source. Please let us know if there is any problems once these setting is up. Sorry for the painful process of downgrading. |
Trying to get there, but |
It took me two days to get it work. My recalls: Note: Anaconda may not work (conda installed hdf5 may conflict with your customized installation). Anaconda also has mpi binaries installed and may suffer some conflicts issues. (My initial trials were in Anaconda unfortunately :( )
|
Thanks for the clear instructions, Wei! We will updated README with a pointer to your scripts. |
I have the same problem as you. I'd like to provide my solution here. Since the error is caused by the mode conflicts(r+ and r), we can solve this by changing the code, not depending on the version of h5py or hdf5. My idea is creating another h5 file( named surf_file_new) to store the losses and accuracies, so we only need to open the surf_file with 'r' mode and surf_file_new with 'w' mode. For less code changing, I copy the content of surf_file to surf_file_new and after function cruch(), I let surf_file = surf_file_new, so that we don't need to change the subsequent code. |
Downgrading h5py worked for me pip3 install --user 'h5py==2.7.0' --force-reinstall --no-cache-dir |
Fixed issue with 1.10.6 conflicting with model which was built with 1.10.4 |
Is it possible to support the latest h5py and hdfs by modifying the code? |
As discussed in #4 ,
h5py 2.7.0
is required. After downgradingpip install h5py=2.7.0
, I still haveAlso seems the version plots are different here:
OS:
"Ubuntu 16.04.5 LTS"
Python:
The text was updated successfully, but these errors were encountered: