Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Deprecated use of pkg_resources.declare_namespace #180

Closed
daviddavis opened this issue Oct 2, 2023 · 0 comments · Fixed by #187
Closed

Deprecated use of pkg_resources.declare_namespace #180

daviddavis opened this issue Oct 2, 2023 · 0 comments · Fixed by #187
Assignees

Comments

@daviddavis
Copy link

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:

pkg_resources.declare_namespace(__name__)

pkg_resources.declare_namespace(__name__)

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants