I'm getting an error that I've never seen before when converting a .htmlz file to epub (or any other format for that matter).
1) this file started as a badly formatted regular html file that was a conversion from abcamberlit converter, with several dozen images and lots of text.
2) I imported that file.html into calibre with no error, it came in as a .zip file
3) I used calibre to convert the .zip to .htmlz, again no error at all
4) I spent about 12 hours editing the file, cleaning up formatting, adding a few css classes, searching and replacing some here and there but nothing different than I've done hundreds of times on other files before
...then upon converting the edited .htmlz to epub (or any other format), I get the following error and cannot continue:
Code:
calibre, version 0.8.16
ERROR: Conversion Error: ...
<snip>
Flattening CSS and remapping font sizes...
Python function terminated unexpectedly
CSSNamespaceRule: namespaceURI is readonly. (Error Code: 1)
Traceback (most recent call last):
File "site.py", line 132, in main
File "site.py", line 109, in run_entry_point
File "site-packages\calibre\utils\ipc\worker.py", line 181, in main
File "site-packages\calibre\gui2\convert\gui_conversion.py", line 31, in gui_convert_override
File "site-packages\calibre\gui2\convert\gui_conversion.py", line 25, in gui_convert
File "site-packages\calibre\ebooks\conversion\plumber.py", line 1023, in run
File "site-packages\calibre\ebooks\oeb\transforms\flatcss.py", line 123, in __call__
File "site-packages\calibre\ebooks\oeb\transforms\flatcss.py", line 150, in stylize_spine
File "site-packages\calibre\ebooks\oeb\stylizer.py", line 222, in __init__
File "site-packages\cssutils-0.9.7b4-py2.7.egg\cssutils\util.py", line 719, in __setitem__
File "site-packages\cssutils-0.9.7b4-py2.7.egg\cssutils\css\cssnamespacerule.py", line 235, in _setNamespaceURI
File "site-packages\cssutils-0.9.7b4-py2.7.egg\cssutils\errorhandler.py", line 96, in __handle
xml.dom.NoModificationAllowedErr: CSSNamespaceRule: namespaceURI is readonly.
Ovbiously something's screwed in my css, but I've since run the file through HTMLTidy and TopStyle's CSS checker and there are no glaring or fatal errors that I can see.
It displays perfectly in firefox and IE8, I can't see anything wrong with it.
Can anyone please help me to salvage this? I've invested *way* too much time in this particular file to start over!
Thanks
The REAL Joe