opentelemetry-python icon indicating copy to clipboard operation
opentelemetry-python copied to clipboard

instrumentation-python AttributeError: module 'lib' has no attribute 'X509_V_FLAG_NOTIFY_POLICY'

Open chenfangogo opened this issue 5 months ago • 2 comments

Python automatically connects to otel, the error message is as follows:


Traceback (most recent call last): File "/otel-auto-instrumentation-python/opentelemetry/instrumentation/auto_instrumentation/_load.py", line 114, in _load_instrumentors distro.load_instrumentor(entry_point, skip_dep_check=True) File "/otel-auto-instrumentation-python/opentelemetry/instrumentation/distro.py", line 61, in load_instrumentor instrumentor: BaseInstrumentor = entry_point.load() ^^^^^^^^^^^^^^^^^^ File "/otel-auto-instrumentation-python/importlib_metadata/init.py", line 189, in load module = import_module(match.group('module')) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/app/api/.venv/lib/python3.11/site-packages/OpenSSL/crypto.py", line 1589, in X509StoreFlags NOTIFY_POLICY = _lib.X509_V_FLAG_NOTIFY_POLICY ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'lib' has no attribute 'X509_V_FLAG_NOTIFY_POLICY'. Did you mean: 'X509_V_FLAG_EXPLICIT_POLICY'?


chenfangogo avatar Jul 09 '25 02:07 chenfangogo

@chenfangogo Can you share the code to reproduce this error.

rads-1996 avatar Sep 24 '25 22:09 rads-1996

This is not coming from opentelemetry, we don't have a dependency on the OpenSSL module

xrmx avatar Sep 25 '25 13:09 xrmx