This repository was archived by the owner on Mar 12, 2025. It is now read-only.
This repository was archived by the owner on Mar 12, 2025. It is now read-only.
Deprecated use of pkg_resources.declare_namespace #180
Closed
Description
When using googleapis-common-protos, the following deprecated warning is issued:
/.venv/lib/python3.9/site-packages/google/rpc/__init__.py:20: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('google.rpc')`.
Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
pkg_resources.declare_namespace(__name__)
The offending code shows up in a couple places:
This issue is related to #140 and was reported in a comment (#140 (comment)) but I thought it might've been better to break it out into a separate issue for users to track.
Metadata
Metadata
Assignees
Labels
No labels