-
Notifications
You must be signed in to change notification settings - Fork 671
Open
Labels
priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.status:awaiting user responsetype: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
Thanks for stopping by to let us know something could be better!
PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response.
Is this a client library issue or a product issue? We will only be able to assist with issues that pertain to the behaviors of this library. If the issue you're experiencing is due to the behavior of the product itself, please visit the Support page to reach the most relevant engineers.
If the support paths suggested above still do not result in a resolution, please provide the following details.
Environment details
- Programming language: python
- OS: Linux
- Language runtime version: 1.52.0
- Package version: 1.52.0
Steps to reproduce
from google import genai
import os
MODEL = "gemini-live-2.5-flash-preview-native-audio-09-2025"
client = genai.Client(vertexai=True, project=os.environ["PROJECT_ID"], location=os.environ["GEMINI_REGION"])
async with client.aio.live.connect(
model=MODEL,
) as gs:
passOutput
File "./main.py", line 275, in start_gemini_session
async with client.aio.live.connect(
^^^^^^^^^^^^^^^^^^^^^^^^
File ".local/share/uv/python/cpython-3.12.6-macos-aarch64-none/lib/python3.12/contextlib.py", line 210, in __aenter__
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "venv/lib/python3.12/site-packages/google/genai/live.py", line 1030, in connect
auth_req = google.auth.transport.requests.Request() # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'google.auth.transport' has no attribute 'requests'. Did you mean: 'Request'?
This only happens with 1.5X.0, on 1.49.0 everything works as expected
Metadata
Metadata
Assignees
Labels
priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.status:awaiting user responsetype: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.