From dbe223536f2f53c4c10cfa6a4c0545488566ceca Mon Sep 17 00:00:00 2001 From: Johnny Date: Mon, 29 Jun 2026 05:43:13 +0000 Subject: [PATCH 1/2] fix: pin setuptools version to avoid compatibility issues with recent releases and correct a typo in the kaggle configuration path. --- Dockerfile.tmpl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile.tmpl b/Dockerfile.tmpl index 472e7434..731e7631 100644 --- a/Dockerfile.tmpl +++ b/Dockerfile.tmpl @@ -27,13 +27,14 @@ RUN uv pip install --no-build-isolation --no-cache --system "git+https://github. # b/404590350: Ray and torchtune have conflicting cli named `tune`. `ray` is not part of Colab's base image. Re-install `tune` to ensure the torchtune CLI is available by default. # b/468367647: Unpin protobuf, version greater than v5.29.5 causes issues with numerous packages # grpcio-tools must be installed here (not in kaggle_requirements.txt) to stay version-compatible with protobuf. +# setuptools v82+ removed pkg_resources RUN uv pip install --system --force-reinstall --no-cache --no-deps torchtune -RUN uv pip install --system --force-reinstall --no-cache "protobuf==5.29.5" "grpcio-tools>=1.60.0" +RUN uv pip install --system --force-reinstall --no-cache "protobuf==5.29.5" "grpcio-tools>=1.60.0" "setuptools>=70.0,<82" # Adding non-package dependencies: ADD clean-layer.sh /tmp/clean-layer.sh ADD patches/nbconvert-extensions.tpl /opt/kaggle/nbconvert-extensions.tpl -ADD patches/template_conf.json /opt/kaggle/conf.json +ADD patches/template_conf.json /opt/ka`ggle/conf.json ARG PACKAGE_PATH=/usr/local/lib/python3.12/dist-packages From 9f5d778eca0bec35d1379fefcf6a110c5c3b60ef Mon Sep 17 00:00:00 2001 From: Johnny Date: Mon, 29 Jun 2026 05:51:19 +0000 Subject: [PATCH 2/2] fix typo --- Dockerfile.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile.tmpl b/Dockerfile.tmpl index 731e7631..a5e5df79 100644 --- a/Dockerfile.tmpl +++ b/Dockerfile.tmpl @@ -34,7 +34,7 @@ RUN uv pip install --system --force-reinstall --no-cache "protobuf==5.29.5" "grp # Adding non-package dependencies: ADD clean-layer.sh /tmp/clean-layer.sh ADD patches/nbconvert-extensions.tpl /opt/kaggle/nbconvert-extensions.tpl -ADD patches/template_conf.json /opt/ka`ggle/conf.json +ADD patches/template_conf.json /opt/kaggle/conf.json ARG PACKAGE_PATH=/usr/local/lib/python3.12/dist-packages