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
^CException ignored in: <module 'threading' from '/home/mihai/libs/miniconda3/envs/deadlock/lib/python3.11/threading.py'>
Traceback (most recent call last):
File "/home/mihai/libs/miniconda3/envs/deadlock/lib/python3.11/threading.py", line 1590, in _shutdown
lock.acquire()
KeyboardInterrupt:
The text was updated successfully, but these errors were encountered:
Meehai
changed the title
deadlock when using flask and libsql
deadlock when using flask and libsql with local db (works fine with stock sqlite3 library)
Sep 22, 2024
I feel like I'm using the library wrong, i expected just to find & replace my sqlite3.Connection() stuff with libsql (and a bunch of fetchrows() to .rows and remove some cursor which is quite mechanical anyway) and "just work", but apparently it's more than that. I already have a >1k loc flask code that works fine with the stock sqlite, so moving to turso/libsql seems a bit harder than I hoped for.
minimal repro i could come up with. Tested on python 3.11 (created via
conda create -n deadlock python=3.11 anaconda
)run via:
python main.py [sqlite3/libsql]
Versions:
Upon ctrl+c:
The text was updated successfully, but these errors were encountered: