You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 23, 2026. It is now read-only.
We encountered this under Python3.10 due to the way we build / run our code under Docker. This can be easily circumvented in our case by installing the python3-distutils Debian package, but the dependency should probably be removed from this package.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/venv/lib/python3.12/site-packages/google/api_core/operations_v1/__init__.py", line 17, in <module>
from google.api_core.operations_v1.abstract_operations_client import AbstractOperationsClient
File "/tmp/venv/lib/python3.12/site-packages/google/api_core/operations_v1/abstract_operations_client.py", line 17, in <module>
from distutils import util
ModuleNotFoundError: No module named 'distutils'
The distutils module has been deprecated and will be removed in Python3.12: https://docs.python.org/3.11/library/distutils.html
setuptools also discourages using its vendored version: https://setuptools.pypa.io/en/latest/deprecated/distutils-legacy.html#prefer-setuptools
The explicit
distutilsdependency / import inabstract_operations_client.pyis only needed for one call todistutils.util.strtobool():python-api-core/google/api_core/operations_v1/abstract_operations_client.py
Line 297 in 7dfc3a7
We encountered this under Python3.10 due to the way we build / run our code under Docker. This can be easily circumvented in our case by installing the
python3-distutilsDebian package, but the dependency should probably be removed from this package.Environment details
google-api-coreversion:Name: google-api-core Version: 2.11.0 Summary: Google API client core library Home-page: https://github.com/googleapis/python-api-core Author: Google LLC Author-email: googleapis-packages@google.com License: Apache 2.0 Location: /tmp/venv/lib/python3.12/site-packages Requires: google-auth, googleapis-common-protos, protobuf, requests Required-by:Steps to reproduce
python3.12 -m venv /tmp/venv/tmp/venv/bin/pip install google-api-coreCode example
Stack trace