calibre, version 2.84.0 (darwin, embedded-python: True)
Conversion error: Failed: Convert book 1 of 1 (Notes of a Native Son)

Convert book 1 of 1 (Notes of a Native Son)
Conversion options changed from defaults:
  cover: u'/var/folders/5g/9fxy1xzj5k901w7z6ctfq33m0000gn/C/calibre_2.84.0_tmp_tuhBBo/vzdFTR.jpeg'
  verbose: 2
  output_profile: 'ipad3'
  read_metadata_from_opf: u'/var/folders/5g/9fxy1xzj5k901w7z6ctfq33m0000gn/C/calibre_2.84.0_tmp_tuhBBo/GoC2B6.opf'
Resolved conversion options
calibre version: 2.84.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'/var/folders/5g/9fxy1xzj5k901w7z6ctfq33m0000gn/C/calibre_2.84.0_tmp_tuhBBo/vzdFTR.jpeg',
 'custom_size': None,
 '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,
 '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 0x109e14cd0>,
 '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.iPad3Output object at 0x109e212d0>,
 'page_breaks_before': u"//*[name()='h1' or name()='h2']",
 'paper_size': u'letter',
 'pdf_add_toc': False,
 'pdf_default_font_size': 20,
 'pdf_footer_template': None,
 'pdf_header_template': None,
 'pdf_mark_links': False,
 'pdf_mono_family': u'Courier New',
 'pdf_mono_font_size': 16,
 'pdf_page_margin_bottom': 72.0,
 'pdf_page_margin_left': 72.0,
 'pdf_page_margin_right': 72.0,
 'pdf_page_margin_top': 72.0,
 'pdf_page_numbers': False,
 'pdf_sans_family': u'Helvetica',
 'pdf_serif_family': u'Times New Roman',
 'pdf_standard_font': u'serif',
 'prefer_metadata_cover': False,
 'preserve_cover_aspect_ratio': False,
 'pretty_print': False,
 'pubdate': None,
 'publisher': None,
 'rating': None,
 'read_metadata_from_opf': u'/var/folders/5g/9fxy1xzj5k901w7z6ctfq33m0000gn/C/calibre_2.84.0_tmp_tuhBBo/GoC2B6.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': 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: MOBI Input running
on /var/folders/5g/9fxy1xzj5k901w7z6ctfq33m0000gn/C/calibre_2.84.0_tmp_tuhBBo/RfZJxP.azw3
Found KF8 MOBI of type 'standalone'
Extracting text...
Parsing all content...
Parsing text/part0009.html ...
Parsing text/part0001.html ...
Parsing text/part0010.html ...
Parsing text/part0011.html ...
Parsing text/part0016.html ...
Parsing text/part0012.html ...
Parsing text/part0019.html ...
Parsing text/part0013.html ...
Parsing text/part0017.html ...
Parsing text/part0007.html ...
Parsing text/part0014.html ...
Parsing text/part0018.html ...
Parsing text/part0015.html ...
Parsing text/part0000.html ...
Parsing text/part0002.html ...
Parsing text/part0020.html ...
Parsing styles/0001.css ...
Parsing text/part0004.html ...
Parsing text/part0005.html ...
Parsing text/part0003.html ...
Parsing text/part0006.html ...
Parsing text/part0008.html ...
Referenced file u'styles/XXXXXXXXXXXXXXXX' not found
Referenced file u'text/page-template.xpgt' not found
Reading TOC from NCX...
Merging user specified metadata...
Detecting structure...
	Detected chapter: Contents
	Detected chapter: Introduction
	Detected chapter: Acknowledgments
	Detected chapter: Autobiographical Notes
	Detected chapter: PART ONE
	Detected chapter: Everybody’s Protest Novel
	Detected chapter: Many Thousands Gone
	Detected chapter: Carmen Jones: The Dark Is Light Enough
	Detected chapter: PART TWO
	Detected chapter: The Harlem Ghetto
	Detected chapter: Journey to Atlanta
	Detected chapter: Notes of a Native Son
	Detected chapter: PART THREE
	Detected chapter: Encounter on the Seine: Black Meets Brown
	Detected chapter: A Question of Identity
	Detected chapter: Equal in Paris
	Detected chapter: Stranger in the Village
Flattening CSS and remapping font sizes...
Source base font size is 12.00000pt
Removing fake margins...
Found 305 items of level: p_1
Found 3 items of level: div_1
Found 29 items of level: p_2
p_1  left margin stats: Counter({u'0': 305})
p_1  right margin stats: Counter({u'0': 305})
div_1  left margin stats: Counter({u'': 1})
div_1  right margin stats: Counter({u'': 1})
p_2  left margin stats: Counter({u'0': 28, u'1em': 1})
p_2  right margin stats: Counter({u'0': 29})
Cleaning up manifest...
Trimming unused files from manifest...
Trimming u'images/00007.jpeg' from manifest
Python function terminated unexpectedly: PDF Output failed, see log for details
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/pdf_output.py", line 177, in convert
  File "site-packages/calibre/ebooks/conversion/plugins/pdf_output.py", line 256, in convert_text
  File "site-packages/calibre/ebooks/conversion/plugins/pdf_output.py", line 282, in write
  File "site-packages/calibre/ebooks/pdf/render/from_html.py", line 242, in dump
Exception: PDF Output failed, see log for details
Creating PDF Output...
Splitting markup on page breaks and flow limits, if any...
		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_0
		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_0
		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_0
		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_0
		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_0
		Splitting on page-break at id=2RHM1-37b8159ab79b4248995f7cd3f6919453
		Splitting on page-break at id=calibre_pb_0
		Splitting on page-break at id=calibre_pb_0
Converting input as a text based book...
Serializing oeb input to disk for processing...
Rendering pages to PDF...
Processing /var/folders/5g/9fxy1xzj5k901w7z6ctfq33m0000gn/C/calibre_2.84.0_tmp_tuhBBo/RtzcgI_pdf_out/text/part0000.html...
Processing /var/folders/5g/9fxy1xzj5k901w7z6ctfq33m0000gn/C/calibre_2.84.0_tmp_tuhBBo/RtzcgI_pdf_out/text/part0001.html...
Loading font: family_name=Charis SIL full_name=Charis SIL postscript_name=CharisSIL subfamily_name=Regular
Loading font: family_name=Charis SIL full_name=Charis SIL Bold postscript_name=CharisSIL-Bold subfamily_name=Bold
Processing /var/folders/5g/9fxy1xzj5k901w7z6ctfq33m0000gn/C/calibre_2.84.0_tmp_tuhBBo/RtzcgI_pdf_out/text/part0002.html...
Loading font: family_name=Charis SIL full_name=Charis SIL Italic postscript_name=CharisSIL-Italic subfamily_name=Italic
Processing /var/folders/5g/9fxy1xzj5k901w7z6ctfq33m0000gn/C/calibre_2.84.0_tmp_tuhBBo/RtzcgI_pdf_out/text/part0003.html...
Processing /var/folders/5g/9fxy1xzj5k901w7z6ctfq33m0000gn/C/calibre_2.84.0_tmp_tuhBBo/RtzcgI_pdf_out/text/part0004.html...
Processing /var/folders/5g/9fxy1xzj5k901w7z6ctfq33m0000gn/C/calibre_2.84.0_tmp_tuhBBo/RtzcgI_pdf_out/text/part0005.html...
Processing /var/folders/5g/9fxy1xzj5k901w7z6ctfq33m0000gn/C/calibre_2.84.0_tmp_tuhBBo/RtzcgI_pdf_out/text/part0006.html...
Processing /var/folders/5g/9fxy1xzj5k901w7z6ctfq33m0000gn/C/calibre_2.84.0_tmp_tuhBBo/RtzcgI_pdf_out/text/part0007.html...
Processing /var/folders/5g/9fxy1xzj5k901w7z6ctfq33m0000gn/C/calibre_2.84.0_tmp_tuhBBo/RtzcgI_pdf_out/text/part0008.html...
Processing /var/folders/5g/9fxy1xzj5k901w7z6ctfq33m0000gn/C/calibre_2.84.0_tmp_tuhBBo/RtzcgI_pdf_out/text/part0009.html...
Processing /var/folders/5g/9fxy1xzj5k901w7z6ctfq33m0000gn/C/calibre_2.84.0_tmp_tuhBBo/RtzcgI_pdf_out/text/part0010.html...
Rendering failed
Traceback (most recent call last):
  File "site-packages/calibre/ebooks/pdf/render/from_html.py", line 286, in render_html
  File "site-packages/calibre/ebooks/pdf/render/from_html.py", line 416, in do_paged_render
  File "site-packages/calibre/ebooks/pdf/render/engine.py", line 331, in add_links
TypeError: 'NoneType' object has no attribute '__getitem__'