Hi there,
I just updated my calibre version to 0.7.5 and am now having a problem converting to EPUB. This happened with both LIT, HTML and EPUB->EPUB(just tried it to see what would happen). Here is my error:
Code:
ERROR: Conversion Error: <b>Failed</b>: Convert book 1 of 1 (Cut and Run)
Convert book 1 of 1 (Cut and Run)
Resolved conversion options
calibre version: 0.7.5
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0.0,
'book_producer': None,
'change_justification': u'original',
'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': '/tmp/calibre_0.7.5_Hn_9qT.jpeg',
'debug_pipeline': None,
'disable_font_rescaling': False,
'dont_split_on_page_breaks': False,
'extra_css': None,
'extract_to': None,
'flow_size': 260,
'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 0x9c5764c>,
'insert_blank_line': False,
'insert_metadata': False,
'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_toc_links': 50,
'no_chapters_in_toc': False,
'no_default_epub_cover': False,
'no_inline_navbars': False,
'no_svg_cover': False,
'output_profile': <calibre.customize.profiles.NookOutput object at 0x9c57e4c>,
'page_breaks_before': u'/',
'prefer_metadata_cover': False,
'preprocess_html': False,
'preserve_cover_aspect_ratio': False,
'pretty_print': True,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': '/tmp/calibre_0.7.5_75k3SS.opf',
'remove_first_image': False,
'remove_footer': False,
'remove_header': False,
'remove_paragraph_spacing': False,
'remove_paragraph_spacing_indent_size': 1.5,
'series': None,
'series_index': None,
'tags': None,
'timestamp': None,
'title': None,
'title_sort': None,
'toc_filter': None,
'toc_threshold': 6,
'use_auto_toc': False,
'verbose': 2}
InputFormatPlugin: LIT Input running
on /home/kevin/ebooks/Ridley Pearson/Cut and Run (235)/Cut and Run - Ridley Pearson.lit
Parsing all content...
Parsing CutandRun_body.html ...
Forcing CutandRun_body.html into XHTML namespace
Parsing CutandRun_copyright.html ...
Forcing CutandRun_copyright.html into XHTML namespace
Parsing cutandrun_style.css ...
Failed to parse content in cutandrun_style.css
Traceback (most recent call last):
File "/usr/lib/calibre/calibre/ebooks/oeb/reader.py", line 159, in _manifest_prune_invalid
item.data
File "/usr/lib/calibre/calibre/ebooks/oeb/base.py", line 1063, in fget
data = self._parse_css(data)
File "/usr/lib/calibre/calibre/ebooks/oeb/base.py", line 1009, in _parse_css
import_rules = list(data.cssRules.rulesOfType(CSSRule.IMPORT_RULE))
AttributeError: 'CSSRuleList' object has no attribute 'rulesOfType'
Parsing CutandRun_toc.html ...
Forcing CutandRun_toc.html into XHTML namespace
Reading TOC from HTML...
Choosing other.ms-coverimage-standard:img/CutAndRun-cover.jpg as the cover
Merging user specified metadata...
Detecting structure...
Flattening CSS and remapping font sizes...
Stylesheet 'cutandrun_style.css' referenced by file 'CutandRun_body.html' not in manifest
Stylesheet 'cutandrun_style.css' referenced by file 'CutandRun_toc.html' not in manifest
Source base font size is 12.00000pt
Cleaning up manifest...
Trimming unused files from manifest...
Parsing stylesheet.css ...
Traceback (most recent call last):
File "/usr/bin/calibre-parallel", line 19, in <module>
sys.exit(main())
File "/usr/lib/calibre/calibre/utils/ipc/worker.py", line 99, in main
result = func(*args, **kwargs)
File "/usr/lib/calibre/calibre/gui2/convert/gui_conversion.py", line 24, in gui_convert
plumber.run()
File "/usr/lib/calibre/calibre/ebooks/conversion/plumber.py", line 909, in run
trimmer(self.oeb, self.opts)
File "/usr/lib/calibre/calibre/ebooks/oeb/transforms/trimmanifest.py", line 57, in __call__
for href in cssutils.getUrls(item.data):
File "/usr/lib/calibre/calibre/ebooks/oeb/base.py", line 1063, in fget
data = self._parse_css(data)
File "/usr/lib/calibre/calibre/ebooks/oeb/base.py", line 1009, in _parse_css
import_rules = list(data.cssRules.rulesOfType(CSSRule.IMPORT_RULE))
AttributeError: 'CSSRuleList' object has no attribute 'rulesOfType'
My system is up to date as of yesterday.
Thanks!
Kevin