crewAI icon indicating copy to clipboard operation
crewAI copied to clipboard

Support for LangChain `0.1.0`

Open younes-io opened this issue 1 year ago • 1 comments

I got this when I upgraded LangChain

Installing collected packages: langchain
  Attempting uninstall: langchain
    Found existing installation: langchain 0.0.354
    Uninstalling langchain-0.0.354:
      Successfully uninstalled langchain-0.0.354
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
crewai 0.1.24 requires langchain<0.0.355,>=0.0.354, but you have langchain 0.1.0 which is incompatible.
Successfully installed langchain-0.1.0

[notice] A new release of pip is available: 23.3.1 -> 23.3.2
[notice] To update, run: pip install --upgrade pip
Note: you may need to restart the kernel to use updated packages.

younes-io avatar Jan 10 '24 10:01 younes-io

@joaomdmoura Is there anything blocking a bump to langchain 0.1.0 ? I can upgrade this today if not

greysonlalonde avatar Jan 10 '24 15:01 greysonlalonde

Please consider using vanilla Python to avoid these types of langchain dependency issues.

SeaDude avatar Jan 11 '24 05:01 SeaDude

@SeaDude this is not feasible for a variety of reasons - however, I want to clarify that there is no dependency issue with langchain as the supported versions are clearly specified in the pyproject.toml file.

greysonlalonde avatar Jan 11 '24 07:01 greysonlalonde