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
Description
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":
- Search the issues already opened: https://github.com/googleapis/python-monitoring/issues
- Search StackOverflow: https://stackoverflow.com/questions/tagged/google-cloud-platform+python
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