a2aproject / a2aproject/a2a-samples

ModuleNotFoundError: No module named 'a2a.server.apps'

未关闭
#529 2 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Jupyter Notebook
星标
1.8k
派生
751
PR 合并指标
30 天内没有已合并 PR

描述

### 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](https://github.com/a2aproject/a2a-samples/blob/main/samples/python/agents/helloworld/__main__.py)

### **The file contains:**
```python
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](https://github.com/a2aproject/a2a-python/tree/main/src/a2a/server)

### **Environment :**
- OS: Windows
- Python version: 3.14.4
- a2a-sdk version: 1.0.0

---

### Relevant log output

```shell
----> 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

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。