ccbogel / QualCoder

Qualitative data analysis for text, images, audio, video. Cross platform. Python 3.10 or newer and PyQt6.
https://qualcoder.wordpress.com/
GNU Lesser General Public License v3.0
383 stars 85 forks source link

install requirements chromadb==0.5.0 #941

Closed ccbogel closed 1 month ago

ccbogel commented 1 month ago

Describe the bug :
ERROR: Cannot install -r requirements.txt (line 20) and chromadb==0.5.0 because these package versions have conflicting dependencies.

The conflict is caused by: The user requested chromadb==0.5.0 langchain-chroma 0.1.0 depends on chromadb<0.5.0 and >=0.4.0

To fix this you could try to:

  1. loosen the range of package versions you've specified
  2. remove package versions to allow pip to attempt to solve the dependency conflict

To Reproduce :
in (env) installing requirements.txt python3 -m pip install requirments.txt

Expected behavior :
No conflict

Screenshots :
image

Desktop (please complete the following information):

ccbogel commented 1 month ago

Fixed by changing to: chromadb>0.4.0

kaixxx commented 1 month ago

There is a problem with the current version 0.5.4 of chroma on Windows: https://github.com/chroma-core/chroma/issues/2513 To make sure that this is not used, I would suggest changing the requirements to: chromadb>=0.4.0,<=0.5.0

kaixxx commented 1 month ago

langchain-chroma 0.1.0 depends on chromadb<0.5.0 and >=0.4.0

In trying to solve the other problem you've got, I've realized that you are using a quite old version of langchain-chroma (0.1.0). I am using 0.1.2, the latest version is 0.1.4 (tested, works too). Chromadb 0.4.0 on the other hand gave me several issues. So I would suggest upgrading to langchain-chroma 0.1.2 and chromadb 0.5.0