View Single Post
Old 08-15-2011, 05:07 AM   #1189
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 ianw View Post
calibre, version 0.8.14
ERROR: Failed to create/preview collections: <b>Failed</b>: Create Kindle Collections

'NoneType' object is not subscriptable

Traceback (most recent call last):
File "site-packages/calibre/gui2/device.py", line 81, in run
File "calibre_plugins.kindle_collections.create_preview ", line 43, in create
File "calibre_plugins.kindle_collections.calibre_in fo", line 191, in load_column_book_info
File "site-packages/calibre/library/database2.py", line 928, in get_metadata
File "site-packages/calibre/library/database2.py", line 1144, in format_metadata
File "site-packages/calibre/library/database2.py", line 1199, in format_abspath
File "site-packages/calibre/library/database2.py", line 520, in path
TypeError: 'NoneType' object is not subscriptable
From the line numbers above it looks like something in the calibre code that is failing since the last line in the plugin is to get metadata for all books in the database. That makes it hard to debug in the plugin. It could be a book with a bad path, or some connection issue with the device.

You could try running calibre in debug mode and see if it tells you anything more. Stop calibre, then on the command line change to a directory you have write permission in, then run "calibre-debug -g > out.txt". Look at the last few lines of the out.txt file to see if it gives any more information on the problem.
meme is offline