langflow-ai / langflow

Langflow is a low-code app builder for RAG and multi-agent AI applications. It’s Python-based and agnostic to any model, API, or database.
http://www.langflow.org
MIT License
32.47k stars 3.98k forks source link

bug: mem0ai 0.0.5 requires qdrant-client<2.0.0,>=1.9.1, but you have qdrant-client 1.9.0 which is incompatible. #4250

Open msmygit opened 2 days ago

msmygit commented 2 days ago

Bug Description

using python3 -m pip install langflow -U, I’m getting this error:

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.
mem0ai 0.0.5 requires qdrant-client<2.0.0,>=1.9.1, but you have qdrant-client 1.9.0 which is incompatible.
Successfully installed Events-0.5 aiohappyeyeballs-2.4.3 aiohttp-3.10.10 assemblyai-0.34.0 astra-assistants-2.2.2 certifi-2024.8.30 clarifai-10.8.0 clarifai-grpc-10.9.10 contextlib2-21.6.0 duckduckgo-search-6.3.2 embedchain-0.1.116 gotrue-2.9.3 inquirerpy-0.3.4 langchain-elasticsearch-0.2.2 langflow-1.0.19.post1 langflow-base-0.0.98 langsmith-0.1.86 langwatch-0.1.16 memzero-0.0.7 opensearch-py-2.7.1 pfzy-0.3.4 postgrest-0.17.2 primp-0.6.4 propcache-0.2.0 python-rapidjson-1.20 qdrant-client-1.9.0 realtime-2.0.6 redis-5.1.1 schema-0.7.5 storage3-0.8.2 supabase-2.9.0 supafunc-0.6.2 tritonclient-2.50.0 validators-0.34.0 weaviate-client-4.9.0 yarl-1.16.0 zep-python-2.0.2

[notice] A new release of pip is available: 23.0.1 -> 24.2
[notice] To update, run: pip install --upgrade pip

Reproduction

  1. Create a virtual environment with python 3.10.12
  2. using python3 -m pip install langflow -U, I’m getting this error:
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.
mem0ai 0.0.5 requires qdrant-client<2.0.0,>=1.9.1, but you have qdrant-client 1.9.0 which is incompatible.
Successfully installed Events-0.5 aiohappyeyeballs-2.4.3 aiohttp-3.10.10 assemblyai-0.34.0 astra-assistants-2.2.2 certifi-2024.8.30 clarifai-10.8.0 clarifai-grpc-10.9.10 contextlib2-21.6.0 duckduckgo-search-6.3.2 embedchain-0.1.116 gotrue-2.9.3 inquirerpy-0.3.4 langchain-elasticsearch-0.2.2 langflow-1.0.19.post1 langflow-base-0.0.98 langsmith-0.1.86 langwatch-0.1.16 memzero-0.0.7 opensearch-py-2.7.1 pfzy-0.3.4 postgrest-0.17.2 primp-0.6.4 propcache-0.2.0 python-rapidjson-1.20 qdrant-client-1.9.0 realtime-2.0.6 redis-5.1.1 schema-0.7.5 storage3-0.8.2 supabase-2.9.0 supafunc-0.6.2 tritonclient-2.50.0 validators-0.34.0 weaviate-client-4.9.0 yarl-1.16.0 zep-python-2.0.2

[notice] A new release of pip is available: 23.0.1 -> 24.2
[notice] To update, run: pip install --upgrade pip

Expected behavior

a clean install

Who can help?

@italojohnny @erichare

Operating System

macOS

Langflow Version

1.0.19.post1

Python Version

3.10

Screenshot

No response

Flow File

No response

dosubot[bot] commented 2 days ago

To resolve the dependency conflict error, you need to upgrade your qdrant-client to a version that satisfies both mem0ai and langflow requirements. According to the pyproject.toml file for langflow, it requires qdrant-client~=1.9.2, which means it is compatible with versions >=1.9.2, <2.0.0. Therefore, you should upgrade your qdrant-client to at least version 1.9.2.

You can do this by running the following command:

pip install qdrant-client==1.9.2

This should resolve the dependency conflict by ensuring that both mem0ai and langflow have compatible versions of qdrant-client [1].

To continue talking to Dosu, mention @dosu.