Error converting from EPUB to PDF
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
calibre |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Hello,
Tried to convert EPUB to PDF using all default settings in the latest Calibre version 2.84.0 (Windows x64).
I am trying to convert on my Windows 10 x64 Home Desktop, so no e-reader devices are involved or connected.
This is the error log I get after the failed conversion attempt:-
=======
calibre, version 2.84.0 (win32, embedded-python: True)
Conversion error: Failed: Convert book 1 of 1 (Superintelligence: Paths, Dangers, Strategies)
Convert book 1 of 1 (Superintelligence: Paths, Dangers, Strategies)
Conversion options changed from defaults:
read_
pdf_sans_family: u'Segoe UI'
use_profile_size: True
disable_
pdf_page_numbers: True
preserve_
embed_all_fonts: True
output_profile: 'generic_eink'
cover: u'C:\\Users\
subset_
verbose: 2
Resolved conversion options
calibre version: 2.84.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'C:\\Users\
'custom_size': None,
'debug_pipeline': None,
'dehyphenate': True,
'delete_
'disable_
'duplicate_
'embed_all_fonts': True,
'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': None,
'level2_toc': None,
'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_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'Segoe UI',
'pdf_serif_
'pdf_standard_
'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: EPUB Input running
on C:\Users\
Found HTML cover titlepage.xhtml
Parsing all content...
Parsing titlepage.xhtml ...
Parsing CR!WRXXYATSYN7Q
Parsing CR!WRXXYATSYN7Q
Parsing CR!WRXXYATSYN7Q
Parsing CR!WRXXYATSYN7Q
Parsing CR!WRXXYATSYN7Q
Parsing stylesheet.css ...
Parsing CR!WRXXYATSYN7Q
Parsing CR!WRXXYATSYN7Q
Parsing CR!WRXXYATSYN7Q
Parsing CR!WRXXYATSYN7Q
Parsing CR!WRXXYATSYN7Q
Parsing CR!WRXXYATSYN7Q
Parsing CR!WRXXYATSYN7Q
Parsing CR!WRXXYATSYN7Q
Parsing CR!WRXXYATSYN7Q
Parsing CR!WRXXYATSYN7Q
Parsing CR!WRXXYATSYN7Q
Parsing CR!WRXXYATSYN7Q
Parsing CR!WRXXYATSYN7Q
Parsing CR!WRXXYATSYN7Q
Parsing CR!WRXXYATSYN7Q
Parsing CR!WRXXYATSYN7Q
Parsing page_styles.css ...
Parsing CR!WRXXYATSYN7Q
Parsing CR!WRXXYATSYN7Q
Parsing CR!WRXXYATSYN7Q
Parsing CR!WRXXYATSYN7Q
Parsing CR!WRXXYATSYN7Q
Parsing CR!WRXXYATSYN7Q
Reading TOC from NCX...
Merging user specified metadata...
Detecting structure...
Detected chapter: CHAPTER 1Past developments and present capabilitie
Detected chapter: CHAPTER 2Paths to superintelligence
Detected chapter: CHAPTER 3Forms of superintelligence
Detected chapter: CHAPTER 4The kinetics of an intelligence explosion
Detected chapter: CHAPTER 5Decisive strategic advantage
Detected chapter: CHAPTER 6Cognitive superpowers
Detected chapter: CHAPTER 7The superintelligent will
Detected chapter: CHAPTER 8Is the default outcome doom?
Detected chapter: CHAPTER 9The control problem
Detected chapter: CHAPTER 10Oracles, genies, sovereigns, tools
Detected chapter: CHAPTER 11Multipolar scenarios
Detected chapter: CHAPTER 12Acquiring values
Detected chapter: CHAPTER 13Choosing the criteria for choosing
Detected chapter: CHAPTER 14The strategic picture
Detected chapter: CHAPTER 15Crunch time
Flattening CSS and remapping font sizes...
Source base font size is 12.00000pt
Removing fake margins...
Found 708 items of level: p_3
Found 2017 items of level: p_2
Found 45 items of level: p_6
Found 166 items of level: p_5
Found 51 items of level: p_4
Found 26 items of level: div_1
Found 331 items of level: div_2
Found 82 items of level: div_3
Negative text indent detected at level p_3, ignoring this level
Negative text indent detected at level p_2, ignoring this level
p_6 left margin stats: Counter({u'0': 45})
p_6 right margin stats: Counter({u'0': 45})
Negative text indent detected at level p_5, ignoring this level
Negative text indent detected at level p_4, ignoring this level
div_1 left margin stats: Counter()
div_1 right margin stats: Counter()
div_2 left margin stats: Counter({u'': 14})
div_2 right margin stats: Counter({u'': 14})
div_3 left margin stats: Counter({u'': 82})
div_3 right margin stats: Counter({u'': 82})
Cleaning up manifest...
Trimming unused files from manifest...
Trimming u'titlepage.xhtml' from manifest
Creating PDF Output...
Splitting markup on page breaks and flow limits, if any...
Converting input as a text based book...
Serializing oeb input to disk for processing...
The cover image has an id != "cover". Renaming to work around bug in Nook Color
Rendering pages to PDF...
Processing C:\Users\
Loading font: family_name=Times New Roman full_name=Times New Roman postscript_
Processing C:\Users\
Loading font: family_name=Times New Roman full_name=Times New Roman Bold postscript_
Loading font: family_name=Times New Roman full_name=Times New Roman Italic postscript_
Processing C:\Users\
Processing C:\Users\
Processing C:\Users\
Rendering failed
Traceback (most recent call last):
File "site-packages\
File "site-packages\
File "site-packages\
TypeError: 'NoneType' object has no attribute '__getitem__'
Python function terminated unexpectedly
PDF Output failed, see log for details (Error Code: 1)
Traceback (most recent call last):
File "site.py", line 132, in main
File "site.py", line 109, in run_entry_point
File "site-packages\
File "site-packages\
File "site-packages\
File "site-packages\
File "site-packages\
File "site-packages\
File "site-packages\
File "site-packages\
Exception: PDF Output failed, see log for details
=======
Upon searching online for the error "TypeError: 'NoneType' object has no attribute '__getitem__'" online, it seems like a coding bug, see this link:-
https:/
Please advise how to proceed.
information type: | Private → Public |
Attach an EPUB 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 lock icon next to "This report contains Public information" in the top right area of the bug's page.
status incomplete