-
-
Notifications
You must be signed in to change notification settings - Fork 51
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
Import h5py fails due to undefined symbol #103
Comments
note: This could be a duplicate of #97 |
I think #92 describes the underlying cause of this and #97: the dependency specified between h5py and HDF5 is not specific enough, so conda will install versions that are not compatible. As far as I'm concerned, h5py is only reliably ABI compatible with the build of HDF5 (version & build options) it was built against. Some other things may work, but I wouldn't assume they do. |
Is there the possibility to pin the version via a hash? |
@MarDiehl, did you manage to get it working? |
I seems to work now, I assume due to updates to h5py/hdf5. |
What version of h5py are you using @MarDiehl? Tried to look into your logs, but they seem to be gone. I'm trying to get 3.1 or 3.2.1 working. |
I'm not using any version at the moment, I got the issue when building my package. You could fork https://github.com/conda-forge/damask-feedstock, do some arbitrary changes and create a pull request. That should trigger the CI pipeline which reports the versions. |
Have the same problem with h5py 3.6.0 |
Locking h5py to 3.1.0 worked for me, in the end. Still, I’d rather order to be able to use the latest. |
h5py 3.1.0 nompi_py39hf27771d_100 conda-forge is not working either :( |
If you want to use a newer h5py, try installing a newer hdf5 as well. 1.12.1 is the current latest version. |
h5py 3.6.0 nompi_py39hd4deaf1_100 conda-forge Unfortunately neither this combination. Every time it is the same:
|
It seems one solution should be:
Now have only |
The wheel package (what you get with pip) bundles libhdf5 into the wheel, so it should never 🤞 have a mismatch between the HDF5 used to build h5py and the HDF5 it finds at runtime. That approach has its downsides, though - e.g. the read-only S3 driver is enabled in conda-forge, but not in pip, because that would mean bundling more libraries. |
I encountered the same problem, took inspiration from this issue, especially from Khamyl, and solved it by following:
|
I was getting: ImportError: /home/david/.conda/envs/qcarchive-worker-openff-psi4-test/lib/python3.9/site-packages/h5py/defs.cpython-39-x86_64-linux-gnu.so: undefined symbol: H5Pset_fapl_ros3 Used suggested workaround: conda-forge/h5py-feedstock#103 (comment)
Any update on this? in a py3.10 env i'm noticing I'm also getting these errors for fiona and rasterio: |
Pinning to |
with the lastest pull from conda-forge I get h5py 3.11 that fails with the same error. |
Issue:
Rebuild of a Python package fails in the
test
stage because h5py cannot be imported.The relevant part of the log file on windows is
and on Linux
The full logs are available on https://dev.azure.com/conda-forge/84710dde-1620-425b-80d0-4cf5baca359d/_apis/build/builds/400217/logs/38 and https://dev.azure.com/conda-forge/84710dde-1620-425b-80d0-4cf5baca359d/_apis/build/builds/400217/logs/41
The text was updated successfully, but these errors were encountered: