Quote:
Originally Posted by kovidgoyal
That's not the same error, that's an error sending a particular file to the device. That particular file is sent on every calibre connect, and some devices have been known to flake out after a while and refuse to receive that file. You need to either hard reset the device or use one of the wireless transfer methods.
|
I've seen the same issue using Ubuntu 14.04 (tried later versions) and Calibre 2.43 using a 2015 Fire 7 Fire OS 5.0.1. I tried tracking it down (about a month ago) but could not figure out why it was err'ing while Nautilus worked fine so but it aside. Same stack trace (slightly different line nos, enclosed later).
What I found:
a) Hit the error if there's a sd card (32GB - didn't try others) installed
b) Works fine if no sd card.
c) Works fine on Windows.
d) Can transfer files fine (via nautilus)
I also tried a different version of Ubuntu (15.04) thinking it might be a libmtp problem but that didn't work any better.
I believe d) nautilus uses libmtp and fuse. If so, that suggests that libmtp is working okay? Could be a difference in setup?
Easy workarounds for now: use windows or slip out the sd card when using Calibre.
-----
calibre, version 2.43.0
ERROR: Error: Error communicating with device
Failed to upload file named: driveinfo.calibre to (u'Storage device',): 2:PTP Layer error 2002: send_file_object_info(): Could not send object info.
2:Error 2002: PTP: General Error
Traceback (most recent call last):
File "site-packages/calibre/gui2/device.py", line 87, in run
File "site-packages/calibre/gui2/device.py", line 503, in _books
File "site-packages/calibre/devices/mtp/driver.py", line 216, in books
File "site-packages/calibre/devices/mtp/driver.py", line 188, in get_driveinfo
File "site-packages/calibre/devices/mtp/driver.py", line 178, in _update_drive_info
File "site-packages/calibre/devices/mtp/driver.py", line 149, in put_calibre_file
File "site-packages/calibre/devices/mtp/base.py", line 24, in synchronizer
File "site-packages/calibre/devices/mtp/unix/driver.py", line 375, in put_file
DeviceError: Failed to upload file named: driveinfo.calibre to (u'Storage device',): 2:PTP Layer error 2002: send_file_object_info(): Could not send object info.
2:Error 2002: PTP: General Error