View Single Post
Old 05-31-2021, 11:10 PM   #7
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,729
Karma: 169712580
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by medownunder View Post
Thanks for the quick response!

The first error message is:

Spoiler:
calibre, version 5.19.0
ERROR: Failed to create library: Failed to create calibre library at: 'C:\\Users\\Bryan\\Documents\\Calibre Library'.
You will be asked to choose a new library location.
Traceback (most recent call last):
File "calibre\gui2\main.py", line 182, in get_library_path
File "os.py", line 223, in makedirs
FileNotFoundError: [WinError 2] The system cannot find the file specified: 'C:\\Users\\Bryan\\Documents\\Calibre Library'


When I click "OK" and choose my Documents folder then I get:
"The library database at C:\Users\Bryan\Documents appears to be corrupted. Do you want calibre to try to and rebuild it automatically?"

When I click "Yes" I get:
Spoiler:
calibre, version 5.19.0
ERROR: Failed to repair library: Restoring database failed, click "Show details" to see details
Traceback (most recent call last):
File "calibre\db\restore.py", line 129, in run
File "calibre\db\restore.py", line 286, in replace_db
File "shutil.py", line 261, in copyfile
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\Bryan\\Documents\\metadata.db'
I would recommend moving your calibre library outside of your Documents folder. Windows attempts to protect that folder so it would be easier to disconnect the library (the Remove library option) from calibre, move it to a new directory (call it calibre ) in your C:\Users\Bryan directory so C:\Users\Bryan\calibre\Calibre Library and then reconnect the library to calibre (under the Library icon, Switch/create library, browse to the new library location and make sure the radio button for Use the previously existing library at the new location is selected.

After that, you can do the check and restore if needed on the database.

Last edited by DNSB; 05-31-2021 at 11:13 PM.
DNSB is offline   Reply With Quote