a2aproject / a2aproject/a2a-samples

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

オープン 初心者向け
#529 コメント 2 件 リアクション 1 件 担当者 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

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Check the a2a-python repository's src/a2a/server directory to see the actual module structure. Compare the import path in the sample (a2a.server.apps) with the available modules. The fix likely involves updating the import statement in samples/python/agents/helloworld/__main__.py to match the correct module name, such as a2a.server.application. Run the sample after the change to verify the import works.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
documentation
issue の種類
バグ
難易度
2/5
見積もり時間
1〜3時間
活発さ
静か
明瞭さ
明確に書かれている
初心者へのやさしさ
70/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。