FigmaChain icon indicating copy to clipboard operation
FigmaChain copied to clipboard

issue with chromadb

Open kartheekyakkala opened this issue 1 year ago • 2 comments

Screenshot 2023-05-03 at 4 05 50 PM

when I give python generateCode.py it throws this error NameError: name 'chromadb' is not defined . First time it threw module not found error, after I installed it using pip it started throwing this new error NameError. Someone please help me in fixing this.

Thanks in advance :).

kartheekyakkala avatar May 03 '23 10:05 kartheekyakkala

Traceback (most recent call last): File "generateCode.py", line 27, in index = VectorstoreIndexCreator().from_loaders([figma_loader]) File "/Users/admin/Library/Python/3.8/lib/python/site-packages/langchain/indexes/vectorstore.py", line 71, in from_loaders vectorstore = self.vectorstore_cls.from_documents( File "/Users/admin/Library/Python/3.8/lib/python/site-packages/langchain/vectorstores/chroma.py", line 398, in from_documents return cls.from_texts( File "/Users/admin/Library/Python/3.8/lib/python/site-packages/langchain/vectorstores/chroma.py", line 359, in from_texts chroma_collection = cls( File "/Users/admin/Library/Python/3.8/lib/python/site-packages/langchain/vectorstores/chroma.py", line 71, in init raise ValueError( ValueError: Could not import chromadb python package. Please install it with pip install chromadb. how to solve it ???

huanshare avatar Aug 18 '23 08:08 huanshare

Try pip install chromadb==0.3.29.

dev-dux avatar Dec 27 '23 09:12 dev-dux