Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > Kindle Formats

Notices

Reply
 
Thread Tools Search this Thread
Old 12-18-2017, 01:36 PM   #1
dtsmith
Junior Member
dtsmith began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Dec 2017
Device: none
ePub3 to Mobi Error - Error(prcgen):E21027: Epub file has more than one opf file

Hi! This is my first post on this forum and was hoping to get an issue with my mobi conversion resolved. I continue to get this error when converting an ePub3 to Mobi via Kindlegen in Terminal:

Error(prcgen):E21027: Epub file has more than one opf file

I actually only have one opf file in the zipped ePub. The file passes validation just fine so I'm not sure where to begin. Any help would be appreciated. Thanks!
dtsmith is offline   Reply With Quote
Old 12-19-2017, 10:38 AM   #2
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,630
Karma: 5433388
Join Date: Nov 2009
Device: many
Unzip a copy of your epub and look inside the META-INF folder at the container.xml file.
It is an xml (text) file and can be opened in any text editor.

Look to see if there is more than one rootfile tag. Then make sure the rootfile full-path attribute properly points at what you think is your opf file. This path is relative from the root of the epub (where you see the mimetype and META-INF folder) and is not relative to the location of the container.xml file.

Note, epub3 epubs may have multiple opf files in them to hold multiple renditions of the ebook. That said, no one and nothing I know supports or uses that feature.

Hope this helps track down the issue.
KevinH is offline   Reply With Quote
Advert
Old 01-29-2018, 01:59 PM   #3
dtsmith
Junior Member
dtsmith began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Dec 2017
Device: none
Thanks KevinH! Unfortunately, I'm still tracking down why this isn't working. There is only one reference to the single OPF file I have in the ePub so I'm not sure why the error is appearing stating there are multiple OPF files in the file.
dtsmith is offline   Reply With Quote
Old 01-29-2018, 02:38 PM   #4
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,630
Karma: 5433388
Join Date: Nov 2009
Device: many
If you are on Linux or Mac try running:

unzip -t PATHTOYOUREPUB

And post that plus the contents of the container.xml and content.opf and we should be able to figure out what is going on.
KevinH is offline   Reply With Quote
Old 01-30-2018, 11:20 AM   #5
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
You could perhaps try converting using Calibre and seeing if that works any better. Calibre will read ePub3 files, although it doesn't create them itself.
HarryT is offline   Reply With Quote
Advert
Reply

Tags
epub 3, error, mobi conversion


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
error from Sigil when loading particular epub file JohnNC Sigil 15 08-08-2017 04:52 AM
Conversion Error on Bookbaby for my EPUB File Koyejo Introduce Yourself 1 07-04-2014 10:01 AM
Kobo - OPF file Error RZetlin Calibre 6 06-11-2014 05:49 PM
TWO OPF files or something like Media Queries in the OPF file for KF8 and MOBI? DHahn Kindle Formats 3 04-17-2012 04:06 AM
ePub OPF file error soulartist ePub 4 10-03-2011 05:09 PM


All times are GMT -4. The time now is 04:31 AM.


MobileRead.com is a privately owned, operated and funded community.