Have an EPUB file I'm trying to convert to PDF, but getting an error. Here is the log:
Spoiler:
calibre, version 3.31.0 (win32, embedded-python: True)
Conversion error: Failed: Convert book 1 of 1 (Rewired: A Bold New Approach to Addiction and Recovery)
Convert book 1 of 1 (Rewired: A Bold New Approach to Addiction and Recovery)
Conversion options changed from defaults:
cover: u'C:\\Users\\Kevin\\AppData\\Local\\Temp\\calibre_ l2wdnq\\cgz9ye.jpeg'
minimum_line_height: 0.0
pdf_page_margin_right: 35.0
custom_size: u'6x9'
pdf_use_document_margins: True
embed_all_fonts: True
pdf_mono_font_size: 12
pdf_page_margin_bottom: 35.0
pdf_default_font_size: 12
expand_css: True
margin_left: -1.0
remove_fake_margins: False
verbose: 2
pdf_page_margin_left: 35.0
read_metadata_from_opf: u'C:\\Users\\Kevin\\AppData\\Local\\Temp\\calibre_ l2wdnq\\ibn7_a.opf'
margin_top: -1.0
margin_bottom: -1.0
no_chapters_in_toc: True
output_profile: 'tablet'
keep_ligatures: True
pdf_sans_family: u'Liberation Serif'
margin_right: -1.0
pdf_page_margin_top: 35.0
disable_font_rescaling: True
Resolved conversion options
calibre version: 3.31.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|pr ologue|epilogue)(\\s+|$))', 'i')) or @class = 'chapter']",
'chapter_mark': u'pagebreak',
'comments': None,
'cover': u'C:\\Users\\Kevin\\AppData\\Local\\Temp\\calibre_ l2wdnq\\cgz9ye.jpeg',
'custom_size': u'6x9',
'debug_pipeline': None,
'dehyphenate': True,
'delete_blank_paragraphs': True,
'disable_font_rescaling': True,
'duplicate_links_in_toc': False,
'embed_all_fonts': True,
'embed_font_family': None,
'enable_heuristics': False,
'expand_css': True,
'extra_css': 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 0x0000011970800F28>,
'insert_blank_line': False,
'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': -1.0,
'margin_left': -1.0,
'margin_right': -1.0,
'margin_top': -1.0,
'markup_chapter_headings': True,
'max_toc_links': 50,
'minimum_line_height': 0.0,
'no_chapters_in_toc': True,
'no_inline_navbars': False,
'output_profile': <calibre.customize.profiles.TabletOutput object at 0x00000119708129E8>,
'page_breaks_before': u'/',
'paper_size': u'letter',
'pdf_add_toc': False,
'pdf_default_font_size': 12,
'pdf_footer_template': None,
'pdf_header_template': None,
'pdf_hyphenate': False,
'pdf_mark_links': False,
'pdf_mono_family': u'Liberation Mono',
'pdf_mono_font_size': 12,
'pdf_page_margin_bottom': 35.0,
'pdf_page_margin_left': 35.0,
'pdf_page_margin_right': 35.0,
'pdf_page_margin_top': 35.0,
'pdf_page_numbers': False,
'pdf_sans_family': u'Liberation Serif',
'pdf_serif_family': u'Liberation Serif',
'pdf_standard_font': u'serif',
'pdf_use_document_margins': True,
'prefer_metadata_cover': False,
'preserve_cover_aspect_ratio': False,
'pretty_print': False,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': u'C:\\Users\\Kevin\\AppData\\Local\\Temp\\calibre_ l2wdnq\\ibn7_a.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,
'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,
'transform_css_rules': '[]',
'uncompressed_pdf': False,
'unit': u'inch',
'unsmarten_punctuation': False,
'unwrap_lines': True,
'use_auto_toc': False,
'use_profile_size': False,
'verbose': 2}
InputFormatPlugin: EPUB Input running
on C:\Users\Kevin\AppData\Local\Temp\calibre_l2wdnq\t 2mb4c.epub
Found HTML cover OEBPS/Spie_9781578265664_epub_cvi_r1.htm
Parsing all content...
Parsing OEBPS/Spie_9781578265664_epub_col1_r1.htm ...
Parsing OEBPS/Spie_9781578265664_epub_c02_r1.htm ...
Parsing OEBPS/Spie_9781578265664_epub_css_r1.css ...
MediaQuery: No match: ('IDENT', u'amzn-kf8', 597, 8)
MediaQuery: No match for None in Choice(Sequence(ONLY|NOT, media_type, Sequence(AND, Sequence(expression, media_feature, Sequence(colon, Choice(ColorValue, Dimension, Value)), expression END))), Sequence(Sequence(expression, media_feature, Sequence(colon, Choice(ColorValue, Dimension, Value)), expression END), Sequence(AND, Sequence(expression, media_feature, Sequence(colon, Choice(ColorValue, Dimension, Value)), expression END))))
No content to parse.
MediaQuery: No content.
MediaQuery: No match: ('IDENT', u'amzn-mobi', 610, 8)
MediaQuery: No match for None in Choice(Sequence(ONLY|NOT, media_type, Sequence(AND, Sequence(expression, media_feature, Sequence(colon, Choice(ColorValue, Dimension, Value)), expression END))), Sequence(Sequence(expression, media_feature, Sequence(colon, Choice(ColorValue, Dimension, Value)), expression END), Sequence(AND, Sequence(expression, media_feature, Sequence(colon, Choice(ColorValue, Dimension, Value)), expression END))))
No content to parse.
MediaQuery: No content.
MediaQuery: No match: ('IDENT', u'amzn-kf8', 630, 8)
MediaQuery: No match for None in Choice(Sequence(ONLY|NOT, media_type, Sequence(AND, Sequence(expression, media_feature, Sequence(colon, Choice(ColorValue, Dimension, Value)), expression END))), Sequence(Sequence(expression, media_feature, Sequence(colon, Choice(ColorValue, Dimension, Value)), expression END), Sequence(AND, Sequence(expression, media_feature, Sequence(colon, Choice(ColorValue, Dimension, Value)), expression END))))
No content to parse.
MediaQuery: No content.
MediaQuery: No match: ('IDENT', u'amzn-mobi', 643, 8)
MediaQuery: No match for None in Choice(Sequence(ONLY|NOT, media_type, Sequence(AND, Sequence(expression, media_feature, Sequence(colon, Choice(ColorValue, Dimension, Value)), expression END))), Sequence(Sequence(expression, media_feature, Sequence(colon, Choice(ColorValue, Dimension, Value)), expression END), Sequence(AND, Sequence(expression, media_feature, Sequence(colon, Choice(ColorValue, Dimension, Value)), expression END))))
No content to parse.
MediaQuery: No content.
MediaQuery: No match: ('IDENT', u'amzn-kf8', 665, 8)
MediaQuery: No match for None in Choice(Sequence(ONLY|NOT, media_type, Sequence(AND, Sequence(expression, media_feature, Sequence(colon, Choice(ColorValue, Dimension, Value)), expression END))), Sequence(Sequence(expression, media_feature, Sequence(colon, Choice(ColorValue, Dimension, Value)), expression END), Sequence(AND, Sequence(expression, media_feature, Sequence(colon, Choice(ColorValue, Dimension, Value)), expression END))))
No content to parse.
MediaQuery: No content.
MediaQuery: No match: ('IDENT', u'amzn-mobi', 676, 8)
MediaQuery: No match for None in Choice(Sequence(ONLY|NOT, media_type, Sequence(AND, Sequence(expression, media_feature, Sequence(colon, Choice(ColorValue, Dimension, Value)), expression END))), Sequence(Sequence(expression, media_feature, Sequence(colon, Choice(ColorValue, Dimension, Value)), expression END), Sequence(AND, Sequence(expression, media_feature, Sequence(colon, Choice(ColorValue, Dimension, Value)), expression END))))
No content to parse.
MediaQuery: No content.
Parsing OEBPS/Spie_9781578265664_epub_c03_r1.htm ...
Parsing OEBPS/Spie_9781578265664_epub_cvi_r1.htm ...
Parsing OEBPS/Spie_9781578265664_epub_c04_r1.htm ...
Parsing OEBPS/Spie_9781578265664_epub_tp_r1.htm ...
Parsing OEBPS/Spie_9781578265664_epub_c11_r1.htm ...
Parsing OEBPS/Spie_9781578265664_epub_c05_r1.htm ...
Parsing OEBPS/Spie_9781578265664_epub_cop_r1.htm ...
Parsing OEBPS/Spie_9781578265664_epub_c06_r1.htm ...
Parsing OEBPS/Spie_9781578265664_epub_toc_r1.htm ...
Parsing OEBPS/Spie_9781578265664_epub_c12_r1.htm ...
Parsing OEBPS/Spie_9781578265664_epub_c07_r1.htm ...
Parsing OEBPS/Spie_9781578265664_epub_ded_r1.htm ...
Parsing OEBPS/Spie_9781578265664_epub_app1_r1.htm ...
Parsing OEBPS/Spie_9781578265664_epub_bm1_r1.htm ...
Parsing OEBPS/Spie_9781578265664_epub_c08_r1.htm ...
Parsing OEBPS/Spie_9781578265664_epub_ack_r1.htm ...
Parsing OEBPS/Spie_9781578265664_epub_ata_r1.htm ...
Parsing OEBPS/Spie_9781578265664_epub_c09_r1.htm ...
Parsing OEBPS/Spie_9781578265664_epub_itr_r1.htm ...
Parsing OEBPS/Spie_9781578265664_epub_c10_r1.htm ...
Parsing OEBPS/Spie_9781578265664_epub_c01_r1.htm ...
Reading TOC from NCX...
Merging user specified metadata...
Detecting structure...
Detected chapter:
Detected chapter:
Detected chapter:
Detected chapter:
Detected chapter:
Detected chapter:
Detected chapter:
Detected chapter:
Detected chapter:
Detected chapter:
Detected chapter:
Detected chapter:
Flattening CSS and remapping font sizes...
Source base font size is 12.00000pt
Removing page margins specified in the Adobe page template
Cleaning up manifest...
Trimming unused files from manifest...
Trimming u'OEBPS/images/Spie_9781578265664_epub_cvt_r1.jpg' from manifest
Trimming u'OEBPS/page-template.xpgt' from manifest
Creating PDF Output...
Splitting markup on page breaks and flow limits, if any...
Splitting on page-break at id=calibre_pb_0
Split into 2 parts
Splitting on page-break at id=calibre_pb_0
Split into 2 parts
Splitting on page-break at id=calibre_pb_0
Split into 2 parts
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
Splitting on page-break at id=calibre_pb_5
Splitting on page-break at id=calibre_pb_6
Splitting on page-break at id=calibre_pb_7
Splitting on page-break at id=calibre_pb_8
Splitting on page-break at id=calibre_pb_9
Split into 11 parts
Splitting on page-break at id=calibre_pb_0
Split into 2 parts
Splitting on page-break at id=calibre_pb_0
Split into 2 parts
Splitting on page-break at id=calibre_pb_0
Split into 2 parts
Splitting on page-break at id=calibre_pb_0
Split into 2 parts
Splitting on page-break at id=calibre_pb_0
Split into 2 parts
Splitting on page-break at id=calibre_pb_0
Split into 2 parts
Splitting on page-break at id=calibre_pb_0
Split into 2 parts
Converting input as a text based book...
Serializing oeb input to disk for processing...
Python function terminated unexpectedly
'NoneType' object has no attribute 'data' (Error Code: 1)
Traceback (most recent call last):
File "site.py", line 101, in main
File "site.py", line 78, in run_entry_point
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 1270, in run
File "site-packages\calibre\ebooks\conversion\plugins\pdf_out put.py", line 191, in convert
File "site-packages\calibre\ebooks\conversion\plugins\pdf_out put.py", line 263, in convert_text
AttributeError: 'NoneType' object has no attribute 'data'
An anyone figure out what the problem might me?
Thank you.
Last edited by theducks; 09-25-2018 at 04:29 PM.
Reason: Pleas use SPOILER tags for logs