error reading books from nook

Bug #892438 reported by infinity
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
Charles Haley

Bug Description

when reading books from nook, after a while i get the error:
calibre, version 0.8.27
ERROR: Error: Error communicating with device

can't compare offset-naive and offset-aware datetimes

Traceback (most recent call last):
  File "site-packages\calibre\gui2\device.py", line 81, in run
  File "site-packages\calibre\gui2\device.py", line 333, in _books
  File "site-packages\calibre\devices\usbms\driver.py", line 240, in books
  File "site-packages\calibre\devices\usbms\driver.py", line 384, in sync_booklists
  File "site-packages\calibre\devices\usbms\driver.py", line 382, in write_prefix
  File "site-packages\calibre\ebooks\metadata\book\json_codec.py", line 111, in encode_to_file
  File "site-packages\calibre\ebooks\metadata\book\json_codec.py", line 117, in encode_booklist_metadata
  File "site-packages\calibre\ebooks\metadata\book\json_codec.py", line 123, in encode_book_metadata
  File "site-packages\calibre\ebooks\metadata\book\json_codec.py", line 145, in encode_metadata_attr
  File "site-packages\calibre\ebooks\metadata\book\json_codec.py", line 25, in datetime_to_string
TypeError: can't compare offset-naive and offset-aware datetimes

Related branches

Revision history for this message
Kovid Goyal (kovid) wrote : Re: calibre bug 892438

Changing the component for this bug.

 assignee cbhaley
 status triaged

Changed in calibre:
assignee: nobody → Charles Haley (cbhaley)
status: New → Triaged
Revision history for this message
Charles Haley (cbhaley) wrote :

I cannot repeat this problem, so I don't know what it causing it. However, I submitted code that protects the comparison, which should prevent it from happening again, in json_codec at least

Changed in calibre:
status: Triaged → Fix Committed
Revision history for this message
Kovid Goyal (kovid) wrote : Fixed in lp:calibre

Fixed in branch lp:calibre. The fix will be in the next release. calibre is usually released every Friday.

 status fixreleased

Changed in calibre:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.