Your system has an unsupported version of sqlite3

Hi, I’m trying to deploy a flask app but I am getting this error:
RuntimeError: Your system has an unsupported version of sqlite3. Chroma requires sqlite3 >= 3.35.0.

I am using specifiyng python-3.11.7 in my runtime file. I tried dinamically replace the sqlite3 module with the pysqlite3 like this:

import(‘pysqlite3’)
import sys
sys.modules[‘sqlite3’] = sys.modules.pop(‘pysqlite3’)

Currently using chromadb==0.5.0 .

Any ideas/suggestions?

I think just adding sqlite3 >= 3.35.0 to your reuirementes.txt file should be enough.

Did you find a solution for this?
Adding sqlite3 >= 3.35.0 to requirements.txt ends in a failed deployment for me.

Can you try to use the chromadb version 0.3.29?

1 Like

Actually this worked. Thanks!

Umm, coming back to you as with chromdb version 0.3.29 I can’t retrieve any of my docs (basically I’m using chromadb for my RAG system for an AI app).
It didn’t get that error “sqlite3 >= 3.35.0”, that’s right but it messed up my system and I can’t get any prints in my debug, so I could know what to change in order to make it right with that version.

Does this mean Koyeb doesn’t accept chromadb version higher than 0.3.29, so I should look at other solution rather than chromadb?

Another suggestion is to:

  • add pysqlite3-binary in to file requirements.txt.
  • add to the top of your app
__import__('pysqlite3')
import sys
sys.modules['sqlite3'] = sys.modules.pop('pysqlite3')