Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants