From 5150c7bc4c066171a543bc4d60ca35a0f46e1005 Mon Sep 17 00:00:00 2001 From: aIbrahiim Date: Tue, 24 Mar 2026 11:59:52 +0200 Subject: [PATCH 1/2] Pin setuptools below 82 for TensorFlow Hub pkg_resources compatibility --- .../apache_beam/ml/inference/tensorflow_tests_requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/sdks/python/apache_beam/ml/inference/tensorflow_tests_requirements.txt b/sdks/python/apache_beam/ml/inference/tensorflow_tests_requirements.txt index bc2113b5395f..5f676a4fd32b 100644 --- a/sdks/python/apache_beam/ml/inference/tensorflow_tests_requirements.txt +++ b/sdks/python/apache_beam/ml/inference/tensorflow_tests_requirements.txt @@ -21,3 +21,4 @@ tensorflow_hub>=0.10.0 Pillow>=9.0.0 typing-extensions>=4.8.0 google-cloud-monitoring>=2.27.0 +setuptools>=65.0.0,<82 From 5b1f530e4e6c41560bea6d0ead9051e0a7198fa3 Mon Sep 17 00:00:00 2001 From: aIbrahiim Date: Wed, 25 Mar 2026 01:17:41 +0200 Subject: [PATCH 2/2] Pin setuptools for tensorflow_hub (tensorflow/hub#934) --- .../apache_beam/ml/inference/tensorflow_tests_requirements.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sdks/python/apache_beam/ml/inference/tensorflow_tests_requirements.txt b/sdks/python/apache_beam/ml/inference/tensorflow_tests_requirements.txt index 5f676a4fd32b..7a21e908dc17 100644 --- a/sdks/python/apache_beam/ml/inference/tensorflow_tests_requirements.txt +++ b/sdks/python/apache_beam/ml/inference/tensorflow_tests_requirements.txt @@ -21,4 +21,6 @@ tensorflow_hub>=0.10.0 Pillow>=9.0.0 typing-extensions>=4.8.0 google-cloud-monitoring>=2.27.0 +# Pin setuptools below 82: tensorflow_hub still imports pkg_resources, which setuptools 82+ no longer provides. +# https://github.com/tensorflow/hub/issues/934 setuptools>=65.0.0,<82