Connoisseur
Posts: 67
Karma: 50952
Join Date: Mar 2010
Device: kindle paperwhite
|
Suddenly Calibre can't process html
I have installed the new Calibre (uninstalled, rebooted, installed again) and still find that I can't convert a simple html. Basically Calibre is telling me that there is no <html> tag, "Spine is empty," although this is NOT true. I know that files I converted this week with no problem, cannot be redone now. So it's NOT a problem in the files themselves. For some reason Calibre cannot read my html files. Is there a simple answer? Below is the error message, and after that, the opening code on the html file. If this isn't enough, I'll open a ticket--I actually tried that, but couldn't quickly find where to do so.
Thanks
ERROR: Conversion Error: <b>Failed</b>: Convert book 1 of 1
Convert book 1 of 1
Processing archive...
Resolved conversion options
calibre version: 0.7.16
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0.0,
'book_producer': None,
'breadth_first': False,
'change_justification': u'left',
'chapter': u"//*[((name()='h1' or name()='h2') and re:test(., 'chapter|book|section|part\\s+', 'i')) or @class = 'chapter']",
'chapter_mark': u'pagebreak',
'comments': None,
'cover': 'c:\\users\\me\\appdata\\local\\temp\\calibre_0.7. 16_tmp_lo05cb\\calibre_0.7.16_fuistw.jpeg',
'debug_pipeline': None,
'disable_font_rescaling': False,
'dont_compress': False,
'dont_package': False,
'extra_css': None,
'font_size_mapping': None,
'footer_regex': u'(?i)(?<=<hr>)((\\s*<a name=\\d+></a>((<img.+?>)*<br>\\s*)?\\d+<br>\\s*.*?\\s*)|(\\s* <a name=\\d+></a>((<img.+?>)*<br>\\s*)?.*?<br>\\s*\\d+))(?=<br>)' ,
'header_regex': u'(?i)(?<=<hr>)((\\s*<a name=\\d+></a>((<img.+?>)*<br>\\s*)?\\d+<br>\\s*.*?\\s*)|(\\s* <a name=\\d+></a>((<img.+?>)*<br>\\s*)?.*?<br>\\s*\\d+))(?=<br>)' ,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.InputProfile object at 0x04F839F0>,
'insert_blank_line': False,
'insert_metadata': True,
'isbn': None,
'keep_ligatures': False,
'language': None,
'level1_toc': None,
'level2_toc': None,
'level3_toc': None,
'line_height': 0.0,
'linearize_tables': False,
'margin_bottom': 5.0,
'margin_left': 5.0,
'margin_right': 5.0,
'margin_top': 5.0,
'max_levels': 5,
'max_toc_links': 120,
'no_chapters_in_toc': False,
'no_inline_navbars': True,
'no_inline_toc': False,
'output_profile': <calibre.customize.profiles.KindleOutput object at 0x04F83CD0>,
'page_breaks_before': u"//*[name()='h1' or name()='h2']",
'personal_doc': u'[PDOC]',
'prefer_author_sort': True,
'prefer_metadata_cover': False,
'preprocess_html': True,
'pretty_print': False,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': 'c:\\users\\rob\\appdata\\local\\temp\\calibre_0.7 .16_tmp_lo05cb\\calibre_0.7.16_vqvw1_.opf',
'remove_first_image': False,
'remove_footer': False,
'remove_header': False,
'remove_paragraph_spacing': True,
'remove_paragraph_spacing_indent_size': 1.5,
'rescale_images': False,
'series': None,
'series_index': None,
'tags': None,
'timestamp': None,
'title': None,
'title_sort': None,
'toc_filter': None,
'toc_threshold': 6,
'toc_title': None,
'unwrap_factor': 0.0,
'use_auto_toc': True,
'verbose': 2}
InputFormatPlugin: HTML Input running
on c:\users\rob\appdata\local\temp\calibre_0.7.16_tmp _jgzqea\calibre_0.7.16_ktzt6d_plumber\content.opf
Parsing all content...
Manifest item 'toc.ncx' not found
Parsing file.html ...
Failed to parse content in file.html
Traceback (most recent call last):
File "site-packages\calibre\ebooks\oeb\reader.py", line 159, in _manifest_prune_invalid
File "site-packages\calibre\ebooks\oeb\base.py", line 1060, in fget
File "site-packages\calibre\ebooks\oeb\base.py", line 789, in _parse_xhtml
File "site-packages\calibre\ebooks\conversion\preprocess.py", line 350, in __call__
File "site-packages\calibre\ebooks\html\input.py", line 494, in preprocess_html
AttributeError: 'HTMLInput' object has no attribute 'log'
Parsing stylesheet.css ...
Spine item 'html' not found
Python function terminated unexpectedly
Spine is empty (Error Code: 1)
Traceback (most recent call last):
File "site.py", line 103, in main
File "site.py", line 85, in run_entry_point
File "site-packages\calibre\utils\ipc\worker.py", line 99, in main
File "site-packages\calibre\gui2\convert\gui_conversion.py", line 24, in gui_convert
File "site-packages\calibre\ebooks\conversion\plumber.py", line 815, in run
File "site-packages\calibre\customize\conversion.py", line 211, in __call__
File "site-packages\calibre\ebooks\html\input.py", line 298, in convert
File "site-packages\calibre\ebooks\conversion\plumber.py", line 951, in create_oebbook
File "site-packages\calibre\ebooks\oeb\reader.py", line 72, in __call__
File "site-packages\calibre\ebooks\oeb\reader.py", line 594, in _all_from_opf
File "site-packages\calibre\ebooks\oeb\reader.py", line 289, in _spine_from_opf
calibre.ebooks.oeb.base.OEBError: Spine is empty
* * * * * * * *
Yet the html file that was the source begins with this code:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>(file)</title>
|