Stack on installing h5py on Jetson Nano with Jetpack 4.6.1

Dear all,

I am trying to follow this tutorial JetPack-4.6 to run yolov4tiny on the jetson nano with jetpack 4.6.4. I am stacked with installation of h5py==3.1.0 with this error:

WARNING: The directory ‘/home/dot/.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 4.0 MB/s
Installing build dependencies … error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 /usr/local/lib/python3.6/dist-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-u7aw5izh/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i Simple index – setuptools wheel
cwd: None
Complete output (35 lines):
Traceback (most recent call last):
File “/usr/lib/python3.6/runpy.py”, line 193, in _run_module_as_main
main”, mod_spec)
File “/usr/lib/python3.6/runpy.py”, line 85, in _run_code
exec(code, run_globals)
File “/usr/local/lib/python3.6/dist-packages/pip/main.py”, line 27, in
“ignore”, category=DeprecationWarning, module=“.*packaging\.version”
File “/usr/lib/python3.6/warnings.py”, line 131, in filterwarnings
import re
File “/usr/lib/python3.6/re.py”, line 142, in
class RegexFlag(enum.IntFlag):
AttributeError: module ‘enum’ has no attribute ‘IntFlag’
Error in sys.excepthook:
Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/apport_python_hook.py”, line 62, in apport_excepthook
if not enabled():
File “/usr/lib/python3/dist-packages/apport_python_hook.py”, line 24, in enabled
import re
File “/usr/lib/python3.6/re.py”, line 142, in
class RegexFlag(enum.IntFlag):
AttributeError: module ‘enum’ has no attribute ‘IntFlag’

Original exception was:
Traceback (most recent call last):
File “/usr/lib/python3.6/runpy.py”, line 193, in _run_module_as_main
main”, mod_spec)
File “/usr/lib/python3.6/runpy.py”, line 85, in _run_code
exec(code, run_globals)
File “/usr/local/lib/python3.6/dist-packages/pip/main.py”, line 27, in
“ignore”, category=DeprecationWarning, module=“.*packaging\.version”
File “/usr/lib/python3.6/warnings.py”, line 131, in filterwarnings
import re
File “/usr/lib/python3.6/re.py”, line 142, in
class RegexFlag(enum.IntFlag):
AttributeError: module ‘enum’ has no attribute ‘IntFlag’

WARNING: Discarding https://files.pythonhosted.org/packages/a7/81/20d5d994c91ed8347efda90d32c396ea28254fd8eb9e071e28ee5700ffd5/h5py-3.1.0.tar.gz#sha256=1e2516f190652beedcb8c7acfa1c6fa92d99b42331cbef5e5c7ec2d65b0fc3c2 (from Links for h5py) (requires-python:>=3.6). Command errored out with exit status 1: /usr/bin/python3 /usr/local/lib/python3.6/dist-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-u7aw5izh/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i Simple index – setuptools wheel Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement h5py==3.1.0 (from versions: 2.2.1, 2.3.0b1, 2.3.0, 2.3.1, 2.4.0b1, 2.4.0, 2.5.0, 2.6.0, 2.7.0rc2, 2.7.0, 2.7.1, 2.8.0rc1, 2.8.0, 2.9.0rc1, 2.9.0, 2.10.0, 3.0.0rc1, 3.0.0, 3.1.0)
ERROR: No matching distribution found for h5py==3.1.0

I don’t understand why it said “No matching distribution found for h5py==3.1.0”, although the version is on the list? COuld you help me to understand what the problem really is?

I followed the tutorial step by step and use the command : $sudo env H5PY_SETUP_REQUIRES=0 pip3 install -U h5py==3.1.0.

I would be very thankful, if you could help me to install it? I will use tensorflow 2.6 (just like in the tutorial). I am just start to use jetson product and linux.

Best Regards,
SH

Hi,

This looks like a Jetson issue. Please refer to the below samples in case useful.

For any further assistance, we will move this post to to Jetson related forum.

Thanks!

Hi,

Do you still need help?
Have you fixed this h5py issue?

Thanks.

Hi,

Sorry for my late reply. I still can’t install h5py and my model is saved inh5py. So I am still curious about it

Currently, I managed to convert a model trained with AlexeyAB (model.weights) to model.trt and run it on the jetson nano. Maybe i need to train a new model.

Thank you very much.

Hi,

Please check if the instructions in the below topic can fix your issue?

Thanks.

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