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.

Cannot import h5py on macos 10.12

See original GitHub issue

Issue 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:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
t20100commented, Oct 13, 2020

The missing symbol actually comes from libhdf5 (and libsz) which comes from homebrew. I’m looking into it.

0reactions
takluyvercommented, Oct 13, 2020

It depends how far you want to be backward compatible.

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.

For building HDF5, you mean the ci/travis/get_hdf5_if_needed.sh script?

Yup! Thanks 🙂

Read more comments on GitHub >

github_iconTop 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 >

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