This repository was archived by the owner on Dec 16, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 493
[Bug] Arch -Linux + google-generativeai library python 3.13.7 #749
Copy link
Copy link
Closed
Description
Producto: Selecciona Vertex AI.
Componente: Selecciona Generative AI o Gemini API.
Título del Problema: Error 404 v1beta persistente en Gemini API desde Arch Linux
Hello,
I am experiencing a persistent "404 Not Found ... API version v1beta" error when calling the Gemini API from my local machine, even though my code correctly specifies the 'gemini-1.5-flash-latest' model.
Evidence and Debugging Steps Taken:
- The Code is Correct: My script uses
MODEL_NAME = 'gemini-1.5-flash-latest'. - The API Key is Correct: The exact same code and API key work perfectly on Google Colab, but fail on my local machine. I have also tried creating new API keys in new, billed projects with the same result.
- The Error Persists Across Python Versions: The error occurred on Python 3.13.7. I then used
pyenvto install and use a stable Python 3.11.9, rebuilt the virtual environment from scratch, and the error still persists. - The Environment is Clean: We have confirmed via diagnostic scripts that Python 3.11.9 is active and the library is being loaded from the correct
venvpath. We have also tried reinstalling the library from GitHub (pip install git+...) to bypass any cache. - It's Not a Simple Network Issue: The error persists even after changing to a completely different Wi-Fi network (mobile hotspot).
The traceback always points to a v1beta client file, regardless of the Python version or clean environment. Given that the code and API key work on Google Colab, this points to a potential regional block or a very specific client-side issue with your servers when receiving requests from my location (Guatemala) on an Arch Linux system.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels