View Single Post
Old 05-26-2011, 10:20 AM   #12
MattScott
Junior Member
MattScott began at the beginning.
 
Posts: 7
Karma: 10
Join Date: May 2011
Device: ipad
My cover image is currently only linked through the opf file:

<EmbeddedCover>GROST-cover.jpg</EmbeddedCover>

I tried to convert via calibre and it failed out, probably don't have the settings right. My zip file looks good though, just doesn't allow me to create it properly.

Here is the error log using default settings:

calibre, version 0.8.1
ERROR: Conversion Error: <b>Failed</b>: Convert book 1 of 1 (Get Rid of Stinkin' Thinking)

Convert book 1 of 1 (Get Rid of Stinkin' Thinking)
Processing archive...
Resolved conversion options
calibre version: 0.8.1
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0.0,
'book_producer': None,
'breadth_first': False,
'change_justification': u'original',
'chapter': u'//h:h3[re:test(@class, id, "chap, start, begin, intro", "i")]',
'chapter_mark': u'pagebreak',
'comments': None,
'cover': u'c:\\docume~1\\mds\\locals~1\\temp\\calibre_0.8.1 _tmp_69rmtj\\calibre_0.8.1_vlklua.jpeg',
'debug_pipeline': None,
'dehyphenate': True,
'delete_blank_paragraphs': True,
'disable_font_rescaling': False,
'dont_compress': False,
'dont_package': False,
'enable_heuristics': False,
'extra_css': None,
'fix_indents': True,
'font_size_mapping': None,
'format_scene_breaks': True,
'html_unwrap_factor': 0.4,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.InputProfile object at 0x041084F0>,
'insert_blank_line': False,
'insert_metadata': False,
'isbn': None,
'italicize_common_cases': True,
'keep_ligatures': False,
'language': None,
'level1_toc': u'//*[re:test(@id, "toc", "i")]',
'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_levels': 5,
'max_toc_links': 50,
'minimum_line_height': 120.0,
'mobi_ignore_margins': False,
'no_chapters_in_toc': False,
'no_inline_navbars': True,
'no_inline_toc': False,
'output_profile': <calibre.customize.profiles.KindleOutput object at 0x04108810>,
'page_breaks_before': u"//*[name()='h1' or name()='h2']",
'personal_doc': u'[PDOC]',
'prefer_author_sort': False,
'prefer_metadata_cover': False,
'pretty_print': False,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': u'c:\\docume~1\\mds\\locals~1\\temp\\calibre_0.8.1 _tmp_69rmtj\\calibre_0.8.1_sugkdq.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'',
'rescale_images': False,
'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': 20,
'toc_title': None,
'unwrap_lines': True,
'use_auto_toc': False,
'verbose': 2}
InputFormatPlugin: HTML Input running
on c:\docume~1\mds\locals~1\temp\calibre_0.8.1_tmp_69 rmtj\calibre_0.8.1_sezjxw_plumber_archive\content. opf
Parsing all content...
Manifest item 'toc.ncx' not found
Parsing StinkinThinking.html ...
Generating default TOC from spine...
Merging user specified metadata...
Detecting structure...
Python function terminated unexpectedly
test() takes at most 4 positional arguments (5 given) (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 119, 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 958, in run
File "site-packages\calibre\ebooks\oeb\transforms\structure.p y", line 33, in __call__
File "site-packages\calibre\ebooks\oeb\transforms\structure.p y", line 76, in detect_chapters
File "xpath.pxi", line 469, in lxml.etree.XPath.__call__ (src/lxml/lxml.etree.c:115236)
File "xpath.pxi", line 238, in lxml.etree._XPathEvaluatorBase._handle_result (src/lxml/lxml.etree.c:113030)
File "lxml.etree.pyx", line 282, in lxml.etree._ExceptionContext._raise_if_stored (src/lxml/lxml.etree.c:7972)
File "extensions.pxi", line 755, in lxml.etree._extension_function_call (src/lxml/lxml.etree.c:110601)
File "extensions.pxi", line 421, in lxml.etree._ExsltRegExp.test (src/lxml/lxml.etree.c:107039)
TypeError: test() takes at most 4 positional arguments (5 given)
MattScott is offline   Reply With Quote