narrow-laptop-64001
03/03/2026, 4:49 PMpython -m voice_agent.agent dev
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/Users/ayushoswal/coding/inference-engine/voice_agent/agent.py", line 28, in <module>
from livekit.plugins import (
File "/Users/ayushoswal/coding/inference-engine/.venv/lib/python3.11/site-packages/livekit/plugins/google/__init__.py", line 22, in <module>
from . import beta, realtime, tools
File "/Users/ayushoswal/coding/inference-engine/.venv/lib/python3.11/site-packages/livekit/plugins/google/beta/__init__.py", line 1, in <module>
from .. import realtime
File "/Users/ayushoswal/coding/inference-engine/.venv/lib/python3.11/site-packages/livekit/plugins/google/realtime/__init__.py", line 2, in <module>
from .realtime_api import RealtimeModel
File "/Users/ayushoswal/coding/inference-engine/.venv/lib/python3.11/site-packages/livekit/plugins/google/realtime/realtime_api.py", line 17, in <module>
from livekit.agents import APIConnectionError, LanguageCode, llm, utils
ImportError: cannot import name 'LanguageCode' from 'livekit.agents' (/Users/ayushoswal/coding/inference-engine/.venv/lib/python3.11/site-packages/livekit/agents/__init__.py)tall-airline-16756
03/03/2026, 4:49 PMtall-airline-16756
03/03/2026, 4:50 PMlivekit/plugins/google/realtime/realtime_api.py is trying to import LanguageCode from livekit.agents, but that symbol isn't present in the installed livekit-agents package.
This is a version/compatibility mismatch between the core Agents package and the Google plugin. What you can do next:
1. Update both packages to compatible versions
◦ From your virtualenv, run:
pip install --upgrade livekit-agents livekit-plugins-google
• If you use a single package with extras, you can try:
pip install --upgrade "livekit-agents[google]"
1. Verify versions after upgrading
◦ Run:
pip show livekit-agents livekit-plugins-google
and confirm both are recent and intended to work together.
1. If you still see the same error
◦ Tell me the versions shown by pip show for both packages.
◦ Also share the first 20 lines of livekit/agents/__init__.py from your venv (path shown in the traceback) so I can confirm whether LanguageCode is defined or exported.
Why this helps: the plugin expects LanguageCode to be exported from livekit.agents. Updating synchronizes the API surface so that symbol is available. If upgrades don’t fix it, I can guide you through checking whether LanguageCode was renamed/moved or suggest a temporary patch you can apply while you align package versions.
Would you like me to walk you through upgrading now and checking versions?
Sources: Google Cloud STT plugin guide | LiveKit Documentation | Agents Framework | livekit/livekit_composite | DeepWiki