Title: Use of pkg_resources is deprecated and throws DeprecationWarning · Issue #252 · googleapis/python-cloud-core · GitHub
Open Graph Title: Use of pkg_resources is deprecated and throws DeprecationWarning · Issue #252 · googleapis/python-cloud-core
X Title: Use of pkg_resources is deprecated and throws DeprecationWarning · Issue #252 · googleapis/python-cloud-core
Description: Since setuptools version 67.3.1, the use of pkg_resources.declare_namespace() is deprecated (and in fact the use of pkg_resources in it's entirety, see https://setuptools.pypa.io/en/latest/pkg_resources.html) and will throw a Deprecation...
Open Graph Description: Since setuptools version 67.3.1, the use of pkg_resources.declare_namespace() is deprecated (and in fact the use of pkg_resources in it's entirety, see https://setuptools.pypa.io/en/latest/pkg_reso...
X Description: Since setuptools version 67.3.1, the use of pkg_resources.declare_namespace() is deprecated (and in fact the use of pkg_resources in it's entirety, see https://setuptools.pypa.io/en/latest/pkg_...
Opengraph URL: https://github.com/googleapis/python-cloud-core/issues/252
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Use of pkg_resources is deprecated and throws DeprecationWarning","articleBody":"Since `setuptools` version 67.3.1, the use of `pkg_resources.declare_namespace()` is deprecated (and in fact the use of `pkg_resources` in it's entirety, see https://setuptools.pypa.io/en/latest/pkg_resources.html) and will throw a `DeprecationWarning` on use. This library and function is currently being used in the various `__init__.py` files in this project.\r\n\r\n#### Environment details\r\n\r\n - OS type and version: Ubuntu 22.04.3 LTS\r\n - Python version: 3.10.12\r\n - pip version: 23.3\r\n - `google-cloud-core` version: 2.3.3\r\n\r\n#### Steps to reproduce\r\n\r\n 1. Have setuptools \u003e= 67.3.1 installed (released 14 Feb 2023, latest version at time of writing is 68.2.2) \r\n 2. import `google.cloud` in python code (either directly or via a module with a dependency on `google.cloud`)\r\n 3. run the python code, for example using `pytest`\r\n\r\n#### Code example\r\n\r\n```python\r\nimport google.cloud\r\n```\r\n\r\n#### Stack trace\r\n```\r\n.venv/lib/python3.10/site-packages/pkg_resources/__init__.py:2804\r\n /.venv/lib/python3.10/site-packages/pkg_resources/__init__.py:2804: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('google.cloud')`.\r\n 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\r\n declare_namespace(pkg)\r\n```\r\n","author":{"url":"https://github.com/Metamess","@type":"Person","name":"Metamess"},"datePublished":"2023-10-18T12:47:07.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/252/python-cloud-core/issues/252"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f540da5d-81f5-d703-af4c-3e13e0ab892d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C38A:25572C:2212E06:2EA8A5B:6A4EC7CF |
| html-safe-nonce | dc80281260144b7afbbc529c6322d468964b976fdf71e74107562016dfa0241a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMzhBOjI1NTcyQzoyMjEyRTA2OjJFQThBNUI6NkE0RUM3Q0YiLCJ2aXNpdG9yX2lkIjoiMjU3OTk4NTgzNDI4ODUzMTQwNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6d256e98f1a375a74565eb76a8fb2f9639afae631d6d72a4889822de63cd2114 |
| hovercard-subject-tag | issue:1949671172 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/python-cloud-core/252/issue_layout |
| twitter:image | https://opengraph.githubassets.com/617a9eecc989556b68d69cbfdfe23383e945cf9875d526f1c631f2e1254e381b/googleapis/python-cloud-core/issues/252 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/617a9eecc989556b68d69cbfdfe23383e945cf9875d526f1c631f2e1254e381b/googleapis/python-cloud-core/issues/252 |
| og:image:alt | Since setuptools version 67.3.1, the use of pkg_resources.declare_namespace() is deprecated (and in fact the use of pkg_resources in it's entirety, see https://setuptools.pypa.io/en/latest/pkg_reso... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Metamess |
| hostname | github.com |
| expected-hostname | github.com |
| None | 41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/python-cloud-core git https://github.com/googleapis/python-cloud-core.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 226992462 |
| octolytics-dimension-repository_nwo | googleapis/python-cloud-core |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 226992462 |
| octolytics-dimension-repository_network_root_nwo | googleapis/python-cloud-core |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e6a744804e8e70f97b4d5a18a94dcc63db22f97a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width