python sqlite database error: file is encrypted or is not a database

First of all check that the path to the sqlite database is correct. Failing that, it is probably because the version of sqlite used to create the database is different from the version that Python uses.

On Windows, go to the Python DLLs folder and replace sqlite3.dll with the same version sqlite DLL that created the database file.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s