View Single Post
Old 01-07-2013, 11:17 PM   #1
Junior Member
georgek8734 began at the beginning.
Posts: 2
Karma: 10
Join Date: Jan 2013
Device: Mac kindle
Error in Calibre

Can you tell me how to fix this error in trying to convert Kindle to PDF?

Convert book 1 of 1 (The Prevention of All Cancers)
Resolved conversion options
calibre version: 0.9.13
{'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': None,
'custom_size': None,
'debug_pipeline': None,
'dehyphenate': True,
'delete_blank_paragraphs': True,
'disable_font_rescaling': False,
'duplicate_links_in_toc': False,
'embed_font_family': None,
'enable_heuristics': 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 0x108243810>,
'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,
'old_pdf_engine': False,
'output_profile': <calibre.customize.profiles.GenericEink object at 0x108243c10>,
'override_profile_size': False,
'page_breaks_before': u"//*[name()='h1' or name()='h2']",
'paper_size': u'letter',
'pdf_default_font_size': 20,
'pdf_mark_links': False,
'pdf_mono_family': u'Courier New',
'pdf_mono_font_size': 16,
'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/xw/d9g7b4q50p5dx4_6g4b_t_wr0000gp/T/calibre_0.9.13_tmp_2B0MGd/Rjm7sM.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,
'uncompressed_pdf': False,
'unit': u'inch',
'unsmarten_punctuation': False,
'unwrap_lines': True,
'use_auto_toc': False,
'verbose': 2}
InputFormatPlugin: MOBI Input running
on /var/folders/xw/d9g7b4q50p5dx4_6g4b_t_wr0000gp/T/calibre_0.9.13_tmp_2B0MGd/
Extracting text...
Adding anchors...
Extracting images...
Cleaning up HTML...
Parsing HTML...
Converting style information to CSS...
Creating OPF...
Parsing all content...
Parsing CR!JZ8S5TGJEN33D2833MV9BJVQ2R2S.html ...
Forcing CR!JZ8S5TGJEN33D2833MV9BJVQ2R2S.html into XHTML namespace
Merging multiple <head> and <body> sections
Parsing styles.css ...
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 7 items of level: div_1
Found 8 items of level: div_2
Found 157 items of level: p_2
Found 16 items of level: p_5
Ignoring level p_5
div_1 left margin stats: Counter({u'': 4})
div_1 right margin stats: Counter({u'': 4})
div_2 left margin stats: Counter()
div_2 right margin stats: Counter()
p_2 left margin stats: Counter({u'0': 157})
p_2 right margin stats: Counter({u'0': 157})
Cleaning up manifest...
Trimming unused files from manifest...
Python function terminated unexpectedly: PDF Output failed, see log for details
Creating PDF Output...
Converting input as a text based book...
Serializing oeb input to disk for processing...
Rendering pages to PDF...
Processing /var/folders/xw/d9g7b4q50p5dx4_6g4b_t_wr0000gp/T/calibre_0.9.13_tmp_2B0MGd/jYmKAf_pdf_out/CR!JZ8S5TGJEN33D2833MV9BJVQ2R2S.html...
Traceback (most recent call last):
File "site-packages/calibre/ebooks/pdf/render/", line 140, in end
File "site-packages/calibre/ebooks/pdf/render/", line 484, in end
File "site-packages/calibre/ebooks/pdf/render/", line 61, in add_links
KeyError: u'filepos72016'

Traceback (most recent call last):
File "/Applications/Utilities/", line 147, in main
return run_entry_point()
File "/Applications/Utilities/", line 116, in run_entry_point
return getattr(pmod, func)()
File "site-packages/calibre/utils/ipc/", line 186, in main
File "site-packages/calibre/gui2/convert/", line 31, in gui_convert_override
File "site-packages/calibre/gui2/convert/", line 25, in gui_convert
File "site-packages/calibre/ebooks/conversion/", line 1156, in run
File "site-packages/calibre/ebooks/conversion/plugins/", line 119, in convert
File "site-packages/calibre/ebooks/conversion/plugins/", line 237, in convert_text
File "site-packages/calibre/ebooks/conversion/plugins/", line 263, in write
File "site-packages/calibre/ebooks/pdf/render/", line 196, in dump
Exception: PDF Output failed, see log for details

Last edited by theducks; 01-08-2013 at 04:58 AM. Reason: Wrapped long paste in Spoiler
georgek8734 is offline   Reply With Quote