Skip to content

Python: [Samples][Python] a2a/ sample missing requirements.txt — beginners cannot install dependencies #5395

Closed

Description

@leestott

Description

The python/samples/04-hosting/a2a/ sample has no requirements.txt file. Unlike every other sample in 04-hosting/, a beginner who creates a .venv and tries pip install has no dependency file to reference.

The README recommends uv run python a2a_server.py, which only works when executed from the repo root with the uv workspace properly configured — a setup most beginners won't have.

Steps to Reproduce

cd python/samples/04-hosting/a2a
python -m venv .venv
.venv\Scripts\Activate.ps1
pip install -r requirements.txt   # ❌ File not found

Verified Missing Dependencies

Confirmed via import tests in a clean .venv:

Package Import That Fails
agent-framework-a2a from agent_framework.a2a import A2AAgent → ModuleNotFoundError: The 'agent-framework-a2a' package is not installed
uvicorn import uvicorn → ModuleNotFoundError: No module named 'uvicorn'
agent-framework-foundry Needed for FoundryChatClient in a2a_server.py
httpx Used in agent_with_a2a.py
python-dotenv Used across all scripts

Also Missing

  • No .env.example or .env.template file. Users must read source code to discover FOUNDRY_PROJECT_ENDPOINT, FOUNDRY_MODEL, and A2A_AGENT_HOST.

Suggested Fix

  1. Add a requirements.txt with local editable paths (matching the pattern used in durabletask/ and azure_functions/ samples).
  2. Add a .env.example with the required environment variables.

Environment

  • Python 3.13.13, Windows 11, uv 0.9.27

Activity

  1. added
    pythonUsage: [Issues, PRs], Target: Python
    triageUsage: [Issues], Target: All issues that still need to be triaged
    on Apr 21, 2026
  2. changed the title [-][Samples][Python] a2a/ sample missing requirements.txt — beginners cannot install dependencies[/-] [+]Python: [Samples][Python] a2a/ sample missing requirements.txt — beginners cannot install dependencies[/+] on Apr 21, 2026
  3. added
    documentationUsage: [Issues, PRs], Target: documentation in the code base and learn docs
    and removed
    triageUsage: [Issues], Target: All issues that still need to be triaged
    on Apr 21, 2026
  4. added a commit that references this issue on Apr 27, 2026
    9b22ecd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

documentationUsage: [Issues, PRs], Target: documentation in the code base and learn docspythonUsage: [Issues, PRs], Target: Python

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions