View Single Post
Old 01-22-2012, 10:52 PM   #53
richreads
Connoisseur
richreads began at the beginning.
 
richreads's Avatar
 
Posts: 53
Karma: 10
Join Date: Mar 2009
Location: Hamilton, ON
Device: Kobo Touch and Glo,
Error when sorting by date

Hi.
Love the plugin.
I just started using it to add stories from fanfiction.com.
It does add the story but then I get an error when I sort by date.
If I shut down calibre and restart it i can sort by date without the error reappearing.
The error also disappears (with restarting calibre) if I remove the story that was just added.
I've added a book manually with out using the plugin and did not get the error so it seems to be the plugin.
I tried with two different authors and received a message both times.

Here is the error message.
Spoiler:
calibre, version 0.8.36
ERROR: Unhandled exception: <b>TypeError</b>:can't compare offset-naive and offset-aware datetimes

Traceback (most recent call last):
File "site-packages\calibre\gui2\library\models.py", line 319, in sort
File "site-packages\calibre\gui2\library\models.py", line 327, in _sort
File "site-packages\calibre\library\caches.py", line 995, in sort
File "site-packages\calibre\library\caches.py", line 1015, in multisort
File "site-packages\calibre\library\caches.py", line 1031, in __cmp__
TypeError: can't compare offset-naive and offset-aware datetimes
richreads is offline