You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File ".venv/lib/python3.8/site-packages/posuto/posuto.py", line 38, in get
return get(code, self._db)
File ".venv/lib/python3.8/site-packages/posuto/posuto.py", line 75, in get
base = dict(_fetch_code(code))
File ".venv/lib/python3.8/site-packages/posuto/posuto.py", line 41, in _fetch_code
db.execute("select data from postal_data where code = ?", (code,))
sqlite3.ProgrammingError: SQLite objects created in a thread can only be used in that same thread. The object was created in thread id 140153315018560 and this is thread id 140153219274496.
The text was updated successfully, but these errors were encountered:
現象
以下の記述を行い、マルチスレッド環境から呼び出しを行うと
qlite3.ProgrammingError: SQLite objects created in a thread can only be used in that same thread.
というExceptionが発生する。
https://github.com/polm/posuto#multi-threaded-environments
トレース
ファイル名一部省略しています
The text was updated successfully, but these errors were encountered: