Skip to content

Commit d4fc2ab

Browse files
krassermclaude
andcommitted
Cap pydantic-ai dependency to <2 to fix clean-install ImportError
Released 0.11.0 declared an unbounded `pydantic-ai>=1.99.0`. A fresh resolve (no lockfile) selected pydantic-ai 2.x, which removed `pydantic_ai.mcp.MCPServer`, so freeact crashed on import with `ImportError: cannot import name 'MCPServer'`. The source repo only worked because uv.lock pinned 1.99.0. Constrain to `>=1.99.0,<2` and refresh uv.lock. A clean resolve now stays on the 1.x line and freeact imports and runs. Fixes #106 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent d95e79d commit d4fc2ab

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ license = "Apache-2.0"
1111
dependencies = [
1212
"aiostream>=0.7.1",
1313
"google-genai>=2.4.0",
14-
"pydantic-ai>=1.99.0",
14+
"pydantic-ai>=1.99.0,<2",
1515
"python-dotenv>=1.0.0",
1616
"pillow>=12.0.0",
1717
"pyyaml>=6.0.3",

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)