crewAIInc / crewAI

Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.
https://crewai.com
MIT License
19.72k stars 2.73k forks source link

Cannot install crewai[tools] #595

Closed Tibiritabara closed 3 weeks ago

Tibiritabara commented 4 months ago

CrewAI has a dependency on top of embedchain. Latest embedchain (0.1.103) requires ChromaDB with version >= 0.5.0 while crewai-tools depends on versions <= 0.5.0. This dependency conflict does not allow me to install crewai-tools.

slavakurilyak commented 4 months ago

Use poetry to resolve the deps

Tibiritabara commented 4 months ago

I did this with Poetry. This is the error log:

Because no versions of crewai-tools match >0.2.5,<0.3.0
 and crewai-tools (0.2.5) depends on chromadb (>=0.4.22,<0.5.0), crewai-tools (>=0.2.5,<0.3.0) requires chromadb (>=0.4.22,<0.5.0).
And because embedchain (0.1.103) depends on chromadb (>=0.5.0,<0.6.0)
 and no versions of embedchain match >0.1.103,<0.2.0, crewai-tools (>=0.2.5,<0.3.0) is incompatible with embedchain (>=0.1.103,<0.2.0).
So, because temporal-python-worker depends on both embedchain (^0.1.103) and crewai-tools (^0.2.5), version solving failed.

As seen, it crashes with the chromaDB version used in embedchain lib

stivaldj commented 4 months ago

I did this with Poetry. This is the error log:

Because no versions of crewai-tools match >0.2.5,<0.3.0
 and crewai-tools (0.2.5) depends on chromadb (>=0.4.22,<0.5.0), crewai-tools (>=0.2.5,<0.3.0) requires chromadb (>=0.4.22,<0.5.0).
And because embedchain (0.1.103) depends on chromadb (>=0.5.0,<0.6.0)
 and no versions of embedchain match >0.1.103,<0.2.0, crewai-tools (>=0.2.5,<0.3.0) is incompatible with embedchain (>=0.1.103,<0.2.0).
So, because temporal-python-worker depends on both embedchain (^0.1.103) and crewai-tools (^0.2.5), version solving failed.

As seen, it crashes with the chromaDB version used in embedchain lib

same here

MarcoLooy commented 4 months ago

Is there a solution?

uditapatelgithub commented 4 months ago

I just downgraded my python to 3.11.9 and then it downloaded all fine. The latest versions of crewai still have this issue especially if you are on newer than 3.11 python versions

refdataco-jt commented 3 months ago

I'm using pipenv and came across the same issue. I can however install crewai-tools. I'm also running python 3.11.8

nigel-daniels commented 2 months ago

Is there a fix for this? I'm attempting to build a docker container to run a crew in and I hit this defect :(

github-actions[bot] commented 1 month ago

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] commented 3 weeks ago

This issue was closed because it has been stalled for 5 days with no activity.