what version of sqlite ? import sqlite3 print sqlite3.sqlite_version
for sqlite >=3.7 you can do db.executesql('PRAGMA journal_mode=WAL') to enable wal ( http://www.sqlite.org/draft/wal.html ) and I am sure that you will not get this error anymore, I remember I had something like that some times ago and that worked --