小樱 发表于 2018/3/20 06:38

Error: /usr/local/lib/python2.7/site-packages/pysqlite2/_sqlite.so: undefined sy

# flexget check
2018-03-20 06:34 VERBOSEmanager                     Creating new database /etc/flexget/db-config.sqlite - DO NOT INTERUPT ...
FATAL: Unable to use SQLite. Are you running Python 2.7, 3.3 or newer ?
Python should normally have SQLite support built in.
If you're running correct version of Python then it is not equipped with SQLite.
You can try installing `pysqlite`. If you have compiled python yourself, recompile it with SQLite support.
Error: /usr/local/lib/python2.7/site-packages/pysqlite2/_sqlite.so: undefined symbol: sqlite3_stmt_readonly
#

寻找
find / -name _sqlite3.so
我的文件路径
/usr/lib64/python2.6/lib-dynload/_sqlite3.so

cp /usr/lib64/python2.6/lib-dynload/_sqlite3.so /usr/local/lib/python2.7/site-packages/pysqlite2/_sqlite.so

然后出了一个新的报错。。
FATAL: Unable to use SQLite. Are you running Python 2.7, 3.3 or newer ?
Python should normally have SQLite support built in.
If you're running correct version of Python then it is not equipped with SQLite.
You can try installing `pysqlite`. If you have compiled python yourself, recompile it with SQLite support.
Error: dynamic module does not define init function (init_sqlite)

没有解决方案。。

补充,,上面的方法纯属扯淡,下面来个新方法
http://bbs.itzmx.com/thread-85712-1-1.html

页: [1]
查看完整版本: Error: /usr/local/lib/python2.7/site-packages/pysqlite2/_sqlite.so: undefined sy