cirediatpl / FigmaChain

FigmaChain is a set of Python scripts that generate HTML/CSS code based on Figma designs. Using OpenAI's GPT-3 model, FigmaChain enables developers to quickly generate HTML/CSS code from a Figma design input. It also includes a Streamlit-based chatbot interface for interactive code generation.
952 stars 87 forks source link

issue with chromadb #5

Open kartheekyakkala opened 1 year ago

kartheekyakkala commented 1 year ago

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 :).

huanshare commented 1 year ago

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 ???

dev-dux commented 9 months ago

Try pip install chromadb==0.3.29.