Junior Member
Posts: 4
Karma: 10
Join Date: Jan 2021
Device: Paperwhite 4
|
Quote:
Originally Posted by kindlelover6112
calibre, version 5.9.0
ERROR: KFX conversion failed: <p><b>Cannot convert The Courage to Be Disliked</b><br><br><b>Conversion error:</b> TypeError('stat: path should be string, bytes, os.PathLike or integer, not NoneType')</p>
OS is linux mint. I have installed Kindle Previewer 3 with wine. I think followed the installation instructions properly. But always got this error message. Any solutions?
|
Here is my log
Code:
Convert book 1 of 1 (Frankenstein)
Conversion options changed from defaults:
cover: '/tmp/calibre_5.9.0_tmp_o1hi4y1o/c9sglvlf.jpeg'
keep_ligatures: True
remove_paragraph_spacing_indent_size: 2.0
linearize_tables: True
insert_blank_line_size: 1.0
output_profile: 'kindle_pw3'
read_metadata_from_opf: '/tmp/calibre_5.9.0_tmp_o1hi4y1o/vo4yny_9.opf'
disable_font_rescaling: True
verbose: 2
debug_pipeline: '/home/eddies/Downloads'
prefer_metadata_cover: True
extra_css: 'h1, h2, h3, h4, h5, h6 {\ncolor:black;\ntext-align:center;\nfont-weight:bold;\n}'
Resolved conversion options
calibre version: 5.9.0
{'approximate_pages': False,
'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0.0,
'book_producer': None,
'cde_type_pdoc': False,
'change_justification': 'original',
'chapter': "//*[((name()='h1' or name()='h2') and re:test(., "
"'\\s*((chapter|book|section|part)\\s+)|((prolog|prologue|epilogue)(\\s+|$))', "
"'i')) or @class = 'chapter']",
'chapter_mark': 'pagebreak',
'comments': None,
'cover': '/tmp/calibre_5.9.0_tmp_o1hi4y1o/c9sglvlf.jpeg',
'debug_pipeline': '/home/eddies/Downloads',
'dehyphenate': True,
'delete_blank_paragraphs': True,
'disable_font_rescaling': True,
'duplicate_links_in_toc': False,
'embed_all_fonts': False,
'embed_font_family': None,
'enable_heuristics': False,
'enable_timeout': False,
'expand_css': False,
'extra_css': 'h1, h2, h3, h4, h5, h6 {\n'
'color:black;\n'
'text-align:center;\n'
'font-weight:bold;\n'
'}',
'filter_css': '',
'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 0x7f51f0922160>,
'insert_blank_line': False,
'insert_blank_line_size': 1.0,
'insert_metadata': False,
'isbn': None,
'italicize_common_cases': True,
'keep_ligatures': True,
'language': None,
'level1_toc': None,
'level2_toc': None,
'level3_toc': None,
'line_height': 0.0,
'linearize_tables': True,
'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,
'number_of_pages_field': '(auto)',
'output_profile': <calibre.customize.profiles.KindlePaperWhite3Output object at 0x7f51f0922730>,
'page_breaks_before': '/',
'prefer_metadata_cover': True,
'pretty_print': True,
'pubdate': None,
'publisher': None,
'quality_report': False,
'rating': None,
'read_metadata_from_opf': '/tmp/calibre_5.9.0_tmp_o1hi4y1o/vo4yny_9.opf',
'remove_fake_margins': True,
'remove_first_image': False,
'remove_paragraph_spacing': False,
'remove_paragraph_spacing_indent_size': 2.0,
'renumber_headings': True,
'replace_scene_breaks': '',
'search_replace': '[]',
'series': None,
'series_index': None,
'show_kpr_logs': False,
'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,
'transform_css_rules': '[]',
'unsmarten_punctuation': False,
'unwrap_lines': True,
'use_auto_toc': False,
'verbose': 2}
InputFormatPlugin: EPUB Input running
on /tmp/calibre_5.9.0_tmp_o1hi4y1o/ufgjjym_.epub
Found HTML cover OEBPS/Text/Cover.xhtml
Input debug saved to: /home/eddies/Downloads/input
Parsing all content...
Parsing OEBPS/Text/Letter01.xhtml ...
Parsing OEBPS/Styles/Stil.css ...
Parsing OEBPS/Text/Letter04.xhtml ...
Parsing OEBPS/Text/Chapter04.xhtml ...
Parsing OEBPS/Text/Chapter12.xhtml ...
Parsing OEBPS/Text/Chapter16.xhtml ...
Parsing OEBPS/Text/Chapter20.xhtml ...
Parsing OEBPS/Text/Chapter25.xhtml ...
Parsing OEBPS/Text/Cover.xhtml ...
Parsing OEBPS/Text/Letter03.xhtml ...
Parsing OEBPS/Text/Chapter03.xhtml ...
Parsing OEBPS/Text/Chapter11.xhtml ...
Parsing OEBPS/Text/Chapter15.xhtml ...
Parsing OEBPS/Text/Chapter19.xhtml ...
Parsing OEBPS/Text/Chapter23.xhtml ...
Parsing OEBPS/Text/Chapter06.xhtml ...
Parsing OEBPS/Text/Chapter10.xhtml ...
Parsing OEBPS/Text/Chapter08.xhtml ...
Parsing OEBPS/Text/Letter02.xhtml ...
Parsing OEBPS/Text/Chapter02.xhtml ...
Parsing OEBPS/Text/Chapter14.xhtml ...
Parsing OEBPS/Text/Chapter18.xhtml ...
Parsing OEBPS/Text/Chapter22.xhtml ...
Parsing OEBPS/Text/Chapter24.xhtml ...
Parsing OEBPS/Text/Chapter05.xhtml ...
Parsing OEBPS/Text/Chapter07.xhtml ...
Parsing OEBPS/Text/Title.xhtml ...
Parsing OEBPS/Text/Chapter01.xhtml ...
Parsing OEBPS/Text/Chapter09.xhtml ...
Parsing OEBPS/Text/Chapter13.xhtml ...
Parsing OEBPS/Text/Chapter17.xhtml ...
Parsing OEBPS/Text/Chapter21.xhtml ...
Reading TOC from NCX...
Parsed HTML written to: /home/eddies/Downloads/parsed
Merging user specified metadata...
Detecting structure...
Structured HTML written to: /home/eddies/Downloads/structure
Flattening CSS and remapping font sizes...
Source base font size is 12.00000pt
Removing fake margins...
Found 677 items of level: p_1
Found 3 items of level: div_1
Found 33 items of level: p_2
p_1 left margin stats: Counter({'0': 674, '3em': 3})
p_1 right margin stats: Counter({'0': 671, '1em': 3, '3em': 3})
div_1 left margin stats: Counter({'2em': 3})
div_1 right margin stats: Counter({'2em': 3})
Removing level div_1 left margin of: 2em
Removing level div_1 right margin of: 2em
p_2 left margin stats: Counter({'0': 33})
p_2 right margin stats: Counter({'0': 30, '1em': 3})
Cleaning up manifest...
Trimming unused files from manifest...
Processed HTML written to: /home/eddies/Downloads/processed
Creating KFX Output...
Software versions: KFX Output 1.47.0, calibre 5.9, Linux-5.4.0-52-generic-x86_64-with-glibc2.2.5
KFX Output plugin help is available at https://www.mobileread.com/forums/showthread.php?t=272407
Splitting markup on page breaks and flow limits, if any...
The cover image has an id != "cover". Renaming to work around bug in Nook Color
Successfully converted input format to EPUB
Converting /tmp/calibre_5.9.0_tmp_o1hi4y1o/mprc75_8.epub
Converting /tmp/calibre_5.9.0_tmp_o1hi4y1o/mprc75_8.epub to KPF
Preparing book /tmp/calibre_5.9.0_tmp_o1hi4y1o/mprc75_8.epub for conversion
Removed calibre class from 1 br in OEBPS/Text/Title.xhtml
Removed calibre class from 7 br in OEBPS/Text/Chapter05.xhtml
Removed calibre class from 9 br in OEBPS/Text/Chapter18.xhtml
Removed calibre class from 8 br in OEBPS/Text/Chapter10.xhtml
Removed calibre class from 1 br in OEBPS/Text/Chapter25.xhtml
Removed calibre class from 1 br in OEBPS/Text/Letter01.xhtml
Launching Kindle Previewer 3 (unknown_31391056) - CLI
****************** Conversion Failure Reason *****************
TypeError('stat: path should be string, bytes, os.PathLike or integer, not NoneType')
**************************************************************
Traceback (most recent call last):
File "calibre_plugins.kfx_output.kfxlib.yj_book", line 179, in convert_to_kpf
result = conversion_sequence.convert(infile, flags, timeout_sec, cleaned_filename)
File "calibre_plugins.kfx_output.kfxlib.generate_kpf_common", line 422, in convert
result = self.perform_conversion_sequence()
File "calibre_plugins.kfx_output.kfxlib.generate_kpf_using_cli", line 37, in perform_conversion_sequence
result, is_specific_error = self.perform_conversion_sequence_once()
File "calibre_plugins.kfx_output.kfxlib.generate_kpf_using_cli", line 91, in perform_conversion_sequence_once
if os.path.isfile(conversion_log_file):
File "genericpath.py", line 30, in isfile
TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType
Traceback (most recent call last):
File "runpy.py", line 194, in _run_module_as_main
File "runpy.py", line 87, in _run_code
File "site.py", line 45, in <module>
File "site.py", line 41, in main
File "calibre/utils/ipc/worker.py", line 216, in main
File "calibre/gui2/convert/gui_conversion.py", line 41, in gui_convert_override
File "calibre/gui2/convert/gui_conversion.py", line 28, in gui_convert
File "calibre/ebooks/conversion/plumber.py", line 1274, in run
File "calibre_plugins.kfx_output.__init__", line 217, in convert
File "calibre_plugins.kfx_output.__init__", line 305, in convert_using_previewer
File "calibre_plugins.kfx_output.__init__", line 354, in report_failure
calibre.ebooks.conversion.ConversionUserFeedBack: {"msg": "<b>Cannot convert Frankenstein</b><br><br><b>Conversion error:</b> TypeError('stat: path should be string, bytes, os.PathLike or integer, not NoneType')", "level": "error", "det_msg": "", "title": "KFX conversion failed"}
|