![]() |
#1 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 392
Karma: 1008414
Join Date: Jun 2011
Device: Kindle
|
Error when switching libraries
Tonight I consolidated 5 libraries into 1, and intended to use the Virtual Library feature more often. I left 1 blank library called Test, for testing conversions, etc.
However now when I switch between the 2 libraries I have left, I get the following error: calibre, version 0.9.32 ERROR: Unhandled exception: <b>ValueError</b>:389 is not in list Traceback (most recent call last): File "site-packages/calibre/gui2/dialogs/quickview.py", line 137, in book_was_changed File "site-packages/calibre/library/caches.py", line 946, in row File "site-packages/calibre/library/caches.py", line 943, in index ValueError: 389 is not in list Running 0.9.32 on OS X 10.8.3. |
![]() |
![]() |
![]() |
#2 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,733
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
First ensure you have a backup of your main library If your Test library is an one of your old ones, now empty and renamed, then I suggest removing it from Calibre and deleting it from your file system and then creating a fresh Test library based on your existing library. Otherwise, run Check Library on the Main Library - it has two phases, first it checks database integrity then it offers to check for inconsistencies between the database and book folders. I've never had a database integrity check return error, but if I did then I would use the Restore database option. This recreates the database from the opf files in the book folders - that's why they're there. I wouldn't have thought that database/folder integrity would cause this sort of error, but if there are any then its probably a good idea to resolve them. If that doesn't fix it, then I'm guessing that 389 is a Calibre book_id. I don't know if there's an 'official way' to determine what book 389 is, but I would use the SQLite Browser program to look at the books table in metadata.db. Another way might be to use Spotlight to look for a folder with a 389 in its name Then I'd copy book 389's folder to a safe place, then I'd remove it from Calibre. Then I'd try the library switch, if it works then I would add the book again from its safe place. Just add the format files and the cover, then update the metadata in the 'normal' way. Otherwise I've run out of ideas. ![]() I would also use the Library Duplicates feature of the Find Duplicates plugin to ensure that the 2nd-nth library I amalgamated did not have any duplicate books. If there were any I'd move them to another library called Duplicates that I would 'sort out' once I'd moved everything else. BR |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,363
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Close the quickview window and restart calibre.
|
![]() |
![]() |
![]() |
#4 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
I have submitted code changes to prevent this exception. The fix should be in the next calibre release.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Switching libraries question | BAD18 | Library Management | 1 | 04-19-2013 10:45 AM |
Switching Libraries from the Web | Pinkeyes | Calibre | 5 | 05-16-2011 11:25 AM |
Switching libraries | paulfiera | Library Management | 3 | 05-03-2011 05:06 PM |
Specifying a default search when switching libraries from a plugin | kiwidude | Development | 9 | 04-11-2011 11:55 AM |
Tag Browser not updating when switching between libraries. | DoctorOhh | Calibre | 2 | 06-06-2010 12:22 AM |