try this: import sqlite3 con = sqlite3.connect("any string here") and there is no error reported. You will get an error you do some operations on the database which is confusing. I think sqlite3 should change this behavior.