Bug 559958 - Error sending books to Sony Reader
Summary: Error sending books to Sony Reader
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: calibre
Version: 12
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Ionuț Arțăriși
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-01-29 13:25 UTC by Pavel Rosenboim
Modified: 2010-02-09 04:57 UTC (History)
1 user (show)

Fixed In Version: 0.6.37-1.fc12
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-02-09 04:57:43 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Pavel Rosenboim 2010-01-29 13:25:47 UTC
Description of problem:
When sending books to Sony Reader PRS 505 I get an error message:
ERROR: Error: Error communicating with device

 ('ascii', u'\u0421\u044d\u043b\u0438\u043d\u0434\u0436\u0435\u0440, \u0414\u0436\u0435\u0440\u043e\u043c', 0, 9, 'ordinal not in range(128)')

Traceback (most recent call last):
  File "/usr/lib/calibre/calibre/gui2/device.py", line 56, in run
    self.result = self.func(*self.args, **self.kwargs)
  File "/usr/lib/calibre/calibre/gui2/device.py", line 233, in _upload_books
    metadata=metadata, end_session=False)
  File "/usr/lib/calibre/calibre/devices/prs505/driver.py", line 132, in upload_books
    filepath = self.create_upload_path(path, mdata, fname)
  File "/usr/lib/calibre/calibre/devices/usbms/device.py", line 811, in create_upload_path
    extra_components = get_components(template, mdata, fname)
  File "/usr/lib/calibre/calibre/library/save_to_disk.py", line 136, in get_components
    components = [safe_format(x, format_args) for x in components]
  File "/usr/lib/calibre/calibre/library/save_to_disk.py", line 99, in safe_format
    return x.format(**format_args).strip()
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-8: ordinal not in range(128)



Version-Release number of selected component (if applicable):
calibre-0.6.35

How reproducible:
Almost always

Steps to Reproduce:
1. Send a book to calibre 
  
Additional info:
I couldn't reporoduce (yet) this error with current upstream version - 0.6.36

Comment 1 Ionuț Arțăriși 2010-02-01 12:17:38 UTC
Hi, it seems like this bug has been fixed in upstream: http://bugs.calibre-ebook.com/ticket/4690

I'm sending a package update with calibre 0.6.37

If you like, you can test the package and provide feedback on the update at the link that will appear in the next comment.

Comment 2 Fedora Update System 2010-02-01 12:19:16 UTC
calibre-0.6.37-1.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/calibre-0.6.37-1.fc12

Comment 3 Fedora Update System 2010-02-02 01:08:45 UTC
calibre-0.6.37-1.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update calibre'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2010-1317

Comment 4 Fedora Update System 2010-02-09 04:57:38 UTC
calibre-0.6.37-1.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.