Skip to content

DeprecationWarning: 'cgi' is deprecated and slated for removal in Python 3.13 #892

@blueyed

Description

@blueyed

There's a deprecation warning with Python 3.11 (on Linux):

  File "/foo/__init__.py", line 12, in <module>
    from google.cloud import storage
  File "/venv/lib/python3.11/site-packages/google/cloud/storage/__init__.py", line 36, in <module>
    from google.cloud.storage.blob import Blob
  File "/venv/lib/python3.11/site-packages/google/cloud/storage/blob.py", line 21, in <module>
    import cgi
  File "/usr/local/lib/python3.11/cgi.py", line 57, in <module>
    warnings._deprecated(__name__, remove=(3,13))
  File "/usr/local/lib/python3.11/warnings.py", line 514, in _deprecated
    warn(msg, DeprecationWarning, stacklevel=3)
DeprecationWarning: 'cgi' is deprecated and slated for removal in Python 3.13

Metadata

Metadata

Assignees

Labels

api: storageIssues related to the googleapis/python-storage API.priority: p3Desirable enhancement or fix. May not be included in next release.type: cleanupAn internal cleanup or hygiene concern.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions