Jetson Nano 4.6.1 h5py build error

hello, I am trying to install cuda and tensort on jetson nano-devoloper-kit 4.6.1 with the documentation in the link. I get a long error while building h5py. I was successfully completing the installation in these processes I did before. How can I overcome this error?

documantion

sudo env H5PY_SETUP_REQUIRES=0 pip3 install -U h5py==3.1.0WARNING: The directory '/home/tom05/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
Collecting h5py==3.1.0
  Downloading h5py-3.1.0.tar.gz (371 kB)
     |████████████████████████████████| 371 kB 754 kB/s            
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting cached-property
  Downloading cached_property-1.5.2-py2.py3-none-any.whl (7.6 kB)
Requirement already satisfied: numpy>=1.12 in /usr/local/lib/python3.6/dist-packages (from h5py==3.1.0) (1.19.4)
Building wheels for collected packages: h5py
  Building wheel for h5py (pyproject.toml) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 /usr/local/lib/python3.6/dist-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /tmp/tmp511ukex0
       cwd: /tmp/pip-install-a9mihwlc/h5py_652398a5039b485c87d0551a37231fda
  Complete output (549 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-aarch64-3.6
  creating build/lib.linux-aarch64-3.6/h5py
  copying h5py/version.py -> build/lib.linux-aarch64-3.6/h5py
  copying h5py/__init__.py -> build/lib.linux-aarch64-3.6/h5py
  copying h5py/ipy_completer.py -> build/lib.linux-aarch64-3.6/h5py
  copying h5py/h5py_warnings.py -> build/lib.linux-aarch64-3.6/h5py
  creating build/lib.linux-aarch64-3.6/h5py/_hl
  copying h5py/_hl/__init__.py -> build/lib.linux-aarch64-3.6/h5py/_hl
  copying h5py/_hl/base.py -> build/lib.linux-aarch64-3.6/h5py/_hl
  copying h5py/_hl/filters.py -> build/lib.linux-aarch64-3.6/h5py/_hl
  copying h5py/_hl/group.py -> build/lib.linux-aarch64-3.6/h5py/_hl
  copying h5py/_hl/attrs.py -> build/lib.linux-aarch64-3.6/h5py/_hl
  copying h5py/_hl/datatype.py -> build/lib.linux-aarch64-3.6/h5py/_hl
  copying h5py/_hl/files.py -> build/lib.linux-aarch64-3.6/h5py/_hl
  copying h5py/_hl/dataset.py -> build/lib.linux-aarch64-3.6/h5py/_hl
  copying h5py/_hl/dims.py -> build/lib.linux-aarch64-3.6/h5py/_hl
  copying h5py/_hl/vds.py -> build/lib.linux-aarch64-3.6/h5py/_hl
  copying h5py/_hl/compat.py -> build/lib.linux-aarch64-3.6/h5py/_hl
  copying h5py/_hl/selections2.py -> build/lib.linux-aarch64-3.6/h5py/_hl
  copying h5py/_hl/selections.py -> build/lib.linux-aarch64-3.6/h5py/_hl
  creating build/lib.linux-aarch64-3.6/h5py/tests
  copying h5py/tests/conftest.py -> build/lib.linux-aarch64-3.6/h5py/tests
  copying h5py/tests/test_attribute_create.py -> build/lib.linux-aarch64-3.6/h5py/tests
  copying h5py/tests/test_errors.py -> build/lib.linux-aarch64-3.6/h5py/tests
  copying h5py/tests/test_file_image.py -> build/lib.linux-aarch64-3.6/h5py/tests
  copying h5py/tests/test_attrs.py -> build/lib.linux-aarch64-3.6/h5py/tests
  copying h5py/tests/__init__.py -> build/lib.linux-aarch64-3.6/h5py/tests
  copying h5py/tests/test_h5pl.py -> build/lib.linux-aarch64-3.6/h5py/tests
  copying h5py/tests/test_dataset_swmr.py -> build/lib.linux-aarch64-3.6/h5py/tests
  copying h5py/tests/test_attrs_data.py -> build/lib.linux-aarch64-3.6/h5py/tests
  copying h5py/tests/common.py -> build/lib.linux-aarch64-3.6/h5py/tests
  copying h5py/tests/test_dims_dimensionproxy.py -> build/lib.linux-aarch64-3.6/h5py/tests
  copying h5py/tests/test_h5p.py -> build/lib.linux-aarch64-3.6/h5py/tests
  copying h5py/tests/test_big_endian_file.py -> build/lib.linux-aarch64-3.6/h5py/tests
  copying h5py/tests/test_datatype.py -> build/lib.linux-aarch64-3.6/h5py/tests
  copying h5py/tests/test_filters.py -> build/lib.linux-aarch64-3.6/h5py/tests
  copying h5py/tests/test_objects.py -> build/lib.linux-aarch64-3.6/h5py/tests
  copying h5py/tests/test_dimension_scales.py -> build/lib.linux-aarch64-3.6/h5py/tests
  copying h5py/tests/test_h5f.py -> build/lib.linux-aarch64-3.6/h5py/tests
  copying h5py/tests/test_file.py -> build/lib.linux-aarch64-3.6/h5py/tests
  copying h5py/tests/test_h5d_direct_chunk.py -> build/lib.linux-aarch64-3.6/h5py/tests
  copying h5py/tests/test_h5t.py -> build/lib.linux-aarch64-3.6/h5py/tests
  copying h5py/tests/test_group.py -> build/lib.linux-aarch64-3.6/h5py/tests
  copying h5py/tests/test_selections.py -> build/lib.linux-aarch64-3.6/h5py/tests
  copying h5py/tests/test_slicing.py -> build/lib.linux-aarch64-3.6/h5py/tests
  copying h5py/tests/test_dtype.py -> build/lib.linux-aarch64-3.6/h5py/tests
  copying h5py/tests/test_completions.py -> build/lib.linux-aarch64-3.6/h5py/tests
  copying h5py/tests/test_dataset.py -> build/lib.linux-aarch64-3.6/h5py/tests
  copying h5py/tests/test_base.py -> build/lib.linux-aarch64-3.6/h5py/tests
  copying h5py/tests/test_h5.py -> build/lib.linux-aarch64-3.6/h5py/tests
  copying h5py/tests/test_dataset_getitem.py -> build/lib.linux-aarch64-3.6/h5py/tests
  copying h5py/tests/test_file2.py -> build/lib.linux-aarch64-3.6/h5py/tests
  creating build/lib.linux-aarch64-3.6/h5py/tests/data_files
  copying h5py/tests/data_files/__init__.py -> build/lib.linux-aarch64-3.6/h5py/tests/data_files
  creating build/lib.linux-aarch64-3.6/h5py/tests/test_vds
  copying h5py/tests/test_vds/__init__.py -> build/lib.linux-aarch64-3.6/h5py/tests/test_vds
  copying h5py/tests/test_vds/test_virtual_source.py -> build/lib.linux-aarch64-3.6/h5py/tests/test_vds
  copying h5py/tests/test_vds/test_highlevel_vds.py -> build/lib.linux-aarch64-3.6/h5py/tests/test_vds
  copying h5py/tests/test_vds/test_lowlevel_vds.py -> build/lib.linux-aarch64-3.6/h5py/tests/test_vds
  copying h5py/tests/data_files/vlen_string_dset.h5 -> build/lib.linux-aarch64-3.6/h5py/tests/data_files
  copying h5py/tests/data_files/vlen_string_dset_utc.h5 -> build/lib.linux-aarch64-3.6/h5py/tests/data_files
  copying h5py/tests/data_files/vlen_string_s390x.h5 -> build/lib.linux-aarch64-3.6/h5py/tests/data_files
  running build_ext
  warning: h5py/config.pxi:3:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/config.pxi:4:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/config.pxi:5:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/config.pxi:6:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/config.pxi:7:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/config.pxi:8:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/config.pxi:9:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/config.pxi:10:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/defs.pxd:15:0: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/defs.pxd:62:0: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/defs.pxd:64:0: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/defs.pxd:66:0: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/defs.pxd:68:0: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/defs.pxd:70:0: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/defs.pxd:72:0: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/defs.pxd:74:0: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/defs.pxd:76:0: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/defs.pxd:78:0: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/defs.pxd:102:0: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/defs.pxd:104:0: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/defs.pxd:106:0: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/defs.pxd:107:4: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/defs.pxd:109:0: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/defs.pxd:110:4: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/defs.pxd:112:0: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/defs.pxd:176:0: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/defs.pxd:193:0: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/defs.pxd:195:0: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/defs.pxd:217:0: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/defs.pxd:245:0: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/defs.pxd:247:0: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/defs.pxd:249:0: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/defs.pxd:251:0: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/defs.pxd:253:0: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/defs.pxd:255:0: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/defs.pxd:261:0: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/defs.pxd:263:0: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/defs.pxd:265:0: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/defs.pxd:267:0: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/defs.pxd:269:0: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/defs.pxd:271:0: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/defs.pxd:273:0: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/defs.pxd:275:0: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/defs.pxd:309:0: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/defs.pxd:311:0: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/defs.pxd:313:0: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/defs.pxd:315:0: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/defs.pxd:317:0: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/defs.pxd:319:0: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/defs.pxd:321:0: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/defs.pxd:323:0: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/defs.pxd:325:0: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/defs.pxd:359:0: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/defs.pxd:361:0: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/config.pxi:3:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/config.pxi:4:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/config.pxi:5:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/config.pxi:6:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/config.pxi:7:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/config.pxi:8:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/config.pxi:9:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/config.pxi:10:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/api_types_hdf5.pxd:48:2: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/api_types_hdf5.pxd:64:2: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/api_types_hdf5.pxd:143:2: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/api_types_hdf5.pxd:148:2: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/api_types_hdf5.pxd:156:2: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/api_types_hdf5.pxd:188:2: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/api_types_hdf5.pxd:315:2: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/config.pxi:3:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/config.pxi:4:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/config.pxi:5:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/config.pxi:6:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/config.pxi:7:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/config.pxi:8:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/config.pxi:9:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/config.pxi:10:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/api_types_ext.pxd:14:0: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/api_types_ext.pxd:25:0: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/api_types_ext.pxd:52:4: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/config.pxi:3:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/config.pxi:4:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/config.pxi:5:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/config.pxi:6:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/config.pxi:7:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/config.pxi:8:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/config.pxi:9:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/config.pxi:10:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/_conv.pyx:160:8: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/_conv.pyx:421:8: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/config.pxi:3:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/config.pxi:4:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/config.pxi:5:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/config.pxi:6:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/config.pxi:7:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/config.pxi:8:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/config.pxi:9:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/config.pxi:10:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
  warning: h5py/h5r.pxd:17:0: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
  
  Error compiling Cython file:
  ------------------------------------------------------------
  ...
  # License:  Standard 3-clause BSD; see "license.txt" for full license terms
  #           and contributor agreement.
  
  from .defs cimport *
  
  from ._objects cimport class ObjectID
                         ^
  ------------------------------------------------------------
  
  h5py/h5t.pxd:13:23: Expected an identifier
  
  Error compiling Cython file:
  ------------------------------------------------------------
  ...
  
  from logging import getLogger
  
  from .h5 import get_config
  from .h5r cimport Reference, RegionReference, hobj_ref_t, hdset_reg_ref_t
  from .h5t cimport H5PY_OBJ, typewrap, py_create, TypeID, H5PY_PYTHON_OPAQUE_TAG
  ^
  ------------------------------------------------------------
  
  h5py/_conv.pyx:21:0: 'h5py/h5t/H5PY_OBJ.pxd' not found
  
  Error compiling Cython file:
  ------------------------------------------------------------
  ...
  
  from logging import getLogger
  
  from .h5 import get_config
  from .h5r cimport Reference, RegionReference, hobj_ref_t, hdset_reg_ref_t
  from .h5t cimport H5PY_OBJ, typewrap, py_create, TypeID, H5PY_PYTHON_OPAQUE_TAG
  ^
  ------------------------------------------------------------
  
  h5py/_conv.pyx:21:0: 'h5py/h5t/typewrap.pxd' not found
  
  Error compiling Cython file:
  ------------------------------------------------------------
  ...
  
  from logging import getLogger
  
  from .h5 import get_config
  from .h5r cimport Reference, RegionReference, hobj_ref_t, hdset_reg_ref_t
  from .h5t cimport H5PY_OBJ, typewrap, py_create, TypeID, H5PY_PYTHON_OPAQUE_TAG
  ^
  ------------------------------------------------------------
  
  h5py/_conv.pyx:21:0: 'h5py/h5t/py_create.pxd' not found
  
  Error compiling Cython file:
  ------------------------------------------------------------
  ...
  
  from logging import getLogger
  
  from .h5 import get_config
  from .h5r cimport Reference, RegionReference, hobj_ref_t, hdset_reg_ref_t
  from .h5t cimport H5PY_OBJ, typewrap, py_create, TypeID, H5PY_PYTHON_OPAQUE_TAG
  ^
  ------------------------------------------------------------
  
  h5py/_conv.pyx:21:0: 'h5py/h5t/TypeID.pxd' not found
  
  Error compiling Cython file:
  ------------------------------------------------------------
  ...
  
  from logging import getLogger
  
  from .h5 import get_config
  from .h5r cimport Reference, RegionReference, hobj_ref_t, hdset_reg_ref_t
  from .h5t cimport H5PY_OBJ, typewrap, py_create, TypeID, H5PY_PYTHON_OPAQUE_TAG
  ^
  ------------------------------------------------------------
  
  h5py/_conv.pyx:21:0: 'h5py/h5t/H5PY_PYTHON_OPAQUE_TAG.pxd' not found
  
  Error compiling Cython file:
  ------------------------------------------------------------
  ...
      void* ptr
  
  cdef int conv_vlen2ndarray(void* ipt,
                             void* opt,
                             cnp.dtype elem_dtype,
                             TypeID intype,
                             ^
  ------------------------------------------------------------
  
  h5py/_conv.pyx:686:27: 'TypeID' is not a type identifier
  
  Error compiling Cython file:
  ------------------------------------------------------------
  ...
  
  cdef int conv_vlen2ndarray(void* ipt,
                             void* opt,
                             cnp.dtype elem_dtype,
                             TypeID intype,
                             TypeID outtype) except -1:
                             ^
  ------------------------------------------------------------
  
  h5py/_conv.pyx:687:27: 'TypeID' is not a type identifier
  
  Error compiling Cython file:
  ------------------------------------------------------------
  ...
      return 0
  
  
  cdef int conv_ndarray2vlen(void* ipt,
                             void* opt,
                             TypeID intype,
                             ^
  ------------------------------------------------------------
  
  h5py/_conv.pyx:809:27: 'TypeID' is not a type identifier
  
  Error compiling Cython file:
  ------------------------------------------------------------
  ...
  
  
  cdef int conv_ndarray2vlen(void* ipt,
                             void* opt,
                             TypeID intype,
                             TypeID outtype) except -1:
                             ^
  ------------------------------------------------------------
  
  h5py/_conv.pyx:810:27: 'TypeID' is not a type identifier
  
  Error compiling Cython file:
  ------------------------------------------------------------
  ...
      :return: error-code
      """
      cdef:
          int command = cdata[0].command
          size_t src_size, dst_size
          TypeID supertype
          ^
  ------------------------------------------------------------
  
  h5py/_conv.pyx:628:8: 'TypeID' is not a type identifier
  
  Error compiling Cython file:
  ------------------------------------------------------------
  ...
      """
      cdef:
          int command = cdata[0].command
          size_t src_size, dst_size
          TypeID supertype
          TypeID outtype
          ^
  ------------------------------------------------------------
  
  h5py/_conv.pyx:629:8: 'TypeID' is not a type identifier
  
  Error compiling Cython file:
  ------------------------------------------------------------
  ...
                           void *bkg_i,
                           hid_t dxpl) except -1 with gil:
      cdef:
          int command = cdata[0].command
          size_t src_size, dst_size
          TypeID supertype
          ^
  ------------------------------------------------------------
  
  h5py/_conv.pyx:741:8: 'TypeID' is not a type identifier
  
  Error compiling Cython file:
  ------------------------------------------------------------
  ...
                           hid_t dxpl) except -1 with gil:
      cdef:
          int command = cdata[0].command
          size_t src_size, dst_size
          TypeID supertype
          TypeID outtype
          ^
  ------------------------------------------------------------
  
  h5py/_conv.pyx:742:8: 'TypeID' is not a type identifier
  
  Error compiling Cython file:
  ------------------------------------------------------------
  ...
      cdef char* ctag = NULL
      try:
          if H5Tget_class(obj) == H5T_OPAQUE:
              ctag = H5Tget_tag(obj)
              if ctag != NULL:
                  if strcmp(ctag, H5PY_PYTHON_OPAQUE_TAG) == 0:
                                  ^
  ------------------------------------------------------------
  
  h5py/_conv.pyx:156:32: 'H5PY_PYTHON_OPAQUE_TAG' is not a constant, variable or function identifier
  warning: h5py/_conv.pyx:156:32: Obtaining 'const char *' from externally modifiable global Python value
  
  Error compiling Cython file:
  ------------------------------------------------------------
  ...
      elif command == H5T_CONV_FREE:
          pass
  
      elif command == H5T_CONV_CONV:
          # need to pass element dtype to converter
          supertype = typewrap(H5Tget_super(src_id))
                      ^
  ------------------------------------------------------------
  
  h5py/_conv.pyx:644:20: 'typewrap' is not a constant, variable or function identifier
  
  Error compiling Cython file:
  ------------------------------------------------------------
  ...
  
      elif command == H5T_CONV_CONV:
          # need to pass element dtype to converter
          supertype = typewrap(H5Tget_super(src_id))
          dt = supertype.dtype
          outtype = py_create(dt)
                    ^
  ------------------------------------------------------------
  
  h5py/_conv.pyx:646:18: 'py_create' is not a constant, variable or function identifier
  
  Error compiling Cython file:
  ------------------------------------------------------------
  ...
          PyObject *pdata_elem
          char* buf = <char*>buf_i
  
      if command == H5T_CONV_INIT:
          cdata[0].need_bkg = H5T_BKG_NO
          if not H5Tequal(src_id, H5PY_OBJ) or H5Tget_class(dst_id) != H5T_VLEN:
                                  ^
  ------------------------------------------------------------
  
  h5py/_conv.pyx:750:32: 'H5PY_OBJ' is not a constant, variable or function identifier
  
  Error compiling Cython file:
  ------------------------------------------------------------
  ...
  
      if command == H5T_CONV_INIT:
          cdata[0].need_bkg = H5T_BKG_NO
          if not H5Tequal(src_id, H5PY_OBJ) or H5Tget_class(dst_id) != H5T_VLEN:
              return -2
          supertype = typewrap(H5Tget_super(dst_id))
                      ^
  ------------------------------------------------------------
  
  h5py/_conv.pyx:752:20: 'typewrap' is not a constant, variable or function identifier
  
  Error compiling Cython file:
  ------------------------------------------------------------
  ...
              return -2
          supertype = typewrap(H5Tget_super(dst_id))
          for i in range(nl):
              # smells a lot
              memcpy(&pdata_elem, pdata+i, sizeof(pdata_elem))
              if supertype != py_create((<cnp.ndarray> pdata_elem).dtype, 1):
                              ^
  ------------------------------------------------------------
  
  h5py/_conv.pyx:756:28: 'py_create' is not a constant, variable or function identifier
  
  Error compiling Cython file:
  ------------------------------------------------------------
  ...
          if nl == 0:
              return 0
  
          # need to pass element dtype to converter
          pdata_elem = pdata[0]
          supertype = py_create((<cnp.ndarray> pdata_elem).dtype)
                      ^
  ------------------------------------------------------------
  
  h5py/_conv.pyx:773:20: 'py_create' is not a constant, variable or function identifier
  
  Error compiling Cython file:
  ------------------------------------------------------------
  ...
              return 0
  
          # need to pass element dtype to converter
          pdata_elem = pdata[0]
          supertype = py_create((<cnp.ndarray> pdata_elem).dtype)
          outtype = typewrap(H5Tget_super(dst_id))
                    ^
  ------------------------------------------------------------
  
  h5py/_conv.pyx:774:18: 'typewrap' is not a constant, variable or function identifier
  
  Error compiling Cython file:
  ------------------------------------------------------------
  ...
  
      enum = H5Tenum_create(H5T_STD_I32LE)
  
      vlentype = H5Tvlen_create(H5T_STD_I32LE)
  
      pyobj = H5PY_OBJ
              ^
  ------------------------------------------------------------
  
  h5py/_conv.pyx:883:12: 'H5PY_OBJ' is not a constant, variable or function identifier
  Loading library to get version: /usr/lib/aarch64-linux-gnu/hdf5/serial/libhdf5.so
  ********************************************************************************
                         Summary of the h5py configuration
  
  HDF5 include dirs: [
    '/usr/include/hdf5/serial'
  ]
  HDF5 library dirs: [
    '/usr/lib/aarch64-linux-gnu/hdf5/serial'
  ]
       HDF5 Version: (1, 10, 0)
        MPI Enabled: False
   Rebuild Required: True
  
  ********************************************************************************
  Executing api_gen rebuild of defs
  Executing cythonize()
  [ 1/24] Cythonizing /tmp/pip-install-a9mihwlc/h5py_652398a5039b485c87d0551a37231fda/h5py/_conv.pyx
  Traceback (most recent call last):
    File "/usr/local/lib/python3.6/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
      main()
    File "/usr/local/lib/python3.6/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/usr/local/lib/python3.6/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 262, in build_wheel
      metadata_directory)
    File "/usr/local/lib/python3.6/dist-packages/setuptools/build_meta.py", line 231, in build_wheel
      wheel_directory, config_settings)
    File "/usr/local/lib/python3.6/dist-packages/setuptools/build_meta.py", line 215, in _build_with_temp_dir
      self.run_setup()
    File "/usr/local/lib/python3.6/dist-packages/setuptools/build_meta.py", line 158, in run_setup
      exec(compile(code, __file__, 'exec'), locals())
    File "setup.py", line 183, in <module>
      cmdclass = CMDCLASS,
    File "/usr/local/lib/python3.6/dist-packages/setuptools/__init__.py", line 153, in setup
      return distutils.core.setup(**attrs)
    File "/usr/lib/python3.6/distutils/core.py", line 148, in setup
      dist.run_commands()
    File "/usr/lib/python3.6/distutils/dist.py", line 955, in run_commands
      self.run_command(cmd)
    File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
      cmd_obj.run()
    File "/tmp/pip-build-env-23saeu3u/overlay/lib/python3.6/site-packages/wheel/bdist_wheel.py", line 299, in run
      self.run_command('build')
    File "/usr/lib/python3.6/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
      cmd_obj.run()
    File "/usr/lib/python3.6/distutils/command/build.py", line 135, in run
      self.run_command(cmd_name)
    File "/usr/lib/python3.6/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
      cmd_obj.run()
    File "/tmp/pip-install-a9mihwlc/h5py_652398a5039b485c87d0551a37231fda/setup_build.py", line 171, in run
      language_level=3)
    File "/usr/local/lib/python3.6/dist-packages/Cython/Build/Dependencies.py", line 1134, in cythonize
      cythonize_one(*args)
    File "/usr/local/lib/python3.6/dist-packages/Cython/Build/Dependencies.py", line 1301, in cythonize_one
      raise CompileError(None, pyx_file)
  Cython.Compiler.Errors.CompileError: /tmp/pip-install-a9mihwlc/h5py_652398a5039b485c87d0551a37231fda/h5py/_conv.pyx
  ----------------------------------------
  ERROR: Failed building wheel for h5py
Failed to build h5py
ERROR: Could not build wheels for h5py, which is required to install pyproject.toml-based projects

Hi @TwoPoint, please see this post:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.