简体   繁体   中英

txtai.database.sql.base.SQLError: no such function: json_extract

Using TxtAI python module with sql query SELECT id, text, score, solution_id, column_name FROM txtai WHERE similar('{query}') AND score >= 0.5 , I am seeing this error txtai.database.sql.base.SQLError: no such function: json_extract

I am trying to use dynamic search using TxtAI module, which uses a SQL based context manager but it is not working as expected.

This are working perfectly on my widows machine, but the same is not happening on the CentOS server. I have tried to maintain all the modules and packages versions same using requirement.txt files.

This issue usually is a result of the version of Python having an older version of SQLite compiled in.

What version of CentOS/Python are you using?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM