Skip to content

ModuleNotFoundError: No module named 'opentelemetry.exporter' even though the package opentelemetry-sdk has been installed #6419

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mingjun1120 opened this issue Apr 28, 2025 · 0 comments

Comments

@mingjun1120
Copy link

What happened?

Describe the bug
I followed the Tracing and Observability tutorial in the documentation exactly but encountered the following issue:

Traceback (most recent call last):
  File "C:\Users\GV631HJ\OneDrive - EY\Desktop\KNF\main.py", line 9, in <module>
    from opentelemetry.exporter.otlp.proto.grpc.trace_exporter import OTLPSpanExporter
ModuleNotFoundError: No module named 'opentelemetry.exporter'

I have already installed opentelemetry-sdk package in my Python environment using pip install <package_name> command, and verified its installation with pip show <package_name>, confirming its presence:

(venv) PS C:\Users\GV631HJ\OneDrive - EY\Desktop\KNF> pip show opentelemetry-sdk
Name: opentelemetry-sdk
Version: 1.32.1
Summary: OpenTelemetry Python SDK
Home-page: https://github.com/open-telemetry/opentelemetry-python/tree/main/opentelemetry-sdk
Author: 
Author-email: OpenTelemetry Authors <cncf-opentelemetry-contributors@lists.cncf.io>
License: Apache-2.0
Location: C:\Users\GV631HJ\OneDrive - EY\Desktop\KNF\venv\Lib\site-packages
Requires: opentelemetry-api, opentelemetry-semantic-conventions, typing-extensions
Required-by: semantic-kernel

Despite this, the issue persists!

Expected behavior
By right it should be able to import as stated in the documentation

Screenshots

Image

Additional context

  • Operating System: Windows 11 Enterprise
  • Python version: 3.11.7

Which packages was the bug in?

Python AgentChat (autogen-agentchat>=0.4.0)

AutoGen library version.

Python 0.5.4

Other library version.

No response

Model used

anthropic.claude-3-7-sonnet-20250219-v1:0

Model provider

AWS Bedrock

Other model provider

No response

Python version

3.11

.NET version

None

Operating system

Windows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant