question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

undefined symbol: H5Pset_fapl_ros3

See original GitHub issue

To assist reproducing bugs, please include the following:

  • Operating System: Ubuntu 18 Docker
  • Python version: 3.8
  • Where Python was acquired: Conda
  • h5py version (e.g. 2.6): results in error
  • HDF5 version (e.g. 1.8.17): 1.10.6
  • The full traceback/stack trace shown (if it appears)

Dear everyone,

I am using a Docker container based on jupyter/minimal-notebook:latest. It already has a miniconda with Python 3. Next, I installed h5py (was a dependency of something else). However, when attempting to use it I get:

(sc-analysis) jovyan@7171d029a008:~$ python -c 'import h5py; print(h5py.version.info)'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/opt/conda/envs/sc-analysis/lib/python3.8/site-packages/h5py/__init__.py", line 33, in <module>
    from . import version
  File "/opt/conda/envs/sc-analysis/lib/python3.8/site-packages/h5py/version.py", line 15, in <module>
    from . import h5 as _h5
  File "h5py/h5.pyx", line 1, in init h5py.h5
ImportError: /opt/conda/envs/sc-analysis/lib/python3.8/site-packages/h5py/defs.cpython-38-x86_64-linux-gnu.so: undefined symbol: H5Pset_fapl_ros3

Do you have any idea? I can share the full container if required. Thanks.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:18 (5 by maintainers)

github_iconTop GitHub Comments

8reactions
batterseapowercommented, Apr 20, 2021

I just hit this too (I’m also using Mamba). I worked around the issue for now by forcing h5py<3.2 in my environment.yml.

3reactions
aragilarcommented, Apr 20, 2021

The error is due to the HDF5 library being used not matching the configuration h5py was built with. This sounds like whichever source(s) of libraries mamba is using, they’re not consistent (which is a mamba problem).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error when importing h5/h5py on conda: undefined symbol
Worked for me: pip uninstall h5py pip install --no-cache-dir h5py.
Read more >
import h5py: undefined symbol: H5Pget_fapl_mpio - HDF Forum
I have installed h5py 2.5.0 with mpi switched on. I used: export CC=mpicc python3 setup.py configure --mpi python3 setup.py build
Read more >
如何python import h5py 报错:/defs.cpython-37m-x86_64 ...
h5py/defs.cpython-37m-x86_64-linux-gnu.so: undefined symbol: H5Pset_fapl_ros3 h5py is running against HDF5 1.10.2 when it was built against ...
Read more >
ImportError: undefined symbol: H5Pget_fapl_mpio
Looks like you're not linking against Parallel HDF5 for some reason. Double-check the value for --hdf5=/path/to/hdf5 in your build; it
Read more >
ImportError on CentOS 7 in Anaconda VEnv - Bountysource
... undefined symbol: H5Pset_fapl_ros3 In [2]:. See More. View in GitHub. SOLVE ISSUE. Overview; Backers (0); Updates ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found