Cannot import h5py on macos 10.12
See original GitHub issueIssue found on macos10.12 with h5py wheel v3.0rc1 (tested with python3.7 and 3.8):
>>> import h5py
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "py37env/lib/python3.7/site-packages/h5py/__init__.py", line 25, in <module>
from . import _errors
ImportError: dlopen(py37env/lib/python3.7/site-packages/h5py/_errors.cpython-37m-darwin.so, 2): Symbol not found: ____chkstk_darwin
Referenced from: py37env/lib/python3.7/site-packages/h5py/.dylibs/libsz.2.dylib
Expected in: /usr/lib/libSystem.B.dylib
in py37env/lib/python3.7/site-packages/h5py/.dylibs/libsz.2.dylib
It is fine with h5py 2.10.0.
It sounds wheels were built without setting MACOSX_DEPLOYMENT_TARGET
environment variable set to enable backward compatibility.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Installing h5py on OS X - python - Stack Overflow
I've installed HDF5 shared libraries, followed the instructions I could find on the web to get it right. But it doesn't work, below...
Read more >h5py in Mac OS X Newly installed Python 3.6 cannot load ...
A recent installed Python 3.6 Ananconda, after I called, I have the following error. python -c "import h5py" Traceback (most recent call last): ......
Read more >[Example code]-pip3 install h5py is not working in mac OS
Coding example for the question pip3 install h5py is not working in mac OS. ... installation of h5py using pip3, executing python3 -c...
Read more >Installation — h5py 3.7.0 documentation
This can be done in the python interpreter via: import h5py h5py.run_tests() ... On OSX/MacOS, h5py can be installed via Homebrew, Macports, or...
Read more >Re: LZ4 plugin for HDF5 - silx
I am on mac (rMBP early 2015, macOS Sierra 10.12.1, 2.9 GHz intel core ... I have now is that I can't get...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The missing symbol actually comes from libhdf5 (and libsz) which comes from homebrew. I’m looking into it.
I don’t have a good feel for how quickly old Mac OS versions can be dropped. But if setting an environment variable and building HDF5 from source can easily extend support to older versions, I’m happy for it to support as far back as you want.
Yup! Thanks 🙂