Open UnbearableFate opened 11 months ago
The same issue happened to me; is this solved?
Same issue
I find the solution in my case on https://github.com/dusty-nv/jetson-containers/issues/265. Before running
pip install kfac
Do
pip3 install 'Cython<3'
I'm not sure exactly why it worked, it seems the setup.py
file use depreciated syntax of Cython.
Env:
Python 3.10.13 tensorboard 2.15.1 tensorboard-data-server 0.7.2 tensorflow 2.15.0.post1 tensorflow-estimator 2.15.0 tensorflow-io-gcs-filesystem 0.34.0
Requirement already satisfied: h5py in /home//venv/lib/python3.10/site-packages (3.10.0) Requirement already satisfied: numpy>=1.17.3 in /home//venv/lib/python3.10/site-packages (from h5py) (1.26.2) Requirement already satisfied: cython in /home/**/venv/lib/python3.10/site-packages (3.0.6)
full error log like below:
Building wheels for collected packages: h5py Building wheel for h5py (setup.py) ... error error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [499 lines of output] /usr/lib/python3/dist-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer. warnings.warn( running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-3.10 creating build/lib.linux-x86_64-3.10/h5py copying h5py/init.py -> build/lib.linux-x86_64-3.10/h5py copying h5py/h5py_warnings.py -> build/lib.linux-x86_64-3.10/h5py copying h5py/highlevel.py -> build/lib.linux-x86_64-3.10/h5py copying h5py/ipy_completer.py -> build/lib.linux-x86_64-3.10/h5py copying h5py/version.py -> build/lib.linux-x86_64-3.10/h5py creating build/lib.linux-x86_64-3.10/h5py/_hl copying h5py/_hl/init.py -> build/lib.linux-x86_64-3.10/h5py/_hl copying h5py/_hl/attrs.py -> build/lib.linux-x86_64-3.10/h5py/_hl copying h5py/_hl/base.py -> build/lib.linux-x86_64-3.10/h5py/_hl copying h5py/_hl/compat.py -> build/lib.linux-x86_64-3.10/h5py/_hl copying h5py/_hl/dataset.py -> build/lib.linux-x86_64-3.10/h5py/_hl copying h5py/_hl/datatype.py -> build/lib.linux-x86_64-3.10/h5py/_hl copying h5py/_hl/dims.py -> build/lib.linux-x86_64-3.10/h5py/_hl copying h5py/_hl/files.py -> build/lib.linux-x86_64-3.10/h5py/_hl copying h5py/_hl/filters.py -> build/lib.linux-x86_64-3.10/h5py/_hl copying h5py/_hl/group.py -> build/lib.linux-x86_64-3.10/h5py/_hl copying h5py/_hl/selections.py -> build/lib.linux-x86_64-3.10/h5py/_hl copying h5py/_hl/selections2.py -> build/lib.linux-x86_64-3.10/h5py/_hl copying h5py/_hl/vds.py -> build/lib.linux-x86_64-3.10/h5py/_hl creating build/lib.linux-x86_64-3.10/h5py/tests copying h5py/tests/init.py -> build/lib.linux-x86_64-3.10/h5py/tests copying h5py/tests/common.py -> build/lib.linux-x86_64-3.10/h5py/tests copying h5py/tests/test_attribute_create.py -> build/lib.linux-x86_64-3.10/h5py/tests copying h5py/tests/test_attrs.py -> build/lib.linux-x86_64-3.10/h5py/tests copying h5py/tests/test_attrs_data.py -> build/lib.linux-x86_64-3.10/h5py/tests copying h5py/tests/test_base.py -> build/lib.linux-x86_64-3.10/h5py/tests copying h5py/tests/test_completions.py -> build/lib.linux-x86_64-3.10/h5py/tests copying h5py/tests/test_dataset.py -> build/lib.linux-x86_64-3.10/h5py/tests copying h5py/tests/test_dataset_getitem.py -> build/lib.linux-x86_64-3.10/h5py/tests copying h5py/tests/test_dataset_swmr.py -> build/lib.linux-x86_64-3.10/h5py/tests copying h5py/tests/test_datatype.py -> build/lib.linux-x86_64-3.10/h5py/tests copying h5py/tests/test_deprecation.py -> build/lib.linux-x86_64-3.10/h5py/tests copying h5py/tests/test_dimension_scales.py -> build/lib.linux-x86_64-3.10/h5py/tests copying h5py/tests/test_dims_dimensionproxy.py -> build/lib.linux-x86_64-3.10/h5py/tests copying h5py/tests/test_dtype.py -> build/lib.linux-x86_64-3.10/h5py/tests copying h5py/tests/test_file.py -> build/lib.linux-x86_64-3.10/h5py/tests copying h5py/tests/test_file2.py -> build/lib.linux-x86_64-3.10/h5py/tests copying h5py/tests/test_file_image.py -> build/lib.linux-x86_64-3.10/h5py/tests copying h5py/tests/test_filters.py -> build/lib.linux-x86_64-3.10/h5py/tests copying h5py/tests/test_group.py -> build/lib.linux-x86_64-3.10/h5py/tests copying h5py/tests/test_h5.py -> build/lib.linux-x86_64-3.10/h5py/tests copying h5py/tests/test_h5d_direct_chunk.py -> build/lib.linux-x86_64-3.10/h5py/tests copying h5py/tests/test_h5f.py -> build/lib.linux-x86_64-3.10/h5py/tests copying h5py/tests/test_h5p.py -> build/lib.linux-x86_64-3.10/h5py/tests copying h5py/tests/test_h5pl.py -> build/lib.linux-x86_64-3.10/h5py/tests copying h5py/tests/test_h5t.py -> build/lib.linux-x86_64-3.10/h5py/tests copying h5py/tests/test_objects.py -> build/lib.linux-x86_64-3.10/h5py/tests copying h5py/tests/test_selections.py -> build/lib.linux-x86_64-3.10/h5py/tests copying h5py/tests/test_slicing.py -> build/lib.linux-x86_64-3.10/h5py/tests copying h5py/tests/test_threads.py -> build/lib.linux-x86_64-3.10/h5py/tests creating build/lib.linux-x86_64-3.10/h5py/tests/test_vds copying h5py/tests/test_vds/init.py -> build/lib.linux-x86_64-3.10/h5py/tests/test_vds copying h5py/tests/test_vds/test_highlevel_vds.py -> build/lib.linux-x86_64-3.10/h5py/tests/test_vds copying h5py/tests/test_vds/test_lowlevel_vds.py -> build/lib.linux-x86_64-3.10/h5py/tests/test_vds copying h5py/tests/test_vds/test_virtual_source.py -> build/lib.linux-x86_64-3.10/h5py/tests/test_vds running build_ext Loading library to get version: /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5.so Autodetected HDF5 1.10.7
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for h5py Running setup.py clean for h5py Failed to build h5py ERROR: Could not build wheels for h5py, which is required to install pyproject.toml-based projects