-
Notifications
You must be signed in to change notification settings - Fork 424
Closed
Labels
api: vertex-aiIssues related to the googleapis/python-aiplatform API.Issues related to the googleapis/python-aiplatform API.
Description
After the recent addition of vertex ai operators to Apache Airflow there are problems now with tests on only python 3.12, because ray extra is not installed for 3.12.
I suppose the main problem is that ray extra of google-cloud-aiplatform has ray[default] options for ==3.11 and <3.11, so it's not installing ray on > 3.11:
https://github.com/googleapis/python-aiplatform/blob/main/setup.py#L103C1-L103C18
Environment details
- OS type and version: Linux
- Python version:
Python 3.12.7 - pip version:
google-cloud-aiplatformversion:1.73.0, also checked on1.80.0,1.90.0
Steps to reproduce
- Python 3.12 environment
- Install
google-cloud-aiplatform[ray] - Try to import anything with
rayimport likefrom google.cloud.aiplatform.vertex_ray.util import resources
docker run -it --rm python:3.12 /bin/bash -c 'pip install google-cloud-aiplatform[ray] && python -c "from google.cloud.aiplatform.vertex_ray.util import resources"'Compare it to 3.11:
docker run -it --rm python:3.11 /bin/bash -c 'pip install google-cloud-aiplatform[ray] && python -c "from google.cloud.aiplatform.vertex_ray.util import resources"'Code example
from google.cloud.aiplatform.vertex_ray.util import resourcesStack trace
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/local/lib/python3.12/site-packages/google/cloud/aiplatform/vertex_ray/__init__.py", line 21, in <module>
from google.cloud.aiplatform.vertex_ray.bigquery_datasource import (
File "/usr/local/lib/python3.12/site-packages/google/cloud/aiplatform/vertex_ray/bigquery_datasource.py", line 27, in <module>
from ray.data.block import Block
ModuleNotFoundError: No module named 'ray'
potiuk
Metadata
Metadata
Assignees
Labels
api: vertex-aiIssues related to the googleapis/python-aiplatform API.Issues related to the googleapis/python-aiplatform API.