View Single Post
Old 06-11-2021, 01:21 PM   #1
pepethecow
Junior Member
pepethecow began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jun 2021
Device: Kindle Voyager
Can't add book / can't open database

I ran into this when trying to add a book to my library. The same error happens when I try to open an existing book in my library, but then the book does open.

calibre, version 5.21.0
ERROR: Errors while adding: Failed to add any books, click "Show details" for more information


----------------------------------------------------------------------
Failed to add the book: An Introduction to Machine Learning
D:/username/Desktop/Kubat2017_Book_AnIntroductionToMachineLearnin.epub
With error:
Traceback (most recent call last):
File "calibre\gui2\add.py", line 457, in add_book
File "calibre\db\legacy.py", line 334, in create_book_entry
File "calibre\db\cache.py", line 75, in call_func_with_lock
File "calibre\db\cache.py", line 1698, in create_book_entry
File "calibre\db\backend.py", line 920, in execute
apsw.CantOpenError: CantOpenError: unable to open database file

Any ideas? My database is not on a NAS, just a local disk.
pepethecow is offline   Reply With Quote