Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 10-07-2011, 01:37 AM   #1
readee
Junior Member
readee began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Oct 2011
Device: none
Calibre plugIn Kindle Collections Error message "Value Error:month..."

Calibre PlugIn Kindle Collections doesn't works, I get this error message: "ValueError:month must 1..12"

If I use the buttons "Edit Kindle Collections manually..." or "Import Kindle Collections into Calibre..." in the plugIn Kindle collections, the Error above is showing and it isn't possible to work with it

The details of the error message:

Traceback (most recent call last):
File "calibre_plugins.kindle_collections.ui", line 162, in edit_kindle_collections
File "calibre_plugins.kindle_collections.kindle_edi t_co llections", line 68, in run
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 169, in load_kindle_books
File "calibre_plugins.kindle_collections.kindle_boo ks", line 391, in convert_date
ValueError: month must be in 1..12

I use the latest version of calibre and the plugIn Kindle Collections

Please give me some help.

thx
readee is offline   Reply With Quote
Old 10-08-2011, 05:50 AM   #2
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,275
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
The problem is that one of your books has an invalid date in it and its causing the program to fail. You could run the plugin in debug mode (see the first post in the plugin's thread - linked in my signature) to find the book.

However, I'll update the plugin to handle this error more gracefully and post it when done (it will show up as an available plugin update in calibre).

I see you originally posted in the German language forum, so I wonder if the book causing the issue has a valid date for the language of the book, but it isn't being read correctly. It would be interesting to see the book.

Last edited by meme; 10-08-2011 at 05:56 AM.
meme is offline   Reply With Quote
Advert
Old 10-08-2011, 06:45 AM   #3
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,275
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
@readee - I've uploaded a new test version of the plugin for you here

You need to use Preferences - Plugins - Load from file and select the zip file (don't unzip it), then restart and you should have the new version.

What this should do is use whatever date is in your book as the date that's displayed instead of trying to convert it. So some of your dates for books in Edit Collections may look odd and help you find the problem book.

Let me know how it goes.
meme is offline   Reply With Quote
Old 10-10-2011, 08:52 AM   #4
readee
Junior Member
readee began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Oct 2011
Device: none
@meme, i've tested your new version. Here are the results:

1.) If I use the button "Import Kindle Collections..." ===> the problem is fixed

2.) If I use the button " Edit Kindle Colelctions manually..." ===> you see the error message:

UnicodeDecodeError:'utf8' codec can't decode bytes in position 1-2, invalid continuation byte

Traceback (most recent call last):
File "calibre_plugins.kindle_collections.ui", line 162, 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 52, in sort_names
File "calibre_plugins.kindle_collections.kindle_sor t", line 121, in sort_compare_kindle_names
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 1-2: invalid continu
readee is offline   Reply With Quote
Old 10-10-2011, 11:21 AM   #5
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,275
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
Quote:
Originally Posted by readee View Post
@meme, i've tested your new version. Here are the results:

1.) If I use the button "Import Kindle Collections..." ===> the problem is fixed

2.) If I use the button " Edit Kindle Colelctions manually..." ===> you see the error message:

UnicodeDecodeError:'utf8' codec can't decode bytes in position 1-2, invalid continuation byte

Traceback (most recent call last):
File "calibre_plugins.kindle_collections.ui", line 162, 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 52, in sort_names
File "calibre_plugins.kindle_collections.kindle_sor t", line 121, in sort_compare_kindle_names
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 1-2: invalid continu
Sounds like a different error, and a problem with utf8 encoding that I thought was dealt with.

You need to run in debug mode, and then look at the output to see what book is causing the error. Hopefully it is only one book.

Stop calibre, and from the command line change into your home directory then run "calibre-debug -g > out.txt" (without the quotes). Once calibre stops, look at the file probably near the end to see what books it was processing when it failed - it might show the book that caused the error or show the one just before it. Try removing this book from your Kindle temporarily and see if the plugin works. If it does, I'd be interested in the book you have to see what the specific issue is.
meme is offline   Reply With Quote
Advert
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
"Access denied" to downloaded news - Windows Error message 5 SunFuLai Recipes 14 12-02-2011 02:20 AM
Calibre PlugIn Kindle Collections funktioniert nicht bringt "ValueError:month must.." readee Amazon Kindle 1 10-07-2011 04:47 AM
error message: ERROR ITMS-4099: "Invalid ISBN: [#] at Book (MZItmspBookPac NewDay ePub 3 10-07-2010 01:47 PM
Error message : "Invalid Format" " Do you want to format your internal memory" narbeauchamp Sony Reader 11 07-22-2009 12:39 PM


All times are GMT -4. The time now is 12:15 PM.


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