fail to convert azw3 to pdf in calibre 4.3
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
calibre |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
After updating to Calibre v4 (now v4.3.0), converting to PDF always gets error.
Environment: macOS 10.15.1, Calibre 4.3
Here's the error log and I upload the original azw3 as attachment.
calibre, version 4.3.0 (darwin, embedded-python: True)
转换错误: 失败: 转换书籍 第 1 本,共 1 本 (中央帝国密码三部曲(
转换书籍 第 1 本,共 1 本 (中央帝国密码三部曲(
Conversion options changed from defaults:
pdf_mono_family: u'Courier New'
paper_size: u'a4'
insert_
chapter: u"//*[((name()='h1' or name()='h2') and re:test(., 'chapter|
max_toc_links: 500
read_
preserve_
pdf_serif_family: u'FZYaSongS-L-GB'
pdf_sans_family: u'PingFang SC'
embed_all_fonts: True
verbose: 2
minimum_
output_profile: u'kindle_voyage'
pdf_mono_
cover: u'/var/
Resolved conversion options
calibre version: 4.3.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(., 'chapter|
'chapter_mark': u'pagebreak',
'comments': None,
'cover': u'/var/
'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': 500,
'minimum_
'no_chapters_
'no_inline_
'output_profile': <calibre.
'page_
'paper_size': u'a4',
'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_page_
'pdf_sans_family': u'PingFang SC',
'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 u'standalone'
Extracting text...
Parsing all content...
Parsing text/part0044.html ...
Parsing text/part0032.html ...
Parsing text/part0052.html ...
Parsing text/part0006.html ...
Parsing text/part0005.html ...
Parsing text/part0029.html ...
Parsing text/part0025.html ...
Parsing text/part0053.html ...
Parsing styles/0006.css ...
Parsing styles/0010.css ...
Parsing styles/0009.css ...
Parsing text/part0033.html ...
Parsing text/part0050.html ...
Parsing text/part0024.html ...
Parsing text/part0031.html ...
Parsing text/part0008.html ...
Parsing text/part0007.html ...
Parsing text/part0030.html ...
Parsing text/part0021.html ...
Parsing text/part0001.html ...
Parsing text/part0012.html ...
Parsing text/part0020.html ...
Parsing text/part0056.html ...
Parsing styles/0007.css ...
Parsing text/part0015.html ...
Parsing text/part0042.html ...
Parsing text/part0049.html ...
Parsing text/part0003.html ...
Parsing styles/0003.css ...
Parsing text/part0040.html ...
Parsing text/part0037.html ...
Parsing text/part0051.html ...
Parsing text/part0036.html ...
Parsing text/part0061.html ...
Parsing text/part0017.html ...
Parsing text/part0016.html ...
Parsing text/part0041.html ...
Parsing text/part0057.html ...
Parsing text/part0060.html ...
Parsing text/part0028.html ...
Parsing styles/0001.css ...
Parsing text/part0046.html ...
Parsing text/part0027.html ...
Parsing text/part0039.html ...
Parsing text/part0004.html ...
Parsing text/part0019.html ...
Parsing text/part0058.html ...
Parsing text/part0023.html ...
Parsing text/part0011.html ...
Parsing text/part0035.html ...
Parsing text/part0062.html ...
Parsing text/part0034.html ...
Parsing text/part0000.html ...
Parsing text/part0022.html ...
Parsing text/part0059.html ...
Parsing text/part0010.html ...
Parsing text/part0018.html ...
Parsing text/part0038.html ...
Parsing text/part0045.html ...
Parsing text/part0002.html ...
Parsing text/part0055.html ...
Parsing styles/0004.css ...
Parsing text/part0043.html ...
Parsing text/part0047.html ...
Parsing text/part0014.html ...
Parsing text/part0054.html ...
Parsing text/part0048.html ...
Parsing text/part0009.html ...
Parsing text/part0026.html ...
Parsing text/part0013.html ...
Referenced file u'styles/
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 59 items of level: div_2
Found 253 items of level: div_3
Found 276 items of level: div_1
Found 10890 items of level: p_1
Found 11 items of level: p_2
Ignoring level p_2
div_2 left margin stats: Counter({u'2em': 24})
div_2 right margin stats: Counter({u'': 24})
Removing level div_2 left margin of: 2em
div_3 left margin stats: Counter({u'': 253})
div_3 right margin stats: Counter({u'': 253})
div_1 left margin stats: Counter({u'0': 15})
div_1 right margin stats: Counter({u'': 15})
p_1 left margin stats: Counter({u'0': 10890})
p_1 right margin stats: Counter({u'0': 10890})
Failed to find fonts for family: MYing Hei S not embedding
Failed to find fonts for family: STKai not embedding
Failed to find fonts for family: Hei not embedding
Failed to find fonts for family: MYing Hei not embedding
Cleaning up manifest...
Trimming unused files from manifest...
Trimming u'images/
Trimming u'images/
Trimming u'images/
Trimming u'images/
Trimming u'images/
Trimming u'images/
Trimming u'images/
Trimming u'images/
Trimming u'images/
Trimming u'images/
Trimming u'images/
Trimming u'images/
Trimming u'images/
Trimming u'images/
Trimming u'images/
Trimming u'images/
Trimming u'images/
Trimming u'images/
Creating PDF Output...
Converting input as a text based book...
Python function terminated unexpectedly: 'UnknownTable' object has no attribute 'read_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/
File "site-packages/
File "site-packages/
File "site-packages/
File "site-packages/
AttributeError: 'UnknownTable' object has no attribute 'read_data'
Changed in calibre: | |
status: | Incomplete → Fix Released |
Works fine for me with default options. That error has to do with
subsetting fonts, what fonts are you using? From the log it looks like
Ping Fang and FZYASongs but I get no errors with those either, though I
dont know if they are installed on my macOS machine or itis using a
fallback.
status incomplete