ModuleNotFoundError: No module named 'a2a.server.apps'
What happened?
Importing A2AStarletteApplication from a2a.server.apps raises a ModuleNotFoundError. I encountered this error in line 3 of the following file from the official samples repository: samples/python/agents/helloworld/main.py
The file contains:
from a2a.server.apps import A2AStarletteApplication
Error Traceback:
ModuleNotFoundError: No module named 'a2a.server.apps'
What I Checked :
- Verified the installed package version using pip show a2a-sdk
- Explored the GitHub repository structure
- Looked inside the server directory in the repository
- Could not find any apps module under a2a/server
Environment :
- OS: Windows
- Python version: 3.14.4
- a2a-sdk version: 1.0.0
Relevant log output
----> 1 from a2a.server.apps import A2AStarletteApplication
ModuleNotFoundError: No module named 'a2a.server.apps'
Code of Conduct
- [x] I agree to follow this project's Code of Conduct
Same here, but for now you can install version 0.3
It works for me
If you are using uv simply run this command:
uv add a2a-sdk==0.3
I rechecked this against the current sample rather than the original 1.0.0 environment.
Verified on origin/main at 6603ba3f2c31a7ef33e70b9d8b5b5f8be42ac9a3:
- samples/python/agents/helloworld/requirements.txt pins a2a-sdk==1.1.0.
- samples/python/agents/helloworld/main.py no longer imports a2a.server.apps; it imports a2a.server.request_handlers, a2a.server.routes, and a2a.server.tasks.
- python -m py_compile samples/python/agents/helloworld/main.py passes.
- In a clean Python 3.13.1 environment with a2a-sdk==1.1.0, all three current modules import successfully, while import a2a.server.apps still raises ModuleNotFoundError.
Therefore the original traceback is no longer a failure of the current sample. The suggested a2a-sdk==0.3 workaround is also not appropriate for the current sample because it contradicts the pinned dependency. Unless someone can reproduce a failure with the current main checkout and its declared dependencies, this issue appears resolved/stale and can be closed without changing the sample.