View Single Post
Old 12-06-2012, 08:50 PM   #22
cerda
Junior Member
cerda began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Dec 2012
Device: Kindle 4
Hello Saulius,

your plugin saved me a lot of time - HUGE THANKS.

Unfortunately one of many files seems to be not possible to convert. Would you mind checking why?

Cerda

Quote:
calibre, version 0.9.3 (win32, isfrozen: True)
Conversion Error: Failed: Convert book 1 of 1 (eBook)

Convert book 1 of 1 (eBook)
Resolved conversion options
calibre version: 0.9.3
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 12.0,
'book_producer': None,
'change_justification': u'original',
'chapter': u"//*[((name()='h1' or name()='h2') and re:test(., '\\s*((chapter|book|section|part)\\s+)|((prolog|pr ologue|epilogue)(\\s+|$))', 'i')) or @class = 'chapter']",
'chapter_mark': u'pagebreak',
'comments': None,
'cover': u'C:\\Users\\cerda\\AppData\\Local\\Temp\\calibre_ 0.9.3_tmp_ab1vzs\\ebai6z.jpeg',
'debug_pipeline': None,
'dehyphenate': True,
'delete_blank_paragraphs': True,
'disable_font_rescaling': True,
'dont_compress': False,
'duplicate_links_in_toc': False,
'enable_heuristics': False,
'extra_css': None,
'extract_to': None,
'filter_css': u'',
'first_cover': True,
'fix_indents': True,
'font_embed': u'All',
'font_size_mapping': None,
'format_scene_breaks': True,
'html_unwrap_factor': 0.4,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.InputProfile object at 0x03F173D0>,
'insert_blank_line': False,
'insert_blank_line_size': 0.5,
'insert_metadata': False,
'isbn': None,
'italicize_common_cases': True,
'keep_ligatures': False,
'language': None,
'level1_toc': u'//h:h1',
'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_toc_links': 50,
'minimum_line_height': 120.0,
'mobi_file_type': u'old',
'mobi_ignore_margins': False,
'mobi_keep_original_images': False,
'mobi_toc_at_start': False,
'no_chapters_in_toc': False,
'no_inline_navbars': True,
'no_inline_toc': False,
'output_profile': <calibre.customize.profiles.KindleOutput object at 0x03F17710>,
'page_breaks_before': u"//*[name()='h1']",
'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:\\Users\\cerda\\AppData\\Local\\Temp\\calibre_ 0.9.3_tmp_ab1vzs\\sc7ga9.opf',
'remove_fake_margins': True,
'remove_first_image': False,
'remove_paragraph_spacing': False,
'remove_paragraph_spacing_indent_size': 1.5,
'renumber_headings': True,
'replace_bap': False,
'replace_scene_breaks': u'',
'search_replace': '[]',
'series': None,
'series_index': None,
'share_not_sync': False,
'skip_first_pg': False,
'smarten_punctuation': False,
'sr1_replace': None,
'sr1_search': None,
'sr2_replace': None,
'sr2_search': None,
'sr3_replace': None,
'sr3_search': None,
'start_reading_at': None,
'substitute_normal_serif': False,
'tags': None,
'timestamp': None,
'title': None,
'title_sort': None,
'toc_filter': None,
'toc_threshold': 6,
'toc_title': u'Obsah',
'unsmarten_punctuation': False,
'unwrap_lines': True,
'use_auto_toc': False,
'verbose': 2}
InputFormatPlugin: DOCX Input running
on C:\Users\cerda\AppData\Local\Temp\calibre_0.9.3_tm p_ab1vzs\dhqfps.docx
DocxInput::convert:ath: C:\Users\cerda\AppData\Local\Temp\calibre_0.9.3_tm p_ab1vzs\uolp4r_plumber
Word styles: C:\Users\cerda\AppData\Local\Temp\calibre_0.9.3_tm p_ab1vzs\uolp4r_plumber\word\styles.xml
Starting parsing of styles.
Parsing of styles ended.
Word styles: C:\Users\cerda\AppData\Local\Temp\calibre_0.9.3_tm p_ab1vzs\uolp4r_plumber\word\stylesWithEffects.xml
Starting parsing of styles.
Parsing of styles ended.
NumberingParser::Starting parsing.
NumberingParser::Parsing ended.
Context abstractNums: {0: <calibre_plugins.docx_input_plugin.structures.list s.AbstractNum object at 0x043189F0>, 1: <calibre_plugins.docx_input_plugin.structures.list s.AbstractNum object at 0x043181F0>, 2: <calibre_plugins.docx_input_plugin.structures.list s.AbstractNum object at 0x04318750>, 3: <calibre_plugins.docx_input_plugin.structures.list s.AbstractNum object at 0x04318C70>, 4: <calibre_plugins.docx_input_plugin.structures.list s.AbstractNum object at 0x04318CD0>, 5: <calibre_plugins.docx_input_plugin.structures.list s.AbstractNum object at 0x04318E10>}
Context listNums: {1: <calibre_plugins.docx_input_plugin.structures.list s.ListNum object at 0x04318DF0>, 2: <calibre_plugins.docx_input_plugin.structures.list s.ListNum object at 0x04318DD0>, 3: <calibre_plugins.docx_input_plugin.structures.list s.ListNum object at 0x04318E70>, 4: <calibre_plugins.docx_input_plugin.structures.list s.ListNum object at 0x04318E90>, 5: <calibre_plugins.docx_input_plugin.structures.list s.ListNum object at 0x04318EF0>, 6: <calibre_plugins.docx_input_plugin.structures.list s.ListNum object at 0x04318F50>, 7: <calibre_plugins.docx_input_plugin.structures.list s.ListNum object at 0x04318FB0>, 8: <calibre_plugins.docx_input_plugin.structures.list s.ListNum object at 0x0431D030>, 9: <calibre_plugins.docx_input_plugin.structures.list s.ListNum object at 0x0431D090>, 10: <calibre_plugins.docx_input_plugin.structures.list s.ListNum object at 0x0431D0F0>, 11: <calibre_plugins.docx_input_plugin.structures.list s.ListNum object at 0x0431D150>, 12: <calibre_plugins.docx_input_plugin.structures.list s.ListNum object at 0x0431D1B0>, 13: <calibre_plugins.docx_input_plugin.structures.list s.ListNum object at 0x0431D210>, 14: <calibre_plugins.docx_input_plugin.structures.list s.ListNum object at 0x0431D270>, 15: <calibre_plugins.docx_input_plugin.structures.list s.ListNum object at 0x0431D2D0>, 16: <calibre_plugins.docx_input_plugin.structures.list s.ListNum object at 0x0431D330>, 17: <calibre_plugins.docx_input_plugin.structures.list s.ListNum object at 0x0431D390>, 18: <calibre_plugins.docx_input_plugin.structures.list s.ListNum object at 0x0431D3F0>, 19: <calibre_plugins.docx_input_plugin.structures.list s.ListNum object at 0x0431D450>, 20: <calibre_plugins.docx_input_plugin.structures.list s.ListNum object at 0x0431D4B0>, 21: <calibre_plugins.docx_input_plugin.structures.list s.ListNum object at 0x0431D510>, 22: <calibre_plugins.docx_input_plugin.structures.list s.ListNum object at 0x0431D570>, 23: <calibre_plugins.docx_input_plugin.structures.list s.ListNum object at 0x0431D5D0>, 24: <calibre_plugins.docx_input_plugin.structures.list s.ListNum object at 0x0431D670>, 25: <calibre_plugins.docx_input_plugin.structures.list s.ListNum object at 0x0431D650>, 26: <calibre_plugins.docx_input_plugin.structures.list s.ListNum object at 0x0431D630>}
Word document: C:\Users\cerda\AppData\Local\Temp\calibre_0.9.3_tm p_ab1vzs\uolp4r_plumber\word\document.xml
Starting parsing of the document.
Python function terminated unexpectedly
0 (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 186, 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 989, in run
File "site-packages\calibre\customize\conversion.py", line 239, in __call__
File "calibre_plugins.docx_input_plugin.docx_input" , line 64, in convert
File "calibre_plugins.docx_input_plugin.docx_input" , line 104, in _parseDocx
File "xml\sax\expatreader.py", line 107, in parse
File "xml\sax\xmlreader.py", line 123, in parse
File "xml\sax\expatreader.py", line 207, in feed
File "xml\sax\expatreader.py", line 304, in end_element
File "calibre_plugins.docx_input_plugin.content_handler s.docx2html", line 110, in endElement
File "calibre_plugins.docx_input_plugin.structures.docx _types", line 176, in getText
File "calibre_plugins.docx_input_plugin.structures.docx _types", line 1086, in getText
File "calibre_plugins.docx_input_plugin.structures.list s", line 32, in getText
KeyError: 0

Last edited by cerda; 12-09-2012 at 06:46 PM. Reason: Log appended.
cerda is offline