-
Notifications
You must be signed in to change notification settings - Fork 261
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
HDF error in the presence of h5py #694
Comments
This must depend on how the modules are built and installed, since I cannot reproduce this on macos x with git master h5py and netcdf4-python, and HDF5 1.10.0-patch1. |
Thanks for the hint! As it turned out, the modules were not linked against the local netCDF4/hdf5 libraries, but the wheels installed by pip come with their own version of the libraries which seem to be incompatible. Building the modules from source and linking against the local netCDF4/hdf5 libraries solves the problem. |
If h5py is imported before netCDF4 on my system, reading a netCDF4 file fails with the following error:
If you swap the imports or omit the h5py import, everything works fine. Maybe this is related to #653 ? I'm using netCDF4-1.2.8 and h5py-2.7.0 linked against netCDF-4.4.1.1 with hdf5 support (hdf5-1.8.18). The modules were installed using pip, the Python version is 2.7.13, system is CentOS-7.3.
The text was updated successfully, but these errors were encountered: