-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
pydantic/logfire
#1310Labels
Description
Initial Checks
- I confirm that I'm using the latest version of Pydantic AI
- I confirm that I searched for my issue in https://github.com/pydantic/pydantic-ai/issues before opening this issue
Description
We started to get ModuleNotFoundError after the logfire 4.3.0 was release pydantic/logfire#1308
File "packages/pydantic_ai/__init__.py", line 3, in <module>
from .agent import Agent, CallToolsNode, EndStrategy, ModelRequestNode, UserPromptNode, capture_run_messages
File "packages/pydantic_ai/agent.py", line 19, in <module>
from pydantic_graph import End, Graph, GraphRun, GraphRunContext
File "packages/pydantic_graph/__init__.py", line 2, in <module>
from .graph import Graph, GraphRun, GraphRunResult
File "packages/pydantic_graph/graph.py", line 11, in <module>
import logfire_api
File "packages/logfire_api/__init__.py", line 8, in <module>
from opentelemetry.sdk.trace import ReadableSpan
ModuleNotFoundError: No module named 'opentelemetry.sdk'
Pinging the dependency to 4.2.0 fixed the issue
Example Code
Python, Pydantic AI & LLM client version
Python 3.11
pydantic 2.11.7
pydantic-ai-slim 0.5.0
p-krukenfellner and itayB