From 7791a0a9c2f9e15108f2cd992229fdf3ac16771d Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sat, 22 Nov 2025 16:00:12 +0000 Subject: [PATCH] Fix TensorFlow 2 build on ARM64 Pins Cython<3.0.0 and pyyaml==5.4.1 with --no-build-isolation before installing TensorFlow to resolve build failures on ARM64 caused by Cython 3.0 breaking changes. This fix is applied to: - container/tf2.containerfile - container/opencv4-tf2.containerfile - container/ffmpeg-tf2.containerfile --- container/ffmpeg-tf2.containerfile | 2 +- container/opencv4-tf2.containerfile | 2 +- container/tf2.containerfile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/container/ffmpeg-tf2.containerfile b/container/ffmpeg-tf2.containerfile index 428c590..698e7c2 100644 --- a/container/ffmpeg-tf2.containerfile +++ b/container/ffmpeg-tf2.containerfile @@ -3,5 +3,5 @@ FROM ghcr.io/clamsproject/clams-python-ffmpeg:$clams_version LABEL org.opencontainers.image.description="clams-python-ffmpeg-tf2 image is shipped with clams-python, ffmpeg, and tensorflow2" RUN apt-get install -y build-essential libhdf5-dev +RUN pip install "cython<3.0.0" pyyaml==5.4.1 --no-build-isolation RUN pip install --no-cache-dir tensorflow==2.* - diff --git a/container/opencv4-tf2.containerfile b/container/opencv4-tf2.containerfile index 45c2cc6..c8b32cd 100644 --- a/container/opencv4-tf2.containerfile +++ b/container/opencv4-tf2.containerfile @@ -3,5 +3,5 @@ FROM ghcr.io/clamsproject/clams-python-opencv4:$clams_version LABEL org.opencontainers.image.description="clams-python-opencv4-tf2 image is shipped with clams-python, opencv4 (ffmpeg backend), and tensorflow2" RUN apt-get install -y build-essential libhdf5-dev +RUN pip install "cython<3.0.0" pyyaml==5.4.1 --no-build-isolation RUN pip install --no-cache-dir tensorflow==2.* - diff --git a/container/tf2.containerfile b/container/tf2.containerfile index 1a8f4b1..402575e 100644 --- a/container/tf2.containerfile +++ b/container/tf2.containerfile @@ -3,5 +3,5 @@ FROM ghcr.io/clamsproject/clams-python:$clams_version LABEL org.opencontainers.image.description="clams-python-tf2 image is shipped with clams-python and tensorflow2" RUN apt-get install -y build-essential libhdf5-dev +RUN pip install "cython<3.0.0" pyyaml==5.4.1 --no-build-isolation RUN pip install --no-cache-dir tensorflow==2.* -