Conversion error IndexError: list index out of range
I've seen this referenced a few times on older threads, but no resolution. I have a single epub that will not convert to mobi. It opens fine as an epub, and will convert to azw3 or as a new epub, but will not convert to mobi (old or both) from the epub or azw3. As for versioning, I just updated to 1.24 64bit. I have converted thousands of books with no problems and reconverted to update mobi versions, so not new to conversions. I tested other books after getting this error, and they worked fine. I removed the problem book, added it again, tried it in a different library, etc. Always the same error which follows:
Spoiler:
Convert book 1 of 1 (Like A Mighty Army)
Resolved conversion options
calibre version: 1.24.0
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0.0,
'book_producer': None,
'change_justification': u'original',
'chapter': None,
'chapter_mark': u'pagebreak',
'comments': None,
'cover': u'C:\\Users\\DURHAM~1\\AppData\\Local\\Temp\\calib re_teyilt\\c48kz_.jpeg',
'debug_pipeline': None,
'dehyphenate': True,
'delete_blank_paragraphs': True,
'disable_font_rescaling': False,
'dont_compress': False,
'duplicate_links_in_toc': False,
'embed_all_fonts': False,
'embed_font_family': None,
'enable_heuristics': False,
'expand_css': False,
'extra_css': None,
'extract_to': None,
'filter_css': u'',
'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 0x000000000505FF98>,
'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': 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_toc_links': 50,
'minimum_line_height': 120.0,
'mobi_file_type': u'both',
'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': True,
'output_profile': <calibre.customize.profiles.KindleOutput object at 0x000000000505D588>,
'page_breaks_before': None,
'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\\DURHAM~1\\AppData\\Local\\Temp\\calib re_teyilt\\6fh9hb.opf',
'remove_fake_margins': False,
'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,
'share_not_sync': 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,
'subset_embedded_fonts': False,
'tags': None,
'timestamp': None,
'title': None,
'title_sort': None,
'toc_filter': None,
'toc_threshold': 6,
'toc_title': None,
'unsmarten_punctuation': False,
'unwrap_lines': True,
'use_auto_toc': False,
'verbose': 2}
InputFormatPlugin: EPUB Input running
on C:\Users\DURHAM~1\AppData\Local\Temp\calibre_teyil t\tnwgxb.epub
Found HTML cover OEBPS/Text/cover.xhtml
Parsing all content...
Parsing OEBPS/Text/chapter7.html ...
Parsing OEBPS/Text/chapter5.html ...
Parsing OEBPS/Text/chapter9.html ...
Parsing OEBPS/Text/chapter35.html ...
Parsing OEBPS/Text/chapter49.html ...
Parsing OEBPS/Text/chapter33.html ...
Parsing OEBPS/Text/chapter36.html ...
Parsing OEBPS/Text/chapter62.html ...
Parsing OEBPS/Text/chapter34.html ...
Parsing OEBPS/Text/chapter15.html ...
Parsing OEBPS/Text/chapter61.html ...
Parsing OEBPS/Text/chapter32.html ...
Parsing OEBPS/Text/chapter64.html ...
Parsing OEBPS/Text/chapter16.html ...
Parsing OEBPS/Text/chapter51.html ...
Parsing OEBPS/Text/chapter47.html ...
Parsing OEBPS/Text/title.html ...
Parsing OEBPS/Text/chapter17.html ...
Parsing OEBPS/Text/chapter38.html ...
Parsing OEBPS/Text/chapter18.html ...
Parsing OEBPS/Text/chapter52.html ...
Parsing OEBPS/Text/chapter26.html ...
Parsing OEBPS/Text/part5.html ...
Parsing OEBPS/Text/chapter19.html ...
Parsing OEBPS/Text/part3.html ...
Parsing OEBPS/Text/chapter25.html ...
Parsing OEBPS/Text/chapter39.html ...
Parsing OEBPS/Text/chapter63.html ...
Parsing OEBPS/Text/chapter11.html ...
Parsing OEBPS/Text/chapter20.html ...
Parsing OEBPS/Text/taste_of.html ...
Parsing OEBPS/Text/chapter28.html ...
Parsing OEBPS/Text/chapter21.html ...
Parsing OEBPS/Text/chapter40.html ...
Parsing OEBPS/Text/chapter12.html ...
Parsing OEBPS/Text/chapter22.html ...
Parsing OEBPS/Text/chapter13.html ...
Parsing OEBPS/Text/chapter10.html ...
Parsing OEBPS/Text/chapter54.html ...
Parsing OEBPS/Text/chapter23.html ...
Parsing OEBPS/Text/chapter41.html ...
Parsing OEBPS/Text/chapter43.html ...
Parsing OEBPS/Text/chapter29.html ...
Parsing OEBPS/Text/chapter55.html ...
Parsing OEBPS/Text/chapter42.html ...
Parsing OEBPS/Text/glossary.html ...
Parsing OEBPS/Text/chapter44.html ...
Parsing OEBPS/Text/chapter30.html ...
Parsing OEBPS/Text/chapter56.html ...
Parsing OEBPS/Text/chapter31.html ...
Parsing OEBPS/Text/cover.xhtml ...
Parsing OEBPS/Text/part4.html ...
Parsing OEBPS/Text/chapter46.html ...
Parsing OEBPS/Text/maps.html ...
Parsing OEBPS/Text/epilogue.html ...
Parsing OEBPS/Text/copyrightnotice.html ...
Parsing OEBPS/Text/church_of.html ...
Parsing OEBPS/Text/part6.html ...
Parsing OEBPS/Text/dedication.html ...
Parsing OEBPS/Text/chapter24.html ...
Parsing OEBPS/Text/contents.html ...
Parsing OEBPS/Text/adcard.html ...
Parsing OEBPS/Text/chapter14.html ...
Parsing OEBPS/Text/chapter48.html ...
Parsing OEBPS/Text/chapter27.html ...
Parsing OEBPS/Text/chapter57.html ...
Parsing OEBPS/Text/chapter8.html ...
Parsing OEBPS/Text/copyright.html ...
Parsing OEBPS/Text/prologue.html ...
Parsing OEBPS/Text/part2.html ...
Parsing OEBPS/Styles/stylesheet.css ...
PropertyValue: No match: ('CHAR', u':', 104, 18)
PropertyValue: Unknown syntax or no value: 1em
text-decoration : none
CSSStyleDeclaration: Syntax Error in Property: font-size : 1em
text-decoration : none
PropertyValue: No match: ('CHAR', u':', 115, 18)
PropertyValue: Unknown syntax or no value: 1em
text-decoration : none
CSSStyleDeclaration: Syntax Error in Property: font-size : 1em
text-decoration : none
PropertyValue: No match: ('CHAR', u':', 126, 18)
PropertyValue: Unknown syntax or no value: 1em
text-decoration : none
CSSStyleDeclaration: Syntax Error in Property: font-size : 1em
text-decoration : none
PropertyValue: No match: ('CHAR', u':', 137, 18)
PropertyValue: Unknown syntax or no value: 1em
text-decoration : none
CSSStyleDeclaration: Syntax Error in Property: font-size : 1em
text-decoration : none
PropertyValue: No match: ('CHAR', u':', 159, 18)
PropertyValue: Unknown syntax or no value: 1em
text-decoration : none
CSSStyleDeclaration: Syntax Error in Property: font-size : 1em
text-decoration : none
PropertyValue: No match: ('CHAR', u':', 170, 18)
PropertyValue: Unknown syntax or no value: 1em
text-decoration : none
CSSStyleDeclaration: Syntax Error in Property: font-size : 1em
text-decoration : none
PropertyValue: No match: ('CHAR', u':', 235, 18)
PropertyValue: Unknown syntax or no value: 1em
text-decoration : none
CSSStyleDeclaration: Syntax Error in Property: font-size : 1em
text-decoration : none
PropertyValue: No match: ('CHAR', u':', 246, 18)
PropertyValue: Unknown syntax or no value: 1em
text-decoration : none
CSSStyleDeclaration: Syntax Error in Property: font-size : 1em
text-decoration : none
PropertyValue: No match: ('CHAR', u':', 257, 18)
PropertyValue: Unknown syntax or no value: 1em
text-decoration : none
CSSStyleDeclaration: Syntax Error in Property: font-size : 1em
text-decoration : none
PropertyValue: No match: ('CHAR', u':', 268, 18)
PropertyValue: Unknown syntax or no value: 1em
text-decoration : none
CSSStyleDeclaration: Syntax Error in Property: font-size : 1em
text-decoration : none
PropertyValue: No match: ('CHAR', u':', 279, 18)
PropertyValue: Unknown syntax or no value: 1em
text-decoration : none
CSSStyleDeclaration: Syntax Error in Property: font-size : 1em
text-decoration : none
PropertyValue: No match: ('CHAR', u':', 291, 18)
PropertyValue: Unknown syntax or no value: 1em
text-decoration : none
CSSStyleDeclaration: Syntax Error in Property: font-size : 1em
text-decoration : none
PropertyValue: No match: ('CHAR', u':', 302, 18)
PropertyValue: Unknown syntax or no value: 1em
text-decoration : none
CSSStyleDeclaration: Syntax Error in Property: font-size : 1em
text-decoration : none
PropertyValue: No match: ('CHAR', u':', 313, 18)
PropertyValue: Unknown syntax or no value: 1em
text-decoration : none
CSSStyleDeclaration: Syntax Error in Property: font-size : 1em
text-decoration : none
PropertyValue: No match: ('CHAR', u':', 324, 18)
PropertyValue: Unknown syntax or no value: 1em
text-decoration : none
CSSStyleDeclaration: Syntax Error in Property: font-size : 1em
text-decoration : none
PropertyValue: No match: ('CHAR', u':', 379, 18)
PropertyValue: Unknown syntax or no value: 1em
text-decoration : none
CSSStyleDeclaration: Syntax Error in Property: font-size : 1em
text-decoration : none
PropertyValue: No match: ('CHAR', u':', 400, 18)
PropertyValue: Unknown syntax or no value: 1em
text-decoration : none
CSSStyleDeclaration: Syntax Error in Property: font-size : 1em
text-decoration : none
PropertyValue: No match: ('CHAR', u':', 411, 18)
PropertyValue: Unknown syntax or no value: 1em
text-decoration : none
CSSStyleDeclaration: Syntax Error in Property: font-size : 1em
text-decoration : none
PropertyValue: No match: ('CHAR', u':', 422, 18)
PropertyValue: Unknown syntax or no value: 1em
text-decoration : none
CSSStyleDeclaration: Syntax Error in Property: font-size : 1em
text-decoration : none
PropertyValue: No match: ('CHAR', u':', 446, 18)
PropertyValue: Unknown syntax or no value: 1em
text-decoration : none
CSSStyleDeclaration: Syntax Error in Property: font-size : 1em
text-decoration : none
PropertyValue: No match: ('CHAR', u':', 457, 18)
PropertyValue: Unknown syntax or no value: 1em
text-decoration : none
CSSStyleDeclaration: Syntax Error in Property: font-size : 1em
text-decoration : none
PropertyValue: No match: ('CHAR', u':', 468, 18)
PropertyValue: Unknown syntax or no value: 1em
text-decoration : none
CSSStyleDeclaration: Syntax Error in Property: font-size : 1em
text-decoration : none
Parsing OEBPS/Text/chapter1.html ...
Parsing OEBPS/Text/abouttheauthor.html ...
Parsing OEBPS/Text/part1.html ...
Parsing OEBPS/Text/characters.html ...
Parsing OEBPS/Text/chapter59.html ...
Parsing OEBPS/Text/chapter45.html ...
Parsing OEBPS/Text/chapter2.html ...
Parsing OEBPS/Text/chapter53.html ...
Parsing OEBPS/Text/chapter65.html ...
Parsing OEBPS/Text/chapter60.html ...
Parsing OEBPS/Text/chapter58.html ...
Parsing OEBPS/Text/chapter3.html ...
Parsing OEBPS/Text/chapter6.html ...
Parsing OEBPS/Text/chapter37.html ...
Parsing OEBPS/Text/chapter4.html ...
Parsing OEBPS/Text/chapter50.html ...
Parsing OEBPS/Text/chapter66.html ...
Parsing OEBPS/Text/part7.html ...
Reading TOC from NCX...
Merging user specified metadata...
Detecting structure...
Flattening CSS and remapping font sizes...
Source base font size is 12.00000pt
Cleaning up manifest...
Trimming unused files from manifest...
Trimming u'OEBPS/Text/cover.xhtml' from manifest
Creating MOBI Output...
Serializing resources...
Splitting markup on page breaks and flow limits, if any...
Creating KF8 output
Generating KF8 markup...
Compressing markup...
Creating indices...
Creating MOBI 6 output
Applying case-transforming CSS...
Parsing manglecase.css ...
Rasterizing SVG images...
Rasterizing <Element {http://www.w3.org/2000/svg}svg at 0x76797e0> to 525x294
Rasterizing <Element {http://www.w3.org/2000/svg}svg at 0x7679828> to 525x408
Rasterizing <Element {http://www.w3.org/2000/svg}svg at 0x7679870> to 525x347
Python function terminated unexpectedly
list index out of range (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 192, 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 1189, in run
File "site-packages\calibre\ebooks\conversion\plugins\mobi_ou tput.py", line 202, in convert
File "site-packages\calibre\ebooks\conversion\plugins\mobi_ou tput.py", line 225, in write_mobi
File "site-packages\calibre\ebooks\oeb\transforms\rasterize.p y", line 57, in __call__
File "site-packages\calibre\ebooks\oeb\transforms\rasterize.p y", line 140, in rasterize_spine
File "site-packages\calibre\ebooks\oeb\transforms\rasterize.p y", line 159, in rasterize_item
File "site-packages\calibre\ebooks\oeb\transforms\rasterize.p y", line 167, in rasterize_inline
File "site-packages\calibre\ebooks\oeb\transforms\rasterize.p y", line 72, in rasterize_svg
IndexError: list index out of range
Ideas?
Last edited by theducks; 02-19-2014 at 07:39 PM.
Reason: Wrapped long paste in Spoiler
Whilst you're waiting for the experts - you could try opening epub in the Editor and run some of the Tools over it - eg Fix HTML, Check book, remove unused styles, fonts etc
That epub file has an invalid viewbox attribute on one of its svg images, which is causing the problem. If you opena bug report and attach the file, I will add some code to workaround/ignore invalid viewboxes in the future.