Skip to content

pydantic-ai 2.x upgrade blocked by marvin incompatibility #703

Description

@pdettori

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    New/ToDo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions