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

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 07-25-2010, 07:50 AM   #1
zexzex
Junior Member
zexzex began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jul 2010
Device: PRS-505
Exclamation 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!
zexzex is offline   Reply With Quote
Old 07-25-2010, 11:09 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 26,436
Karma: 5383257
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)
kovidgoyal is online now   Reply With Quote
Old 07-25-2010, 05:12 PM   #3
Timoleon
Time Enough at Last
Timoleon ought to be getting tired of karma fortunes by now.Timoleon ought to be getting tired of karma fortunes by now.Timoleon ought to be getting tired of karma fortunes by now.Timoleon ought to be getting tired of karma fortunes by now.Timoleon ought to be getting tired of karma fortunes by now.Timoleon ought to be getting tired of karma fortunes by now.Timoleon ought to be getting tired of karma fortunes by now.Timoleon ought to be getting tired of karma fortunes by now.Timoleon ought to be getting tired of karma fortunes by now.Timoleon ought to be getting tired of karma fortunes by now.Timoleon ought to be getting tired of karma fortunes by now.
 
Timoleon's Avatar
 
Posts: 385
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!!
Timoleon is offline   Reply With Quote
Old 07-25-2010, 05:24 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 26,436
Karma: 5383257
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.
kovidgoyal is online now   Reply With Quote
Reply

Tags
error communicate, null strings, prs-505

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error communicating with device nilis Calibre 7 09-30-2010 11:32 AM
error communicating with device kc24zz Calibre 2 06-04-2010 12:22 AM
Calibre: Error communicating with device Robotech_Master Astak EZReader 3 10-20-2009 03:24 AM
Error communicating with device message Amalthia Calibre 10 09-21-2009 07:12 PM
ver 0.6.3 error: Error communicating with device PRS-505 scripo Calibre 4 08-01-2009 11:38 PM


All times are GMT -4. The time now is 02:57 AM.


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