a2aproject / a2aproject/a2a-samples

in the demo/ui ; There is an error when running "uv run main.py"

Offen
#551 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Jupyter Notebook
Sterne
1.8k
Forks
751
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

### What happened?

in the demo/ui ;
when i am running “uv run main.py”
Display error message:
Traceback (most recent call last):
File "D:\myFile\a2a-samples-main\demo\ui\main.py", line 13, in
from components.api_key_dialog import api_key_dialog
File "D:\myFile\a2a-samples-main\demo\ui\components\api_key_dialog.py", line 5, in
from state.host_agent_service import UpdateApiKey
File "D:\myFile\a2a-samples-main\demo\ui\state\host_agent_service.py", line 9, in
from a2a.types import FileWithBytes, Message, Part, Role, Task, TaskState
ImportError: cannot import name 'FileWithBytes' from 'a2a.types' (d:\myFile\a2a-samples-main\.venv\Lib\site-packages\a2a\types\__init__.py)

### Relevant log output

```shell

```

### Code of Conduct

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.