View Single Post
Old 05-03-2012, 10:36 AM   #1
iomari
Zealot
iomari doesn't litteriomari doesn't litter
 
Posts: 146
Karma: 100
Join Date: Aug 2003
Location: Nigeria
Device: galaxy tab
converting formats

I just updated from 8.0.47 to 8.0.49 amd I can no longer convert books form one format to another. Here is the error message:

calibre, version 0.8.49
ERROR: Conversion Error: <b>Failed</b>: Convert book 1 of 1 (Star Trek - Voy - 004 - Violations)

Convert book 1 of 1 (Star Trek - Voy - 004 - Violations)
Resolved conversion options
calibre version: 0.8.49
{'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|prologue|epilogue\\s+', 'i')) or @class = 'chapter']",
'chapter_mark': u'pagebreak',
'comments': None,
'cover': u'/tmp/calibre_0.8.49_tmp_ebxW8G/L9OQDF.jpeg',
'debug_pipeline': None,
'dehyphenate': True,
'delete_blank_paragraphs': True,
'disable_font_rescaling': False,
'duplicate_links_in_toc': False,
'enable_heuristics': False,
'extra_css': None,
'filter_css': u'',
'fix_indents': True,
'font_size_mapping': None,
'force_max_line_length': False,
'format_scene_breaks': True,
'html_unwrap_factor': 0.4,
'inline_toc': True,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.InputProfile object at 0x89ade4c>,
'insert_blank_line': False,
'insert_blank_line_size': 0.5,
'insert_metadata': True,
'isbn': None,
'italicize_common_cases': True,
'keep_color': True,
'keep_image_references': False,
'keep_ligatures': False,
'keep_links': 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,
'markup_chapter_headings': True,
'max_line_length': 0,
'max_toc_links': 50,
'minimum_line_height': 120.0,
'newline': u'system',
'no_chapters_in_toc': False,
'no_inline_navbars': False,
'output_profile': <calibre.customize.profiles.OutputProfile object at 0x89b240c>,
'page_breaks_before': u"//*[name()='h1' or name()='h2']",
'prefer_metadata_cover': False,
'pretty_print': False,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': u'/tmp/calibre_0.8.49_tmp_ebxW8G/PvN7zz.opf',
'remove_fake_margins': True,
'remove_first_image': False,
'remove_paragraph_spacing': False,
'remove_paragraph_spacing_indent_size': 1.5,
'renumber_headings': True,
'replace_scene_breaks': u'',
'search_replace': '[]',
'series': None,
'series_index': None,
'smarten_punctuation': False,
'sr1_replace': None,
'sr1_search': None,
'sr2_replace': None,
'sr2_search': None,
'sr3_replace': None,
'sr3_search': None,
'tags': None,
'timestamp': None,
'title': None,
'title_sort': None,
'toc_filter': None,
'toc_threshold': 6,
'txt_output_encoding': u'utf-8',
'txt_output_formatting': u'plain',
'unsmarten_punctuation': False,
'unwrap_lines': True,
'use_auto_toc': False,
'verbose': 2}
InputFormatPlugin: EPUB Input running
on /tmp/calibre_0.8.49_tmp_ebxW8G/JoEeWg.epub
Found HTML cover titlepage.xhtml
Parsing all content...
Parsing ~cov0004.htm ...
Parsing Star Trek - Voy - 004 - Violations_split_002.htm ...
Parsing Star Trek - Voy - 004 - Violations_split_003.htm ...
Parsing jacket.xhtml ...
Parsing titlepage.xhtml ...
Parsing Star Trek - Voy - 004 - Violations_split_001.htm ...
Parsing Star Trek - Voy - 004 - Violations_split_000.htm ...
Parsing stylesheet.css ...
Failed to parse content in stylesheet.css
Traceback (most recent call last):
File "/mnt/installs/iomari/work/calibre-8.0.49/src/calibre/ebooks/oeb/reader.py", line 163, in _manifest_prune_invalid
item.data
File "/mnt/installs/iomari/work/calibre-8.0.49/src/calibre/ebooks/oeb/base.py", line 900, in fget
data = self._parse_css(data)
File "/mnt/installs/iomari/work/calibre-8.0.49/src/calibre/ebooks/oeb/base.py", line 852, in _parse_css
data = parser.parseString(data, href=self.href, validate=False)
TypeError: parseString() got an unexpected keyword argument 'validate'

Referenced file 'stylesheet.css' not in manifest
Parsing stylesheet.css ...
Failed to read from manifest entry with id: added, ignoring
Traceback (most recent call last):
File "/mnt/installs/iomari/work/calibre-8.0.49/src/calibre/ebooks/oeb/reader.py", line 187, in _manifest_add_missing
data = item.data
File "/mnt/installs/iomari/work/calibre-8.0.49/src/calibre/ebooks/oeb/base.py", line 900, in fget
data = self._parse_css(data)
File "/mnt/installs/iomari/work/calibre-8.0.49/src/calibre/ebooks/oeb/base.py", line 852, in _parse_css
data = parser.parseString(data, href=self.href, validate=False)
TypeError: parseString() got an unexpected keyword argument 'validate'

Reading TOC from NCX...
Merging user specified metadata...
Detecting structure...
Removed existing jacket
Inserting metadata into book...
Flattening CSS and remapping font sizes...
Traceback (most recent call last):
File "/usr/bin/calibre-parallel", line 19, in <module>
sys.exit(main())
File "/mnt/installs/iomari/work/calibre-8.0.49/src/calibre/utils/ipc/worker.py", line 191, in main
result = func(*args, **kwargs)
File "/mnt/installs/iomari/work/calibre-8.0.49/src/calibre/gui2/convert/gui_conversion.py", line 31, in gui_convert_override
override_input_metadata=True)
File "/mnt/installs/iomari/work/calibre-8.0.49/src/calibre/gui2/convert/gui_conversion.py", line 25, in gui_convert
plumber.run()
File "/mnt/installs/iomari/work/calibre-8.0.49/src/calibre/ebooks/conversion/plumber.py", line 1065, in run
flattener(self.oeb, self.opts)
File "/mnt/installs/iomari/work/calibre-8.0.49/src/calibre/ebooks/oeb/transforms/flatcss.py", line 144, in __call__
self.stylize_spine()
File "/mnt/installs/iomari/work/calibre-8.0.49/src/calibre/ebooks/oeb/transforms/flatcss.py", line 171, in stylize_spine
extra_css=css)
File "/mnt/installs/iomari/work/calibre-8.0.49/src/calibre/ebooks/oeb/stylizer.py", line 189, in __init__
stylesheets = [html_css_stylesheet()]
File "/mnt/installs/iomari/work/calibre-8.0.49/src/calibre/ebooks/oeb/stylizer.py", line 38, in html_css_stylesheet
_html_css_stylesheet = parseString(html_css, validate=False)
File "/usr/lib/python2.7/site-packages/cssutils/__init__.py", line 174, in parseString
return CSSParser().parseString(*a, **k)
TypeError: parseString() got an unexpected keyword argument 'validate'
iomari is offline   Reply With Quote