解決sqlite3.DatabaseError: file is encrypted or ...

筆者在使用python 處理一sqlite3文件時,出現如下錯誤: html


sqlite3.DatabaseError: file is encrypted or is not a database

使用的sqlite文件路徑是沒有問題的,在: python

http://stackoverflow.com/questions/11456623/using-an-sqlite3-database-with-wal-enabled-python
找到了答案,緣由是這個sqlite開啓了WAL。解決方法是:

I just downloaded the latest version of sqlite from 
http://www.sqlite.org/download.html and overwrote the old .dll 
in my python27/DLL directory.
下載最新版本的sqlite dll文件覆蓋python自帶的dll文件。
相關文章
相關標籤/搜索