chroma icon indicating copy to clipboard operation
chroma copied to clipboard

[Bug]: incoorectly detects sqlite3 version

Open fmotta opened this issue 10 months ago • 1 comments

What happened?

Fresh pip install of Chromadb

Screenshot_549

Versions

Windows WSL2, Ubuntu 20.04 with new install of sqlite3 from downloaded deb file Python 3.8.10 (default, Nov 22 2023, 10:22:35) [GCC 9.4.0] on linux

Relevant log output

Python 3.8.10 (default, Nov 22 2023, 10:22:35)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import chromadb
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/geek/.local/lib/python3.8/site-packages/chromadb/__init__.py", line 69, 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.
>>> chroma_client = chromadb.Client()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'chromadb' is not defined
>>>
geek@LAPTOP-A7B8DPRM:~/Ollama/2-ollama-privateGPT-chat-with-docs$ sqlite3 --version
3.45.3 2024-04-15 13:34:05 8653b758870e6ef0c98d46b3ace27849054af85da891eb121e9aaa537f1e8355 (64-bit)

fmotta avatar Apr 21 '24 06:04 fmotta

@fmotta can you try this?

python
# then
import sqlite3
sqlite3.sqlite_version_info

I suspect your system version vs python version are not the same.

For reference, here is where that gets thrown: https://github.com/chroma-core/chroma/blob/ce5c6b35e7ee7b2786eec6e3f5e7c821fb30d844/chromadb/init.py#L65

jeffchuber avatar Apr 22 '24 04:04 jeffchuber

i wrote the following script to fix the issue, it will override the version that is giving you the error with the correct versión. Note: you will need to update the script slightly. script

sorydi3 avatar Jul 12 '24 08:07 sorydi3