Kovid, thanks for the reply. I deleted some files and folders from the / directory of my Nexus 5. I got the same error. So I plugged in the Nexus 7 which has a very different file and folder structure (apart from the standard android). I got the same error:
Code:
calibre, version 2.1.0
ERROR: Error: Error communicating with device
Failed to delete (u'Internal storage', u'driveinfo.calibre') with error: 2:PTP Layer error 02ff: LIBMTP_Delete_Object(): could not delete object.
2:Error 02ff: PTP: I/O error
Traceback (most recent call last):
File "site-packages/calibre/gui2/device.py", line 86, in run
File "site-packages/calibre/gui2/device.py", line 501, in _books
File "site-packages/calibre/devices/mtp/driver.py", line 208, in books
File "site-packages/calibre/devices/mtp/driver.py", line 180, in get_driveinfo
File "site-packages/calibre/devices/mtp/driver.py", line 170, in _update_drive_info
File "site-packages/calibre/devices/mtp/base.py", line 24, in synchronizer
File "site-packages/calibre/devices/mtp/unix/driver.py", line 366, in put_file
File "site-packages/calibre/devices/mtp/base.py", line 24, in synchronizer
File "site-packages/calibre/devices/mtp/unix/driver.py", line 411, in delete_file_or_folder
DeviceError: Failed to delete (u'Internal storage', u'driveinfo.calibre') with error: 2:PTP Layer error 02ff: LIBMTP_Delete_Object(): could not delete object.
2:Error 02ff: PTP: I/O error
I think I will have to explore other methods of synchronizing my nexus devices with the calibre on my desktop.