I am trying to run a program to put prices into the database but when I try to write to the database I get an error. I'm using Python3.4 and I have sqlite version 3.7.14.1
import sqlite3
con = sqlite3.connect('/../../stocks.db')
cur = con.cursor()
cur.execute("insert into apple values (?,?)",(price,time))
con.commit()
#error
cur.execute("insert into apple values (?,?)",(price,time))
sqlite3.DatabaseError: file is encrypted or is not a database