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
18.45k stars 2.54k forks source link

Issue with langchain community plugin #782

Open idealley opened 2 months ago

idealley commented 2 months ago

I cannot install crewai with poetry while it was perfectly working last week. I have the following error:

Because no versions of langchain-community match >0.2.5,<0.3.0
 and langchain-community (0.2.5) depends on langchain (>=0.2.5,<0.3.0), langchain-community (>=0.2.5,<0.3.0) requires langchain (>=0.2.5,<0.3.0).
And because crewai[tools] (0.30.11) depends on langchain (>=0.1.10,<0.2.0)
 and no versions of crewai match >0.30.11,<0.31.0, langchain-community (>=0.2.5,<0.3.0) is incompatible with crewai[tools] (>=0.30.11,<0.31.0).
So, because reports depends on both crewai[tools] (^0.30.11) and langchain-community (^0.2.5), version solving failed.
saqib727 commented 2 months ago

there are version conflicts between the packages crewai, langchain-community, and potentially other dependencies (langchain and reports).

saqib727 commented 2 months ago

crewai[tools] requires langchain version >=0.1.10,<0.2.0. langchain-community version 0.2.5 requires langchain version >=0.2.5,<0.3.0

idealley commented 2 months ago

Can this be upgraded on crew ai side?

saqib727 commented 2 months ago

I think so. try with the versions in a given range.

afc-development commented 1 month ago

I agree we are are also seeing these issues in our installation.

Because no versions of langchain-community match >0.2.6,<0.3.0 and langchain-community (0.2.6) depends on langchain (>=0.2.6,<0.3.0), langchain-community (>=0.2.6,<0.3.0) requires langchain (>=0.2.6,<0.3.0). And because crewai (0.32.2) depends on langchain (>=0.1.10,<0.2.0), langchain-community (>=0.2.6,<0.3.0) is incompatible with crewai (0.32.2). So, because crew-ai-backend depends on both crewai (0.32.2) and langchain-community (^0.2.6), version solving failed.

The langchain dependency needs to be updated

Stephen-Hamilton-C commented 1 month ago

Ran into this issue as well. I was able to resolve it by upgrading crewai to 0.36.0

github-actions[bot] commented 3 days 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.