Hi guys,
I recently bought a Jetson Orin Nano and I want to use MediaPipe on it for local inference. I tried the steps here: Build MediaPipe Python Wheel Package | Google AI Edge | Google AI for Developers and ran into a bunch of errors which I fixed along the way.
I’ve run into an error now that I am not able to fix.
606.4 ERROR: /root/.cache/bazel/_bazel_root/4884d566396e9b67b62185751879ad14/external/pybind11_protobuf/pybind11_protobuf/BUILD:78:15: no such target '@@com_google_protobuf//:proto_api': target 'proto_api' not declared in package '' defined by /root/.cache/bazel/_bazel_root/4884d566396e9b67b62185751879ad14/external/com_google_protobuf/BUILD.bazel (did you mean protobuf, protoc, or protoc_lib?) and referenced by '@@pybind11_protobuf//pybind11_protobuf:proto_cast_util'
606.5 DEBUG: Rule 'pffft' indicated that a canonical reproducible form can be obtained by modifying arguments integrity = "sha256-IPSPu9VzfZp9tBnyFsjQHsj96tSEQsBHdEJaTGuLOUk="
606.5 DEBUG: Repository pffft instantiated at:
606.5 /mediapipe/WORKSPACE:513:13: in <toplevel>
606.5 Repository rule http_archive defined at:
606.5 /root/.cache/bazel/_bazel_root/4884d566396e9b67b62185751879ad14/external/bazel_tools/tools/build_defs/repo/http.bzl:387:31: in <toplevel>
607.4 Analyzing: target //mediapipe/python:_framework_bindings.so (88 packages loaded, 917 targets configured)
607.4
608.4 Analyzing: target //mediapipe/python:_framework_bindings.so (88 packages loaded, 917 targets configured)
608.4
609.4 Analyzing: target //mediapipe/python:_framework_bindings.so (90 packages loaded, 955 targets configured)
609.4
610.4 Analyzing: target //mediapipe/python:_framework_bindings.so (90 packages loaded, 955 targets configured)
610.4
612.1 Analyzing: target //mediapipe/python:_framework_bindings.so (90 packages loaded, 955 targets configured)
612.1
613.1 Analyzing: target //mediapipe/python:_framework_bindings.so (90 packages loaded, 955 targets configured)
613.1
622.2 Analyzing: target //mediapipe/python:_framework_bindings.so (90 packages loaded, 955 targets configured)
622.2
623.1 INFO: Analyzed target //mediapipe/python:_framework_bindings.so (91 packages loaded, 1380 targets configured).
623.1 WARNING: errors encountered while analyzing target '//mediapipe/python:_framework_bindings.so', it will not be built.
623.1 Analysis failed
623.1 INFO: Found 0 targets...
623.1 ERROR: command succeeded, but there were loading phase errors
623.1 INFO: Elapsed time: 18.204s, Critical Path: 0.01s
623.1 INFO: 1 process: 1 internal.
623.1 ERROR: Build did NOT complete successfully
623.2 Invoking: bazel build --compilation_mode=opt --copt=-DNDEBUG --keep_going --action_env=PYTHON_BIN_PATH=/opt/python/cp312-cp312/bin/python3.12 //mediapipe/python:_framework_bindings.so --define=MEDIAPIPE_DISABLE_GPU=1
623.2 Command '['bazel', 'build', '--compilation_mode=opt', '--copt=-DNDEBUG', '--keep_going', '--action_env=PYTHON_BIN_PATH=/opt/python/cp312-cp312/bin/python3.12', '//mediapipe/python:_framework_bindings.so', '--define=MEDIAPIPE_DISABLE_GPU=1']' returned non-zero exit status 1.
------
Dockerfile.manylinux2014_aarch64rp4:115
--------------------
114 | ARG PYTHON_BIN="/opt/python/cp312-cp312/bin/python3.12"
115 | >>> RUN ln -sf $PYTHON_BIN /usr/bin/python && \
116 | >>> ln -sf $PYTHON_BIN /usr/bin/python3 && \
117 | >>> $PYTHON_BIN -m pip install setuptools wheel "numpy<2" auditwheel && \
118 | >>> $PYTHON_BIN setup.py bdist_wheel clean --all
119 | RUN auditwheel repair dist/*.whl
--------------------
ERROR: failed to build: failed to solve: process "/bin/sh -c ln -sf $PYTHON_BIN /usr/bin/python && ln -sf $PYTHON_BIN /usr/bin/python3 && $PYTHON_BIN -m pip install setuptools wheel \"numpy<2\" auditwheel && $PYTHON_BIN setup.py bdist_wheel clean --all" did not complete successfully: exit code: 1
I have no clue what to do. My L4T is 36.4.4. I would appreciate any help. I am happy to provide the WORKSPACE and Dockerfile.manylinux2014_aarch64rp4 if needed.