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

Oleg Broytman phd at phd.pp.ru
Mon Mar 8 23:52:41 CET 2010


On Mon, Mar 08, 2010 at 05:28:10PM -0500, Darren Govoni wrote:
> 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

   Darren, try to pass check_same_thread=False when creating a connection.

Oleg.
-- 
     Oleg Broytman            http://phd.pp.ru/            phd at phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.


More information about the Python-Dev mailing list