Quote:
Originally Posted by DrChiper
It happened again that calibre lost sync with my Kobo Clara HD. This is what the communication error reported:
Spoiler:
[Errno 22] Invalid argument
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 978, in sync_booklists
File "calibre\devices\usbms\driver.py", line 457, in sync_booklists
File "calibre\devices\usbms\driver.py", line 455, in write_prefix
File "calibre\ebooks\metadata\book\json_codec.py", line 139, in encode_to_file
OSError: [Errno 22] Invalid argument
Thereafter I did a debug calibre session and got the attached output (minus WIPED parts). Perhaps it makes some sense.
|
That is an interesting spot to have an error. It is not actually in the Kobo related code, but where calibre is writing the "metadata.calibre" file. And, if I have the meaning of Errno 22 correct, there is no data to write. And I do not see how that could happen without an earlier error.
When this error does not happen, how big is the "metadata.calibre" file on the device?