-
Notifications
You must be signed in to change notification settings - Fork 751
Closed as not planned
Labels
bugSomething isn't workingSomething isn't working
Description
Describe your environment
Python 3.10.10 on macOS Ventura 13.2
Steps to reproduce
- ensure that setuptools v67.3.0 or later is installed (see their deprecation warning change)
- turn warnings filter to
error
- run
from opentelemetry.instrumentation.grpc import GrpcInstrumentorClient, GrpcInstrumentorServer
What is the expected behavior?
The import succeeds.
What is the actual behavior?
The import fails:
.venv/lib/python3.10/site-packages/opentelemetry/instrumentation/grpc/__init__.py:282: in <module>
from opentelemetry import trace
.venv/lib/python3.10/site-packages/opentelemetry/trace/__init__.py:87: in <module>
from opentelemetry import context as context_api
.venv/lib/python3.10/site-packages/opentelemetry/context/__init__.py:22: in <module>
from pkg_resources import iter_entry_points
.venv/lib/python3.10/site-packages/pkg_resources/__init__.py:3257: in <module>
def _initialize_master_working_set():
.venv/lib/python3.10/site-packages/pkg_resources/__init__.py:3231: in _call_aside
f(*args, **kwargs)
.venv/lib/python3.10/site-packages/pkg_resources/__init__.py:3282: in _initialize_master_working_set
tuple(dist.activate(replace=False) for dist in working_set)
.venv/lib/python3.10/site-packages/pkg_resources/__init__.py:3282: in <genexpr>
tuple(dist.activate(replace=False) for dist in working_set)
.venv/lib/python3.10/site-packages/pkg_resources/__init__.py:2803: in activate
declare_namespace(pkg)
.venv/lib/python3.10/site-packages/pkg_resources/__init__.py:2297: in declare_namespace
warnings.warn(msg, DeprecationWarning, stacklevel=2)
E DeprecationWarning: 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
Additional context
For the time being I filter that warning with
PYTHONWARNINGS="always::DeprecationWarning:pkg_resources"
but it should probably be addressed.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working