I have written the following code, which is showing the sqlite3.OperationalError: database is locked error. Any help to debug would be much appreciated.
cursor2 = conn.cursor()
cursor3 = conn.cursor()
cursor4 = conn.cursor()
I think you have to close the connection which you have opened,may be the error is because of that cause you have opened multiple connections.
cursor2 = conn.cursor()
"""EDIT YOUR DATABASE USING CODE AND CLOSE THE CONNECTION"""
connection.close()
cursor3 = conn.cursor()
"""EDIT YOUR DATABASE USING CODE AND CLOSE THE CONNECTION"""
connection.close()
cursor4 = conn.cursor()
"""EDIT YOUR DATABASE USING CODE AND CLOSE THE CONNECTION"""
connection.close()