Skip to content

TypeError: 'ABCMeta' object is not subscriptable on Python 3.8, google-auth==2.46.0 #1915

@timoffex

Description

@timoffex

Environment details

  • OS: macOS
  • Python version: 3.8
  • pip version: uv-pip 0.6.3 (6d3614eec 2025-02-19)
  • google-auth version: 2.46.0

Steps to reproduce

In a fresh Python 3.8 environment, install google-cloud-storage==3.7.0, which pulls in google-auth==2.46.0.

❯ uv venv --python 3.8 .venv-38
❯ source .venv-38/bin/activate
❯ uv pip install google-cloud-storage==3.7.0
Using Python 3.8.20 environment at: .venv-38
Resolved 18 packages in 5ms
Installed 18 packages in 15ms
 + cachetools==5.5.2
 + certifi==2026.1.4
 + charset-normalizer==3.4.4
 + google-api-core==2.28.1
 + google-auth==2.46.0
 + google-cloud-core==2.5.0
 + google-cloud-storage==3.7.0
 + google-crc32c==1.5.0
 + google-resumable-media==2.8.0
 + googleapis-common-protos==1.72.0
 + idna==3.11
 + proto-plus==1.27.0
 + protobuf==5.29.5
 + pyasn1==0.6.1
 + pyasn1-modules==0.4.2
 + requests==2.32.4
 + rsa==4.9.1
 + urllib3==2.2.3

Run import google.cloud.storage in a Python interpreter.

❯ python -c 'import google.cloud.storage'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/timoffex/Documents/workspace/testing/.venv-38/lib/python3.8/site-packages/google/cloud/storage/__init__.py", line 35, in <module>
    from google.cloud.storage.batch import Batch
  File "/Users/timoffex/Documents/workspace/testing/.venv-38/lib/python3.8/site-packages/google/cloud/storage/batch.py", line 42, in <module>
    from google.cloud import _helpers
  File "/Users/timoffex/Documents/workspace/testing/.venv-38/lib/python3.8/site-packages/google/cloud/_helpers/__init__.py", line 30, in <module>
    import google.auth
  File "/Users/timoffex/Documents/workspace/testing/.venv-38/lib/python3.8/site-packages/google/auth/__init__.py", line 22, in <module>
    from google.auth._default import (
  File "/Users/timoffex/Documents/workspace/testing/.venv-38/lib/python3.8/site-packages/google/auth/_default.py", line 598, in <module>
    scopes: Optional[Sequence[str]] = None,
TypeError: 'ABCMeta' object is not subscriptable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions