View Single Post
Old 04-21-2021, 09:18 AM   #2233
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by DrChiper View Post
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?
davidfor is offline