Quote:
Originally Posted by PeterT
138 kEpubs acquired  3 of them fail in Modify ePub processing
Code:
calibre, version 1.32.0
ERROR: Modify ePub failed: No ePub files were updated
Modify ePubs
Logfile for book ID 81 (Heat Seeker / Unknown)
81
Modifying: C:\Users\Peter\AppData\Local\Temp\calibre_v1urgl\72wbgu_modify_epub\81.epub
Parsing xml file: OPS/package.opf
Heat Seeker - ERROR: Traceback (most recent call last):
File "calibre_plugins.modify_epub.modify", line 78, in process_book
File "calibre_plugins.modify_epub.container", line 119, in __init__
File "calibre_plugins.modify_epub.container", line 226, in get_parsed_etree
File "calibre_plugins.modify_epub.container", line 248, in _parse_xhtml
File "site-packages\calibre\ebooks\oeb\parse_utils.py", line 276, in parse_html
UnboundLocalError: local variable 'pre' referenced before assignment
ePub not changed after 0.26 seconds
|
None of that code is close to what I've changed; I don't think it's even getting to the new routines. My first instinct is that the OPF file may not be formatted properly, or perhaps the first file in the spine has a similar issue.
Could you try the following steps and see what happens?
1. Try the validator at
http://validator.idpf.org/ and see if that shows a syntax error somewhere in the book. If so, GIGO applies.
2. Try parsing one of those problematic books without invoking the new routines - say, maybe just applying the "remove ADEPT remnants" tweak - and see if you get the same error. If you do, see if that remains the case with the current release version of the plugin. If both of those are true, it's definitely not my error, but it bears further inspection. If one or both of those is false, then it's my bug, but it's manifesting in a bizarre way.
It's certainly a bug, but my question is whose bug it is - mine, Grant's, calibre's, or the book formatter's.