Error communicating with device

Issue #3 wontfix
jsijde
created an issue

Hi there,

as discussed by e-mail I would hereby like to let you know that the mentioned bug is still active.

When sending some ebooks to my e-reader (Kobo Aura H2O second edition) with the latest firmware I still get the following error message:

calibre, version 3.14.0
FOUT: Fout: Fout bij communicatie met apparaat

Kan '[Het Rad des Tijds 01] Het Oog van de Wereld' door 'Robert Jordan' niet analyseren. Foutmelding: 'OEBPS/Text/Section0027.xhtml' (file: calibre_plugins.kobotouch_extended.container, line: 442)

Traceback (most recent call last):
  File "site-packages\calibre\gui2\device.py", line 87, in run
  File "site-packages\calibre\gui2\device.py", line 591, in _upload_books
  File "calibre_plugins.kobotouch_extended.device.driver", line 396, in upload_books
  File "site-packages\calibre\devices\kobo\driver.py", line 2017, in upload_books
  File "calibre_plugins.kobotouch_extended.device.driver", line 279, in _modify_epub
InvalidEPub: Kan '[Het Rad des Tijds 01] Het Oog van de Wereld' door 'Robert Jordan' niet analyseren. Foutmelding: 'OEBPS/Text/Section0027.xhtml' (file: calibre_plugins.kobotouch_extended.container, line: 442)

This happens to approximately 10% of the ebooks in my collection, but I can not find a clear pattern why these give an error message and the others do not. When i turn of the KoboTouch Extended plugin and reactive the original KoboTouch plugin (by David Forester) the ebooks with this issues are being sent to the e-reader without any problems.

Any idea how to fix this?

Calibre version 3.14 KoboTouch extended version 3.02 Kobo Aura H2O second edition firmware version 4.4.9298

Comments (5)

  1. jgoguen repo owner

    If it happens for one book will it always happen for that book? Can you upload the book you used to generate this error at https://www.dropbox.com/request/Fx1N6bhRPwUmfxQLAWGx so I can take a look at the file?

    This error, and where it's happening, suggests to me it's actually a problem in the book itself. Some of these I can't work around. After you upload the book, can you try converting the book from ePub to ePub and see if it's still broken after that? Sometimes converting in calibre can fix errors if it's something about the book itself.

  2. jsijde reporter

    I have sent you an example ebook i had the problem with. The suggestion you did resolved the problem however! After converting from epub to epub i am able to send it to the e-reader as kepub.

  3. jgoguen repo owner

    It looks like this is something with the book files, not something I can work around and still have reliable parsing of files. If Kovid ever starts distributing BeautifulSoup with calibre it’s possible that library may have what I would need, but until then at least the ePub->ePub conversion fixes it.

  4. Log in to comment