quick-carpet-67110
10/28/2025, 8:38 AMgoogle-api-core release yesterday is not compatible with Metaflow since we have started seeing massive failure of all our pipelines this morning with this message:
[2025-10-28, 07:01:50 UTC] {pod_manager.py:471} INFO - [base] File "/usr/local/bin/download-gcp-object", line 5, in <module>
[2025-10-28, 07:01:50 UTC] {pod_manager.py:471} INFO - [base] from simple_gcp_object_downloader.download_gcp_object import main
[2025-10-28, 07:01:50 UTC] {pod_manager.py:471} INFO - [base] File "/usr/local/lib/python3.12/site-packages/simple_gcp_object_downloader/download_gcp_object.py", line 2, in <module>
[2025-10-28, 07:01:50 UTC] {pod_manager.py:471} INFO - [base] from google.cloud import storage
[2025-10-28, 07:01:50 UTC] {pod_manager.py:471} INFO - [base] File "/usr/local/lib/python3.12/site-packages/google/cloud/storage/__init__.py", line 35, in <module>
[2025-10-28, 07:01:50 UTC] {pod_manager.py:471} INFO - [base] from google.cloud.storage.batch import Batch
[2025-10-28, 07:01:50 UTC] {pod_manager.py:471} INFO - [base] File "/usr/local/lib/python3.12/site-packages/google/cloud/storage/batch.py", line 43, in <module>
[2025-10-28, 07:01:50 UTC] {pod_manager.py:471} INFO - [base] from google.cloud import exceptions
[2025-10-28, 07:01:50 UTC] {pod_manager.py:471} INFO - [base] File "/usr/local/lib/python3.12/site-packages/google/cloud/exceptions/__init__.py", line 24, in <module>
[2025-10-28, 07:01:50 UTC] {pod_manager.py:471} INFO - [base] from google.api_core import exceptions
[2025-10-28, 07:01:50 UTC] {pod_manager.py:471} INFO - [base] File "/usr/local/lib/python3.12/site-packages/google/api_core/__init__.py", line 20, in <module>
[2025-10-28, 07:01:50 UTC] {pod_manager.py:471} INFO - [base] from google.api_core import _python_package_support
[2025-10-28, 07:01:50 UTC] {pod_manager.py:471} INFO - [base] File "/usr/local/lib/python3.12/site-packages/google/api_core/_python_package_support.py", line 28, in <module>
[2025-10-28, 07:01:50 UTC] {pod_manager.py:471} INFO - [base] from packaging.version import parse as parse_version
[2025-10-28, 07:02:00 UTC] {pod_manager.py:471} INFO - [base] ModuleNotFoundError: No module named 'packaging'
The failure is coming from this line. I've looked through the metaflow codebase and it looks like none of the GCP dependencies here are pinned to specific versions so they are probably pulling in the latest google-api-core versionboundless-sugar-55740
10/28/2025, 8:45 AMdry-beach-38304
10/28/2025, 8:46 AMquick-carpet-67110
10/28/2025, 8:55 AM' && if [ -z $METAFLOW_SKIP_INSTALL_DEPENDENCIES ]; then python -m pip install -qqq --no-compile --no-cache-dir --disable-pip-version-check google-cloud-storage google-auth simple-gcp-object-downloader google-cloud-secret-manager requests;
3. Then I simply pin the google api core version to 2.27.0 like this by adding it to the list of deps
&& if [ -z $METAFLOW_SKIP_INSTALL_DEPENDENCIES ]; then python -m pip install -qqq --no-compile --no-cache-dir --disable-pip-version-check google-cloud-storage google-auth simple-gcp-object-downloader google-cloud-secret-manager google-api-core==2.27.0 requests; fi
It looks like it's working nowancient-application-36103
10/28/2025, 9:08 AMancient-application-36103
10/28/2025, 9:17 AMancient-application-36103
10/28/2025, 9:56 AMquick-carpet-67110
10/28/2025, 11:17 AMbrainy-truck-72938
10/28/2025, 12:45 PM2.19.3 with the fix.brainy-truck-72938
10/28/2025, 1:10 PM