View Single Post
Old 12-25-2014, 12:36 PM   #1
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,563
Karma: 79436716
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Set Library Information / JSON serializable error

Connecting my Nexus 7 (2012) with 3.5.9 of CC and 2.13 (64 bit) of calibre I'm getting the following error in the calibre job log for job Set Library Information
Spoiler:

datetime.datetime(2014, 12, 25, 16, 6, 35, tzinfo=tzutc()) is not JSON serializable

Traceback (most recent call last):
File "site-packages\calibre\gui2\device.py", line 87, in run
File "site-packages\calibre\gui2\device.py", line 480, in _set_library_information
File "site-packages\calibre\devices\smart_device_app\driver.p y", line 50, in _synchronizer
File "site-packages\calibre\devices\smart_device_app\driver.p y", line 1560, in set_library_info
File "site-packages\calibre\devices\smart_device_app\driver.p y", line 50, in _synchronizer
File "site-packages\calibre\devices\smart_device_app\driver.p y", line 600, in _call_client
File "site-packages\calibre\devices\smart_device_app\driver.p y", line 520, in _json_encode
File "json\__init__.py", line 243, in dumps
File "json\encoder.py", line 207, in encode
File "json\encoder.py", line 270, in iterencode
File "json\encoder.py", line 184, in default
TypeError: datetime.datetime(2014, 12, 25, 16, 6, 35, tzinfo=tzutc()) is not JSON serializable

and the device disconnects.

Two additional jobs seem to run properly; Get list of books on device and Send metadata to device.

CC log file sent to you.
PeterT is offline   Reply With Quote