Edgewall Software

Changes between Version 27 and Version 28 of PySqlite


Ignore:
Timestamp:
May 5, 2007, 1:43:23 AM (17 years ago)
Author:
asmodai@…
Comment:

Add documentation about Python, sqlite2 and FreeBSD needing threads.

Legend:

Unmodified
Added
Removed
Modified
  • PySqlite

    v27 v28  
    118118PySqlite is version 2 (2.3.2), compiled and linked to use version SQLite 3.1.3.
    119119
     120Another way to test the bindings with PySqlite 2 is to use:
     121{{{
     122>>> from pysqlite2 import dbapi2 as sqlite
     123}}}
     124
     125This test should not fail.
     126
    120127=== Common ''Oops'' ===
    121128
     
    226233A common mistake is to install PySqlite for one Python interpreter, and run the server with another Python interpreter: both interpreters do not use the same paths to search for modules.
    227234
     235==== _sqlite.so: Undefined symbol "PyGILState_Ensure" ====
     236
     237If after the import test you encounter this message it most likely means that your Python was not compiled with threads support. On FreeBSD this is easily verified by doing a {{{grep -i threads /var/db/ports/python24/options}}}. If it comes back with a {{{WITHOUT_THREADS=true}}} you need to configure Python to be compiled with threads by executing {{{make config}}} in the appropriate Python ports directory and subsequently recompile and replace Python.
     238
    228239=== Other issues ===
    229240