When I installed the latest pyqslite3 version, 0.5.1, I got the following stack trace when I imported pyqslite3:
File "/home/user/test/.venv/lib/python3.9/site-packages/my-package/data_store.py", line 15, in <module>
import pysqlite3 as sql
File "/home/user/test/.venv/lib/python3.9/site-packages/pysqlite3/__init__.py", line 23, in <module>
from pysqlite3.dbapi2 import *
File "/home/user/test/.venv/lib/python3.9/site-packages/pysqlite3/dbapi2.py", line 28, in <module>
from pysqlite3._sqlite3 import *
ImportError: /home/user/test/.venv/lib/python3.9/site-packages/pysqlite3/_sqlite3.cpython-39-x86_64-linux-gnu.so: undefined symbol: PyUnicode_FromSTring
Note the capital T in FromSTring. I guess this should be PyUnicode_FromString.
When I installed the latest pyqslite3 version, 0.5.1, I got the following stack trace when I imported pyqslite3:
Note the capital
T
inFromSTring
. I guess this should bePyUnicode_FromString
.This reference to
FromSTring
is in https://github.com/coleifer/pysqlite3/blob/9c3777df848e335e84027e96b321d6d60d352e41/src/connection.c#L1252