Can't Convert Gutenberg AZW3 to DOCX
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
calibre |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Operating system: Windows 10
calibre, version 2.66.0 (win32, embedded-python: True)
Conversion Error: Failed: Convert book 1 of 1 (Petroleum)
Convert book 1 of 1 (Petroleum)
Resolved conversion options
calibre version: 2.66.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\
'debug_pipeline': None,
'dehyphenate': True,
'delete_
'disable_
'docx_
'docx_no_cover': False,
'docx_no_toc': False,
'docx_page_size': u'letter',
'duplicate_
'embed_all_fonts': False,
'embed_
'enable_
'expand_css': False,
'extra_css': None,
'extract_to': 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': 72.0,
'margin_left': 72.0,
'margin_right': 72.0,
'margin_top': 72.0,
'markup_
'max_toc_links': 50,
'minimum_
'no_chapters_
'no_inline_
'output_profile': <calibre.
'page_
'prefer_
'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,
'transform_
'unsmarten_
'unwrap_lines': True,
'use_auto_toc': False,
'verbose': 2}
InputFormatPlugin: MOBI Input running
on C:\Users\
Found KF8 MOBI of type 'standalone'
Extracting text...
Parsing all content...
Parsing text/part0016.html ...
Parsing text/part0022.html ...
Parsing text/part0004.html ...
Parsing text/part0017.html ...
Parsing text/part0013.html ...
Parsing text/part0010.html ...
Parsing text/part0005.html ...
Parsing text/part0018.html ...
Parsing text/part0019.html ...
Parsing text/part0006.html ...
Parsing text/part0008.html ...
Parsing text/part0012.html ...
Parsing styles/0001.css ...
Parsing text/part0007.html ...
Parsing styles/0002.css ...
Parsing text/part0020.html ...
Parsing text/part0001.html ...
Parsing text/part0023.html ...
Parsing text/part0000.html ...
Parsing text/part0014.html ...
Parsing text/part0011.html ...
Parsing text/part0009.html ...
Parsing text/part0002.html ...
Parsing text/part0021.html ...
Parsing text/part0015.html ...
Parsing text/part0003.html ...
Parsing text/part0024.html ...
Referenced file u'text/
Reading TOC from NCX...
Merging user specified metadata...
Detecting structure...
Detected chapter: CHAPTER I PETROLEUM AND ITS ORIGIN
Detected chapter: CHAPTER II THE OIL-FIELDS OF THE WORLD
Detected chapter: CHAPTER III HOW PETROLEUM IS PRODUCED
Detected chapter: CHAPTER IV THE REFINING OF PETROLEUM
Detected chapter: CHAPTER V TRANSPORT BY LAND AND SEA
Detected chapter: CHAPTER VI PETROLEUM AS FUEL
Detected chapter: CHAPTER VII PETROLEUM AS A LIGHTING AND COOKING AG
Detected chapter: CHAPTER VIII INTERNAL COMBUSTION ENGINES
Detected chapter: CHAPTER IX PETROLEUM IN ENGLAND
Detected chapter: CHAPTER X PETROLEUM IN THE BRITISH EMPIRE
Detected chapter: CHAPTER XI PETROLEUM’S PART IN THE GREAT WAR
Detected chapter: CHAPTER XII THE SCOTTISH SHALE-OIL INDUSTRY
Detected chapter: CHAPTER XIII A FEW NOTABLE PETROLEUM ENTERPRISES
Detected chapter: CHAPTER XIV STATISTICAL
Flattening CSS and remapping font sizes...
Source base font size is 12.00000pt
Removing fake margins...
Found 323 items of level: p_1
Found 10 items of level: p_4
Found 63 items of level: p_2
Found 8 items of level: p_3
Found 4 items of level: div_3
Found 3 items of level: div_2
Found 56 items of level: div_1
Ignoring level p_4
Ignoring level p_3
Ignoring level div_3
p_1 left margin stats: Counter({u'0': 320, u'auto': 2, u'5%': 1})
p_1 right margin stats: Counter({u'0': 320, u'auto': 2, u'5%': 1})
Negative text indent detected at level p_2, ignoring this level
div_2 left margin stats: Counter({u'0': 1})
div_2 right margin stats: Counter({u'0': 1})
div_1 left margin stats: Counter({u'': 5})
div_1 right margin stats: Counter({u'': 5})
Cleaning up manifest...
Trimming unused files from manifest...
Trimming u'images/
Creating DOCX Output...
Rasterizing SVG images...
Processing text/part0000.html
Python function terminated unexpectedly
'NoneType' object has no attribute 'add_table' (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\
File "site-packages\
File "site-packages\
File "site-packages\
File "site-packages\
File "site-packages\
AttributeError: 'NoneType' object has no attribute 'add_table'
Fixed in branch master. The fix will be in the next release. calibre is usually released every Friday.
status fixreleased