Problem:
After installing chromadb, when we try to start it using the command
chroma run --host localhost --port 8000 --path /home/user/chromadata
Its give this error:
Traceback (most recent call last): File "/home/dheeyantra/.local/bin/chroma", line 5, in <module> from chromadb.cli.cli import app File "/home/dheeyantra/.local/lib/python3.8/site-packages/chromadb/__init__.py", line 79, in <module> raise RuntimeError( RuntimeError: Your system has an unsupported version of sqlite3. Chroma requires sqlite3 >= 3.35.0. Please visit https://docs.trychroma.com/troubleshooting#sqlite to learn how to upgrade.
Fix:
pip install pysqlite3-binary vi ~/.local/lib/python3.8/site-packages/chromadb/__init__.py #add these lines to the TOP OF THE FILE and save it. __import__('pysqlite3') import sys sys.modules['sqlite3'] = sys.modules.pop('pysqlite3')
Start the chromadb. Should work now.

Sreekumar (KJ) has been a hobby programmer from school days. Codemarvels is his personal blog from the year 2010, where he writes about technology, philosophy, society and a bit about physics.
He now runs a conversational AI company – DheeYantra – focusing his efforts to help businesses improve operational efficiency using digital employees powered by AI.
Leave a Reply