failed: Convert book n of n

Bug #1779518 reported by lostinlodos on 2018-07-01
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Undecided
Unassigned

Bug Description

any previously (Calibre) made book, epub, mobi, etc; fails with this message set
calibre, version 3.26.1 (darwin, embedded-python: True)
Conversion error: Failed: Convert book 2 of 3 (Kiwix.htm)

Convert book 2 of 3 (Kiwix.htm)
Failed to initialize plugin: '/Users/johnrobertclarkiii/Library/Preferences/calibre/plugins/DOC Input.zip'
Conversion options changed from defaults:
  embed_font_family: u'Noto Sans'
  dont_split_on_page_breaks: True
  read_metadata_from_opf: u'/var/folders/ks/95c41m3j7ln7h9kmwnd5hv3c0000gn/C/calibre_3.26.1_tmp_6JsMWs/uH8eZb.opf'
  insert_blank_line: True
  epub_version: u'3'
  output_profile: 'ipad3'
  verbose: 2
  subset_embedded_fonts: True
  keep_ligatures: True
  no_svg_cover: True
  embed_all_fonts: True
  unsmarten_punctuation: True
  change_justification: u'left'
  flow_size: 0
Resolved conversion options
calibre version: 3.26.1
{'asciiize': False,
 'author_sort': None,
 'authors': None,
 'base_font_size': 0.0,
 'book_producer': None,
 'change_justification': u'left',
 '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': None,
 'debug_pipeline': None,
 'dehyphenate': True,
 'delete_blank_paragraphs': True,
 'disable_font_rescaling': False,
 'dont_split_on_page_breaks': True,
 'duplicate_links_in_toc': False,
 'embed_all_fonts': True,
 'embed_font_family': u'Noto Sans',
 'enable_heuristics': False,
 'epub_flatten': False,
 'epub_inline_toc': False,
 'epub_toc_at_end': False,
 'epub_version': u'3',
 'expand_css': False,
 'extra_css': None,
 'extract_to': None,
 'filter_css': u'',
 'fix_indents': True,
 'flow_size': 0,
 'font_size_mapping': None,
 'format_scene_breaks': True,
 'html_unwrap_factor': 0.4,
 'input_encoding': None,
 'input_profile': <calibre.customize.profiles.InputProfile object at 0x111056310>,
 'insert_blank_line': True,
 'insert_blank_line_size': 0.5,
 'insert_metadata': False,
 'isbn': None,
 'italicize_common_cases': True,
 'keep_ligatures': True,
 '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_default_epub_cover': False,
 'no_inline_navbars': False,
 'no_svg_cover': True,
 'output_profile': <calibre.customize.profiles.iPad3Output object at 0x1110568d0>,
 'page_breaks_before': '/',
 'prefer_metadata_cover': False,
 'preserve_cover_aspect_ratio': False,
 'pretty_print': True,
 'pubdate': None,
 'publisher': None,
 'rating': None,
 'read_metadata_from_opf': u'/var/folders/ks/95c41m3j7ln7h9kmwnd5hv3c0000gn/C/calibre_3.26.1_tmp_6JsMWs/uH8eZb.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,
 'start_reading_at': None,
 'subset_embedded_fonts': True,
 'tags': None,
 'timestamp': None,
 'title': None,
 'title_sort': None,
 'toc_filter': None,
 'toc_threshold': 6,
 'toc_title': None,
 'transform_css_rules': '[]',
 'unsmarten_punctuation': True,
 'unwrap_lines': True,
 'use_auto_toc': False,
 'verbose': 2}
InputFormatPlugin: EPUB Input running
on /var/folders/ks/95c41m3j7ln7h9kmwnd5hv3c0000gn/C/calibre_3.26.1_tmp_6JsMWs/fqYdgU.epub
Found HTML cover titlepage.xhtml
Parsing all content...
Parsing page_styles.css ...
Parsing page_styles1.css ...
Parsing stylesheet.css ...
Parsing nav.xhtml ...
Parsing index.html ...
Parsing titlepage.xhtml ...
Referenced file u'fonts/Noto-Sans-Bold-Italic.ttf' not found
Reading TOC from NCX...
Merging user specified metadata...
Detecting structure...
Flattening CSS and remapping font sizes...
Embedding font: Noto Sans
Property: Unknown Property name. [1:14: panose-1]
Property: Unknown Property name. [1:32: panose-1]
Property: Unknown Property name. [1:51: panose-1]
Source base font size is 12.00000pt
Removing fake margins...
Found 4 items of level: div_1
Found 66 items of level: p_1
div_1 left margin stats: Counter()
div_1 right margin stats: Counter()
Negative text indent detected at level p_1, ignoring this level
The font fonts/Noto-Sans-Bold1.ttf is unused. Removing it.
The font fonts/Noto-Sans-Bold-Italic.ttf is unused. Removing it.
Decreased the font fonts/Noto-Sans-Regular.ttf to 100.0% of its original size
The font fonts/Noto-Sans-Regular1.ttf is unused. Removing it.
Decreased the font fonts/Noto-Sans-Bold.ttf to 100.0% of its original size
Reduced total font size to 22.5% of original
Cleaning up manifest...
Trimming unused files from manifest...
Trimming u'page_styles1.css' from manifest
Trimming u'nav.xhtml' from manifest
/Applications/calibre.app/Contents/Resources/Python/site-packages/calibre/ebooks/conversion/plugins/epub_output.py:301: FutureWarning: The behavior of this method will change in future versions. Use specific 'len(elem)' or 'elem is not None' test instead.
Python function terminated unexpectedly: ':'
Creating EPUB Output...
Splitting markup on page breaks and flow limits, if any...
Upgrading to EPUB 3...
Traceback (most recent call last):
  File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py", line 154, in main
    return run_entry_point()
  File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py", line 114, in run_entry_point
    return getattr(pmod, func)()
  File "site-packages/calibre/utils/ipc/worker.py", line 195, in main
  File "site-packages/calibre/gui2/convert/gui_conversion.py", line 33, in gui_convert_override
  File "site-packages/calibre/gui2/convert/gui_conversion.py", line 26, in gui_convert
  File "site-packages/calibre/ebooks/conversion/plumber.py", line 1252, in run
  File "site-packages/calibre/ebooks/conversion/plugins/epub_output.py", line 260, in convert
  File "site-packages/calibre/ebooks/conversion/plugins/epub_output.py", line 302, in upgrade_to_epub3
  File "site-packages/calibre/ebooks/oeb/polish/upgrade.py", line 126, in epub_2_to_3
  File "site-packages/calibre/ebooks/oeb/polish/upgrade.py", line 112, in create_nav
  File "site-packages/calibre/ebooks/oeb/polish/toc.py", line 662, in commit_nav_toc
  File "site-packages/calibre/ebooks/oeb/polish/container.py", line 513, in href_to_name
  File "site-packages/calibre/ebooks/oeb/polish/container.py", line 114, in href_to_name
  File "lib/python2.7/urlparse.py", line 143, in urlparse
  File "lib/python2.7/urlparse.py", line 182, in urlsplit
  File "src/lxml/lxml.etree.pyx", line 1537, in lxml.etree._Element.find (src/lxml/lxml.etree.c:58994)
  File "site-packages/lxml/_elementpath.py", line 302, in find
  File "site-packages/lxml/_elementpath.py", line 291, in iterfind
  File "site-packages/lxml/_elementpath.py", line 274, in _build_path_iterator
KeyError: ':'

Attach a file demonstrating/reproducing the problem to this bug report. You can do that by clicking the "Add attachment or patch" link at the bottom of the bug's page. If the file you are attaching is copyrighted, mark the bug as private. You can do this by clicking the tiny yellow icon next to "This report contains Public information" in the top right area of the bug's page.

 status incomplete

Changed in calibre:
status: New → Incomplete

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

 status fixreleased

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

Other bug subscribers