unfortunately no.
so i tried to install again:
jetson-containers build --name comf4/jetson-containers:latest --skip-tests=all --base comf3/comf:latest --no-github-api opencv
i can see that it completed up to the following but when it tries python, again the same error. my goal is to add the missing software to my existing image.
i can’t seem to see if the command i used above does not meet this objective…
Successfully tagged comf4/jetson-containers:latest-r36.4.3-cudnn
-- Building container comf4/jetson-containers:latest-r36.4.3-python
the full log is below
╭─kkk at kkkORIN in ~ 25-01-29 - 10:46:05
╰─○ jetson-containers build --name comf4/jetson-containers:latest --skip-tests=all --base comf3/comf:latest --no-github-api opencv
Namespace(packages=['opencv'], name='comf4/jetson-containers:latest', base='comf3/comf:latest', multiple=False, build_flags='', build_args='', package_dirs=[''], list_packages=False, show_packages=False, skip_packages=[''], skip_errors=False, skip_tests=['all'], test_only=[''], simulate=False, push='', logs='', verbose=False, no_github_api=True)
-- L4T_VERSION=36.4.3
-- JETPACK_VERSION=6.2
-- CUDA_VERSION=12.6
-- PYTHON_VERSION=3.10
-- LSB_RELEASE=22.04 (jammy)
Failed to fetch version information. Status code: 404
-- Building containers ['build-essential', 'pip_cache:cu126', 'cuda:12.6', 'cudnn', 'python', 'numpy', 'opencv']
-- Building container comf4/jetson-containers:latest-r36.4.3-build-essential
DOCKER_BUILDKIT=0 docker build --network=host --tag comf4/jetson-containers:latest-r36.4.3-build-essential \
--file /home/kkk/apps/jetson-containers/packages/build/build-essential/Dockerfile \
--build-arg BASE_IMAGE=comf3/comf:latest \
/home/kkk/apps/jetson-containers/packages/build/build-essential \
2>&1 | tee /home/kkk/apps/jetson-containers/logs/20250129_104835/build/comf4_jetson-containers_latest-r36.4.3-build-essential.txt; exit ${PIPESTATUS[0]}
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
BuildKit is currently disabled; enable it by removing the DOCKER_BUILDKIT=0
environment-variable.
Sending build context to Docker daemon 19.97kB
Step 1/5 : ARG BASE_IMAGE
Step 2/5 : FROM ${BASE_IMAGE}
---> 1076a07cef8d
Step 3/5 : ENV DEBIAN_FRONTEND=noninteractive LANGUAGE=en_US:en LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8
---> Using cache
---> be50881f934b
Step 4/5 : RUN set -ex && apt-get update && apt-get install -y --no-install-recommends locales locales-all tzdata && locale-gen en_US $LANG && update-locale LC_ALL=$LC_ALL LANG=$LANG && locale && apt-get install -y --no-install-recommends build-essential software-properties-common apt-transport-https ca-certificates lsb-release pkg-config gnupg git git-lfs gdb wget wget2 curl nano zip unzip time sshpass ssh-client && apt-get clean && rm -rf /var/lib/apt/lists/* && gcc --version && g++ --version
---> Using cache
---> d40163187ada
Step 5/5 : COPY tarpack /usr/local/bin/
---> Using cache
---> 377c604a0d4b
Successfully built 377c604a0d4b
Successfully tagged comf4/jetson-containers:latest-r36.4.3-build-essential
-- Building container comf4/jetson-containers:latest-r36.4.3-pip_cache_cu126
DOCKER_BUILDKIT=0 docker build --network=host --tag comf4/jetson-containers:latest-r36.4.3-pip_cache_cu126 \
--file /home/kkk/apps/jetson-containers/packages/cuda/cuda/Dockerfile.pip \
--build-arg BASE_IMAGE=comf4/jetson-containers:latest-r36.4.3-build-essential \
--build-arg TAR_INDEX_URL="https://apt.jetson-ai-lab.dev:8000/jp6/cu126" \
--build-arg PIP_INDEX_REPO="https://pypi.jetson-ai-lab.dev/jp6/cu126" \
--build-arg PIP_UPLOAD_REPO="http://localhost/jp6/cu126" \
--build-arg PIP_UPLOAD_USER="jp6" \
--build-arg PIP_UPLOAD_PASS="none" \
--build-arg SCP_UPLOAD_URL="localhost:/dist/jp6/cu126" \
--build-arg SCP_UPLOAD_USER="None" \
--build-arg SCP_UPLOAD_PASS="None" \
/home/kkk/apps/jetson-containers/packages/cuda/cuda \
2>&1 | tee /home/kkk/apps/jetson-containers/logs/20250129_104835/build/comf4_jetson-containers_latest-r36.4.3-pip_cache_cu126.txt; exit ${PIPESTATUS[0]}
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
BuildKit is currently disabled; enable it by removing the DOCKER_BUILDKIT=0
environment-variable.
Sending build context to Docker daemon 40.45kB
Step 1/4 : ARG BASE_IMAGE
Step 2/4 : FROM ${BASE_IMAGE}
---> 377c604a0d4b
Step 3/4 : ARG PIP_INDEX_REPO PIP_UPLOAD_REPO PIP_UPLOAD_USER PIP_UPLOAD_PASS PIP_TRUSTED_HOSTS TAR_INDEX_URL SCP_UPLOAD_URL SCP_UPLOAD_USER SCP_UPLOAD_PASS
---> Using cache
---> 5e2f36c2c149
Step 4/4 : ENV TAR_INDEX_URL=${TAR_INDEX_URL} PIP_INDEX_URL=${PIP_INDEX_REPO} PIP_TRUSTED_HOST=${PIP_TRUSTED_HOSTS} TWINE_REPOSITORY_URL=${PIP_UPLOAD_REPO} TWINE_USERNAME=${PIP_UPLOAD_USER} TWINE_PASSWORD=${PIP_UPLOAD_PASS} SCP_UPLOAD_URL=${SCP_UPLOAD_URL} SCP_UPLOAD_USER=${SCP_UPLOAD_USER} SCP_UPLOAD_PASS=${SCP_UPLOAD_PASS}
---> Using cache
---> 3b38c570e1ab
Successfully built 3b38c570e1ab
Successfully tagged comf4/jetson-containers:latest-r36.4.3-pip_cache_cu126
-- Building container comf4/jetson-containers:latest-r36.4.3-cuda_12.6
DOCKER_BUILDKIT=0 docker build --network=host --tag comf4/jetson-containers:latest-r36.4.3-cuda_12.6 \
--file /home/kkk/apps/jetson-containers/packages/cuda/cuda/Dockerfile \
--build-arg BASE_IMAGE=comf4/jetson-containers:latest-r36.4.3-pip_cache_cu126 \
--build-arg CUDA_URL="https://developer.download.nvidia.com/compute/cuda/12.6.3/local_installers/cuda-tegra-repo-ubuntu2204-12-6-local_12.6.3-1_arm64.deb" \
--build-arg CUDA_DEB="cuda-tegra-repo-ubuntu2204-12-6-local" \
--build-arg CUDA_PACKAGES="cuda-toolkit*" \
--build-arg CUDA_ARCH_LIST="87" \
--build-arg DISTRO="ubuntu2204" \
/home/kkk/apps/jetson-containers/packages/cuda/cuda \
2>&1 | tee /home/kkk/apps/jetson-containers/logs/20250129_104835/build/comf4_jetson-containers_latest-r36.4.3-cuda_12.6.txt; exit ${PIPESTATUS[0]}
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
BuildKit is currently disabled; enable it by removing the DOCKER_BUILDKIT=0
environment-variable.
Sending build context to Docker daemon 40.45kB
Step 1/9 : ARG BASE_IMAGE
Step 2/9 : FROM ${BASE_IMAGE}
---> 3b38c570e1ab
Step 3/9 : ARG CUDA_URL CUDA_DEB CUDA_PACKAGES CUDA_ARCH_LIST DISTRO="ubuntu2004"
---> Using cache
---> f8c0a2407502
Step 4/9 : COPY install.sh /tmp/install_cuda.sh
---> Using cache
---> 8e7351143003
Step 5/9 : RUN /tmp/install_cuda.sh
---> Using cache
---> 64b5abf21efb
Step 6/9 : ENV CUDA_HOME="/usr/local/cuda"
---> Using cache
---> cb59eca45c64
Step 7/9 : ENV NVCC_PATH="$CUDA_HOME/bin/nvcc"
---> Using cache
---> b9db24e22430
Step 8/9 : ENV NVIDIA_VISIBLE_DEVICES=all NVIDIA_DRIVER_CAPABILITIES=all CUDAARCHS=${CUDA_ARCH_LIST} CUDA_ARCHITECTURES=${CUDA_ARCH_LIST} CUDA_HOME="/usr/local/cuda" CUDNN_LIB_PATH="/usr/lib/aarch64-linux-gnu" CUDNN_LIB_INCLUDE_PATH="/usr/include" CMAKE_CUDA_COMPILER=${NVCC_PATH} CUDA_NVCC_EXECUTABLE=${NVCC_PATH} CUDACXX=${NVCC_PATH} TORCH_NVCC_FLAGS="-Xfatbin -compress-all" CUDA_BIN_PATH="${CUDA_HOME}/bin" CUDA_TOOLKIT_ROOT_DIR="${CUDA_HOME}" PATH="$CUDA_HOME/bin:${PATH}" LD_LIBRARY_PATH="${CUDA_HOME}/compat:${CUDA_HOME}/lib64:${LD_LIBRARY_PATH}" DEBIAN_FRONTEND=noninteractive
---> Using cache
---> c362ea9b2bff
Step 9/9 : WORKDIR /
---> Using cache
---> 4b5c3336d6f8
Successfully built 4b5c3336d6f8
Successfully tagged comf4/jetson-containers:latest-r36.4.3-cuda_12.6
-- Building container comf4/jetson-containers:latest-r36.4.3-cudnn
DOCKER_BUILDKIT=0 docker build --network=host --tag comf4/jetson-containers:latest-r36.4.3-cudnn \
--file /home/kkk/apps/jetson-containers/packages/cuda/cudnn/Dockerfile \
--build-arg BASE_IMAGE=comf4/jetson-containers:latest-r36.4.3-cuda_12.6 \
--build-arg CUDNN_URL="https://developer.download.nvidia.com/compute/cudnn/9.4.0/local_installers/cudnn-local-tegra-repo-ubuntu2204-9.4.0_1.0-1_arm64.deb" \
--build-arg CUDNN_DEB="cudnn-local-tegra-repo-ubuntu2204-9.4.0" \
--build-arg CUDNN_PACKAGES="libcudnn*-dev libcudnn*-samples" \
/home/kkk/apps/jetson-containers/packages/cuda/cudnn \
2>&1 | tee /home/kkk/apps/jetson-containers/logs/20250129_104835/build/comf4_jetson-containers_latest-r36.4.3-cudnn.txt; exit ${PIPESTATUS[0]}
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
BuildKit is currently disabled; enable it by removing the DOCKER_BUILDKIT=0
environment-variable.
Sending build context to Docker daemon 22.53kB
Step 1/7 : ARG BASE_IMAGE
Step 2/7 : FROM ${BASE_IMAGE}
---> 4b5c3336d6f8
Step 3/7 : ARG CUDNN_URL
---> Using cache
---> 6b2072a77b68
Step 4/7 : ARG CUDNN_DEB
---> Using cache
---> 545565a9a410
Step 5/7 : ARG CUDNN_PACKAGES
---> Using cache
---> a86e2675f64f
Step 6/7 : RUN echo "Downloading ${CUDNN_DEB}" && mkdir /tmp/cudnn && cd /tmp/cudnn && wget --quiet --show-progress --progress=bar:force:noscroll ${CUDNN_URL} && dpkg -i *.deb && cp /var/cudnn-local-tegra-repo-*/cudnn-local-tegra-*-keyring.gpg /usr/share/keyrings/ && apt-get update && apt-cache search cudnn && apt-get install -y --no-install-recommends ${CUDNN_PACKAGES} && rm -rf /var/lib/apt/lists/* && apt-get clean && dpkg --list | grep cudnn && dpkg -P ${CUDNN_DEB} && rm -rf /tmp/cudnn
---> Using cache
---> 862b585a5587
Step 7/7 : RUN cd /usr/src/cudnn_samples_v*/conv_sample/ && make -j$(nproc)
---> Using cache
---> f64307f4785f
Successfully built f64307f4785f
Successfully tagged comf4/jetson-containers:latest-r36.4.3-cudnn
-- Building container comf4/jetson-containers:latest-r36.4.3-python
DOCKER_BUILDKIT=0 docker build --network=host --tag comf4/jetson-containers:latest-r36.4.3-python \
--file /home/kkk/apps/jetson-containers/packages/build/python/Dockerfile \
--build-arg BASE_IMAGE=comf4/jetson-containers:latest-r36.4.3-cudnn \
--build-arg PYTHON_VERSION_ARG="3.10" \
/home/kkk/apps/jetson-containers/packages/build/python \
2>&1 | tee /home/kkk/apps/jetson-containers/logs/20250129_104835/build/comf4_jetson-containers_latest-r36.4.3-python.txt; exit ${PIPESTATUS[0]}
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
BuildKit is currently disabled; enable it by removing the DOCKER_BUILDKIT=0
environment-variable.
Sending build context to Docker daemon 22.02kB
Step 1/6 : ARG BASE_IMAGE
Step 2/6 : FROM ${BASE_IMAGE}
---> f64307f4785f
Step 3/6 : ARG PYTHON_VERSION_ARG
---> Using cache
---> c7e3896ac9b7
Step 4/6 : ENV PYTHON_VERSION=${PYTHON_VERSION_ARG} PIP_DISABLE_PIP_VERSION_CHECK=on PIP_DEFAULT_TIMEOUT=100 PYTHONFAULTHANDLER=1 PYTHONUNBUFFERED=1 PYTHONIOENCODING=utf-8 PYTHONHASHSEED=random PIP_NO_CACHE_DIR=off PIP_CACHE_PURGE=true PIP_ROOT_USER_ACTION=ignore TWINE_NON_INTERACTIVE=1 DEBIAN_FRONTEND=noninteractive
---> Using cache
---> 96c3d7af2c73
Step 5/6 : COPY install.sh /tmp/install_python.sh
---> Using cache
---> 5b1b56a0c086
Step 6/6 : RUN /tmp/install_python.sh
---> Running in 6933a7466f4d
+ apt-get update
Get:1 http://ports.ubuntu.com/ubuntu-ports jammy InRelease [270 kB]
Get:2 http://ports.ubuntu.com/ubuntu-ports jammy-updates InRelease [128 kB]
Get:3 http://ports.ubuntu.com/ubuntu-ports jammy-backports InRelease [127 kB]
Get:4 http://ports.ubuntu.com/ubuntu-ports jammy-security InRelease [129 kB]
Get:5 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 Packages [17.2 MB]
Get:6 http://ports.ubuntu.com/ubuntu-ports jammy/main arm64 Packages [1,758 kB]
Get:7 http://ports.ubuntu.com/ubuntu-ports jammy/multiverse arm64 Packages [224 kB]
Get:8 http://ports.ubuntu.com/ubuntu-ports jammy/restricted arm64 Packages [24.2 kB]
Get:9 http://ports.ubuntu.com/ubuntu-ports jammy-updates/multiverse arm64 Packages [30.6 kB]
Get:10 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main arm64 Packages [2,556 kB]
Get:11 http://ports.ubuntu.com/ubuntu-ports jammy-updates/universe arm64 Packages [1,472 kB]
Get:12 http://ports.ubuntu.com/ubuntu-ports jammy-updates/restricted arm64 Packages [3,006 kB]
Get:13 https://apt.repos.intel.com/oneapi all InRelease [5,680 B]
Get:14 https://apt.repos.intel.com/oneapi all/main all Packages [189 kB]
Get:15 http://ports.ubuntu.com/ubuntu-ports jammy-backports/main arm64 Packages [81.0 kB]
Get:16 http://ports.ubuntu.com/ubuntu-ports jammy-backports/universe arm64 Packages [33.3 kB]
Get:17 http://ports.ubuntu.com/ubuntu-ports jammy-security/universe arm64 Packages [1,186 kB]
Get:18 http://ports.ubuntu.com/ubuntu-ports jammy-security/main arm64 Packages [2,263 kB]
Get:19 http://ports.ubuntu.com/ubuntu-ports jammy-security/restricted arm64 Packages [2,879 kB]
Get:20 http://ports.ubuntu.com/ubuntu-ports jammy-security/multiverse arm64 Packages [24.2 kB]
Fetched 33.6 MB in 7s (4,850 kB/s)
Reading package lists... Done
N: Skipping acquire of configured file 'main/binary-arm64/Packages' as repository 'https://apt.repos.intel.com/oneapi all InRelease' doesn't support architecture 'arm64'
+ apt-get install -y --no-install-recommends python3.10 python3.10-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
python3.10 is already the newest version (3.10.12-1~22.04.8).
python3.10-dev is already the newest version (3.10.12-1~22.04.8).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
+ which python3.10
/usr/bin/python3.10
+ return_code=0
+ set -e
+ '[' 0 '!=' 0 ']'
+ rm -rf /var/lib/apt/lists/apt.repos.intel.com_oneapi_dists_all_InRelease /var/lib/apt/lists/apt.repos.intel.com_oneapi_dists_all_main_binary-all_Packages.lz4 /var/lib/apt/lists/auxfiles /var/lib/apt/lists/lock /var/lib/apt/lists/partial /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_jammy-backports_InRelease /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_jammy-backports_main_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_jammy-backports_universe_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_jammy_InRelease /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_jammy_main_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_jammy_multiverse_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_jammy_restricted_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_jammy-security_InRelease /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_jammy-security_main_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_jammy-security_multiverse_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_jammy-security_restricted_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_jammy-security_universe_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_jammy_universe_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_jammy-updates_InRelease /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_jammy-updates_main_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_jammy-updates_multiverse_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_jammy-updates_restricted_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_jammy-updates_universe_binary-arm64_Packages.lz4
+ apt-get clean
+ curl -sS https://bootstrap.pypa.io/get-pip.py
+ python3.10
Looking in indexes: https://pypi.jetson-ai-lab.dev/jp6/cu126, https://pypi.ngc.nvidia.com
Collecting pip
Downloading https://pypi.jetson-ai-lab.dev/root/pypi/%2Bf/b6e/b97a803356a52/pip-25.0-py3-none-any.whl (1.8 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 66.1 MB/s eta 0:00:00
WARNING: Error parsing dependencies of albumentations: [Errno 2] No such file or directory: '/usr/local/lib/python3.10/dist-packages/albumentations-2.0.0.dist-info/METADATA'
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 24.3.1
Uninstalling pip-24.3.1:
Successfully uninstalled pip-24.3.1
Successfully installed pip-25.0
+ ln -s /usr/bin/python3.10 /usr/local/bin/python3
ln: failed to create symbolic link '/usr/local/bin/python3': File exists
The command '/bin/sh -c /tmp/install_python.sh' returned a non-zero code: 1
Traceback (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/kkk/apps/jetson-containers/jetson_containers/build.py", line 112, in <module>
build_container(args.name, args.packages, args.base, args.build_flags, args.build_args, args.simulate, args.skip_tests, args.test_only, args.push, args.no_github_api, args.skip_packages)
File "/home/kkk/apps/jetson-containers/jetson_containers/container.py", line 147, in build_container
status = subprocess.run(cmd.replace(_NEWLINE_, ' '), executable='/bin/bash', shell=True, check=True)
File "/usr/lib/python3.10/subprocess.py", line 526, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'DOCKER_BUILDKIT=0 docker build --network=host --tag comf4/jetson-containers:latest-r36.4.3-python --file /home/kkk/apps/jetson-containers/packages/build/python/Dockerfile --build-arg BASE_IMAGE=comf4/jetson-containers:latest-r36.4.3-cudnn --build-arg PYTHON_VERSION_ARG="3.10" /home/kkk/apps/jetson-containers/packages/build/python 2>&1 | tee /home/kkk/apps/jetson-containers/logs/20250129_104835/build/comf4_jetson-containers_latest-r36.4.3-python.txt; exit ${PIPESTATUS[0]}' returned non-zero exit status 1.
╭─kkk at kkkORIN in ~ 25-01-29 - 10:49:12
╰─○