a2aproject / a2aproject/a2a-samples

Missing fastapi dependency on a2a_gui

未關閉
#417 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Jupyter Notebook
星號
1.8k
分支
751
PR 合併指標
30 天內沒有已合併 PR

描述

### What happened?

After running:
```
uv run uvicorn server:app --host 0.0.0.0 --port 8000
```
I get this error
```
ModuleNotFoundError: No module named 'fastapi'
```

### Relevant log output

```shell
from fastapi import FastAPI, Request
ModuleNotFoundError: No module named 'fastapi'
```

### Code of Conduct

- [x] I agree to follow this project's Code of Conduct

貢獻指南

開啟貢獻指南

研究方向

Check the project's dependency file (likely requirements.txt or pyproject.toml) to see if fastapi is listed. The error occurs when starting the server with uvicorn. Add fastapi to the dependencies, then test by running the uvicorn command again. The fix is done when the server starts without the ModuleNotFoundError.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
fastapi, python
領域
api, backend
Issue 類型
缺陷
難度
1/5
預估耗時
1 小時以內
活躍度
停滯
描述清晰度
描述清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。