Tf-agents on Jetson nano

When trying to install tf-agents, an error occurs when trying to install dm-tree. Any advice on this instalation?

Upon further investigation, it seems that the instalaltion of the dm-tree package is causing the error seeing the there are no arm64 wheels. The following error messages are then present:

Building wheel for dm-tree (setup.py) … error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-req-build-0zh6h0u4/setup.py’"’"’; file=’"’"’/tmp/pip-req-build-0zh6h0u4/setup.py’"’"’;f = getattr(tokenize, ‘"’"‘open’"’"’, open)(file) if os.path.exists(file) else io.StringIO(’"’"‘from setuptools import setup; setup()’"’"’);code = f.read().replace(’"’"’\r\n’"’"’, ‘"’"’\n’"’"’);f.close();exec(compile(code, file, ‘"’"‘exec’"’"’))’ bdist_wheel -d /tmp/pip-wheel-2t5s3dph
cwd: /tmp/pip-req-build-0zh6h0u4/
Complete output (13 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-aarch64-3.7
creating build/lib.linux-aarch64-3.7/tree
copying tree/tree_test.py → build/lib.linux-aarch64-3.7/tree
copying tree/tree_benchmark.py → build/lib.linux-aarch64-3.7/tree
copying tree/init.py → build/lib.linux-aarch64-3.7/tree
running build_ext
bazel build //tree:_tree --symlink_prefix=build/temp.linux-aarch64-3.7/bazel- --compilation_mode=opt
unable to execute ‘bazel’: No such file or directory
error: command ‘bazel’ failed with exit status 1

ERROR: Failed building wheel for dm-tree

AND

ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-req-build-0zh6h0u4/setup.py’"’"’; file=’"’"’/tmp/pip-req-build-0zh6h0u4/setup.py’"’"’;f = getattr(tokenize, ‘"’"‘open’"’"’, open)(file) if os.path.exists(file) else io.StringIO(’"’"‘from setuptools import setup; setup()’"’"’);code = f.read().replace(’"’"’\r\n’"’"’, ‘"’"’\n’"’"’);f.close();exec(compile(code, file, ‘"’"‘exec’"’"’))’ install --record /tmp/pip-record-_pgxrlny/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/heinz/.local/include/python3.7m/dm-tree
cwd: /tmp/pip-req-build-0zh6h0u4/
Complete output (13 lines):
running install
running build
running build_py
creating build
creating build/lib.linux-aarch64-3.7
creating build/lib.linux-aarch64-3.7/tree
copying tree/tree_test.py → build/lib.linux-aarch64-3.7/tree
copying tree/init.py → build/lib.linux-aarch64-3.7/tree
running build_ext
bazel build //tree:_tree --symlink_prefix=build/temp.linux-aarch64-3.7/bazel- --compilation_mode=opt
unable to execute ‘bazel’: No such file or directory
error: command ‘bazel’ failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-req-build-0zh6h0u4/setup.py’"’"’; file=’"’"’/tmp/pip-req-build-0zh6h0u4/setup.py’"’"’;f = getattr(tokenize, ‘"’"‘open’"’"’, open)(file) if os.path.exists(file) else io.StringIO(’"’"‘from setuptools import setup; setup()’"’"’);code = f.read().replace(’"’"’\r\n’"’"’, ‘"’"’\n’"’"’);f.close();exec(compile(code, file, ‘"’"‘exec’"’"’))’ install --record /tmp/pip-record-_pgxrlny/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/heinz/.local/include/python3.7m/dm-tree Check the logs for full command output.

Any help with this will be highly apreciated.

Hi,

unable to execute ‘bazel’: No such file or directory

The error indicates a missing library.
The tool can be built from source on Jetson device.

Here is a sample script for your reference:

Thanks.