a2a-samples icon indicating copy to clipboard operation
a2a-samples copied to clipboard

No module named 'litellm' when running demo/ui/main.py

Open abadongutierrez opened this issue 1 year ago • 1 comments

What happened?

Cloned the repo, installed venv and when running uv run main.py got error:

(.venv) ➜  ui git:(main) ✗ uv run main.py
warning: `VIRTUAL_ENV=/home/abaddon_gtz/Tmp/a2a-samples/.venv` does not match the project environment path `.venv` and will be ignored; use `--active` to target the active environment instead
Traceback (most recent call last):
  File "/home/abaddon_gtz/Tmp/a2a-samples/demo/ui/main.py", line 28, in <module>
    from service.server.server import ConversationServer
  File "/home/abaddon_gtz/Tmp/a2a-samples/demo/ui/service/server/server.py", line 27, in <module>
    from .adk_host_manager import ADKHostManager, get_message_id
  File "/home/abaddon_gtz/Tmp/a2a-samples/demo/ui/service/server/adk_host_manager.py", line 34, in <module>
    from hosts.multiagent.host_agent import HostAgent
  File "/home/abaddon_gtz/Tmp/a2a-samples/samples/python/hosts/multiagent/host_agent.py", line 24, in <module>
    from google.adk.models.lite_llm import LiteLlm
  File "/home/abaddon_gtz/Tmp/a2a-samples/demo/ui/.venv/lib/python3.12/site-packages/google/adk/models/lite_llm.py", line 33, in <module>
    import litellm
ModuleNotFoundError: No module named 'litellm'

Relevant log output


Code of Conduct

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

abadongutierrez avatar Jul 24 '25 05:07 abadongutierrez

ty @holtskinner

abadongutierrez avatar Jul 24 '25 15:07 abadongutierrez