Closed wgalbreath closed 2 years ago
The no such table: users
line indicates that there has never been a CREATE TABLE users
command run on this database file. This would happen if you are loading an empty database file that was not created with db_create.py
. The most likely cause of this problem is that your paths are messed up, and you need to cd
into the right folder before running your python commands.
Hi Mike,
I am experiencing this
sqlite3.OperationalError
in myproject.py
file that just started happening yesterday (even though my website/code was running fine the previous few days). I don't think I changed anything about my code that might've caused it.I am not sure if I should just fix this with a
try / except
clause but wanted to see your thoughts since we did not have to do that in class. This error has also shown up on the other lines withcur.execute(sql)
. Please let me know what you think!Thank you for your help! William