[Python-Dev] Building thread-safe sqlite3 with Python 2.6.5rc1

"Martin v. Löwis" martin at v.loewis.de
Mon Mar 8 23:39:19 CET 2010


> Which is correct. Yet when I run my progam using the newly built python
> executable and attempt to use sqlite3
> functionality across threads it still says:
> 
> ProgrammingError: SQLite objects created in a thread can only be used in
> that same thread.The object was created in thread id -1217128768 and
> this is thread id -1218753680
> 
> I set the -DSQLITE_THREADSAFE=1 flag on sqlite3 when I configured, built
> and installed the lib.

So you'll need to run Python in a debugger, trying to find out under
what conditions the exception is raised.

This kind of question is off-topic for python-dev (which is about
development of Python, not about using it).

Regards,
Martin


More information about the Python-Dev mailing list