-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Description
Determine this is the right repository
- I determined this is the correct repository in which to report this bug.
Summary of the issue
Context
I installed the package google-cloud-secret-manager with uv and imported it into my python script
Expected Behavior:
I expected the script to not throw any error
Actual Behavior:
I received the error: ModuleNotFoundError: No module named 'packaging'
API client name and version
google-cloud-secret-manager 2.25.0
Reproduction steps: code
file: main.py
from google.cloud.secretmanager import SecretManagerServiceClientReproduction steps: supporting files
No response
Reproduction steps: actual results
Run the file with python main.py and obtain this error:
Traceback (most recent call last):
File "/Users/luca/dev/fourgreen/fg-workflows/src/secrets.py", line 1, in <module>
from google.cloud.secretmanager import SecretManagerServiceClient
File "/Users/luca/dev/fourgreen/fg-workflows/.venv/lib/python3.13/site-packages/google/cloud/secretmanager/__init__.py", line 21, in <module>
from google.cloud.secretmanager_v1.services.secret_manager_service.async_client import (
SecretManagerServiceAsyncClient,
)
File "/Users/luca/dev/fourgreen/fg-workflows/.venv/lib/python3.13/site-packages/google/cloud/secretmanager_v1/__init__.py", line 21, in <module>
from .services.secret_manager_service import (
...<2 lines>...
)
File "/Users/luca/dev/fourgreen/fg-workflows/.venv/lib/python3.13/site-packages/google/cloud/secretmanager_v1/services/secret_manager_service/__init__.py", line 16, in <module>
from .async_client import SecretManagerServiceAsyncClient
File "/Users/luca/dev/fourgreen/fg-workflows/.venv/lib/python3.13/site-packages/google/cloud/secretmanager_v1/services/secret_manager_service/async_client.py", line 32, in <module>
from google.api_core import exceptions as core_exceptions
File "/Users/luca/dev/fourgreen/fg-workflows/.venv/lib/python3.13/site-packages/google/api_core/__init__.py", line 20, in <module>
from google.api_core import _python_package_support
File "/Users/luca/dev/fourgreen/fg-workflows/.venv/lib/python3.13/site-packages/google/api_core/_python_package_support.py", line 28, in <module>
from packaging.version import parse as parse_version
ModuleNotFoundError: No module named 'packaging'
Reproduction steps: expected results
No response
OS & version + platform
Mac M1
Python environment
Python 3.13.9
Python dependencies
Package Version
alembic 1.17.0
annotated-doc 0.0.3
annotated-types 0.7.0
anyio 4.11.0
apprise 1.9.5
apscheduler 3.11.0
asyncpg 0.30.0
authlib 1.6.5
bcrypt 5.0.0
bidict 0.23.1
cachetools 6.2.1
certifi 2025.10.5
cffi 1.17.1
charset-normalizer 3.4.4
click 8.1.8
cryptography 44.0.2
fastapi 0.120.1
google-api-core 2.28.0
google-auth 2.41.1
google-cloud-secret-manager 2.25.0
googleapis-common-protos 1.71.0
grpc-google-iam-v1 0.14.3
grpcio 1.76.0
grpcio-status 1.76.0
h11 0.14.0
httpcore 1.0.8
httpx 0.28.1
idna 3.11
invoke 2.2.1
itsdangerous 2.2.0
jinja2 3.1.6
mako 1.3.10
markdown 3.9
markupsafe 3.0.3
numpy 2.3.4
oauthlib 3.3.1
pandas 2.3.3
paramiko 4.0.0
plombery 0.5.1
proto-plus 1.26.1
protobuf 6.33.0
pyasn1 0.6.1
pyasn1-modules 0.4.2
pycparser 2.22
pydantic 2.12.3
pydantic-core 2.41.4
pydantic-settings 2.11.0
pynacl 1.6.0
python-dateutil 2.9.0.post0
python-dotenv 1.2.1
python-engineio 4.12.3
python-gnupg 0.5.5
python-socketio 5.14.2
pytz 2025.2
pyyaml 6.0.3
requests 2.32.5
requests-oauthlib 2.0.0
rsa 4.9.1
simple-websocket 1.1.0
six 1.17.0
sniffio 1.3.1
sqlalchemy 2.0.44
starlette 0.49.0
typing-extensions 4.15.0
typing-inspection 0.4.2
tzdata 2025.2
tzlocal 5.3.1
urllib3 2.5.0
uvicorn 0.38.0
wsproto 1.2.0
Additional context
No response