Skip to content

google-cloud-aiplatform>=1.142.0 fails to import vertexai.types with google-genai<1.66.0 due to missing BigQuerySource #6536

Closed

Description

@ishymko

Summary

Since v1.142.0, vertexai._genai.types.common references google.genai.types.BigQuerySource, but the declared dependency lower bound is google-genai>=1.59.0. BigQuerySource was only added in google-genai==1.66.0, so any resolution in the range [1.59.0, 1.66.0) fails at runtime.

Steps to reproduce

  1. uv init --bare
  2. uv add 'google-cloud-aiplatform==1.142.0' 'google-genai==1.65.0' - same for the latest 1.144.0
  3. uv run python -c "import importlib; importlib.import_module('vertexai._genai.types')"

Expected: no error
Actual:

`AttributeError: module 'google.genai.types' has no attribute 'BigQuerySource'`

The normal user-facing import from vertexai import types surfaces this as

ImportError: cannot import name 'types' from 'vertexai'

Using google-genai==1.66.0 fixes it:

uv add 'google-genai==1.66.0'
uv run python -c "from vertexai import types; print('OK')"
# OK

I suspect that 3cd949d requires bumping lower bound of google-genai.

Activity

  1. BenjaminKazemi commented on Apr 2, 2026

    @BenjaminKazemi
    Contributor

    I was able to reproduced the issue. Working on the fix.

  2. BenjaminKazemi commented on Apr 3, 2026

    @BenjaminKazemi
    Contributor

    The next release will have [email protected] as the min version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    api: vertex-aiIssues related to the googleapis/python-aiplatform API.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions