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

Go Back   MobileRead Forums > E-Book Software > Calibre > Devices

Notices

Reply
 
Thread Tools Search this Thread
Old 09-13-2012, 01:48 PM   #1
Soul_Est
Gadgetic Young Man
Soul_Est has a complete set of Star Wars action figures.Soul_Est has a complete set of Star Wars action figures.Soul_Est has a complete set of Star Wars action figures.Soul_Est has a complete set of Star Wars action figures.
 
Soul_Est's Avatar
 
Posts: 58
Karma: 300
Join Date: Nov 2010
Location: Toronto, Ontario, Canada
Device: BlackBerry Z30, Sony PRS-650, Samsung Galaxy Note 10.1
Question Error communicating with device

I had added a couple new books to my Calibre library earlier today (dry, reference textbooks ) and edited their metadata. The computer's Arch Linux installation has been updated to the latest packages available from the official repositories. After connecting my PRS-650 to my computer and Calibre tries to access it, I received this error message:
Code:
calibre, version 0.8.68
ERROR: Error: Error communicating with device

'ascii' codec can't encode character u'\uf025' in position 83: ordinal not in range(128)

Traceback (most recent call last):
  File "/usr/lib/calibre/calibre/gui2/device.py", line 84, in run
    self.result = self.func(*self.args, **self.kwargs)
  File "/usr/lib/calibre/calibre/gui2/device.py", line 437, in _books
    mainlist = self.device.books(oncard=None, end_session=False)
  File "/usr/lib/calibre/calibre/devices/prs505/driver.py", line 199, in books
    bl = USBMS.books(self, oncard=oncard, end_session=end_session)
  File "/usr/lib/calibre/calibre/devices/usbms/driver.py", line 212, in books
    for path, dirs, files in os.walk(ebook_dir):
  File "/usr/lib/python2.7/os.py", line 294, in walk
    for x in walk(new_path, topdown, onerror, followlinks):
  File "/usr/lib/python2.7/os.py", line 294, in walk
    for x in walk(new_path, topdown, onerror, followlinks):
  File "/usr/lib/python2.7/os.py", line 294, in walk
    for x in walk(new_path, topdown, onerror, followlinks):
  File "/usr/lib/python2.7/os.py", line 294, in walk
    for x in walk(new_path, topdown, onerror, followlinks):
  File "/usr/lib/python2.7/os.py", line 284, in walk
    if isdir(join(top, name)):
  File "/usr/lib/python2.7/genericpath.py", line 41, in isdir
    st = os.stat(s)
UnicodeEncodeError: 'ascii' codec can't encode character u'\uf025' in position 83: ordinal not in range(128)
While knowing where the error is occurring in the file is great but unfortunately I'm no Python programmer. I do well enough in C and Ruby though.
Any ideas on what the issue may be?
Soul_Est is offline   Reply With Quote
Old 09-13-2012, 02:29 PM   #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: 43,826
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
First, dont use the arch package, use the official calibre binary. Then fix your arch install to have a UTF-8 based locale. Then fix whatever file is causing that error to have its filename encoded in utf-8.
kovidgoyal is offline   Reply With Quote
Advert
Old 09-14-2012, 10:30 AM   #3
Soul_Est
Gadgetic Young Man
Soul_Est has a complete set of Star Wars action figures.Soul_Est has a complete set of Star Wars action figures.Soul_Est has a complete set of Star Wars action figures.Soul_Est has a complete set of Star Wars action figures.
 
Soul_Est's Avatar
 
Posts: 58
Karma: 300
Join Date: Nov 2010
Location: Toronto, Ontario, Canada
Device: BlackBerry Z30, Sony PRS-650, Samsung Galaxy Note 10.1
Thanks for the advice. Calibre works correctly now. Installed it using this command:
Code:
sudo python2 -c "import sys; py = sys.version_info[0] > 2; u = __import__('urllib.request' if py else 'urllib', fromlist=1); exec(u.urlopen('http://status.calibre-ebook.com/linux_installer').read()); main(install_dir='/opt')"
Soul_Est is offline   Reply With Quote
Reply

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 Poppa1956 Calibre 5 09-08-2012 07:17 PM
calibre, version 0.8.8 ERROR: Error: Error communicating with device no such column: e-bookuser Devices 1 07-03-2011 04:09 PM
Error Communicating with Device Stephen Dedalus Devices 16 05-08-2011 12:13 PM
Error communicating with device alroy Calibre 1 10-30-2010 10:51 AM
ver 0.6.3 error: Error communicating with device PRS-505 scripo Calibre 4 08-01-2009 10:38 PM


All times are GMT -4. The time now is 08:44 AM.


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