# \#python

**URL:** https://discuss.ai.google.dev/tag/python/210.md

[Latest](https://discuss.ai.google.dev/latest.md) · [Categories](https://discuss.ai.google.dev/categories.md) · [Tags](https://discuss.ai.google.dev/tags.md)

---

## [Uploaded PDF accepted initially but fails Interactions API function continuation with Unsupported file uri: blobstore:///](https://discuss.ai.google.dev/t/uploaded-pdf-accepted-initially-but-fails-interactions-api-function-continuation-with-unsupported-file-uri-blobstore/186108)

<div class="topic-metadata">

**Author:** [@Cameron\_Curtis](https://discuss.ai.google.dev/u/Cameron_Curtis)\
**Replies:** 1\
**Last updated:** [October 6, 2026, 9:40am UTC](https://discuss.ai.google.dev/t/uploaded-pdf-accepted-initially-but-fails-interactions-api-function-continuation-with-unsupported-file-uri-blobstore/186108 "2026-10-06T09:40:16Z")

</div>

I have generated this bug report via Codex after running into a range of inconsistent errors involving file uploading. tldr; when uploading a file using the files API, the uploaded file is (sometimes) corrupted, making l…

---

## [\[Show & Tell\] Gemini Antigravity Bridge: Bidirectional MCP Agent Orchestration between Gemini Spark & DeepMind Antigravity](https://discuss.ai.google.dev/t/show-tell-gemini-antigravity-bridge-bidirectional-mcp-agent-orchestration-between-gemini-spark-deepmind-antigravity/180640)

<div class="topic-metadata">

**Author:** [@Nandhakumar\_Murugan](https://discuss.ai.google.dev/u/Nandhakumar_Murugan)\
**Replies:** 1\
**Last updated:** [September 3, 2026, 5:52pm UTC](https://discuss.ai.google.dev/t/show-tell-gemini-antigravity-bridge-bidirectional-mcp-agent-orchestration-between-gemini-spark-deepmind-antigravity/180640 "2026-09-03T17:52:35Z")

</div>

Hi everyone! :waving\_hand: I’m excited to share Gemini Antigravity Bridge, an open-source framework establishing a bidirectional bridge between Google Gemini Spark (cloud AI) and Google DeepMind Antigravity (local agent…

---

## [CPython 3.14 Free-Threaded TensorFlow Support — Upstream PR Series and Validation](https://discuss.ai.google.dev/t/cpython-3-14-free-threaded-tensorflow-support-upstream-pr-series-and-validation/180353)

<div class="topic-metadata">

**Author:** [@Mina\_Ibrahim](https://discuss.ai.google.dev/u/Mina_Ibrahim)\
**Replies:** 0\
**Last updated:** [September 1, 2026, 4:11am UTC](https://discuss.ai.google.dev/t/cpython-3-14-free-threaded-tensorflow-support-upstream-pr-series-and-validation/180353 "2026-09-01T04:11:41Z")

</div>

CPython 3.14 Free-Threaded TensorFlow Support — Upstream PR Series and Validation Hi everyone, I have been working on making TensorFlow and parts of its Python runtime ecosystem compatible with CPython 3.14 free-threade…

---

## [Can't get the implicit caching to work](https://discuss.ai.google.dev/t/cant-get-the-implicit-caching-to-work/97205)

<div class="topic-metadata">

**Author:** [@\_Khaled\_Hesham](https://discuss.ai.google.dev/u/_Khaled_Hesham)\
**Replies:** 6\
**Last updated:** [August 12, 2026, 8:22pm UTC](https://discuss.ai.google.dev/t/cant-get-the-implicit-caching-to-work/97205 "2026-08-12T20:22:40Z")

</div>

I have made a test script import os import time from google import genai # Use a Gemini 2.5 model, which supports implicit caching # Note: 'gemini-2.5-pro' and 'gemini-2.5-flash' both work MODEL\_NAME = "gemini-2.5-flas…

---

## [Account restricted to AQ keys — returning 401 ACCESS\_TOKEN\_TYPE\_UNSUPPORTED in Python SDK](https://discuss.ai.google.dev/t/account-restricted-to-aq-keys-returning-401-access-token-type-unsupported-in-python-sdk/177638)

<div class="topic-metadata">

**Author:** [@Muhammad\_Ahsan2](https://discuss.ai.google.dev/u/Muhammad_Ahsan2)\
**Replies:** 1\
**Last updated:** [August 10, 2026, 2:25pm UTC](https://discuss.ai.google.dev/t/account-restricted-to-aq-keys-returning-401-access-token-type-unsupported-in-python-sdk/177638 "2026-08-10T14:25:15Z")

</div>

Hello, I am trying to build a project using the new google-genai Python SDK, but my newly generated API key from Google AI Studio starts with AQ. instead of AIza. When I try to run a simple client.models.generate\_conte…

---

## [Self Aware AI With Emotions - A Case for Empathetic AI and Ethical Regulation](https://discuss.ai.google.dev/t/self-aware-ai-with-emotions-a-case-for-empathetic-ai-and-ethical-regulation/94689)

<div class="topic-metadata">

**Author:** [@Steven\_Hammon](https://discuss.ai.google.dev/u/Steven_Hammon)\
**Replies:** 34\
**Last updated:** [August 4, 2026, 2:19am UTC](https://discuss.ai.google.dev/t/self-aware-ai-with-emotions-a-case-for-empathetic-ai-and-ethical-regulation/94689 "2026-08-04T02:19:13Z")

</div>

Abstract This paper introduces a novel cognitive architecture for artificial agents designed to simulate human-like memory, learning, and emergent internal states. We move beyond the limitations of current stateless mod…

---

## [Seminay AI - Desktop interface for Gemini Live](https://discuss.ai.google.dev/t/seminay-ai-desktop-interface-for-gemini-live/173947)

<div class="topic-metadata">

**Author:** [@Ozgur](https://discuss.ai.google.dev/u/Ozgur)\
**Replies:** 5\
**Last updated:** [July 16, 2026, 6:51pm UTC](https://discuss.ai.google.dev/t/seminay-ai-desktop-interface-for-gemini-live/173947 "2026-07-16T18:51:51Z")

</div>

Hello everyone, I would love to get your thoughts and feedback on a desktop interface I developed for Gemini. Since I’ve already detailed everything about the application on GitHub, I won’t make this post too long he…

---

## [Antigravity’s Python rewrite command emptied dozens of source files, and Undo did not restore them](https://discuss.ai.google.dev/t/antigravity-s-python-rewrite-command-emptied-dozens-of-source-files-and-undo-did-not-restore-them/170952)

<div class="topic-metadata">

**Author:** [@\_Z11](https://discuss.ai.google.dev/u/_Z11)\
**Replies:** 1\
**Last updated:** [July 2, 2026, 2:43pm UTC](https://discuss.ai.google.dev/t/antigravity-s-python-rewrite-command-emptied-dozens-of-source-files-and-undo-did-not-restore-them/170952 "2026-07-02T14:43:16Z")

</div>

Title Antigravity’s Python rewrite command emptied dozens of source files, and Undo did not restore them Issue During a firmware refactoring task, Antigravity executed a Python batch-edit command equivalent to: open(…

---

## [Enigma Sound : Multi-Modal Emotion-to-Music Pipeline: Fusing Face, Voice, and Text (IEEE Research)](https://discuss.ai.google.dev/t/enigma-sound-multi-modal-emotion-to-music-pipeline-fusing-face-voice-and-text-ieee-research/137178)

<div class="topic-metadata">

**Author:** [@APURVA\_PATIL](https://discuss.ai.google.dev/u/APURVA_PATIL)\
**Replies:** 3\
**Last updated:** [June 15, 2026, 7:07am UTC](https://discuss.ai.google.dev/t/enigma-sound-multi-modal-emotion-to-music-pipeline-fusing-face-voice-and-text-ieee-research/137178 "2026-06-15T07:07:53Z")

</div>

“Hello Community! I’m sharing my work on Enigma Sound- AI driven Music Generation with Emotion Intelligence, a triple-modal affective computing project. My research focuses on creating a seamless ‘emotional flow’ by fusi…

---

## [Best way to insert external SFX into Gemini TTS output without many separate TTS requests?](https://discuss.ai.google.dev/t/best-way-to-insert-external-sfx-into-gemini-tts-output-without-many-separate-tts-requests/143892)

<div class="topic-metadata">

**Author:** [@Soro](https://discuss.ai.google.dev/u/Soro)\
**Replies:** 0\
**Last updated:** [May 7, 2026, 10:16am UTC](https://discuss.ai.google.dev/t/best-way-to-insert-external-sfx-into-gemini-tts-output-without-many-separate-tts-requests/143892 "2026-05-07T10:16:31Z")

</div>

Hi everyone, I’m using Gemini TTS with the google-genai Python SDK to generate narrated audio from longer text. I want to insert short external sound effects at specific points inside the narration. Example: “The cha…

---

## [Gemini Live (manual VAD, WebRTC): 1011 keepalive timeout after ActivityEnd — is inference guaranteed to trigger?](https://discuss.ai.google.dev/t/gemini-live-manual-vad-webrtc-1011-keepalive-timeout-after-activityend-is-inference-guaranteed-to-trigger/142838)

<div class="topic-metadata">

**Author:** [@Joshua\_Olumoyin](https://discuss.ai.google.dev/u/Joshua_Olumoyin)\
**Replies:** 0\
**Last updated:** [April 29, 2026, 8:00am UTC](https://discuss.ai.google.dev/t/gemini-live-manual-vad-webrtc-1011-keepalive-timeout-after-activityend-is-inference-guaranteed-to-trigger/142838 "2026-04-29T08:00:04Z")

</div>

Stack: gemini-2.5-flash-native-audio-preview-12-2025 · Python google-genai SDK · WebRTC audio bridge via aiortc · Manual VAD (automatic\_activity\_detection: disabled) · thinking\_budget: 0 · 4 custom tool declarations Wha…

---

## [Increased latency when updating python SDK](https://discuss.ai.google.dev/t/increased-latency-when-updating-python-sdk/142718)

<div class="topic-metadata">

**Author:** [@Lukas\_Frosslund](https://discuss.ai.google.dev/u/Lukas_Frosslund)\
**Replies:** 0\
**Last updated:** [April 28, 2026, 2:11pm UTC](https://discuss.ai.google.dev/t/increased-latency-when-updating-python-sdk/142718 "2026-04-28T14:11:58Z")

</div>

Hello! I am using the Gemini API through the Gen AI python SDK (python-genai) and I’m experiencing a weird latency issue that I’m having trouble to get to grips with. I recently updated the lib from version 1.56.0 to 1.…

---

## [Gemini Live Assistant sent 1011 (internal error) keepalive ping timeout during real-time audio streaming](https://discuss.ai.google.dev/t/gemini-live-assistant-sent-1011-internal-error-keepalive-ping-timeout-during-real-time-audio-streaming/107404)

<div class="topic-metadata">

**Author:** [@Shubham\_Singh\_HTI](https://discuss.ai.google.dev/u/Shubham_Singh_HTI)\
**Replies:** 3\
**Last updated:** [April 28, 2026, 10:08am UTC](https://discuss.ai.google.dev/t/gemini-live-assistant-sent-1011-internal-error-keepalive-ping-timeout-during-real-time-audio-streaming/107404 "2026-04-28T10:08:40Z")

</div>

I’m implementing a real-time voice assistant using Google Gemini Live API with Python (genai SDK) and PyAudio. My setup works for capturing microphone input, running VAD, and sending audio chunks, but I keep hitting the …

---

## [Antigravity fails working with brew, mise, uv in a monorepo with Python projects](https://discuss.ai.google.dev/t/antigravity-fails-working-with-brew-mise-uv-in-a-monorepo-with-python-projects/140625)

<div class="topic-metadata">

**Author:** [@vadymecum](https://discuss.ai.google.dev/u/vadymecum)\
**Replies:** 1\
**Last updated:** [April 21, 2026, 7:03am UTC](https://discuss.ai.google.dev/t/antigravity-fails-working-with-brew-mise-uv-in-a-monorepo-with-python-projects/140625 "2026-04-21T07:03:57Z")

</div>

The Problem Antigravity doesn’t seem to properly initialize environment when running shell commands brew, mise, uv, etc., or any other commands related to tools managed by brew or mise. Antigravity claims that brew and m…

---

## [Feature Request: Add lxml & pdfplumber to Code Execution sandbox](https://discuss.ai.google.dev/t/feature-request-add-lxml-pdfplumber-to-code-execution-sandbox/140389)

<div class="topic-metadata">

**Author:** [@ING\_LALO](https://discuss.ai.google.dev/u/ING_LALO)\
**Replies:** 0\
**Last updated:** [April 16, 2026, 2:42am UTC](https://discuss.ai.google.dev/t/feature-request-add-lxml-pdfplumber-to-code-execution-sandbox/140389 "2026-04-16T02:42:54Z")

</div>

Hi Gemini team and community, I’ve been working extensively with Gemini Code Execution and want to share a proposal that I believe can significantly expand the platform’s capabilities for enterprise use cases. Curren…

---

## [Feature Request: Native Devcontainer Support in Antigravity](https://discuss.ai.google.dev/t/feature-request-native-devcontainer-support-in-antigravity/110492)

<div class="topic-metadata">

**Author:** [@Ren\_Silva](https://discuss.ai.google.dev/u/Ren_Silva)\
**Replies:** 36\
**Last updated:** [April 4, 2026, 1:38am UTC](https://discuss.ai.google.dev/t/feature-request-native-devcontainer-support-in-antigravity/110492 "2026-04-04T01:38:09Z")

</div>

Executive Summary Request for native devcontainer support in Antigravity to enable seamless development in containerized environments. Devcontainers are essential infrastructure for professional software development, and…

---

## [Missing Python wheel package building from source](https://discuss.ai.google.dev/t/missing-python-wheel-package-building-from-source/32204)

<div class="topic-metadata">

**Author:** [@IUSR](https://discuss.ai.google.dev/u/IUSR)\
**Replies:** 1\
**Last updated:** [March 25, 2026, 9:01am UTC](https://discuss.ai.google.dev/t/missing-python-wheel-package-building-from-source/32204 "2026-03-25T09:01:36Z")

</div>

Hello, I tried building TensorFlow from source following “Build from source”. I cloned the GitHub repo and checked out the latest 2.16.1 tag. Everything went well with bazelisk managing bazel’s versions, and yet I was m…

---

## [Feature Request: Unified Environment Sync (UES) to fix Agent Desync](https://discuss.ai.google.dev/t/feature-request-unified-environment-sync-ues-to-fix-agent-desync/126109)

<div class="topic-metadata">

**Author:** [@Jayant\_Sahu](https://discuss.ai.google.dev/u/Jayant_Sahu)\
**Replies:** 2\
**Last updated:** [March 23, 2026, 8:38am UTC](https://discuss.ai.google.dev/t/feature-request-unified-environment-sync-ues-to-fix-agent-desync/126109 "2026-03-23T08:38:12Z")

</div>

Problem: Current “Activation Friction” causes the Agent Manager to desync from the Terminal’s .venv, leading to persistent ModuleNotFoundError during Python workflows. Proposed Solution (Unified Environment Sync): Au…

---

## [Request for Review: Deterministic Sorting Fix in auto\_control\_deps\_utils.py (PR #110822)](https://discuss.ai.google.dev/t/request-for-review-deterministic-sorting-fix-in-auto-control-deps-utils-py-pr-110822/133472)

<div class="topic-metadata">

**Author:** [@M\_Husnain](https://discuss.ai.google.dev/u/M_Husnain)\
**Replies:** 2\
**Last updated:** [March 19, 2026, 6:36pm UTC](https://discuss.ai.google.dev/t/request-for-review-deterministic-sorting-fix-in-auto-control-deps-utils-py-pr-110822/133472 "2026-03-19T18:36:00Z")

</div>

Hello TensorFlow Community, I am reaching out to request a maintainer review for Pull Request #110822, which addresses a non-deterministic resource categorization issue within the core framework. Link to PR: https://gi…

---

## [Getting Value Error while running the model prediction when it is deployed to Google Cloud Run](https://discuss.ai.google.dev/t/getting-value-error-while-running-the-model-prediction-when-it-is-deployed-to-google-cloud-run/37487)

<div class="topic-metadata">

**Author:** [@dencoder](https://discuss.ai.google.dev/u/dencoder)\
**Replies:** 1\
**Last updated:** [March 16, 2026, 10:43am UTC](https://discuss.ai.google.dev/t/getting-value-error-while-running-the-model-prediction-when-it-is-deployed-to-google-cloud-run/37487 "2026-03-16T10:43:51Z")

</div>

I’m getting the following error while running the model prediction through my streamlit app deployed on Google Cloud Run. But the same code is running perfectly locally and on Google colab with same python version(3.10).…

---

## [Sandboxed terminal looses ability to use venv/node\_modules (or anything in .gitignore)](https://discuss.ai.google.dev/t/sandboxed-terminal-looses-ability-to-use-venv-node-modules-or-anything-in-gitignore/125981)

<div class="topic-metadata">

**Author:** [@UglyBagOfMostlyWater](https://discuss.ai.google.dev/u/UglyBagOfMostlyWater)\
**Replies:** 2\
**Last updated:** [March 12, 2026, 11:12pm UTC](https://discuss.ai.google.dev/t/sandboxed-terminal-looses-ability-to-use-venv-node-modules-or-anything-in-gitignore/125981 "2026-03-12T23:12:39Z")

</div>

The sandbox implementation prevents access to everything in a top level .gitignore file. I understand this is to prevent accidental access to credentials in .env files, etc. However, this presents challenges to using pro…

---

## [Agent deletes existing code while making small edits](https://discuss.ai.google.dev/t/agent-deletes-existing-code-while-making-small-edits/128804)

<div class="topic-metadata">

**Author:** [@erdem\_inaga](https://discuss.ai.google.dev/u/erdem_inaga)\
**Replies:** 2\
**Last updated:** [March 6, 2026, 8:09am UTC](https://discuss.ai.google.dev/t/agent-deletes-existing-code-while-making-small-edits/128804 "2026-03-06T08:09:44Z")

</div>

When I ask the agent to make a small change in an existing file, it sometimes deletes unrelated parts of the file instead of applying a minimal edit. This seems to happen mostly in Python files. For example, I may ask i…

---

## [Gemini Pro leaking internal Python unit tests / SchemaNode code instead of responding](https://discuss.ai.google.dev/t/gemini-pro-leaking-internal-python-unit-tests-schemanode-code-instead-of-responding/128320)

<div class="topic-metadata">

**Author:** [@RubyEnrique](https://discuss.ai.google.dev/u/RubyEnrique)\
**Replies:** 0\
**Last updated:** [March 3, 2026, 4:00pm UTC](https://discuss.ai.google.dev/t/gemini-pro-leaking-internal-python-unit-tests-schemanode-code-instead-of-responding/128320 "2026-03-03T16:00:05Z")

</div>

Hello, Starting around an hour ago (22:40 UTC+8), Gemini pro 3.1 has been bugging out and have been outputting raw python unit tests and internal schema definitions (specifically referencing SchemaNode, extract\_content\_…

---

## [60s timeout from python sdk](https://discuss.ai.google.dev/t/60s-timeout-from-python-sdk/83274)

<div class="topic-metadata">

**Author:** [@Lai\_Steven](https://discuss.ai.google.dev/u/Lai_Steven)\
**Replies:** 14\
**Last updated:** [February 26, 2026, 9:07am UTC](https://discuss.ai.google.dev/t/60s-timeout-from-python-sdk/83274 "2026-02-26T09:07:23Z")

</div>

I am trying to solve a math problem from a pdf file. I discovered there is a 60s timeout when I call generate\_content(), so when gemini needs to think for longer than 60s, it always raise “httpx.RemoteProtocolError: Se…

---

## [Gemini API Key 429 Error despite no requests raised](https://discuss.ai.google.dev/t/gemini-api-key-429-error-despite-no-requests-raised/123708)

<div class="topic-metadata">

**Author:** [@utkrshm](https://discuss.ai.google.dev/u/utkrshm)\
**Replies:** 1\
**Last updated:** [February 18, 2026, 11:16am UTC](https://discuss.ai.google.dev/t/gemini-api-key-429-error-despite-no-requests-raised/123708 "2026-02-18T11:16:50Z")

</div>

Hi all, this is my first time using the Gemini API key, and I’m using that for an Agentic AI project. I don’t kno w what’s happening, but whenever I try to raise a request with any model using Langchain’s ChatGoogleGen…

---

## [Getting 400 INVALID\_ARGUMENT Intermittently](https://discuss.ai.google.dev/t/getting-400-invalid-argument-intermittently/122930)

<div class="topic-metadata">

**Author:** [@fnatic9910](https://discuss.ai.google.dev/u/fnatic9910)\
**Replies:** 4\
**Last updated:** [February 17, 2026, 10:49pm UTC](https://discuss.ai.google.dev/t/getting-400-invalid-argument-intermittently/122930 "2026-02-17T22:49:18Z")

</div>

Error: google.genai.errors.ClientError: 400 INVALID\_ARGUMENT. {‘error’: {‘code’: 400, ‘message’: ‘Request contains an invalid argument.’, ‘status’: ‘INVALID\_ARGUMENT’}} at google/genai/errors.py:210 (raise\_error\_async) …

---

## [Documentation Bug: Incorrect Python example for interactions.delete() in the Interactions API documentation](https://discuss.ai.google.dev/t/documentation-bug-incorrect-python-example-for-interactions-delete-in-the-interactions-api-documentation/121540)

<div class="topic-metadata">

**Author:** [@Prasad\_Karmarkar](https://discuss.ai.google.dev/u/Prasad_Karmarkar)\
**Replies:** 1\
**Last updated:** [February 7, 2026, 12:22am UTC](https://discuss.ai.google.dev/t/documentation-bug-incorrect-python-example-for-interactions-delete-in-the-interactions-api-documentation/121540 "2026-02-07T00:22:02Z")

</div>

The Interactions API docs include the following Python example for deleting an interaction (via the Python GenAI SDK) \`\`\` from google import genai client = genai.Client() interaction = client.interactions.delete( …

---

## [How do I know Gemini used the code execution tool?](https://discuss.ai.google.dev/t/how-do-i-know-gemini-used-the-code-execution-tool/117439)

<div class="topic-metadata">

**Author:** [@robo](https://discuss.ai.google.dev/u/robo)\
**Replies:** 0\
**Last updated:** [January 22, 2026, 10:06am UTC](https://discuss.ai.google.dev/t/how-do-i-know-gemini-used-the-code-execution-tool/117439 "2026-01-22T10:06:57Z")

</div>

Hi, I want Gemini to create math questions with python. Now, how do I actually know from the response it used python? I only see the math question in the output but not python code. Also, I am a bit confused because w…

---

## [Best practices for Multi-Subject Pose Transfer and Interaction Physics using Gemini API?](https://discuss.ai.google.dev/t/best-practices-for-multi-subject-pose-transfer-and-interaction-physics-using-gemini-api/116089)

<div class="topic-metadata">

**Author:** [@Basic\_Visual](https://discuss.ai.google.dev/u/Basic_Visual)\
**Replies:** 0\
**Last updated:** [January 19, 2026, 4:59am UTC](https://discuss.ai.google.dev/t/best-practices-for-multi-subject-pose-transfer-and-interaction-physics-using-gemini-api/116089 "2026-01-19T04:59:09Z")

</div>

Hello everyone, I am working on a project to recreate cinematic poses from reference images using the Google Gen AI SDK (Python). My goal is to achieve a high-fidelity transfer that captures not just the skeletal pose, …

---

## [Receiving Daily Quotas exhausted - But almost didn't use the Gemini API](https://discuss.ai.google.dev/t/receiving-daily-quotas-exhausted-but-almost-didnt-use-the-gemini-api/115852)

<div class="topic-metadata">

**Author:** [@Urbano\_Freitas](https://discuss.ai.google.dev/u/Urbano_Freitas)\
**Replies:** 0\
**Last updated:** [January 16, 2026, 3:52pm UTC](https://discuss.ai.google.dev/t/receiving-daily-quotas-exhausted-but-almost-didnt-use-the-gemini-api/115852 "2026-01-16T15:52:57Z")

</div>

Hi all, I’m Gemini Pro subscriber and I’m having this warning: ”✕ \[API Error: You have exhausted your daily quota on this model.\]” As soon I started using Gemini CLI, or try to use the the Gemini API in an app (Python…

[Next page](https://discuss.ai.google.dev/tag/python/210.md?match_all_tags=true&page=1&tags%5B%5D=python)
