crewAIInc / crewAI

Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.
https://crewai.com
MIT License
18.98k stars 2.61k forks source link

Your system has an unsupported version of sqlite3. #989

Open KGKallasmaa opened 1 month ago

KGKallasmaa commented 1 month ago

Hey, I was trying to create a simple crew ai + fastapi application, and I ran into this issue.

RuntimeError: Your system has an unsupported version of sqlite3. Chroma requires sqlite3 >= 3.35.0.

Versions: [tool.poetry.dependencies] python = ">=3.10,<3.13" uvicorn = "^0.30.3" crewai = "^0.41.1" fastapi = "^0.111.1"

theCyberTech commented 1 month ago

Hi @KGKallasmaa What OS are you using?

Are you running your crew in a clean Virtual env?

goran-ristic-dev commented 1 month ago

@KGKallasmaa

Had a same issue when running other app on public cloud. This issue is due to your os system setup and/or python version, and chromadb requirements.

You can try following:

  1. add/ install: pysqlite3-binary ~= 0.5.2 to your requirements 2 . add to the top of the main file: import sqlite3 import pysqlite3 import sys sys.modules['sqlite3'] = sys.modules.pop('pysqlite3')

    this should hot swap incompatible version of sqlite3

if it doesn't work, try upgrading your python version. (with steps above) On a public cloud which I have used or embedchain app it started to work with python 3.12
Let me know if you have succeeded.