rossoctl / rossoctl/examples

pydantic-ai 2.x upgrade blocked by marvin incompatibility

Open
#703 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

stale
Dominant language
Python
Stars
11
Forks
43
Avg merge
1d 5h
Merged PRs (30d)
4

Description

Dependabot #692 bumps pydantic-ai 1.106.0 → 2.9.1 in a2a/a2a_contact_extractor. Dependencies resolve cleanly, but test-startup fails at import:

ImportError: cannot import name 'Usage' from 'pydantic_ai.usage'

The transitive dependency marvin imports Usage from pydantic_ai.usage, which pydantic-ai 2.x removed/renamed. This is not fixable in this repo — it needs a marvin release that supports pydantic-ai 2.x. Hold the bump on pydantic-ai 1.x until then.

Closing #692; will revisit once marvin supports pydantic-ai 2.x.

Assisted-By: Claude Code

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in a2a/a2a_contact_extractor and run test-startup to reproduce the import failure reported after Dependabot #692. Check the marvin dependency's import of pydantic_ai.usage. The issue is done when a marvin release supports pydantic-ai 2.x and startup passes, or the dependency remains held on pydantic-ai 1.x until then.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.