Mobileread
Can't upload a certain book to my Forma (Error communicating with device)
#1  droopy 02-06-2020, 10:49 AM
I can't upload a particular book from Calibre to my Kobo Forma. With other books, I can upload from Calibre to Forma without any problems. But with this one particular book, it gives this error message:
Quote
calibre, version 4.9.1
ERROR: Error: Error communicating with device

No META-INF/container.xml in epub

Traceback (most recent call last):
File "site-packages/calibre/gui2/device.py", line 90, in run
File "site-packages/calibre/gui2/device.py", line 594, in _upload_books
File "calibre_plugins.kobotouch_extended.device.driver" , line 399, in upload_books
File "site-packages/calibre/devices/kobo/driver.py", line 2099, in upload_books
File "calibre_plugins.kobotouch_extended.device.driver" , line 206, in _modify_epub
File "site-packages/calibre/ebooks/oeb/polish/container.py", line 1180, in __init__
InvalidEpub: No META-INF/container.xml in epub
I get a similar message for maybe 2 or 3 other books.

What's wrong and how can I fix this problem?
Reply 

#2  theducks 02-06-2020, 12:12 PM
Quote droopy
I can't upload a particular book from Calibre to my Kobo Forma. With other books, I can upload from Calibre to Forma without any problems. But with this one particular book, it gives this error message:


I get a similar message for maybe 2 or 3 other books.

What's wrong and how can I fix this problem?
The Book is INVALID (damaged EPUB?).
No META-INF/container.xml in epub
Reply 

#3  DNSB 02-06-2020, 02:14 PM
If you open the epub in Sigil, it will recreate the container.xml file in the META-INF directory in the file when it is saved. Calibre's editor errors out trying to open the file. Another good reason to keep both editors around. At the same time, error check the epub. I'd recommend downloading the epubcheck plugin for both editors.

Of course, there is a good chance the epub file is totally gorched. Time to get a new copy.
Reply 

#4  droopy 02-07-2020, 02:35 AM
Quote DNSB
If you open the epub in Sigil, it will recreate the container.xml file in the META-INF directory in the file when it is saved. Calibre's editor errors out trying to open the file. Another good reason to keep both editors around.
Hi David. Thank you for that advice. I get Sigil to open and save the epub. Now, Calibre can upload the epub to my Kobo without the error!


Quote DNSB
At the same time, error check the epub. I'd recommend downloading the epubcheck plugin for both editors..
I downloaded the epubcheck plugin for both Sigil and Calibre. I don't know how to run the plugin in Calibre. I run it in Sigil and see error codes, but why bother fixing the error codes when simply getting Sigil to save the epub solves my problem?
Reply 

Today's Posts | Search this Thread | Login | Register