View Single Post
Old 05-20-2025, 11:56 PM   #1
Shane45666
Junior Member
Shane45666 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: May 2025
Device: Calibre
Error opening rezipped or open Epub file

Keep getting this error when trying to edit a re-zipped EPUB, or open the unzipped folder to edit.


calibre, version 8.4.0

Traceback (most recent call last):
File "calibre\gui2\tweak_book\job.py", line 33, in run
File "calibre\gui2\tweak_book\boss.py", line 101, in get_container
File "calibre\ebooks\oeb\polish\container.py", line 1637, in get_container
File "calibre\ebooks\oeb\polish\container.py", line 1226, in __init__
calibre.ebooks.oeb.polish.container.InvalidEpub: META-INF/container.xml contains no link to OPF file

There is an OPF file, and a META-INF file, and the container.xml seems to have a link to the OPF file

XML File

<?xml version="1.0" encoding="UTF-8"?><container xmlns="urnasis:names:tcpendocument:xmlns:conta iner" version="1.0">
<rootfiles xmlns="">
<rootfile full-path="OPS/package.opf" media-type="application/oebps-package+xml"/>
</rootfiles>
</container>

How to fix?
Shane45666 is offline   Reply With Quote