Registry /
llm-agents / llama-index-readers-google
Install & Compatibility
Where this runs
tested against v0.7.2 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
py 3.9
✕ build_error
✕ build_error
468MB installed
● package 468MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
GoogleDriveReader
✓ from llama_index.readers.google import GoogleDriveReader
✗ from llama_index.readers.google_drive import GoogleDriveReader
Old import path was nested under google_drive, now consolidated under google
GmailReader
✓ from llama_index.readers.google import GmailReader
GoogleCalendarReader
✓ from llama_index.readers.google import GoogleCalendarReader
GoogleSheetsReader
✓ from llama_index.readers.google import GoogleSheetsReader
Initialize GoogleDriveReader with folder ID and optional service account key. Falls back to OAuth flow if no key provided.
import os
from llama_index.readers.google import GoogleDriveReader
# Set your Google OAuth credentials path or rely on default discovery
reader = GoogleDriveReader(
folder_id="<your-folder-id>",
service_account_key_path=os.environ.get("GOOGLE_SERVICE_ACCOUNT_KEY", ""),
)
documents = reader.load_data()
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'llama_index.readers.google_drive'
Import path changed in v0.5.0. Old code uses deprecated path.
fixUpdate import to 'from llama_index.readers.google import GoogleDriveReader'
google.auth.exceptions.DefaultCredentialsError: Could not automatically determine credentials.
Missing or invalid Google credentials. Either OAuth token or service account key not provided.
fixSet GOOGLE_APPLICATION_CREDENTIALS environment variable to point to a JSON service account key, or run the OAuth flow.
AttributeError: 'GoogleDriveReader' object has no attribute 'load_data'
Likely using a very old version (<0.4.0) where the method was named 'load_documents'.
fixUpgrade to latest: pip install --upgrade llama-index-readers-google
Upgrade
Version history
0.7.2latest on PyPI · released Sep 8, 2025
Audit
Dependencies
google-api-python-clientrequiredRequired for Google API authentication and service construction
google-auth-httplib2requiredTransitive dependency for OAuth2
google-auth-oauthlibrequiredUsed for OAuth2 flow