Total Beginner - Cannot install CrewAI

Hi,
I’ve tried running the notebook locally but I’m getting the following error messages

I managed ti install crewai removing the version specification but cannot install the crewai tools

1 Like

Running install crewai[tools] without quotation marks solved it but I still get the error RE Failed to build chroma-hnswlib

2 Likes

Did you download all the necessary files required to run these codes on your local environment?

Click File and open, download all the files,

and always try sharing the error you keep getting after trying an attempt to solve your previous error

Regards
DP

Yes, I did download all the files and saved them in a local folder. Mostly it seems to be related to system updates although I did have to run the first line as user to make it work

pip install crewai==0.28.8 crewai_tools==0.1.6 langchain_community==0.0.29 --user

It is all solved now and I’ve managed to run a few trials on my own topics. Many thanks for your fast assistance on this

1 Like

Can you share the screenshot of the latest error you have got

Please, can you help me to install crewai on my MacBook 2019?
I have a similar error and have no way to deal with it, I’ve done everything but every time I get an error
ERROR: Could not build wheels for chroma-hnswlib, which is required to install pyproject.toml-based projects

I’m not much experienced in programming yet, but I’m really looking forward to working with crewai

I have tried a lot of things - and as the author above tried to install through the
pip install crewai==0.28.8 crewai_tools==0.1.6 langchain_community==0.0.29 --user
It didn’t work. I’ve tried following chatGPT’s advice and installing Docker, but to no avail. Maybe you can give me some advice?

I can’t add screenshots and links to the post, can we link through another messages way?

1 Like

you can post screenshot of the error here

I am facing error while importing the libraries
from crewai import Agent, Task, Crew

Error - TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases

please share a screenshot of the error

I cannot share the screenshot but I can provide more details (hope it helps)
When I run from crewai import Agent, Task, Crew I get the following errors

File /opt/conda/lib/python3.10/site-packages/langchain_community/tools/requests/tool.py:49
36 raise ValueError(
37 “You must set allow_dangerous_requests to True to use this tool. "
38 “Request scan be dangerous and can lead to security vulnerabilities. "
(…)
44 “further security information.”
45 )
46 super().init(**kwargs)
—> 49 class RequestsGetTool(BaseRequestsTool, BaseTool):
50 “”“Tool for making a GET request to an API endpoint.”””
52 name: str = “requests_get”

TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases

seems like an API issue with the base tool you are using.

can I know if you running down the codes locally, have downloaded all the files required you to run the codes.

can you share the codes when you tried running down. threw this error.

I am also having this error. I’ve been running the code in this class for several of the examples in my local jupyter notebook with no problems. Now all of sudden when I run the code: “from crewai import Agent, Task, Crew” I get the following error: “TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases”
Something must have changed, but I have no idea of how to troubleshoot this. I have included two screenshots since the output is long. Any help is very much appreciated! …Paul