Python SQLite: database is locked

后端 未结 20 1204
一生所求
一生所求 2020-12-12 14:24

I\'m trying this code:

import sqlite

connection = sqlite.connect(\'cache.db\')
cur = connection.cursor()
cur.execute(\'\'\'create table item
  (id integer p         


        
20条回答
  •  旧时难觅i
    2020-12-12 15:01

    Turned out the problem happened because the path to the db file was actually a samba mounted dir. I moved it and that started working.

提交回复
热议问题