Lit conversion error (Conversion options changed from default)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
calibre |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
For the past few updated (Somewhere around 3.41.3 onward) trying to conver epub files to lit results in the following error:
calibre, version 3.46.0 (win32, embedded-python: True)
Conversion error: Failed: Convert book 1 of 1 (Dungeon Robotics)
Convert book 1 of 1 (Dungeon Robotics)
Conversion options changed from defaults:
output_profile: u'generic_eink'
read_
cover: u'C:\\Users\
verbose: 2
page_
Resolved conversion options
calibre version: 3.46.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_
'duplicate_
'embed_all_fonts': False,
'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_
'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: EPUB Input running
on C:\Users\
Found HTML cover OEBPS/cover.xhtml
Parsing all content...
Parsing OEBPS/file0052.
Parsing OEBPS/file0087.
Parsing OEBPS/file0022.
Parsing OEBPS/file0064.
Parsing OEBPS/file0024.
Parsing OEBPS/file0068.
Parsing OEBPS/file0072.
Parsing OEBPS/file0076.
Parsing OEBPS/file0103.
Parsing OEBPS/file0113.
Parsing OEBPS/file0053.
Parsing OEBPS/file0060.
Parsing OEBPS/file0031.
Parsing OEBPS/file0077.
Parsing OEBPS/file0039.
Parsing OEBPS/file0017.
Parsing OEBPS/file0043.
Parsing OEBPS/file0081.
Parsing OEBPS/file0047.
Parsing OEBPS/file0083.
Parsing OEBPS/file0041.
Parsing OEBPS/file0085.
Parsing OEBPS/file0079.
Parsing OEBPS/file0054.
Parsing OEBPS/file0089.
Parsing OEBPS/file0063.
Parsing OEBPS/file0091.
Parsing OEBPS/file0019.
Parsing OEBPS/file0067.
Parsing OEBPS/file0093.
Parsing OEBPS/cover.xhtml ...
Parsing OEBPS/file0071.
Parsing OEBPS/file0075.
Parsing OEBPS/file0097.
Parsing OEBPS/file0026.
Parsing OEBPS/file0099.
Parsing OEBPS/styleshee
Parsing OEBPS/file0109.
Parsing OEBPS/file0028.
Parsing OEBPS/file0101.
Parsing OEBPS/file0001.
Parsing OEBPS/file0112.
Parsing OEBPS/file0030.
Parsing OEBPS/file0055.
Parsing OEBPS/file0003.
Parsing OEBPS/file0032.
Parsing OEBPS/file0105.
Parsing OEBPS/file0005.
Parsing OEBPS/file0034.
Parsing OEBPS/file0107.
Parsing OEBPS/file0059.
Parsing OEBPS/file0036.
Parsing OEBPS/file0009.
Parsing OEBPS/file0038.
Parsing OEBPS/file0018.
Parsing OEBPS/file0011.
Parsing OEBPS/file0042.
Parsing OEBPS/file0013.
Parsing OEBPS/file0046.
Parsing OEBPS/file0066.
Parsing OEBPS/file0056.
Parsing OEBPS/file0058.
Parsing OEBPS/file0021.
Parsing OEBPS/file0062.
Parsing OEBPS/file0023.
Parsing OEBPS/file0057.
Parsing OEBPS/file0070.
Parsing OEBPS/file0074.
Parsing OEBPS/file0111.
Parsing OEBPS/file0049.
Parsing OEBPS/file0025.
Parsing OEBPS/file0037.
Parsing OEBPS/file0078.
Parsing OEBPS/file0015.
Parsing OEBPS/file0080.
Parsing OEBPS/file0045.
Parsing OEBPS/file0082.
Parsing OEBPS/file0084.
Parsing OEBPS/file0086.
Parsing OEBPS/file0050.
Parsing OEBPS/file0088.
Parsing OEBPS/file0090.
Parsing OEBPS/file0065.
Parsing OEBPS/file0020.
Parsing OEBPS/file0092.
Parsing OEBPS/file0069.
Parsing OEBPS/file0094.
Parsing OEBPS/file0073.
Parsing OEBPS/file0096.
Parsing OEBPS/file0098.
Parsing OEBPS/file0027.
Parsing OEBPS/file0100.
Parsing OEBPS/title_
Parsing OEBPS/file0110.
Parsing OEBPS/file0029.
Parsing OEBPS/file0095.
Parsing OEBPS/file0102.
Parsing OEBPS/file0002.
Parsing OEBPS/file0114.
Parsing OEBPS/file0051.
Parsing OEBPS/file0007.
Parsing OEBPS/file0104.
Parsing OEBPS/file0004.
Parsing OEBPS/file0033.
Parsing OEBPS/file0106.
Parsing OEBPS/file0006.
Parsing OEBPS/file0035.
Parsing OEBPS/file0061.
Parsing OEBPS/file0108.
Parsing OEBPS/file0008.
Parsing OEBPS/file0010.
Parsing OEBPS/file0040.
Parsing OEBPS/file0016.
Parsing OEBPS/file0012.
Parsing OEBPS/file0044.
Parsing OEBPS/file0014.
Parsing OEBPS/file0048.
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 4 items of level: p_3
Found 6484 items of level: p_2
Found 115 items of level: div_1
Found 1 items of level: div_2
Ignoring level p_3
p_2 left margin stats: Counter({u'0': 6484})
p_2 right margin stats: Counter({u'0': 6484})
div_1 left margin stats: Counter({u'': 114})
div_1 right margin stats: Counter({u'': 114})
div_2 left margin stats: Counter()
div_2 right margin stats: Counter()
Cleaning up manifest...
Trimming unused files from manifest...
Trimming u'OEBPS/
Creating LIT Output...
Splitting markup on page breaks and flow limits, if any...
Generating in-line TOC...
Applying case-transforming CSS...
Parsing manglecase.css ...
Parsing tocstyle.css ...
Rasterizing SVG images...
Python function terminated unexpectedly
'unicode' does not have the buffer interface (Error Code: 1)
Traceback (most recent call last):
File "site.py", line 101, in main
File "site.py", line 78, 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\
TypeError: 'unicode' does not have the buffer interface
The same conversion works fine when I am using an older copy of Calibre (3.40.1).
I have not tried converting to any other format.
Fixed in branch master. The fix will be in the next release. calibre is usually released every alternate Friday.
status fixreleased