conversion from ePub to PDF fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
calibre |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Calibre 3.31
Mac OS 10.13.6
Why is this failing?
calibre, version 3.31.0 (darwin, embedded-python: True)
Conversion error: Failed: Convert book 1 of 1 (American Immigration: A Very Short Introduction (Very Short Introductions))
Convert book 1 of 1 (American Immigration: A Very Short Introduction (Very Short Introductions))
DeDRM v6.1.0: In __init__
DeDRM v6.1.0: In load_resources
DeDRM v6.1.0: verdir /Users/
DeDRM v6.1.0: In initialize
Conversion options changed from defaults:
pdf_page_numbers: True
cover: u'/var/
input_profile: 'kindle'
pdf_sans_family: u'Helvetica'
level1_toc: u'//h:h4'
verbose: 2
read_
pdf_default_
pdf_mono_family: u'Courier New'
preserve_
pdf_use_
output_profile: 'ipad3'
pdf_serif_family: u'Times New Roman'
level2_toc: u'//h:h5'
enable_
Resolved conversion options
calibre version: 3.31.0
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0.0,
'book_producer': None,
'change_
'chapter': u"//*[((name()='h1' or name()='h2') and re:test(., '\\s*((
'chapter_mark': u'pagebreak',
'comments': None,
'cover': u'/var/
'custom_size': None,
'debug_pipeline': None,
'dehyphenate': True,
'delete_
'disable_
'duplicate_
'embed_all_fonts': False,
'embed_
'enable_
'expand_css': False,
'extra_css': None,
'filter_css': u'',
'fix_indents': True,
'font_
'format_
'html_
'input_encoding': None,
'input_profile': <calibre.
'insert_
'insert_
'insert_metadata': False,
'isbn': None,
'italicize_
'keep_ligatures': False,
'language': None,
'level1_toc': u'//h:h4',
'level2_toc': u'//h:h5',
'level3_toc': None,
'line_height': 0.0,
'linearize_
'margin_bottom': 5.0,
'margin_left': 5.0,
'margin_right': 5.0,
'margin_top': 5.0,
'markup_
'max_toc_links': 50,
'minimum_
'no_chapters_
'no_inline_
'output_profile': <calibre.
'page_
'paper_size': u'letter',
'pdf_add_toc': False,
'pdf_default_
'pdf_footer_
'pdf_header_
'pdf_hyphenate': False,
'pdf_mark_links': False,
'pdf_mono_family': u'Courier New',
'pdf_mono_
'pdf_page_
'pdf_page_
'pdf_page_
'pdf_page_
'pdf_page_
'pdf_sans_family': u'Helvetica',
'pdf_serif_
'pdf_standard_
'pdf_use_
'prefer_
'preserve_
'pretty_print': False,
'pubdate': None,
'publisher': None,
'rating': None,
'read_
'remove_
'remove_
'remove_
'remove_
'renumber_
'replace_
'search_replace': '[]',
'series': None,
'series_index': None,
'smarten_
'sr1_replace': None,
'sr1_search': None,
'sr2_replace': None,
'sr2_search': None,
'sr3_replace': None,
'sr3_search': None,
'start_
'subset_
'tags': None,
'timestamp': None,
'title': None,
'title_sort': None,
'toc_filter': None,
'toc_threshold': 6,
'toc_title': None,
'transform_
'uncompressed_
'unit': u'inch',
'unsmarten_
'unwrap_lines': True,
'use_auto_toc': False,
'use_profile_
'verbose': 2}
InputFormatPlugin: MOBI Input running
on /var/folders/
Found KF8 MOBI of type 'standalone'
Extracting text...
Parsing all content...
Parsing text/part0004.html ...
********* Heuristic processing HTML *********
flow is too short, not running heuristics
Parsing text/part0003.html ...
********* Heuristic processing HTML *********
There are 0 blank lines. 0.0 percent blank
minimum chapters required are: 1
found 0 pre-existing headings
Total wordcount is: 186, Average words per section is: 186, Marked up 0 chapters
Hard line breaks check returned False
Median line length is 81, calculated with html format
Fixing hyphenated content
Looking for more split points based on punctuation, currently have 0
Formatting scene breaks
Parsing text/part0012.html ...
********* Heuristic processing HTML *********
There are 0 blank lines. 0.0 percent blank
minimum chapters required are: 1
found 2 pre-existing headings
Total wordcount is: 1839, Average words per section is: 919, Marked up 2 chapters
Hard line breaks check returned False
Median line length is 715, calculated with html format
Fixing hyphenated content
Formatting scene breaks
Parsing text/part0016.html ...
********* Heuristic processing HTML *********
There are 0 blank lines. 0.0 percent blank
minimum chapters required are: 1
found 2 pre-existing headings
Total wordcount is: 4687, Average words per section is: 2343, Marked up 2 chapters
Hard line breaks check returned False
Median line length is 933, calculated with html format
Fixing hyphenated content
Formatting scene breaks
Parsing text/part0009.html ...
********* Heuristic processing HTML *********
There are 0 blank lines. 0.0 percent blank
minimum chapters required are: 1
found 2 pre-existing headings
Total wordcount is: 2166, Average words per section is: 1083, Marked up 2 chapters
Hard line breaks check returned False
Median line length is 733, calculated with html format
Fixing hyphenated content
Formatting scene breaks
Parsing text/part0019.html ...
********* Heuristic processing HTML *********
There are 0 blank lines. 0.0 percent blank
minimum chapters required are: 1
found 1 pre-existing headings
Total wordcount is: 334, Average words per section is: 334, Marked up 1 chapters
Hard line breaks check returned True
Median line length is 138, calculated with html format
Unwrapping required, unwrapping Lines
Fixing hyphenated content
Formatting scene breaks
Parsing text/part0007.html ...
********* Heuristic processing HTML *********
There are 0 blank lines. 0.0 percent blank
minimum chapters required are: 1
found 1 pre-existing headings
Total wordcount is: 3491, Average words per section is: 3491, Marked up 1 chapters
Hard line breaks check returned False
Median line length is 755, calculated with html format
Fixing hyphenated content
Formatting scene breaks
Parsing text/part0020.html ...
********* Heuristic processing HTML *********
There are 0 blank lines. 0.0 percent blank
minimum chapters required are: 1
found 1 pre-existing headings
Total wordcount is: 2980, Average words per section is: 2980, Marked up 1 chapters
Hard line breaks check returned True
Median line length is 52, calculated with html format
Unwrapping required, unwrapping Lines
Fixing hyphenated content
Formatting scene breaks
Parsing text/part0018.html ...
********* Heuristic processing HTML *********
There are 0 blank lines. 0.0 percent blank
minimum chapters required are: 1
found 1 pre-existing headings
Total wordcount is: 509, Average words per section is: 509, Marked up 1 chapters
Hard line breaks check returned False
Median line length is 560, calculated with html format
Fixing hyphenated content
Formatting scene breaks
Parsing text/part0017.html ...
********* Heuristic processing HTML *********
There are 0 blank lines. 0.0 percent blank
minimum chapters required are: 1
found 2 pre-existing headings
Total wordcount is: 3540, Average words per section is: 1770, Marked up 2 chapters
Hard line breaks check returned False
Median line length is 559, calculated with html format
Fixing hyphenated content
Formatting scene breaks
Parsing text/part0011.html ...
********* Heuristic processing HTML *********
There are 0 blank lines. 0.0 percent blank
minimum chapters required are: 1
found 2 pre-existing headings
Total wordcount is: 5574, Average words per section is: 2787, Marked up 2 chapters
Hard line breaks check returned False
Median line length is 776, calculated with html format
Fixing hyphenated content
Formatting scene breaks
Parsing text/part0014.html ...
********* Heuristic processing HTML *********
There are 0 blank lines. 0.0 percent blank
minimum chapters required are: 1
found 2 pre-existing headings
Total wordcount is: 4260, Average words per section is: 2130, Marked up 2 chapters
Hard line breaks check returned False
Median line length is 811, calculated with html format
Fixing hyphenated content
Formatting scene breaks
Parsing text/part0002.html ...
********* Heuristic processing HTML *********
flow is too short, not running heuristics
Parsing text/part0001.html ...
********* Heuristic processing HTML *********
There are 0 blank lines. 0.0 percent blank
minimum chapters required are: 1
found 0 pre-existing headings
uppercase had 5 hits - 5 chapters with no title, 0 chapters with titles, 0.0 percent.
Marked 0 headings, Searching for chapters with Uppercase Characters
marked 1 chapters. - EIGHTEENTH-CENTURY
marked 2 chapters. - INTERNATIONAL
marked 3 chapters. - THE NEW TESTAMENT AS
marked 4 chapters. - SOCIAL AND CULTURAL
marked 5 chapters. - THE WORLD TRADE
Total wordcount is: 1126, Average words per section is: 225, Marked up 5 chapters
Hard line breaks check returned True
Median line length is 45, calculated with html format
Unwrapping required, unwrapping Lines
Fixing hyphenated content
Formatting scene breaks
Parsing text/part0010.html ...
********* Heuristic processing HTML *********
There are 0 blank lines. 0.0 percent blank
minimum chapters required are: 1
found 2 pre-existing headings
Total wordcount is: 5229, Average words per section is: 2614, Marked up 2 chapters
Hard line breaks check returned False
Median line length is 756, calculated with html format
Fixing hyphenated content
Formatting scene breaks
Parsing text/part0005.html ...
********* Heuristic processing HTML *********
There are 0 blank lines. 0.0 percent blank
minimum chapters required are: 1
found 0 pre-existing headings
Total wordcount is: 96, Average words per section is: 96, Marked up 0 chapters
Hard line breaks check returned True
Median line length is 144, calculated with html format
Unwrapping required, unwrapping Lines
Fixing hyphenated content
Looking for more split points based on punctuation, currently have 0
Formatting scene breaks
Parsing text/part0008.html ...
********* Heuristic processing HTML *********
There are 0 blank lines. 0.0 percent blank
minimum chapters required are: 1
found 2 pre-existing headings
Total wordcount is: 509, Average words per section is: 254, Marked up 2 chapters
Hard line breaks check returned False
Median line length is 569, calculated with html format
Fixing hyphenated content
Formatting scene breaks
Parsing text/part0006.html ...
********* Heuristic processing HTML *********
There are 0 blank lines. 0.0 percent blank
minimum chapters required are: 1
found 0 pre-existing headings
Total wordcount is: 259, Average words per section is: 259, Marked up 0 chapters
Hard line breaks check returned True
Median line length is 80, calculated with html format
Unwrapping required, unwrapping Lines
Fixing hyphenated content
Looking for more split points based on punctuation, currently have 0
Formatting scene breaks
Parsing styles/0001.css ...
Parsing text/part0013.html ...
********* Heuristic processing HTML *********
There are 0 blank lines. 0.0 percent blank
minimum chapters required are: 1
found 2 pre-existing headings
Total wordcount is: 3432, Average words per section is: 1716, Marked up 2 chapters
Hard line breaks check returned False
Median line length is 638, calculated with html format
Fixing hyphenated content
Formatting scene breaks
Parsing text/part0015.html ...
********* Heuristic processing HTML *********
There are 0 blank lines. 0.0 percent blank
minimum chapters required are: 1
found 2 pre-existing headings
Total wordcount is: 1141, Average words per section is: 570, Marked up 2 chapters
Hard line breaks check returned True
Median line length is 1019, calculated with html format
Unwrapping required, unwrapping Lines
Fixing hyphenated content
Formatting scene breaks
Parsing text/part0000.html ...
********* Heuristic processing HTML *********
flow is too short, not running heuristics
Reading TOC from NCX...
Merging user specified metadata...
Detecting structure...
Detected chapter: Part I
Detected chapter: Part II
Detected chapter: Part III
Flattening CSS and remapping font sizes...
Source base font size is 16.00000pt
Removing fake margins...
Found 1100 items of level: p_1
Negative text indent detected at level p_1, ignoring this level
Cleaning up manifest...
Trimming unused files from manifest...
Trimming u'images/
Python function terminated unexpectedly: 'NoneType' object has no attribute 'data'
Traceback (most recent call last):
File "/Applications/
return run_entry_point()
File "/Applications/
return getattr(pmod, func)()
File "site-packages/
File "site-packages/
File "site-packages/
File "site-packages/
File "site-packages/
File "site-packages/
AttributeError: 'NoneType' object has no attribute 'data'
Creating PDF Output...
Splitting markup on page breaks and flow limits, if any...
Splitting on page-break at id=pt02
Splitting on page-break at id=further
Splitting on page-break at id=introduction
Splitting on page-break at id=conclusion
Splitting on page-break at id=calibre_pb_0
Splitting on page-break at id=calibre_pb_0
Splitting on page-break at id=calibre_pb_1
Splitting on page-break at id=calibre_pb_2
Splitting on page-break at id=calibre_pb_3
Splitting on page-break at id=calibre_pb_4
Split into 6 parts
Splitting on page-break at id=pt01
Splitting on page-break at id=pt03
Splitting on page-break at id=calibre_pb_0
Converting input as a text based book...
Serializing oeb input to disk for processing...
The failure occurs when I check "Use page margins from document being converted" -- otherwise the conversion is successful.