googleapis/python-api-common-protos

Deprecated use of pkg_resources.declare_namespace

daviddavis opened this issue · 0 comments

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.