Open michaelosthege opened 2 years ago
I'm seeing this warning but now with 1.14.2 and 1.14.3
Update: seemingly not quite the same as above, because it's just a warning:
/gpfs/fs1/home/ac.xylar/chrysalis/mambaforge/envs/compass_rrs/lib/python3.10/site-packages/h5py/__init__.py:36: UserWarning: h5py is running against HDF5 1.14.3 when it was built against 1.14.2, this may cause problems
_warn(("h5py is running against HDF5 {0} when it was built against {1}, "
Still, kind of annoying!
I'm getting the same error on mdl.idata.to_netcdf(filename))
Seems to be related to arviz
UserWarning: h5py is running against HDF5 1.14.3 when it was built against 1.14.2, this may cause problems
Python implementation: CPython
Python version : 3.10.13
IPython version : 8.18.1
pymc : 5.9.2
pytensor: 2.17.3
Compiler : Clang 16.0.6
OS : Darwin
Release : 23.1.0
Machine : arm64
Processor : arm
CPU cores : 8
Architecture: 64bit
sys : 3.10.13 | packaged by conda-forge | (main, Oct 26 2023, 18:09:17) [Clang 16.0.6 ]
pandas : 2.1.4
seaborn : 0.12.2
oreum_core: 0.7.0
arviz : 0.16.1
numpy : 1.25.2
Same here
/Users/tdegeus/miniforge3/envs/code_epm/lib/python3.12/site-packages/h5py/__init__.py:36: UserWarning: h5py is running against HDF5 1.14.3 when it was built against 1.14.2, this may cause problems
_warn(("h5py is running against HDF5 {0} when it was built against {1}, "
I guess that version pinning is not working well?
Solution to issue cannot be found in the documentation.
Issue
We ran into the well-known "h5py is running against HDF5 x when it was built against y" issue.
We could circumvent it by pinning to an ealier
h5py
version:mamba install -c conda-forge "h5py=3.6.0"
.Interestingly the error is conditional on the order of imports.
Doing just
import h5py
results inBut doing
python -c "import arviz;import h5py"
gives the error below.I have a feeling that this might be an incompatibility with NetCDF4.
Installed packages
Environment info