View Single Post
Old 10-04-2019, 05:40 PM   #1
hydin
Connoisseur
hydin doesn't litterhydin doesn't litter
 
Posts: 66
Karma: 186
Join Date: Nov 2008
Device: Paperwhite, Nook Glowlight 3
Question CAlibre 4.0 - Can't open database file errors

Upgraded to 4.0, tried to add some books and got an error (pasted below), went to library maintenance and check library, got the same sort of error about not being able to open the database file.

Code:
alibre, version 4.0.0
ERROR: Errors while adding: Failed to add any books, click "Show details" for more information


----------------------------------------------------------------------
Failed to add the book: Asteroid Discovery: A Gunner Fox Trilogy (The Asteroid Series Book 1)
	C:\Users\Chris\Downloads\As05teroidDiscoveryAGunnerFoxTrilogyT.epub
With error:
Traceback (most recent call last):
  File "site-packages\calibre\gui2\add.py", line 414, in add_book
  File "site-packages\calibre\db\legacy.py", line 225, in create_book_entry
  File "site-packages\calibre\db\cache.py", line 62, in call_func_with_lock
  File "site-packages\calibre\db\cache.py", line 1580, in create_book_entry
  File "site-packages\calibre\db\backend.py", line 874, in execute
  File "c:\t\t\apsw-tti2z1cq\src\cursor.c", line 236, in resetcursor
CantOpenError: CantOpenError: unable to open database file


Code:
calibre, version 4.0.0
ERROR: Failed: Database integrity check failed, click Show details for details.

Traceback (most recent call last):
  File "site-packages\calibre\gui2\dialogs\check_library.py", line 54, in vacuum
  File "site-packages\calibre\db\cache.py", line 62, in call_func_with_lock
  File "site-packages\calibre\db\cache.py", line 2076, in vacuum
  File "site-packages\calibre\db\backend.py", line 1145, in vacuum
  File "site-packages\calibre\db\backend.py", line 874, in execute
  File "c:\t\t\apsw-tti2z1cq\src\cursor.c", line 236, in resetcursor
CantOpenError: CantOpenError: unable to open database file
Also happens if I try to swap libraries or read a book in the program.

Any ideas on if I did something weird or wrong?

Thanks!
Chris

Last edited by hydin; 10-04-2019 at 05:45 PM.
hydin is offline   Reply With Quote