|
![]() |
|
Thread Tools | Search this Thread |
![]() |
#1 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Mar 2025
Device: Android eBook Prestigio
|
![]()
Hi fellow users,
I have an issue with import of a particular epub file. It can be unpacked in 7zip and is readable in eBook Prestigio Android reader app without any issues and appears with its cover image. However, when I try to import it into Calibre by using manual add with the default import options, and try to open it in the viewer, I get these errors indicating the ZIP file is damaged and container.xml is missing (it is indeed missing, there is only one file called com.apple.ibooks.display-options.xml in META-INF folder, if renamed to container.xml then everything works fine except that no cover image appears as a result of import but it is visible in the Calibre viewer): calibre, version 7.26.0 ERROR: Loading book failed: Failed to open the book at C:\Users\Public\Documents\Calibre Library\The Code- Silicon Valley\Margaret O'Mara (1934)\Margaret O'Mara - The Code- Silicon Valley.epub. Click "Show details" for more info. Spoiler:
It looks like Calibre isn't detecting com.apple.ibooks.display-options.xml as a valid container xml, but there is still a problem with extracting cover image file. Attached are com.apple.ibooks.display-options.xml renamed to contaner.xml and the repackaged with the renamed file epub book file Cheers, Roman Last edited by pdurrant; 03-21-2025 at 03:17 AM. Reason: spoilered |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,171
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
container.xml is required by the EPUB standard and EPUB file without one isnt a valid EPUB file and wont work in calibre.
|
![]() |
![]() |
![]() |
#3 |
Bibliolater
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,608
Karma: 6000000
Join Date: Dec 2021
Location: England
Device: none
|
Shouldn't epubs have a container.xml file anyway and the com.apple.ibooks.display-options.xml be an adjunct (epub2)?
Your test file wont open for me in calibre viewer, nor books, nor readdle documents. Havent run epubcheck - but that might throw some light on your problem? I expect more epub-savvy people than I will be along shortly to offer help. EDIT: Kovid beat me to reply. |
![]() |
![]() |
![]() |
#4 |
PC Dev
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 34
Karma: 35532
Join Date: Sep 2024
Device: Kindle Paperwhite (11th Gen), Lenovo Tab M10 (3rd Gen)
|
even when renaming its still not a valid container.xml file. it doesnt have the correct container tags and it doesnt point to the ebooks .opf file, which it should
|
![]() |
![]() |
![]() |
#5 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,029
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
@rgolubev go back to where you got this ePub and download it again. But this time do not use Android. If it has no DRM, then you'll get a .epub file. IF it has Adobe DRM, you'll get a .acsm file which needs to be used with Adobe Digital Editions or the ACSM plugin for calibre to then download the ePub.
|
![]() |
![]() |
![]() |
#6 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,681
Karma: 168431851
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Looking at your test "epub", note that you MUST have the mimetype file in the root not in the rr directory (that is required by the ePub standard) and the OEBPS and META-INF directories should also be in the root of the ePub file. The container.xml file MUST point to the .opf document.
A sample container.xml would look like: Code:
<?xml version="1.0" encoding="UTF-8"?> <container version="1.0" xmlns="urn:oasis:names:tc:opendocument:xmlns:container"> <rootfiles> <rootfile full-path="OEBPS/content.opf" media-type="application/oebps-package+xml"/> </rootfiles> </container> Edit: I borrowed this book from the local library and the structure was correct. Also The Code is definitely still in copyright and I would strongly suggest removing the copy that you attached to the first message. Last edited by DNSB; 03-17-2025 at 06:13 PM. Reason: Edit: Copyright infringement |
![]() |
![]() |
![]() |
#7 | |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Mar 2025
Device: Android eBook Prestigio
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#8 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Mar 2025
Device: Android eBook Prestigio
|
|
![]() |
![]() |
![]() |
#9 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Mar 2025
Device: Android eBook Prestigio
|
Thank you very much, David
![]() |
![]() |
![]() |
![]() |
Tags |
container.xml, import, zip header |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Have Apple deprecated the display-options.xml file in ePub2? | Oxford-eBooks | ePub | 6 | 11-27-2013 08:30 AM |
Inserting com.apple.ibooks.display-options.xml file in EPUB | roger64 | ePub | 30 | 02-28-2013 01:07 AM |
com.apple.ibooks.display-options | brewt | Plugins | 5 | 09-06-2012 09:57 AM |
Presence of com.apple.ibooks.display-options.xml breaks Readium? | rtmyers | ePub | 2 | 08-18-2012 05:01 AM |
Valid ePub, but not valid enough for iBooks | MichaelGray | ePub | 46 | 01-14-2011 08:22 AM |