I'm getting the following 100% consistently when trying to connect my new Android phone to my Calibre running on a Mac via a USB cable. I've verified that:
* Calibre is updated to latest release 3.28.0
* My phone is unlocked when connected
* I change my phone to "Transfer files" mode (it looks like they dropped the MTP suffix on this option, though they kept PTP on "Transfer Photos (PTP)".)
* I have no "Android File Transfer" software installed, though I used to prior to today.
* My phone is not rooted.
As soon as Calibre detects my device it starts a couple jobs. Get Device Information, which succeeds. Set library information, which also succeeds. And then Get list of books on device, which can take anywhere from 7.5 mins to 12 mins (I have no idea for the varyability here!) to scan but this always ends up with an error state where the job details are the below.
I'm assuming the "PTP" mentions in the error message are bogus as the stack trace clearly shows this as the "devices/mtp/unix/driver.py" generating the error.
What's interesting to me is that even though this error is shown, my "Internal shared storage" dir ends up containing a 'driveinfo.calibre' file after it claims it couldn't be written. I've tried both ejecting and reconnecting again, and also deleting that file and trying again. But I always get another error.
Anyone have any ideas what's going on and how to workaround / fix this?
Failed to upload file named: driveinfo.calibre to (u'Internal shared storage',): 2:PTP Layer error 02ff: send_file_object_info(): Could not send object info.
2:Error 02ff: PTP: I/O 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 510, in _books
File "site-packages/calibre/devices/mtp/driver.py", line 218, in books
File "site-packages/calibre/devices/mtp/driver.py", line 190, in get_driveinfo
File "site-packages/calibre/devices/mtp/driver.py", line 180, in _update_drive_info
File "site-packages/calibre/devices/mtp/driver.py", line 151, in put_calibre_file
File "site-packages/calibre/devices/mtp/base.py", line 26, in synchronizer
File "site-packages/calibre/devices/mtp/unix/driver.py", line 403, in put_file
DeviceError: Failed to upload file named: driveinfo.calibre to (u'Internal shared storage',): 2:PTP Layer error 02ff: send_file_object_info(): Could not send object info.
2:Error 02ff: PTP: I/O error