Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Dec 31, 2023. It is now read-only.
This repository was archived by the owner on Dec 31, 2023. It is now read-only.

ModuleNotFoundError: No module named pkg_resources #322

Closed
@tnguyen14

Description

@tnguyen14

Thanks for stopping by to let us know something could be better!

PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response.

Please run down the following list and make sure you've tried the usual "quick fixes":

If you are still having issues, please be sure to include as much information as possible:

Environment details

  • OS type and version: linux
  • Python version: 3.8.13
  • pip version: pip --version
  • google-cloud-monitoring version: 2.9.1

Steps to reproduce

Code example

Stack trace

Python 3.8.13 (default, Mar 18 2022, 13:52:37)
[GCC 9.3.1 20200408 (Red Hat 9.3.1-2)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from google.cloud import monitoring_v3
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/.../dependencies/site-packages/google/cloud/monitoring_v3/__init__.py", line 17, in <module>
    from .services.alert_policy_service import AlertPolicyServiceClient
  File "/.../dependencies/site-packages/google/cloud/monitoring_v3/services/alert_policy_service/__init__.py", line 16, in <module>
    from .client import AlertPolicyServiceClient
  File "/.../dependencies/site-packages/google/cloud/monitoring_v3/services/alert_policy_service/client.py", line 20, in <module>
    import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'

This library depends on setuptools, which was included in google-api-core up to 2.4.0, but was removed in 2.5.0 googleapis/python-api-core#339

Metadata

Metadata

Assignees

Labels

api: monitoringIssues related to the googleapis/python-monitoring API.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions