Skip to content

Bedrock AgentCore >=1.6.3 + A2A v1.0 is throwing error No module named 'a2a.server.apps' #438

Closed

Description

@amtuanand

Describe the bug
The A2A protocol hit v1.0.0 recently (March 2026) and introduced breaking changes into the API but it seems bedrock-agentcore still leverages a2a-sdk 0.3.0 API calls.

When starting the a2a server leveraging the bedrock_agentcore.runtime.a2a serve_a2a function got this error - "An error occurred during server startup: No module named 'a2a.server.apps' " This is due to API incompatibility with new a2a-sdk v 1.0.0

To Reproduce
Create a sample A2A app leveraging bedrock-agentcore python sdk > 1.6.3 and a2a-sdk > 1.0.0 you would get the error descrobed above

Expected behavior
A2A server should start gradefully without any issue on port 9000

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: macOS
  • Browser : Safari
  • Version : latest macOS

Activity

  1. christianfroehlich commented on Apr 28, 2026

    @christianfroehlich

    I don't know if this is related, but i suspect it is - when i created a new vanilla a2a agent and run it from main.py I get a similar but different error: ImportError: cannot import name 'DataPart' from 'a2a.types'

  2. jariy17 commented on Jun 8, 2026

    @jariy17
    Contributor

    Thanks for the report. The integration in runtime/a2a.py targets the a2a-sdk 0.3.x server API, and a2a-sdk 1.0 removed a2a.server.apps (along with A2AStarletteApplication and CallContextBuilder), which is the No module named 'a2a.server.apps' error.

    We currently only support a2a-sdk v0.3.x. Therefore, you can either pin a2a-sdk>=0.3,<1.0 on your python project, or wait till this PR #510 to merge.

    For v1.x support, please follow #509 to track migrating the integration to the new a2a-sdk server API.

  3. added a commit that references this issue on Jun 11, 2026
    12f0f8b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions