# Error accessing modules in venv

**URL:** <https://community.crewai.com/t/error-accessing-modules-in-venv/1881>\
**Category:** CrewAI Community Support\
**Created:** [December 7, 2024, 12:14pm UTC](https://community.crewai.com/t/error-accessing-modules-in-venv/1881 "2024-12-07T12:14:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ruben\_Casillas](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/ruben_casillas/32/439_2.png) [@Ruben\_Casillas](https://community.crewai.com/u/Ruben_Casillas)\
**Post date:** [December 7, 2024, 12:14pm UTC](https://community.crewai.com/t/error-accessing-modules-in-venv/1881/1 "2024-12-07T12:14:18Z")

</div>

Hi there,

I am using a brand new version of crewai and I am trying to add a text\_2\_speech tool. I am using an elevenlabs webhook and I am mostly having problems with the audio library.  
The second virtual environment is not finding the python “pydub” library in the tool. I can see it is in the same venv where crewai is installed, not in the one of the agents. WHen I try to install in the one exclusive of the agents, **It says that the requirement is satisfied, but the crew is not able to find the module when it is running.**

I am unsure from where does the crew is accessing the modules.  
How can I better differentiate among these two virtual environments?

Many thanks

---

<div class="post-metadata">

**Author:** ![Ruben\_Casillas](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/ruben_casillas/32/439_2.png) [@Ruben\_Casillas](https://community.crewai.com/u/Ruben_Casillas)\
**Post date:** [December 7, 2024, 3:38pm UTC](https://community.crewai.com/t/error-accessing-modules-in-venv/1881/2 "2024-12-07T15:38:52Z")

</div>

I have a top .venv where my crewai is installed, and where almost everything is installed.  
When I run crewai install I get a second .venv for the agents and I get a warning “warning: `VIRTUAL_ENV=/home/ru/Documents/AgenlyAI/.venv` does not match the project environment path `.venv` and will be ignored”

after installing using pip in both the .venv the crew is not able to find the modules I just installed.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/crewai/original/2X/f/f01dc2ef030337ae8ce379189c2c03bcd2e0283b.png)

Can someone please help.

my full error is:

> Running the Crew  
> warning: `VIRTUAL_ENV=/home/ru/Documents/AgenlyAI/.venv` does not match the project environment path `.venv` and will be ignored  
> /usr/lib/python3/dist-packages/paramiko/pkey.py:82: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.  
> “cipher”: algorithms.TripleDES,  
> /usr/lib/python3/dist-packages/paramiko/transport.py:237: CryptographyDeprecationWarning: Blowfish has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.Blowfish and will be removed from this module in 45.0.0.  
> “class”: algorithms.Blowfish,  
> /usr/lib/python3/dist-packages/paramiko/transport.py:261: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.  
> “class”: algorithms.TripleDES,  
> Traceback (most recent call last):  
> File “/home/ru/Documents/AgenlyAI/agenlyagents/.venv/bin/run\_crew”, line 5, in   
> from agenlyagents.main import run  
> File “/home/ru/Documents/AgenlyAI/agenlyagents/src/agenlyagents/main.py”, line 5, in   
> from agenlyagents.crew import Agenlyagents  
> File “/home/ru/Documents/AgenlyAI/agenlyagents/src/agenlyagents/crew.py”, line 5, in   
> from composio import App  
> ModuleNotFoundError: No module named ‘composio’  
> An error occurred while running the crew: Command ‘[‘uv’, ‘run’, ‘run\_crew’]’ returned non-zero exit status 1.

Many thanks to all

---

<div class="post-metadata">

**Author:** ![rokbenko](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/rokbenko/32/492_2.png) [@rokbenko](https://community.crewai.com/u/rokbenko)\
**Post date:** [December 7, 2024, 5:25pm UTC](https://community.crewai.com/t/error-accessing-modules-in-venv/1881/3 "2024-12-07T17:25:56Z")

</div>

> [@Ruben\_Casillas](#):
>
> ModuleNotFoundError: No module named ‘composio’

How are you adding Composio to the project? Can you please share the code?

---

<div class="post-metadata">

**Author:** ![Ruben\_Casillas](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/ruben_casillas/32/439_2.png) [@Ruben\_Casillas](https://community.crewai.com/u/Ruben_Casillas)\
**Post date:** [December 7, 2024, 5:33pm UTC](https://community.crewai.com/t/error-accessing-modules-in-venv/1881/4 "2024-12-07T17:33:49Z")

</div>

In several ways,  
Install them using pip,

I call them using

> from crewai import Agent, Crew, Process, Task
> 
> from crewai.project import CrewBase, agent, crew, task
> 
> from crewai\_tools import SerperDevTool, ComposioTool
> 
> from langchain\_openai import ChatOpenAI
> 
> from composio import App
> 
> composio\_toolset = ComposioTool()
> 
> tools\_audio = composio\_toolset.from\_app(App.ELEVENLABS, use\_case=“ELEVENLABS\_TEXT\_TO\_SPEECH”)

I then add it to the agent.

i get right away my error message:

> Running the Crew  
> warning: `VIRTUAL_ENV=/home/ru/Documents/AgenlyAI/.venv` does not match the project environment path `.venv` and will be ignored  
> /usr/lib/python3/dist-packages/paramiko/pkey.py:82: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.  
> “cipher”: algorithms.TripleDES,  
> /usr/lib/python3/dist-packages/paramiko/transport.py:237: CryptographyDeprecationWarning: Blowfish has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.Blowfish and will be removed from this module in 45.0.0.  
> “class”: algorithms.Blowfish,  
> /usr/lib/python3/dist-packages/paramiko/transport.py:261: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.  
> “class”: algorithms.TripleDES,  
> Traceback (most recent call last):  
> File “/home/ru/Documents/AgenlyAI/agenlyagents/.venv/bin/run\_crew”, line 5, in   
> from agenlyagents.main import run  
> File “/home/ru/Documents/AgenlyAI/agenlyagents/src/agenlyagents/main.py”, line 5, in   
> from agenlyagents.crew import Agenlyagents  
> File “/home/ru/Documents/AgenlyAI/agenlyagents/src/agenlyagents/crew.py”, line 5, in   
> from composio import App  
> ModuleNotFoundError: No module named ‘composio’  
> An error occurred while running the crew: Command ‘[‘uv’, ‘run’, ‘run\_crew’]’ returned non-zero exit status 1.

---

<div class="post-metadata">

**Author:** ![rokbenko](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/rokbenko/32/492_2.png) [@rokbenko](https://community.crewai.com/u/rokbenko)\
**Post date:** [December 8, 2024, 9:02am UTC](https://community.crewai.com/t/error-accessing-modules-in-venv/1881/5 "2024-12-08T09:02:04Z")

</div>

> [@Ruben\_Casillas](#):
>
> Install them using pip,

Try to install the Composio SDK with the following command:

`uv add composio-core`

You have to execute the command inside the directory where the `uv.lock` file is located.
