Skip to content
Merged
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 providers/google/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ dependencies = [
# Remove the ray dependency as well as google-cloud-bigquery-storage once linked issue is fixed
"google-cloud-aiplatform[evaluation,ray]>=1.73.0;python_version < '3.12'",
"google-cloud-aiplatform[evaluation]>=1.73.0;python_version >= '3.12'",
"ray[default]>=2.42.0 ; python_version >= '3.12'",
"ray[default]>=2.42.0 ; python_version >= '3.12' and python_version < '3.13'",
"google-cloud-bigquery-storage>=2.31.0; python_version >= '3.12'",
"google-cloud-alloydb>=0.4.0",
"google-cloud-automl>=2.12.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,17 @@
import dataclasses
from typing import Any

import vertex_ray
from google._upb._message import ScalarMapContainer # type: ignore[attr-defined]
from airflow.exceptions import AirflowOptionalProviderFeatureException

try:
import vertex_ray
from google._upb._message import ScalarMapContainer # type: ignore[attr-defined]
except ImportError:
# Fallback for environments where the upb module is not available.
raise AirflowOptionalProviderFeatureException(
"google._upb._message.ScalarMapContainer is not available. "
"Please install the ray package to use this feature."
)
from google.cloud import aiplatform
from google.cloud.aiplatform.vertex_ray.util import resources
from google.cloud.aiplatform_v1 import (
Expand Down