View Single Post
Old 11-11-2012, 08:52 AM   #1791
Mixx
Zealot
Mixx has a complete set of Star Wars action figures.Mixx has a complete set of Star Wars action figures.Mixx has a complete set of Star Wars action figures.Mixx has a complete set of Star Wars action figures.
 
Posts: 138
Karma: 387
Join Date: Sep 2010
Device: Kindle 3
UTF8 Error, need help

Hi,

I finally decided that I need calibre managed collections on my Kindle 3 and installed the plugin. On first use I ran into the same problem as vallema before in this posting:

http://www.mobileread.com/forums/sho...de#post1955048

upon the attempt to read-in the Kindle collections for manual use (to start with). I get this:

Spoiler:

calibre, version 0.9.6
ERROR: Unhandled exception: <b>UnicodeDecodeError</b>:'utf8' codec can't decode bytes in position 63-64: invalid continuation byte

Traceback (most recent call last):
File "calibre_plugins.kindle_collections.ui", line 165, in edit_kindle_collections
File "calibre_plugins.kindle_collections.kindle_edit_co llections", line 75, in run
File "calibre_plugins.kindle_collections.kindle_edit_co llections", line 92, in __init__
File "calibre_plugins.kindle_collections.kindle_edit_co llections", line 112, in init_sort_order
File "calibre_plugins.kindle_collections.kindle_edit_co llections", line 307, in get_sorted_paths
File "calibre_plugins.kindle_collections.kindle_boo ks", line 523, in get_sorted_paths
File "calibre_plugins.kindle_collections.kindle_sor t", line 66, in sort_names
File "calibre_plugins.kindle_collections.kindle_sor t", line 139, in sort_compare_kindle_names
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 63-64: invalid continuation byte



However, I do not see any strange characters in the names of the 32 collections I have on the Kindle.

Meme was suggesting to him at that time to run in debug-mode to figure out what book is causing the problem. I do not find any such problem in the output file of the debug mode (only possibly problematic lines out of 12,000)

Spoiler:

...
2012/11/11 13:43:06 BEGIN KindleBooks, 2060 pathnames
2012/11/11 13:43:06 Reading file: F:\kindle_collections_path_cache.calibre
2012/11/11 13:43:06 Unexpected error, unable to read file: F:\kindle_collections_path_cache.calibre
2012/11/11 13:43:06 Cache file does not exist
...
End reading book information from Kindle
2012/11/11 13:44:28 Trying to save path cache file: F:\kindle_collections_path_cache.calibre
2012/11/11 13:44:29 Unable to save path cache file: F:\kindle_collections_path_cache.calibre
2012/11/11 13:44:29 Checking for internal books
...



How can I find which (of the almost 2000) books is the culprit?

Thanxx for an help,

Mixx
Mixx is offline