This message was deleted.
# ask-ai
s
This message was deleted.
t
Thanks for reaching out, Abhishek. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
It looks like the error is happening because the 'inworld' module is part of the
livekit-plugins-inworld
package, which needs to be installed separately. Don’t worry, I’m here to help you through it! Here’s what you can do: 1. First, install the plugin using pip:
pip install "livekit-agents[inworld]~=1.2"
Or, if you prefer, you can install it directly with:
pip install livekit-plugins-inworld
2. Next, double-check the installation by running:
pip show livekit-plugins-inworld
3. Make sure your Python environment is set up correctly and that you’re using the right interpreter. 4. Don’t forget to set your
INWORLD_API_KEY
in a
.env
file and load it in your script using
dotenv
. This step is important for everything to work smoothly. If you’re still running into issues, it might help to look for any conflicting package installations or file names in your project directory. Please feel free to reach out if you need any more guidance—I’m here to support you! Sources: Docs::Agents | livekit-agents/pyproject.toml | avatars/hedra/pipeline_avatar/agent.py
f
[notice] To update, run: D:\llama\zynnex-backend\.venv\Scripts\python.exe -m pip install --upgrade pip (.venv) PS D:\Tharun-09-sep\backend> pip show livekit-plugins-inworld Name: livekit-plugins-inworld Version: 1.2.8 Summary: Agent Framework plugin for voice synthesis with Inworld's API. Home-page: Author: Author-email: LiveKit <hello@livekit.io> License-Expression: Apache-2.0 Location: D:\llama\zynnex-backend\.venv\Lib\site-packages Requires: livekit-agents Required-by: (.venv) PS D:\Tharun-09-sep\backend> still facing the same peoblem
t
It looks like the issue is happening because the installed version of
livekit-plugins-inworld
(1.2.8) is a bit outdated. The
inworld
module actually needs version 1.2.11 or higher to work smoothly. Could you please try upgrading the package by running this command:
Copy code
pip install --upgrade livekit-plugins-inworld
After that, you can double-check the version with:
Copy code
pip show livekit-plugins-inworld
Once it’s updated, give your script another go. If you run into any more trouble, I’m here to help—just let me know!
f
(.venv) PS D:\Tharun-09-sep\backend> pip show livekit-plugins-inworld Name: livekit-plugins-inworld Version: 1.2.11 Summary: Agent Framework plugin for voice synthesis with Inworld's API. Home-page: Author: Author-email: LiveKit <hello@livekit.io> License-Expression: Apache-2.0 Location: D:\llama\zynnex-backend\.venv\Lib\site-packages Requires: livekit-agents Required-by: (.venv) PS D:\Tharun-09-sep\backend> python .\demoagent.py dev Traceback (most recent call last): File "D:\Tharun-09-sep\backend\demoagent.py", line 30, in <module> from livekit.plugins import inworld ImportError: cannot import name 'inworld' from 'livekit.plugins' (unknown location) (.venv) PS D:\Tharun-09-sep\backend>
t
I'm sorry to hear that the
ImportError
is still happening even after upgrading to version 1.2.11. Let’s work through a few things together to get this sorted out: 1. First, please double-check that there aren’t any local files named
livekit.py
or
plugins.py
in your project directory, as these can sometimes cause conflicts with the import. 2. Next, could you try running this command to see if the import works directly in your environment?
python -c "from livekit.plugins import inworld"
3. Also, it would be helpful to verify that the
livekit-plugins-inworld
package is properly installed in your active virtual environment. Make sure its location matches the Python environment you’re currently using. If you still run into issues, please share what you find from these steps, and I’ll be here to help you troubleshoot further. We’ll get this figured out together!
f
(.venv) PS D:\Tharun-09-sep\backend> pip show livekit-plugins-inworld Name: livekit-plugins-inworld Version: 1.2.11 Summary: Agent Framework plugin for voice synthesis with Inworld's API. Home-page: Author: Author-email: LiveKit <hello@livekit.io> License-Expression: Apache-2.0 Location: D:\llama\zynnex-backend\.venv\Lib\site-packages Requires: livekit-agents Required-by: (.venv) PS D:\Tharun-09-sep\backend> python .\demoagent.py dev Traceback (most recent call last): File "D:\Tharun-09-sep\backend\demoagent.py", line 30, in <module> from livekit.plugins import inworld ImportError: cannot import name 'inworld' from 'livekit.plugins' (unknown location) (.venv) PS D:\Tharun-09-sep\backend> python -c "from livekit.plugins import inworld" Traceback (most recent call last): File "<string>", line 1, in <module> from livekit.plugins import inworld ImportError: cannot import name 'inworld' from 'livekit.plugins' (unknown location) (.venv) PS D:\Tharun-09-sep\backend> livekit-plugins-inworld livekit-plugins-inworld : The term 'livekit-plugins-inworld' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + livekit-plugins-inworld + ~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (livekit-plugins-inworld:String) [], CommandNotFoundE xception + FullyQualifiedErrorId : CommandNotFoundException (.venv) PS D:\Tharun-09-sep\backend> livekit.py livekit.py : The term 'livekit.py' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + livekit.py + ~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (livekit.py:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException (.venv) PS D:\Tharun-09-sep\backend> lk -v lk version 2.4.13 (.venv) PS D:\Tharun-09-sep\backend>
t
I don't have the answer you're looking for. You could also try asking your question: • in one of the other Slack channels or • to https://deepwiki.com/livekit/livekit_composite which is trained on all LiveKit source code If you find the answer, please post it here to help others!