Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 01-10-2021, 07:26 AM   #976
kindlelover6112
Junior Member
kindlelover6112 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jan 2021
Device: Paperwhite 4
Quote:
Originally Posted by kindlelover6112 View Post
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"}
kindlelover6112 is offline   Reply With Quote
Old 01-10-2021, 08:48 AM   #977
jhowell
Wizard
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 4,335
Karma: 44001001
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Oasis 2, Fire, iPad Air 2, Nexus 7
Quote:
Originally Posted by Vlash View Post
I tried that and it still fails. Here are the logs for one of these failed conversions:
...
E24010: Hyperlink not resolved in toc (One possible reason can be that the link points to a tag with style display:none):Z:\#Others\var\Temp\956184c5-8698-49df-a33b-dc8ae5741f50\cTemp\mTemp\mbp_7E5_1_A_9_5_1F_4B_7D0 _21AC_1\OEBPS\Duhi_9780679603856_epub_tp_r1.htm#
Thanks for the log.

From that I was able to determine that the cause of the problem is a bug in the Kindle Previewer. It does not work properly if the TEMP folder on your system includes a "#" character in the path. You will need to change your system configuration in order to make it function properly.
jhowell is online now   Reply With Quote
Advert
Old 01-10-2021, 09:49 AM   #978
jhowell
Wizard
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 4,335
Karma: 44001001
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Oasis 2, Fire, iPad Air 2, Nexus 7
Quote:
Originally Posted by kindlelover6112 View Post
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?
That error is most likely due to a failure of Kindle Previewer process. The plugin does not currently handle that properly, leading to the above error message. I will fix it so that a better error message is produced in the next plugin release.

I am not going to be able to help with determining the actual reason for the failure of the Kindle Previewer on your system. My experience with Linux and Wine is very limited.
jhowell is online now   Reply With Quote
Old 01-10-2021, 12:03 PM   #979
Vlash
Member
Vlash began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Dec 2017
Device: Kindle Paperwhite
Quote:
Originally Posted by jhowell View Post
Thanks for the log.

From that I was able to determine that the cause of the problem is a bug in the Kindle Previewer. It does not work properly if the TEMP folder on your system includes a "#" character in the path. You will need to change your system configuration in order to make it function properly.
Oh, thanks, it now worked just fine
Vlash is offline   Reply With Quote
Old 01-11-2021, 08:22 AM   #980
jhowell
Wizard
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 4,335
Karma: 44001001
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Oasis 2, Fire, iPad Air 2, Nexus 7
Version 1.48.0 - 11 Jan 2021

Detect Kindle Previewer versions up to 3.50.

Report an error if the TEMP folder path contains a "#" character. (Having that will prevent conversion by the Kindle Previewer.)

Fix error reporting for Kindle Previewer process launch failures.
jhowell is online now   Reply With Quote
Advert
Old 01-11-2021, 09:09 AM   #981
kindlelover6112
Junior Member
kindlelover6112 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jan 2021
Device: Paperwhite 4
Quote:
Originally Posted by jhowell View Post
Version 1.48.0 - 11 Jan 2021

Detect Kindle Previewer versions up to 3.50.

Report an error if the TEMP folder path contains a "#" character. (Having that will prevent conversion by the Kindle Previewer.)

Fix error reporting for Kindle Previewer process launch failures.
Tried to convert to kfx once again with the new version, now the log is different:
Any clue?
Code:
Convert book 1 of 1 (The Courage to Be Disliked: How to Free Yourself, Change Your Life and Achieve Real Happiness)
Conversion options changed from defaults:
  remove_paragraph_spacing_indent_size: 2.0
  read_metadata_from_opf: '/tmp/calibre_5.9.0_tmp_yqxbq8kz/f0de0_2u.opf'
  verbose: 2
  insert_blank_line_size: 1.0
  disable_font_rescaling: True
  smarten_punctuation: True
  extra_css: 'h1, h2, h3, h4, h5, h6 {\ncolor:black;\ntext-align:center;\nfont-weight:bold;\n}'
  linearize_tables: True
  cover: '/tmp/calibre_5.9.0_tmp_yqxbq8kz/bszwq05z.jpeg'
  output_profile: 'kindle_pw3'
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_yqxbq8kz/bszwq05z.jpeg',
 'debug_pipeline': None,
 '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 0x7f84fae4d760>,
 'insert_blank_line': False,
 'insert_blank_line_size': 1.0,
 'insert_metadata': False,
 'isbn': None,
 'italicize_common_cases': True,
 'keep_ligatures': False,
 '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 0x7f84fae4dd30>,
 'page_breaks_before': '/',
 'prefer_metadata_cover': False,
 'pretty_print': True,
 'pubdate': None,
 'publisher': None,
 'quality_report': False,
 'rating': None,
 'read_metadata_from_opf': '/tmp/calibre_5.9.0_tmp_yqxbq8kz/f0de0_2u.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': True,
 '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_yqxbq8kz/kbh_8sr_.epub
Found HTML cover ops/xhtml/cover.html
Parsing all content...
Parsing ops/xhtml/part01.html ...
Parsing ops/xhtml/part02a.html ...
Parsing ops/xhtml/ch35.html ...
Parsing ops/xhtml/ch48.html ...
Parsing ops/xhtml/ch26.html ...
Parsing ops/xhtml/cont.html ...
Parsing ops/xhtml/ch08.html ...
Parsing ops/xhtml/ch21.html ...
Parsing ops/xhtml/part04b.html ...
Parsing ops/xhtml/ch43.html ...
Parsing ops/styles/SS_signup.css ...
Parsing ops/xhtml/ch16.html ...
Parsing ops/xhtml/part03a.html ...
Parsing ops/xhtml/ch28.html ...
Parsing ops/xhtml/ch54.html ...
Parsing ops/xhtml/ch41.html ...
Parsing ops/xhtml/ch27.html ...
Parsing ops/xhtml/SS_US_adult_signup_back.html ...
Parsing ops/xhtml/ch36.html ...
Parsing ops/xhtml/ch49.html ...
Parsing ops/xhtml/part01a.html ...
Parsing ops/xhtml/ch11.html ...
Parsing ops/xhtml/ch56.html ...
Parsing ops/xhtml/authorn.html ...
Parsing ops/xhtml/ch09.html ...
Parsing ops/xhtml/ch22.html ...
Parsing ops/xhtml/part04.html ...
Parsing ops/xhtml/ch44.html ...
Parsing ops/xhtml/ch17.html ...
Parsing ops/xhtml/ch24.html ...
Parsing ops/xhtml/ch25.html ...
Parsing ops/xhtml/ch29.html ...
Parsing ops/xhtml/ch42.html ...
Parsing ops/xhtml/copy.html ...
Parsing ops/xhtml/ch50.html ...
Parsing ops/xhtml/ch01.html ...
Parsing ops/xhtml/ch12.html ...
Parsing ops/xhtml/ch37.html ...
Parsing ops/xhtml/ch45.html ...
Parsing ops/xhtml/fm01.html ...
Parsing ops/xhtml/ch10.html ...
Parsing ops/xhtml/ch23.html ...
Parsing ops/xhtml/part04a.html ...
Parsing ops/xhtml/cover.html ...
Parsing ops/xhtml/ch05.html ...
Parsing ops/xhtml/ch18.html ...
Parsing ops/xhtml/ch30.html ...
Parsing ops/xhtml/part05b.html ...
Parsing ops/xhtml/ch02.html ...
Parsing ops/xhtml/ch13.html ...
Parsing ops/xhtml/ch38.html ...
Parsing ops/xhtml/ch51.html ...
Parsing ops/xhtml/after.html ...
Parsing ops/xhtml/ch46.html ...
Parsing ops/xhtml/intro.html ...
Parsing ops/xhtml/part02b.html ...
Parsing ops/xhtml/part03b.html ...
Parsing ops/xhtml/ch33.html ...
Parsing ops/xhtml/part05.html ...
Parsing ops/xhtml/SS_US_adult_signup_front.html ...
Parsing ops/xhtml/ch06.html ...
Parsing ops/xhtml/ch19.html ...
Parsing ops/xhtml/ch31.html ...
Parsing ops/styles/9781501197291.css ...
Parsing ops/xhtml/ch03.html ...
Parsing ops/xhtml/ch14.html ...
Parsing ops/xhtml/ch39.html ...
Parsing ops/xhtml/ch52.html ...
Parsing ops/xhtml/rgg.html ...
Parsing ops/xhtml/part01b.html ...
Parsing ops/xhtml/part02.html ...
Parsing ops/xhtml/part03.html ...
Parsing ops/xhtml/ch34.html ...
Parsing ops/xhtml/ch47.html ...
Parsing ops/xhtml/ch55.html ...
Parsing ops/xhtml/title.html ...
Parsing ops/xhtml/ch07.html ...
Parsing ops/xhtml/ch20.html ...
Parsing ops/xhtml/ch32.html ...
Parsing ops/xhtml/part05a.html ...
Parsing ops/styles/SS_global.css ...
Parsing ops/xhtml/ch40.html ...
Parsing ops/xhtml/ch04.html ...
Parsing ops/xhtml/ch15.html ...
Parsing ops/xhtml/ch53.html ...
Parsing ops/xhtml/authorbio.html ...
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 12 items of level: div_1
Found 8 items of level: p_2
Found 1661 items of level: p_1
Ignoring level p_2
div_1  left margin stats: Counter()
div_1  right margin stats: Counter()
Negative text indent detected at level  p_1, ignoring this level
Cleaning up manifest...
Trimming unused files from manifest...
Creating KFX Output...
Software versions: KFX Output 1.48.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
Found ASIN metadata amazon: B074TWG8V7
Rescaling image from 1313x2000 to 911x1388 ops/images/part-img.jpg
Rescaling image from 1432x2200 to 903x1388 cover.jpeg
Rescaling image from 2000x1423 to 1030x733 ops/images/title.jpg
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_yqxbq8kz/tvozfb9d.epub
Converting /tmp/calibre_5.9.0_tmp_yqxbq8kz/tvozfb9d.epub to KPF
Preparing book /tmp/calibre_5.9.0_tmp_yqxbq8kz/tvozfb9d.epub for conversion
Removed calibre class from 1 br in ops/xhtml/authorbio.html
Launching Kindle Previewer 3 (3.50.0) - CLI
Unknown conversion error occurred -- Retrying
Launching Kindle Previewer 3 (3.50.0) - CLI
Unknown conversion error occurred -- Retrying
Launching Kindle Previewer 3 (3.50.0) - CLI
Unknown conversion error occurred -- Retrying
Launching Kindle Previewer 3 (3.50.0) - CLI
Unknown conversion error occurred -- Retrying
Launching Kindle Previewer 3 (3.50.0) - CLI
Unknown conversion error occurred -- Retrying
Launching Kindle Previewer 3 (3.50.0) - CLI

****************** Conversion Failure Reason *****************
Failed to launch conversion process: FileNotFoundError(2, 'No such file or directory')
**************************************************************
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 The Courage to Be Disliked: How to Free Yourself, Change Your Life and Achieve Real Happiness</b><br><br><b>Conversion error:</b> Failed to launch conversion process: FileNotFoundError(2, 'No such file or directory')", "level": "error", "det_msg": "", "title": "KFX conversion failed"}
kindlelover6112 is offline   Reply With Quote
Old 01-11-2021, 11:09 AM   #982
jhowell
Wizard
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 4,335
Karma: 44001001
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Oasis 2, Fire, iPad Air 2, Nexus 7
Quote:
Originally Posted by kindlelover6112 View Post
Tried to convert to kfx once again with the new version, now the log is different:
Any clue?

****************** Conversion Failure Reason *****************
Failed to launch conversion process: FileNotFoundError(2, 'No such file or directory')
Perhaps it is failing to launch Wine. Is it included on the path?
jhowell is online now   Reply With Quote
Old 01-11-2021, 12:31 PM   #983
kindlelover6112
Junior Member
kindlelover6112 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jan 2021
Device: Paperwhite 4
Quote:
Originally Posted by jhowell View Post
Perhaps it is failing to launch Wine. Is it included on the path?
Sorry I don't get it, what do you mean?
kindlelover6112 is offline   Reply With Quote
Old 01-11-2021, 12:47 PM   #984
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 12,200
Karma: 59629313
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Forma, Clara HD, Nexus 7 HD, iPad Pro, Tolino epos
Quote:
Originally Posted by kindlelover6112 View Post
Sorry I don't get it, what do you mean?
The Kindle Previewer does not have a Linux version so the assumption is being made that you have it installed using Wine to allow running a Windows program under Linux.
DNSB is online now   Reply With Quote
Old 01-11-2021, 12:49 PM   #985
jhowell
Wizard
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 4,335
Karma: 44001001
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Oasis 2, Fire, iPad Air 2, Nexus 7
Quote:
Originally Posted by kindlelover6112 View Post
Sorry I don't get it, what do you mean?
I mean is wine installed such that you can invoke it just by typing "wine".


Code:
$ whereis wine
wine: /usr/bin/wine /opt/wine-stable/bin/wine /usr/share/man/man1/wine.1

$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin

$ wine
Usage: wine PROGRAM [ARGUMENTS...]   Run the specified program
       wine --help                   Display this help and exit
       wine --version                Output version information and exit
jhowell is online now   Reply With Quote
Old 01-11-2021, 12:55 PM   #986
mwaschbu
Junior Member
mwaschbu began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Dec 2020
Device: Kindle Oasis 3
From the log it found the Kindle Previewer 3.50.0 in your wine installation. That seems to be correct. But there may be a problem with the wine command itself. What command line did you use to install the Kindle Previewer?

Could you also run the command below from a terminal. It is similar to the command that the plugin tries to execute. But replace both occurrences of "USERNAME" with your username before. It assumes that you installed Kindle Previewer at the default location that was suggested by the installer. It should output a short documentation of the Kindle Previewer command line.

Code:
wine '/home/USERNAME/.wine/dosdevices/c://users//USERNAME//Local Settings//Application Data//Amazon//Kindle Previewer 3/Kindle Previewer 3.exe' '-help'
mwaschbu is offline   Reply With Quote
Old 01-11-2021, 01:10 PM   #987
mwaschbu
Junior Member
mwaschbu began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Dec 2020
Device: Kindle Oasis 3
How did you install Calibre? The plugin will most likely not work if you are running it from a container such as Flatpak, Snap or AppImage. You can use the installer from the Calibre web site or a deb/rpm package from your Linux distribution.
mwaschbu is offline   Reply With Quote
Old 01-11-2021, 03:58 PM   #988
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 62,381
Karma: 102150076
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, PRS-650, PRS-T1, nook STR, iPad 4, iPhone SE 2020, PW3
Quote:
Originally Posted by mwaschbu View Post
How did you install Calibre? The plugin will most likely not work if you are running it from a container such as Flatpak, Snap or AppImage. You can use the installer from the Calibre web site or a deb/rpm package from your Linux distribution.
Forget using Calibre from a Linux repository. 9 times out of 10 it won't work and the 10th time is maybe a no go as well. ALWAYS download Calibre from the official website.
JSWolf is online now   Reply With Quote
Old 01-12-2021, 08:56 PM   #989
thetyrantcbass
Junior Member
thetyrantcbass began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Nov 2018
Device: Kindle Oasis (2017)
Quote:
Originally Posted by jhowell View Post
Kindle Previewer version 3.50 is now available and works properly with this plugin. Perhaps this new release will fix your problem.
Indeed it does. I assume whoever was building Kindle Previewer at Amazon forgot to change the minimum macOS version when building the application bundle for 3.49.
thetyrantcbass is offline   Reply With Quote
Old 01-13-2021, 07:32 AM   #990
jhowell
Wizard
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 4,335
Karma: 44001001
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Oasis 2, Fire, iPad Air 2, Nexus 7
Quote:
Originally Posted by thetyrantcbass View Post
Indeed it does. I assume whoever was building Kindle Previewer at Amazon forgot to change the minimum macOS version when building the application bundle for 3.49.
Thanks for reporting back.
jhowell is online now   Reply With Quote
Reply

Tags
kfx, linux, wine

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Conversion Output] KePub Output Plugin jgoguen Plugins 460 02-16-2021 02:18 PM
Conversion output plugins? jgoguen Development 14 08-10-2013 11:19 AM
Output file name after conversion dbellefuil Calibre 2 06-14-2013 04:40 PM
catalogue builder output columns are not in the same order in the output KWhytte Library Management 5 12-04-2012 02:03 AM
Conversion output folders TechieLady Conversion 6 01-19-2012 02:49 AM


All times are GMT -4. The time now is 12:18 PM.


MobileRead.com is a privately owned, operated and funded community.