Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 06-11-2014, 11:03 AM   #1
RZetlin
Addict
RZetlin ought to be getting tired of karma fortunes by now.RZetlin ought to be getting tired of karma fortunes by now.RZetlin ought to be getting tired of karma fortunes by now.RZetlin ought to be getting tired of karma fortunes by now.RZetlin ought to be getting tired of karma fortunes by now.RZetlin ought to be getting tired of karma fortunes by now.RZetlin ought to be getting tired of karma fortunes by now.RZetlin ought to be getting tired of karma fortunes by now.RZetlin ought to be getting tired of karma fortunes by now.RZetlin ought to be getting tired of karma fortunes by now.RZetlin ought to be getting tired of karma fortunes by now.
 
RZetlin's Avatar
 
Posts: 383
Karma: 3461302
Join Date: Mar 2013
Location: Canada
Device: Kobo Aura One, Kobo Glo, Kobo Aura HD (RIP)
Kobo - OPF file Error

I have one epub that cannot be transferred to my Kobo device.

Other epub books are able to transfer okay.

The error message I get is:

Code:
calibre, version 1.39.0
ERROR: Error: Error communicating with device

OPF file does not exist at location pointed to by META-INF/container.xml

Traceback (most recent call last):
  File "site-packages\calibre\gui2\device.py", line 86, in run
  File "site-packages\calibre\gui2\device.py", line 571, in _upload_books
  File "calibre_plugins.kobotouch_extended.device.driver", line 276, in upload_books
  File "site-packages\calibre\devices\kobo\driver.py", line 1898, in upload_books
  File "calibre_plugins.kobotouch_extended.device.driver", line 175, in _modify_epub
  File "site-packages\calibre\ebooks\oeb\polish\container.py", line 859, in __init__
InvalidEpub: OPF file does not exist at location pointed to by META-INF/container.xml
RZetlin is offline   Reply With Quote
Old 06-11-2014, 11:25 AM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,428
Karma: 145491800
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
It's not a Kobo problem.

The file container.xml points to where the OPF file lives in the ePub and in this case, either the OPF is missing or container.xml is not pointing to the correct location.

Try the edit book feature of Calibre to try to fix it.
JSWolf is offline   Reply With Quote
Advert
Old 06-11-2014, 11:37 AM   #3
RZetlin
Addict
RZetlin ought to be getting tired of karma fortunes by now.RZetlin ought to be getting tired of karma fortunes by now.RZetlin ought to be getting tired of karma fortunes by now.RZetlin ought to be getting tired of karma fortunes by now.RZetlin ought to be getting tired of karma fortunes by now.RZetlin ought to be getting tired of karma fortunes by now.RZetlin ought to be getting tired of karma fortunes by now.RZetlin ought to be getting tired of karma fortunes by now.RZetlin ought to be getting tired of karma fortunes by now.RZetlin ought to be getting tired of karma fortunes by now.RZetlin ought to be getting tired of karma fortunes by now.
 
RZetlin's Avatar
 
Posts: 383
Karma: 3461302
Join Date: Mar 2013
Location: Canada
Device: Kobo Aura One, Kobo Glo, Kobo Aura HD (RIP)
Quote:
Originally Posted by JSWolf View Post
It's not a Kobo problem.

The file container.xml points to where the OPF file lives in the ePub and in this case, either the OPF is missing or container.xml is not pointing to the correct location.

Try the edit book feature of Calibre to try to fix it.
When I try and edit the book I get this error

Code:
Traceback (most recent call last):
  File "site-packages\calibre\gui2\tweak_book\job.py", line 34, in run
  File "site-packages\calibre\gui2\tweak_book\boss.py", line 52, in get_container
  File "site-packages\calibre\ebooks\oeb\polish\container.py", line 1132, in get_container
  File "site-packages\calibre\ebooks\oeb\polish\container.py", line 859, in __init__
InvalidEpub: OPF file does not exist at location pointed to by META-INF/container.xml
When I try and open the book in Sigil I get this error:

Code:
Cannot extract file: ando*_9781612626420_epub3_opf_r1.opf
I don't know how to fix this book.
RZetlin is offline   Reply With Quote
Old 06-11-2014, 12:59 PM   #4
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
The problem is that it is basically an invalid epub file as its internal structure is incorrect.

A way I have found to fix such books is to
  • Change the file extension to ZIP and extract the contained files
  • Locate the html files that contain the text of the book, and then create an index.html file that points to them in the right order
  • Add the index.html file to Calibre to create an HTML version of the book
  • Use Calibre to convert the freshly imported file to epub, which now has the correct internal structure for an epub
itimpi is offline   Reply With Quote
Old 06-11-2014, 04:11 PM   #5
RZetlin
Addict
RZetlin ought to be getting tired of karma fortunes by now.RZetlin ought to be getting tired of karma fortunes by now.RZetlin ought to be getting tired of karma fortunes by now.RZetlin ought to be getting tired of karma fortunes by now.RZetlin ought to be getting tired of karma fortunes by now.RZetlin ought to be getting tired of karma fortunes by now.RZetlin ought to be getting tired of karma fortunes by now.RZetlin ought to be getting tired of karma fortunes by now.RZetlin ought to be getting tired of karma fortunes by now.RZetlin ought to be getting tired of karma fortunes by now.RZetlin ought to be getting tired of karma fortunes by now.
 
RZetlin's Avatar
 
Posts: 383
Karma: 3461302
Join Date: Mar 2013
Location: Canada
Device: Kobo Aura One, Kobo Glo, Kobo Aura HD (RIP)
Thank you for your help guys.

I found the issues with the book.

The container.xml file had incorrect file path name.

It had ando*_97.opf while the file itself was named ando__97.opf.

It was a book I purchased from Kobo which the Kobo reader can open, but not Calibre.
RZetlin is offline   Reply With Quote
Advert
Old 06-11-2014, 04:41 PM   #6
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,378
Karma: 78877538
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Could you share the name of the book? For all we know it might be an issue with the tool used to remove the Kobo DRM....
PeterT is offline   Reply With Quote
Old 06-11-2014, 05:49 PM   #7
RZetlin
Addict
RZetlin ought to be getting tired of karma fortunes by now.RZetlin ought to be getting tired of karma fortunes by now.RZetlin ought to be getting tired of karma fortunes by now.RZetlin ought to be getting tired of karma fortunes by now.RZetlin ought to be getting tired of karma fortunes by now.RZetlin ought to be getting tired of karma fortunes by now.RZetlin ought to be getting tired of karma fortunes by now.RZetlin ought to be getting tired of karma fortunes by now.RZetlin ought to be getting tired of karma fortunes by now.RZetlin ought to be getting tired of karma fortunes by now.RZetlin ought to be getting tired of karma fortunes by now.
 
RZetlin's Avatar
 
Posts: 383
Karma: 3461302
Join Date: Mar 2013
Location: Canada
Device: Kobo Aura One, Kobo Glo, Kobo Aura HD (RIP)
Quote:
Originally Posted by PeterT View Post
Could you share the name of the book? For all we know it might be an issue with the tool used to remove the Kobo DRM....
It could be an issue with obok, but have used it with other books before.
RZetlin is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Change opf filename from content.opf to title.opf northstar7 Sigil 3 09-23-2013 12:44 PM
What is the OPF file HFC3 Library Management 3 07-08-2013 05:15 AM
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
OPF file OPS/package.opf is missing Run2Eat ePub 2 05-31-2011 06:52 PM


All times are GMT -4. The time now is 06:09 PM.


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