```Traceback (most recent call last): File "/ho...
# ask-ai
n
Copy code
Traceback (most recent call last):

  File "/home/unifier/app.py", line 7, in <module>

    from transcriptor import setup_dictation

  File "/home/unifier/transcriptor.py", line 11, in <module>

    from livekit_utils import get_vad

  File "/home/unifier/livekit_utils.py", line 17, in <module>

    from livekit.plugins import azure, elevenlabs, openai, google, anthropic, zafarlabs

  File "/usr/local/lib/python3.13/site-packages/livekit/plugins/google/__init__.py", line 22, in <module>

    from . import beta, realtime, tools

  File "/usr/local/lib/python3.13/site-packages/livekit/plugins/google/beta/__init__.py", line 1, in <module>

    from .. import realtime

  File "/usr/local/lib/python3.13/site-packages/livekit/plugins/google/realtime/__init__.py", line 2, in <module>

    from .realtime_api import RealtimeModel

  File "/usr/local/lib/python3.13/site-packages/livekit/plugins/google/realtime/realtime_api.py", line 18, in <module>

    from livekit.agents import APIConnectionError, LanguageCode, llm, utils

ImportError: cannot import name 'LanguageCode' from 'livekit.agents' (/usr/local/lib/python3.13/site-packages/livekit/agents/__init__.py)
below one is my requirement txt
Copy code
numpy
setuptools>=75.0.0
aiohttp
livekit==1.0.23
livekit-api
livekit-agents[openai, cartesia, elevenlabs, deepgram, silero, turn-detector, mcp, google, anthropic, azure]==1.3.10
livekit-plugins-openai
livekit-plugins-silero
python-dotenv
livekit-plugins-aws[realtime]
httpx
requests
t
Thanks for reaching out, Darshak. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks — I see the ImportError is coming from the Google plugin trying to import
LanguageCode
from
livekit.agents
, and your requirements pin
livekit-agents==1.3.10
. That error means
LanguageCode
is not present in the installed
livekit-agents
package version, so the Google realtime plugin can't find the symbol it expects. What you can do next 1. Upgrade
livekit-agents
to a newer release that exports
LanguageCode
. For example: ◦ Run:
Copy code
pip install --upgrade livekit-agents
• Or pin to a newer known version in your requirements (replace with a specific newer version if you prefer), for example:
Copy code
livekit-agents[openai, cartesia, elevenlabs, deepgram, silero, turn-detector, mcp, google, anthropic, azure]==1.4.1
1. After upgrading, reinstall dependencies and re-run your app to confirm the import error is resolved: ◦ If you use a virtual environment: recreate it or run
pip install -r requirements.txt
after updating the file. ◦ If you still see errors, capture the new traceback and share it. If you prefer not to upgrade • You can remove the Google plugin import usage (or the
livekit-plugins-google
package) if you don't need Google STT/realtime features. That avoids loading the plugin that expects
LanguageCode
. • Or install a version of the Google plugin that matches
livekit-agents==1.3.10
(this is more brittle; upgrading agents is simpler). Quick diagnostics I can help with • If upgrading doesn't fix it, please share: ◦ The output of
pip show livekit-agents
(version, location) ◦ The exact import line that fails after upgrade (new traceback) ◦ Whether you're using a virtualenv/container (so I can suggest clean reinstall steps) I can guide you through the upgrade and verification commands step-by-step if you want. Sources: Google Cloud STT plugin guide | LiveKit Documentation | Sarvam STT plugin guide | LiveKit Documentation