FB2 conversion failure

Bug #1471125 reported by AsstZD
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
John Schember

Bug Description

Windows 2.30

J:\Calibre\pylib.zip\dateutil\parser.py:339: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
Resolved conversion options
calibre version: 2.30.0
{'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(., '\\s*((chapter|book|section|part)\\s+)|((prolog|prologue|epilogue)(\\s+|$))', 'i')) or @class = 'chapter']",
 'chapter_mark': u'pagebreak',
 'comments': None,
 'cover': u'C:\\Temp\\calibre_ijgiz8\\ecnfyw.jpeg',
 'debug_pipeline': None,
 'dehyphenate': True,
 'delete_blank_paragraphs': True,
 'disable_font_rescaling': False,
 'duplicate_links_in_toc': False,
 'embed_all_fonts': False,
 'embed_font_family': None,
 'enable_heuristics': False,
 'expand_css': False,
 'extra_css': None,
 'fb2_genre': u'antique',
 '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 0x038AE390>,
 '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,
 'no_chapters_in_toc': False,
 'no_inline_navbars': False,
 'output_profile': <calibre.customize.profiles.GenericEink object at 0x0395BA70>,
 'page_breaks_before': u'/',
 'prefer_metadata_cover': False,
 'pretty_print': False,
 'pubdate': None,
 'publisher': None,
 'rating': None,
 'read_metadata_from_opf': u'C:\\Temp\\calibre_ijgiz8\\mk5b2i.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': '[]',
 'sectionize': u'toc',
 'series': None,
 'series_index': None,
 'smarten_punctuation': True,
 '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,
 'unsmarten_punctuation': False,
 'unwrap_lines': True,
 'use_auto_toc': False,
 'verbose': 2}
InputFormatPlugin: EPUB Input running
on C:\Temp\calibre_ijgiz8\iqs0on.epub
Found HTML cover OEBPS/Text/cover.xhtml
Parsing all content...
Parsing OEBPS/Text/part18.xhtml ...
Parsing OEBPS/Text/part15.xhtml ...
Parsing OEBPS/Text/part16.xhtml ...
Parsing OEBPS/Text/cover.xhtml ...
Parsing OEBPS/Text/part17.xhtml ...
Parsing OEBPS/Styles/Style0002.css ...
Parsing OEBPS/Text/part01.xhtml ...
Parsing OEBPS/Text/part02.xhtml ...
Parsing OEBPS/Text/part03.xhtml ...
Parsing OEBPS/Text/part04.xhtml ...
Parsing OEBPS/Text/part05.xhtml ...
Parsing OEBPS/Text/part06.xhtml ...
Parsing OEBPS/Text/part07.xhtml ...
Parsing OEBPS/Text/part08.xhtml ...
Parsing OEBPS/Text/part09.xhtml ...
Parsing OEBPS/Text/part10.xhtml ...
Parsing OEBPS/Text/part11.xhtml ...
Parsing OEBPS/Text/part12.xhtml ...
Parsing OEBPS/Text/part13.xhtml ...
Parsing OEBPS/Text/part14.xhtml ...
Reading TOC from NCX...
Merging user specified metadata...
Detecting structure...
Flattening CSS and remapping font sizes...
Source base font size is 12.00000pt
Removing fake margins...
Found 103 items of level: p_1
p_1 left margin stats: Counter({u'0': 103})
p_1 right margin stats: Counter({u'0': 103})
Cleaning up manifest...
Trimming unused files from manifest...
Trimming u'OEBPS/Text/cover.xhtml' from manifest
Creating FB2 Output...
Rasterizing SVG images...
Converting XHTML to FB2 markup...
Python function terminated unexpectedly
  'str' object does not support item assignment (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 193, 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 1198, in run
  File "site-packages\calibre\ebooks\conversion\plugins\fb2_output.py", line 175, in convert
  File "site-packages\calibre\ebooks\fb2\fb2ml.py", line 54, in extract_content
  File "site-packages\calibre\ebooks\fb2\fb2ml.py", line 329, in create_flat_toc
TypeError: 'str' object does not support item assignment

Tags: fb2-output
Revision history for this message
AsstZD (eskaer-spamsink) wrote :
  • Source Edit (12.6 KiB, application/octet-stream)
Revision history for this message
Kovid Goyal (kovid) wrote : Re: calibre bug 1471125

Changing the component for this bug.

 assignee user-none
 tag fb2-output
 status triaged

Changed in calibre:
assignee: nobody → John Schember (user-none)
status: New → Triaged
Revision history for this message
Kovid Goyal (kovid) wrote : Fixed in master

Fixed in branch master. The fix will be in the next release. calibre is usually released every Friday.

 status fixreleased

Changed in calibre:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.