Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 05-24-2013, 03:19 PM   #1
gers1978
Addict
gers1978 ought to be getting tired of karma fortunes by now.gers1978 ought to be getting tired of karma fortunes by now.gers1978 ought to be getting tired of karma fortunes by now.gers1978 ought to be getting tired of karma fortunes by now.gers1978 ought to be getting tired of karma fortunes by now.gers1978 ought to be getting tired of karma fortunes by now.gers1978 ought to be getting tired of karma fortunes by now.gers1978 ought to be getting tired of karma fortunes by now.gers1978 ought to be getting tired of karma fortunes by now.gers1978 ought to be getting tired of karma fortunes by now.gers1978 ought to be getting tired of karma fortunes by now.
 
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.
gers1978 is offline   Reply With Quote
Old 05-24-2013, 07:11 PM   #2
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,733
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by gers1978 View Post
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.
Here's some ideas

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.


If I was amalgamating libraries, I'd run Check Library and resolve any issues on each of them before doing the amalgamation.

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
BetterRed is online now   Reply With Quote
Advert
Old 05-24-2013, 11:27 PM   #3
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,363
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Close the quickview window and restart calibre.
kovidgoyal is online now   Reply With Quote
Old 05-25-2013, 05:47 AM   #4
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
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.
chaley is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 01:47 AM.


MobileRead.com is a privately owned, operated and funded community.