chroma-core / chroma

the AI-native open-source embedding database
https://www.trychroma.com/
Apache License 2.0
15.41k stars 1.29k forks source link

[Bug]: fail to send the telemetry #2235

Open sorydi3 opened 5 months ago

sorydi3 commented 5 months ago

What happened?

2024-05-22 11:18:03,656 - 132642129839936 - posthog.py-posthog:59 - ERROR: Failed to send telemetry event CollectionQueryEvent: module 'chromadb' has no attribute 'get_settings'

Versions

Chroma v0.4.24, Python 3.11.4 OS: (github codspaces)

Relevant log output

2024-05-22 11:41:02,524 - 135093109909312 - posthog.py-posthog:59 - ERROR: Failed to send telemetry event ClientStartEvent: module 'chromadb' has no attribute 'get_settings'
2024-05-22 11:41:02,546 - 135093109909312 - posthog.py-posthog:59 - ERROR: Failed to send telemetry event ClientCreateCollectionEvent: module 'chromadb' has no attribute 'get_settings'
2024-05-22 11:41:02,547 - 135093109909312 - posthog.py-posthog:59 - ERROR: Failed to send telemetry event ClientCreateCollectionEvent: module 'chromadb' has no attribute 'get_settings'
2024-05-22 11:41:02,829 - 135093109909312 - posthog.py-posthog:59 - ERROR: Failed to send telemetry event ClientCreateCollectionEvent: module 'chromadb' has no attribute 'get_settings'
2024-05-22 11:41:02,838 - 135093109909312 - posthog.py-posthog:59 - ERROR: Failed to send telemetry event ClientStartEvent: module 'chromadb' has no attribute 'get_settings'
2024-05-22 11:41:02,855 - 135093109909312 - posthog.py-posthog:59 - ERROR: Failed to send telemetry event ClientCreateCollectionEvent: module 'chromadb' has no attribute 'get_settings'
2024-05-22 11:41:02,856 - 135093109909312 - posthog.py-posthog:59 - ERROR: Failed to send telemetry event ClientCreateCollectionEvent: module 'chromadb' has no attribute 'get_settings'
tazarov commented 5 months ago

@sorydi3, a user on the Chroma community, was recently experiencing a similar issue. Here is the discord link - https://discord.com/channels/1073293645303795742/1242488989538193509. The problem there was related to sqlite3 version not being compatible. To check for that, can you start python repl:

python3
>>> import chromadb

Let me know if the above returns an import error that complains about sqlite3.

C-o-m-o-n commented 3 months ago

@tazarov, it's true the import returns an error:

import chromadb Traceback (most recent call last): File "", line 1, in File "/workspaces/katifunza/venv/lib/python3.11/site-packages/chromadb/init.py", line 79, in 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.

sorydi3 commented 3 months ago

I used the following steps in order to fix the issue. basically you'll need to override the sqlite3 version installed in your system by copying the python code provided in the gist to your chromadb __init__.py and also pip install pysqlite3-binary .

hope this help.

https://gist.github.com/defulmere/8b9695e415a44271061cc8e272f3c300

[https://docs.trychroma.com/troubleshooting](chroma FAQs)