davidpeckham / vin

Validate and decode Vehicle Identification Numbers

Home Page:https://vin.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SQLite Multithread Error

DaThresh opened this issue · comments

I'm receiving the following Error message when decoding a VIN using a Flask App served by Waitress:

sqlite3.ProgrammingError: SQLite objects created in a thread can only be used in that same thread. The object was created in thread id 8083607552 and this is thread id 11711803392.

From my understanding, it's a simple issue of the check_same_thread option upon opening the SQLite connection.

Thanks. I'll release 0.6.0 shortly to fix this.