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.

Provide wheels for macos 11

See original GitHub issue

To assist reproducing bugs, please include the following:

  • Operating System: macOS 11.1
  • Python version: 3.7
  • Where Python was acquired: pyenv on macos, using via poetry
  • h5py version (e.g. 2.6): 2.1.0 as required by tensorflow
  • HDF5 version (e.g. 1.8.17): hdf5 locally installed with brew@latest
  • The full traceback/stack trace shown (if it appears)

Since there are no wheels provided for macOS 11.1, h5py attempts to build locally and fails.

    Complete output (64 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.macosx-11-x86_64-3.9
    creating build/lib.macosx-11-x86_64-3.9/h5py
    copying h5py/h5py_warnings.py -> build/lib.macosx-11-x86_64-3.9/h5py
    copying h5py/version.py -> build/lib.macosx-11-x86_64-3.9/h5py
    copying h5py/highlevel.py -> build/lib.macosx-11-x86_64-3.9/h5py
    copying h5py/__init__.py -> build/lib.macosx-11-x86_64-3.9/h5py
    copying h5py/ipy_completer.py -> build/lib.macosx-11-x86_64-3.9/h5py
    creating build/lib.macosx-11-x86_64-3.9/h5py/_hl
    copying h5py/_hl/files.py -> build/lib.macosx-11-x86_64-3.9/h5py/_hl
    copying h5py/_hl/compat.py -> build/lib.macosx-11-x86_64-3.9/h5py/_hl
    copying h5py/_hl/__init__.py -> build/lib.macosx-11-x86_64-3.9/h5py/_hl
    copying h5py/_hl/selections.py -> build/lib.macosx-11-x86_64-3.9/h5py/_hl
    copying h5py/_hl/dataset.py -> build/lib.macosx-11-x86_64-3.9/h5py/_hl
    copying h5py/_hl/vds.py -> build/lib.macosx-11-x86_64-3.9/h5py/_hl
    copying h5py/_hl/selections2.py -> build/lib.macosx-11-x86_64-3.9/h5py/_hl
    copying h5py/_hl/group.py -> build/lib.macosx-11-x86_64-3.9/h5py/_hl
    copying h5py/_hl/datatype.py -> build/lib.macosx-11-x86_64-3.9/h5py/_hl
    copying h5py/_hl/attrs.py -> build/lib.macosx-11-x86_64-3.9/h5py/_hl
    copying h5py/_hl/dims.py -> build/lib.macosx-11-x86_64-3.9/h5py/_hl
    copying h5py/_hl/base.py -> build/lib.macosx-11-x86_64-3.9/h5py/_hl
    copying h5py/_hl/filters.py -> build/lib.macosx-11-x86_64-3.9/h5py/_hl
    creating build/lib.macosx-11-x86_64-3.9/h5py/tests
    copying h5py/tests/test_deprecation.py -> build/lib.macosx-11-x86_64-3.9/h5py/tests
    copying h5py/tests/test_dimension_scales.py -> build/lib.macosx-11-x86_64-3.9/h5py/tests
    copying h5py/tests/test_attribute_create.py -> build/lib.macosx-11-x86_64-3.9/h5py/tests
    copying h5py/tests/test_file_image.py -> build/lib.macosx-11-x86_64-3.9/h5py/tests
    copying h5py/tests/test_h5d_direct_chunk.py -> build/lib.macosx-11-x86_64-3.9/h5py/tests
    copying h5py/tests/test_h5f.py -> build/lib.macosx-11-x86_64-3.9/h5py/tests
    copying h5py/tests/test_dataset_getitem.py -> build/lib.macosx-11-x86_64-3.9/h5py/tests
    copying h5py/tests/test_group.py -> build/lib.macosx-11-x86_64-3.9/h5py/tests
    copying h5py/tests/test_dataset_swmr.py -> build/lib.macosx-11-x86_64-3.9/h5py/tests
    copying h5py/tests/test_slicing.py -> build/lib.macosx-11-x86_64-3.9/h5py/tests
    copying h5py/tests/test_h5pl.py -> build/lib.macosx-11-x86_64-3.9/h5py/tests
    copying h5py/tests/test_attrs.py -> build/lib.macosx-11-x86_64-3.9/h5py/tests
    copying h5py/tests/__init__.py -> build/lib.macosx-11-x86_64-3.9/h5py/tests
    copying h5py/tests/test_attrs_data.py -> build/lib.macosx-11-x86_64-3.9/h5py/tests
    copying h5py/tests/test_h5t.py -> build/lib.macosx-11-x86_64-3.9/h5py/tests
    copying h5py/tests/test_h5p.py -> build/lib.macosx-11-x86_64-3.9/h5py/tests
    copying h5py/tests/test_dims_dimensionproxy.py -> build/lib.macosx-11-x86_64-3.9/h5py/tests
    copying h5py/tests/test_datatype.py -> build/lib.macosx-11-x86_64-3.9/h5py/tests
    copying h5py/tests/common.py -> build/lib.macosx-11-x86_64-3.9/h5py/tests
    copying h5py/tests/test_dataset.py -> build/lib.macosx-11-x86_64-3.9/h5py/tests
    copying h5py/tests/test_file.py -> build/lib.macosx-11-x86_64-3.9/h5py/tests
    copying h5py/tests/test_selections.py -> build/lib.macosx-11-x86_64-3.9/h5py/tests
    copying h5py/tests/test_threads.py -> build/lib.macosx-11-x86_64-3.9/h5py/tests
    copying h5py/tests/test_dtype.py -> build/lib.macosx-11-x86_64-3.9/h5py/tests
    copying h5py/tests/test_h5.py -> build/lib.macosx-11-x86_64-3.9/h5py/tests
    copying h5py/tests/test_file2.py -> build/lib.macosx-11-x86_64-3.9/h5py/tests
    copying h5py/tests/test_completions.py -> build/lib.macosx-11-x86_64-3.9/h5py/tests
    copying h5py/tests/test_filters.py -> build/lib.macosx-11-x86_64-3.9/h5py/tests
    copying h5py/tests/test_base.py -> build/lib.macosx-11-x86_64-3.9/h5py/tests
    copying h5py/tests/test_objects.py -> build/lib.macosx-11-x86_64-3.9/h5py/tests
    creating build/lib.macosx-11-x86_64-3.9/h5py/tests/test_vds
    copying h5py/tests/test_vds/test_highlevel_vds.py -> build/lib.macosx-11-x86_64-3.9/h5py/tests/test_vds
    copying h5py/tests/test_vds/test_virtual_source.py -> build/lib.macosx-11-x86_64-3.9/h5py/tests/test_vds
    copying h5py/tests/test_vds/__init__.py -> build/lib.macosx-11-x86_64-3.9/h5py/tests/test_vds
    copying h5py/tests/test_vds/test_lowlevel_vds.py -> build/lib.macosx-11-x86_64-3.9/h5py/tests/test_vds
    running build_ext
    Loading library to get version: libhdf5.dylib
    error: dlopen(libhdf5.dylib, 6): image not found

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:2
  • Comments:15 (4 by maintainers)

github_iconTop GitHub Comments

9reactions
Amar1729commented, Apr 10, 2021

@reem Looks like homebrew’s latest hdf5 (1.12) is incompatible with h5py==2.10.0. Install 1.8 instead and make sure to set HDF5_DIR so the build can find it -

brew install hdf5@1.8

export HDF5_DIR=/usr/local/opt/hdf@1.8/  # default location, it's different if you have homebrew in a nonstandard place

then build with pip/poetry/whatever

4reactions
jlevcommented, Feb 2, 2022

I had to do export HDF5_DIR=/opt/homebrew/opt/hdf5@1.8

Read more comments on GitHub >

github_iconTop Results From Across the Web

I can't install TensorFlow-macos a… | Apple Developer Forums
SYSTEM_VERSION_COMPAT=0 python -m pip install tensorflow-macos otherwise you will get errors like : “not a supported wheel on this platform”`.
Read more >
Python Wheels
This site shows the top 360 most-downloaded packages on PyPI showing which have been uploaded as wheel archives. Green packages offer wheels,; White...
Read more >
Tips and tricks - cibuildwheel - Read the Docs
Linux wheels are built in manylinux / musllinux containers to provide binary ... wheels on macos-11 runs-on: macos-11 steps: - uses: actions/checkout@v3 ...
Read more >
[Python] Enable wheel deployment for Mac OS 11 Big Sur
It is currently quite tricky to get pyarrow to build on latest Mac distributions. Since GitHub runners support Mac 11.0 Big Sur, ...
Read more >
Mac Gaming + Logitech G920 Racing Wheel!? - YouTube
Like playing racing games on Mac ? If so YOU NEED the Logitech G920 Racing Wheel for Mac ! Join the Mac Gaming...
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