I also have a Kobo Libra H20, and this is the error message I started getting today - it's been maybe two weeks since I last connected the device to Calibre:
calibre, version 5.21.0
ERROR: Error: Error communicating with device
CorruptError: database disk image is malformed
Traceback (most recent call last):
File "calibre\gui2\device.py", line 89, in run
File "calibre\gui2\device.py", line 515, in _books
File "calibre\devices\kobo\driver.py", line 1974, in books
apsw.CorruptError: CorruptError: database disk image is malformed
This is pretty much identical to the problem de Salier had, and I haven't yet been able to clear it. It seems very hard to believe we both have identical hardware faults.
When I used the "Update cached metadata in device" command, I got the different error message:
calibre, version 5.21.0
ERROR: Error: Error communicating with device
'list' object has no attribute 'set_debugging_title'
Traceback (most recent call last):
File "calibre\gui2\device.py", line 89, in run
File "calibre\gui2\device.py", line 545, in _sync_booklists
File "calibre\devices\kobo\driver.py", line 976, in sync_booklists
File "calibre\devices\kobo\driver.py", line 2431, in update_device_database_collections
AttributeError: 'list' object has no attribute 'set_debugging_title'
If I sideload by using Windows file explorer the book goes to the Kobo, and it is complete and readable there.
I would appreciate suggestions!