View Single Post
Old 08-30-2011, 01:06 PM   #1212
meme
Sigil developer
meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.
 
Posts: 1,274
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
Quote:
Originally Posted by jduteau View Post
I suspect that it was actually an 'ASIN' key error.

Here is the traceback that I get when I try to use Kindle Connections with the latest Calibre (0.8.16):


'ASIN'

Traceback (most recent call last):
File "site-packages/calibre/gui2/device.py", line 81, in run
File "calibre_plugins.kindle_collections.create_preview ", line 61, in create
File "calibre_plugins.kindle_collections.kindle_boo ks", line 36, in init
File "calibre_plugins.kindle_collections.kindle_boo ks", line 59, in __init__
File "calibre_plugins.kindle_collections.kindle_boo ks", line 146, in load_kindle_books
File "calibre_plugins.kindle_collections.ebook", line 56, in __init__
File "calibre_plugins.kindle_collections.ebook", line 251, in __init__
File "calibre_plugins.kindle_collections.ebook", line 297, in get_metadata
KeyError: 'ASIN'
I've tried the plugin on the latest Calibre and it still works ok for me, but then I don't know if I have any Topaz files loaded.

The issue seems to be a problem with one of your Topaz book files - its metadata information is incorrect.

You can try this attached version of the plugin which should generate a warning message about which book is causing the problem. I'd be interested to see if it catches it, and if you just recently updated this book.

Or you can run in debug mode (calibre-debug -g > out.txt) which will show the book its processing just before it crashes.

Last edited by meme; 10-08-2011 at 06:47 AM. Reason: Removed file as later version available
meme is offline