polm / posuto

🏣📮〠 Japanese postal code data.
MIT License
204 stars 11 forks source link

sqlite3.ProgrammingError: SQLite objects created in a thread can only be used in that same thread. #15

Closed 284nnuS closed 2 years ago

284nnuS commented 2 years ago

sqlite3.ProgrammingError: SQLite objects created in a thread can only be used in that same thread. The object was created in thread id 140315925653312 and this is thread id 140314941372160. It's my full error in this trouble when i trying to use posuto on Ubuntu through WSL. It's working good on window but when I'm try to use on Ubuntu i get a trouble.

polm commented 2 years ago

Did you see the section on multithreading in the README?

I think that should resolve your issue, but if not please share a code sample that shows the problem.

284nnuS commented 2 years ago

Yeah, thanks. I'm resolved it .