Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion appengine/flexible/scipy/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ imageio==2.36.1; python_version >= '3.9'
numpy==2.2.4; python_version > '3.9'
numpy==1.26.4; python_version == '3.9'
numpy==1.24.4; python_version == '3.8'
pillow==10.4.0
pillow==12.2.0; python_version >= "3.10"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

By restricting pillow to python_version >= "3.10" without providing a fallback for older Python versions, environments running Python 3.8 or 3.9 (which are still supported by other dependencies in this file, such as numpy==1.24.4 and scipy==1.10.1) will fail to install pillow entirely. This will lead to ModuleNotFoundError at runtime. Please add a fallback pin for Python < 3.10.

pillow==10.4.0; python_version < "3.10"
pillow==12.2.0; python_version >= "3.10"

scipy==1.10.1; python_version <= '3.9'
scipy==1.14.1; python_version > '3.9'
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Pillow==10.4.0
pillow==12.2.0; python_version >= "3.10"
apache-beam[gcp]==2.58.1
rasterio==1.3.10
tensorflow==2.12.0 # Check TensorFlow/CUDA compatibility with Dockerfile: https://www.tensorflow.org/install/source#gpu
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Pillow==10.4.0
pillow==12.2.0; python_version >= "3.10"
apache-beam[gcp]==2.58.1
rasterio==1.3.10
tensorflow==2.12.0 # Check TensorFlow/CUDA compatibility with Dockerfile: https://www.tensorflow.org/install/source#gpu
2 changes: 1 addition & 1 deletion genai/bounding_box/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
google-genai==1.42.0
pillow==11.1.0
pillow==12.2.0; python_version >= "3.10"
2 changes: 1 addition & 1 deletion genai/code_execution/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
google-genai==1.60.0
pillow==11.1.0
pillow==12.2.0; python_version >= "3.10"
2 changes: 1 addition & 1 deletion genai/image_generation/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
google-genai==1.42.0
pillow==11.1.0
pillow==12.2.0; python_version >= "3.10"
2 changes: 1 addition & 1 deletion genai/tools/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
google-genai==1.45.0
# PIl is required for tools_code_execution_with_txt_img.py
pillow==11.1.0
pillow==12.2.0; python_version >= "3.10"
3 changes: 1 addition & 2 deletions generative_ai/embeddings/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
pandas==2.2.3; python_version == '3.7'
pandas==2.2.3; python_version == '3.8'
pandas==2.2.3; python_version > '3.8'
pillow==10.4.0; python_version < '3.8'
pillow==10.4.0; python_version >= '3.8'
pillow==12.2.0; python_version >= "3.10"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

Restricting pillow to >= 3.10 without a fallback will cause installation to omit pillow on Python 3.8 and 3.9, which are still supported by other dependencies in this file (e.g., pandas). Please provide a fallback version for Python < 3.10 to prevent runtime import errors.

pillow==10.4.0; python_version < "3.10"
pillow==12.2.0; python_version >= "3.10"

google-cloud-aiplatform[all]==1.84.0
sentencepiece==0.2.0
google-auth==2.29.0
Expand Down
3 changes: 1 addition & 2 deletions generative_ai/evaluation/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
pandas==2.2.3; python_version == '3.7'
pandas==2.2.3; python_version == '3.8'
pandas==2.2.3; python_version > '3.8'
pillow==10.4.0; python_version < '3.8'
pillow==10.4.0; python_version >= '3.8'
pillow==12.2.0; python_version >= "3.10"
google-cloud-aiplatform[all]==1.69.0
sentencepiece==0.2.0
google-auth==2.38.0
Expand Down
3 changes: 1 addition & 2 deletions generative_ai/extensions/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
pandas==2.2.3; python_version == '3.7'
pandas==2.2.3; python_version == '3.8'
pandas==2.2.3; python_version > '3.8'
pillow==10.4.0; python_version < '3.8'
pillow==10.4.0; python_version >= '3.8'
pillow==12.2.0; python_version >= "3.10"
google-cloud-aiplatform[all]==1.69.0
sentencepiece==0.2.0
google-auth==2.38.0
Expand Down
3 changes: 1 addition & 2 deletions generative_ai/image_generation/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
pandas==2.2.3; python_version == '3.7'
pandas==2.2.3; python_version == '3.8'
pandas==2.2.3; python_version > '3.8'
pillow==10.4.0; python_version < '3.8'
pillow==10.4.0; python_version >= '3.8'
pillow==12.2.0; python_version >= "3.10"
google-cloud-aiplatform[all]==1.69.0
sentencepiece==0.2.0
google-auth==2.38.0
Expand Down
3 changes: 1 addition & 2 deletions generative_ai/model_garden/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
pandas==2.2.3; python_version == '3.7'
pandas==2.2.3; python_version == '3.8'
pandas==2.2.3; python_version > '3.8'
pillow==10.4.0; python_version < '3.8'
pillow==10.4.0; python_version >= '3.8'
pillow==12.2.0; python_version >= "3.10"
google-cloud-aiplatform[all]==1.69.0
sentencepiece==0.2.0
google-auth==2.38.0
Expand Down
3 changes: 1 addition & 2 deletions generative_ai/model_tuning/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
pandas==2.2.3; python_version == '3.7'
pandas==2.2.3; python_version == '3.8'
pandas==2.2.3; python_version > '3.8'
pillow==10.4.0; python_version < '3.8'
pillow==10.4.0; python_version >= '3.8'
pillow==12.2.0; python_version >= "3.10"
google-cloud-aiplatform[all]==1.69.0
sentencepiece==0.2.0
google-auth==2.38.0
Expand Down
3 changes: 1 addition & 2 deletions generative_ai/prompts/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
pandas==2.2.3; python_version == '3.7'
pandas==2.2.3; python_version == '3.8'
pandas==2.2.3; python_version > '3.8'
pillow==10.4.0; python_version < '3.8'
pillow==10.4.0; python_version >= '3.8'
pillow==12.2.0; python_version >= "3.10"
google-cloud-aiplatform[all]==1.74.0
sentencepiece==0.2.0
google-auth==2.38.0
Expand Down
3 changes: 1 addition & 2 deletions generative_ai/reasoning_engine/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
pandas==2.2.3; python_version == '3.7'
pandas==2.2.3; python_version == '3.8'
pandas==2.2.3; python_version > '3.8'
pillow==10.4.0; python_version < '3.8'
pillow==10.4.0; python_version >= '3.8'
pillow==12.2.0; python_version >= "3.10"
google-cloud-aiplatform[all]==1.69.0
sentencepiece==0.2.0
google-auth==2.38.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pillow==10.3.0
pillow==12.2.0; python_version >= "3.10"
apache-beam[gcp]==2.55.1
google-cloud-aiplatform==1.47.0
3 changes: 1 addition & 2 deletions vision/snippets/crop_hints/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
google-cloud-vision==3.8.1
pillow==10.3.0; python_version < '3.8'
pillow==10.4.0; python_version >= '3.8'
pillow==12.2.0; python_version >= "3.10"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

Since google-cloud-vision supports Python 3.8 and 3.9, completely omitting pillow on Python < 3.10 will break this snippet for users on those Python versions. Please add a fallback for Python < 3.10.

pillow==10.4.0; python_version < "3.10"
pillow==12.2.0; python_version >= "3.10"

3 changes: 1 addition & 2 deletions vision/snippets/document_text/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
google-cloud-vision==3.8.1
pillow==10.3.0; python_version < '3.8'
pillow==10.4.0; python_version >= '3.8'
pillow==12.2.0; python_version >= "3.10"
3 changes: 1 addition & 2 deletions vision/snippets/face_detection/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
google-cloud-vision==3.8.1
pillow==10.3.0; python_version < '3.8'
pillow==10.4.0; python_version >= '3.8'
pillow==12.2.0; python_version >= "3.10"