jetson-containers: Build with ROS Humble and Pytorch fails subprocess-exited-with-error

I tried to build image with ROS Humble and Pytorch on Jetson Orin Nano. However, it failed.

L4T 35.4.1

When I run ./build.sh --name=ros_humble_test ros:humble-desktop pytorch, the following error happened.

  × Building wheel for onnx (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> See above for output.
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  full command: /usr/bin/python3 /usr/local/lib/python3.8/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py build_wheel /tmp/tmpli_l44nj
  cwd: /tmp/pip-req-build-b6s7_y5y
  Building wheel for onnx (pyproject.toml): finished with status 'error'
  ERROR: Failed building wheel for onnx
Failed to build onnx
ERROR: Could not build wheels for onnx, which is required to install pyproject.toml-based projects
The command '/bin/bash -c pip3 install --no-cache-dir --verbose git+https://github.com/onnx/onnx@${ONNX_VERSION}' returned a non-zero code: 1

Logs:

ros_humble_test_r35.4.1-onnx.sh

#!/usr/bin/env bash

docker build --network=host --tag ros_humble_test:r35.4.1-onnx \
--file /home/araya/projects/jetson-containers/packages/onnx/Dockerfile \
--build-arg BASE_IMAGE=ros_humble_test:r35.4.1-ros_humble-desktop \
--build-arg ONNX_VERSION="main" \
/home/araya/projects/jetson-containers/packages/onnx \
2>&1 | tee /home/araya/projects/jetson-containers/logs/20231107_173445/build/ros_humble_test_r35.4.1-onnx.txt; exit ${PIPESTATUS[0]}
~                                                         

ros_humble_test_r35.4.1-onnx.txt

Could you give me some advise about this problem?

About this issue

  • Original URL
  • State: closed
  • Created 8 months ago
  • Comments: 16 (5 by maintainers)

Most upvoted comments

@tonynajjar it’s because that combination seemed to come up over the years, where people wanted ROS + PyTorch (presumably to make ML/DNN nodes for ROS). Historically I had also included jetson-inference in it