coleifer / pysqlite3

SQLite3 DB-API 2.0 driver from Python 3, packaged separately, with improvements
zlib License
183 stars 51 forks source link

version 0.5.1 references non-existing PyUnicode_FromSTring #63

Closed swinkels closed 1 year ago

swinkels commented 1 year ago

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.

This reference to FromSTring is in https://github.com/coleifer/pysqlite3/blob/9c3777df848e335e84027e96b321d6d60d352e41/src/connection.c#L1252

coleifer commented 1 year ago

0.5.2 should be up on pypi now, thank you so much for reporting.

swinkels commented 1 year ago

Wow, thanks, that was quick!