Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复可能在linux出现的sqlite3版本不适配问题。 #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

E-sion
Copy link

@E-sion E-sion commented Nov 25, 2023

在Debian10和Ubuntu 20.04.6 LTS调用Haruhi库时均得到以下报错:

Traceback
from .ChatHaruhi import ChatHaruhi
File "/root/needy/ChatHaruhi/ChatHaruhi.py", line 1, in 
from .ChromaDB import ChromaDB
File "/root/needy/ChatHaruhi/ChromaDB.py", line 2, in 
import chromadb
File "/usr/local/lib/python3.8/dist-packages/chromadb/__init__.py", line 78, 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.

原因是部分Linux较旧的分发版内置的sqlite3小于项目所需版本。

安装pysqlite-binary后即可让项目调用该库自带的pysqlite3。

在Debian10和Ubuntu 20.04.6 LTS调用Haruhi库时均得到以下报错:

```Traceback
from .ChatHaruhi import ChatHaruhi
File "/root/needy/ChatHaruhi/ChatHaruhi.py", line 1, in 
from .ChromaDB import ChromaDB
File "/root/needy/ChatHaruhi/ChromaDB.py", line 2, in 
import chromadb
File "/usr/local/lib/python3.8/dist-packages/chromadb/__init__.py", line 78, 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.
```
原因是部分Linux较旧的分发版内置的sqlite3小于项目所需版本。

安装`pysqlite-binary`后即可让项目调用该库自带的pysqlite3。
@LC1332
Copy link
Owner

LC1332 commented Nov 30, 2023

@hhhwmws0117 你测一下哈~~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants