07-25-2010, 06:50 AM | #1 |
Junior Member
Posts: 1
Karma: 10
Join Date: Jul 2010
Device: PRS-505
|
PRS-505 Error communicating with device
Hi!
I'm using calibre version 0.7.10 created by Kovid Goyal and connected to my SONY PRS-505. Calibre after getting contents of the reader shows error message: ERROR: Error: Error communicating with device All strings must be XML compatible: Unicode or ASCII, no NULL bytes Traceback (most recent call last): File "site-packages\calibre\gui2\device.py", line 68, in run File "site-packages\calibre\gui2\device.py", line 282, in _books File "site-packages\calibre\devices\prs505\driver.py", line 133, in books File "site-packages\calibre\devices\usbms\driver.py", line 160, in books File "site-packages\calibre\devices\prs505\driver.py", line 153, in sync_booklists File "site-packages\calibre\devices\prs505\sony_cache.py", line 355, in update File "site-packages\calibre\devices\prs505\sony_cache.py", line 500, in update_text_record File "lxml.etree.pyx", line 634, in lxml.etree._Element.set (src/lxml/lxml.etree.c:31548) File "apihelpers.pxi", line 487, in lxml.etree._setAttributeValue (src/lxml/lxml.etree.c:13896) File "apihelpers.pxi", line 1242, in lxml.etree._utf8 (src/lxml/lxml.etree.c:19848) ValueError: All strings must be XML compatible: Unicode or ASCII, no NULL bytes I was looking throught internet and found that such a bug was fixed in previous versions of calibre. Maybe it get back somehow? What should I do in this case? Thanks for advice! |
07-25-2010, 10:09 AM | #2 |
creator of calibre
Posts: 44,294
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You likely have a corrupted media.xml file. Just delete it and the device will regenerate it for you. (Note that doing this will cause you to lose bookmarks/history)
|
Advert | |
|
07-25-2010, 04:12 PM | #3 |
Time Enough at Last
Posts: 387
Karma: 1151316
Join Date: Feb 2008
Location: New England
Device: iPad 3, iPhone 5, Kindle 3, Fire, Sony PRS-350
|
Hi Kovid,
I'm also getting an "Error Communicating With Device" message with 0.7.10, with my PRS-505. Windows 7 64bit. Here is the output: Incorrect padding Traceback (most recent call last): File "site-packages\calibre\gui2\device.py", line 68, in run File "site-packages\calibre\gui2\device.py", line 282, in _books File "site-packages\calibre\devices\prs505\driver.py", line 135, in books File "site-packages\calibre\devices\prs505\sony_cache.py", line 331, in update_booklist File "base64.py", line 76, in b64decode TypeError: Incorrect padding Any ideas on what is going on and how to remedy it? Thanks!! |
07-25-2010, 04:24 PM | #4 |
creator of calibre
Posts: 44,294
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That error indicates a media.xml file with a corrupted thumbnail. Delete it and you should be fine, or wait till the next release and I'll add some error handling to ignore corrupted thumbnails.
|
Tags |
error communicate, null strings, prs-505 |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Error communicating with device | nilis | Calibre | 7 | 09-30-2010 10:32 AM |
error communicating with device | kc24zz | Calibre | 2 | 06-03-2010 11:22 PM |
Calibre: Error communicating with device | Robotech_Master | Astak EZReader | 3 | 10-20-2009 02:24 AM |
Error communicating with device message | Amalthia | Calibre | 10 | 09-21-2009 06:12 PM |
ver 0.6.3 error: Error communicating with device PRS-505 | scripo | Calibre | 4 | 08-01-2009 10:38 PM |