Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old Yesterday, 09:51 PM   #1
tinker123
Member
tinker123 began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Jun 2019
Device: Kindle Paperwhite
KFX -> AZW3: Unexpected Style Definition

Calibre 8.16.2
DeDRM 10.0.9
KFX Input 2.28.0
KFX Output 2.18.0
Kindle Paperwhite 7th Generation
Kindle Paperwhite Firmware: Kindle 5.16.2.1.1 ( 4097470002 )
Mint Linux 21.2, Cinnamon 5.8

Hello,

I am trying to convert I book I bought from *.kfx to *.azw3.

I'm getting the error message below.

Please let me know if I can provide any other information

Steve


Error Message

Spoiler:
calibre, version 8.16.2
ERROR: KFX conversion failed:
Cannot convert Spring Start Here: Learn what you need and learn it well

Exception('Unexpected style definition: $478: True\nUnexpected style definition:
-kfx-baseline-style: middle\nUnexpected style definition: -kfx-box-align: left')
[/QUOTE]






Job Details:

[QUOTE]Convert book 1 of 1 (Spring Start Here: Learn what you need and learn it well)
DeDRM v10.0.9: Trying to decrypt uxar57e_.kfx
Unknown booktype kfx. Passing back to calibre unchanged
Conversion options changed from defaults:
cover: '/tmp/calibre-ogi6ik0u/_z56_shl.jpeg'
verbose: 2
output_profile: 'kindle_pw3'
read_metadata_from_opf: '/tmp/calibre-ogi6ik0u/r2pkd8je.opf'
Resolved conversion options
calibre version: 8.16.2
{'add_alt_text_to_img': False,
'allow_conversion_with_errors': False,
'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0.0,
'book_producer': None,
'change_justification': 'original',
'chapter': "//*[((name()='h1' or name()='h2') and re:test(., "
"'\\s*((chapter|book|section|part)\\s+)|((prolog|p rologue|epilogue)(\\s+|$))', "
"'i')) or @class = 'chapter']",
'chapter_mark': 'pagebreak',
'comments': None,
'cover': '/tmp/calibre-ogi6ik0u/_z56_shl.jpeg',
'debug_pipeline': None,
'dehyphenate': True,
'delete_blank_paragraphs': True,
'disable_font_rescaling': False,
'dont_compress': False,
'duplicate_links_in_toc': False,
'embed_all_fonts': False,
'embed_font_family': None,
'enable_heuristics': False,
'expand_css': False,
'extra_css': None,
'extract_to': None,
'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 0x7fabcfd6fd50>,
'insert_blank_line': False,
'insert_blank_line_size': 0.5,
'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': False,
'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,
'mobi_toc_at_start': False,
'no_chapters_in_toc': False,
'no_inline_navbars': False,
'no_inline_toc': False,
'output_profile': <calibre.customize.profiles.KindlePaperWhite3Outpu t object at 0x7fabcfd5a8d0>,
'page_breaks_before': '/',
'prefer_author_sort': False,
'prefer_metadata_cover': False,
'pretty_print': False,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': '/tmp/calibre-ogi6ik0u/r2pkd8je.opf',
'remove_fake_margins': True,
'remove_first_image': False,
'remove_paragraph_spacing': False,
'remove_paragraph_spacing_indent_size': 1.5,
'renumber_headings': True,
'replace_scene_breaks': '',
'search_replace': '[]',
'series': None,
'series_index': None,
'share_not_sync': 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,
'toc_title': None,
'transform_css_rules': '[]',
'transform_html_rules': '[]',
'unsmarten_punctuation': False,
'unwrap_lines': True,
'use_auto_toc': False,
'verbose': 2}
DeDRM v10.0.9: Trying to decrypt uxar57e_.kfx
Unknown booktype kfx. Passing back to calibre unchanged
InputFormatPlugin: KFX Input running
on /tmp/calibre-ogi6ik0u/uxar57e_.kfx
Software versions: KFX Input 2.28.0, calibre 8.16.2, Linux-5.15.0-164-generic-x86_64-with-glibc2.35
KFX Input plugin help is available at https://www.mobileread.com/forums/sh...d.php?t=291290
Converting /tmp/calibre-ogi6ik0u/uxar57e_.kfx
Processing container: /tmp/calibre-ogi6ik0u/uxar57e_.kfx
Features: CanonicalFormat-2, kfxgen.pidMapWithOffset-1, kfxgen.positionMaps-2, kfxgen.textBlock-1, reflow-style-1, yj_jpegxr_sd-1, yj_table-5, yj_table_viewer-1
Metadata: ASIN=B09HJLK2BN, asset_id=CR!K5HAEKBHWD2J183ZNHTCMNJTJ00C, author="Spilca, Laurentiu", book_id=TMgYC26tRMSyuhdb6bebyg0, cde_content_type=EBOK, content_id=B09HJLK2BN, cover_image=1400x1755, creator_version=2.15.0, file_creator=YJConversionTools, is_sample=False, issue_date=2021-11-09, kfxgen=20.12.238.0, language=en, max_id=825, min_kindle_version=5.8.8, nested_span=enabled, override_kindle_font=False, pages=416, publisher=Manning, reading_orders=1, selection=enabled, title="Spring Start Here: Learn what you need and learn it well"
Converting book to EPUB 3
WARNING: unexpected boolean property value for $478: True
WARNING: unknown property name: $478
WARNING: unexpected boolean property value for $478: True
WARNING: unknown property name: $478
ERROR: Unexpected style definition: $478: True
ERROR: Unexpected style definition: -kfx-baseline-style: middle
ERROR: Unexpected style definition: -kfx-box-align: left
WARNING: Missing font family names: Cambria Math, Franklin Gothic Medium, Garamond, Nacnm D+ New Baskerville, Nacno F+ A Garamond, Segoe UI Symbol
Traceback (most recent call last):
File "calibre_plugins.kfx_input.__init__", line 113, in convert
Exception: Unexpected style definition: $478: True
Unexpected style definition: -kfx-baseline-style: middle
Unexpected style definition: -kfx-box-align: left

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "runpy.py", line 198, in _run_module_as_main
File "runpy.py", line 88, in _run_code
File "site.py", line 47, in <module>
File "site.py", line 43, in main
File "calibre/utils/ipc/worker.py", line 213, in main
File "calibre/gui2/convert/gui_conversion.py", line 39, in gui_convert_override
File "calibre/gui2/convert/gui_conversion.py", line 26, in gui_convert
File "calibre/ebooks/conversion/plumber.py", line 1088, in run
File "calibre/customize/conversion.py", line 242, in __call__
File "calibre_plugins.kfx_input.__init__", line 119, in convert
calibre.ebooks.conversion.ConversionUserFeedBack: {"msg": "<b>Cannot convert Spring Start Here: Learn what you need and learn it well</b><br/><br/>Exception('Unexpected style definition: $478: True\\nUnexpected style definition: -kfx-baseline-style: middle\\nUnexpected style definition: -kfx-box-align: left')", "level": "error", "det_msg": "", "title": "KFX conversion failed"}


Conversion Log

Spoiler:
ApplicationPaletteChange event ignored
Using calibre Qt style: True
Traceback (most recent call last):
File "runpy.py", line 198, in _run_module_as_main
File "runpy.py", line 88, in _run_code
File "site.py", line 47, in <module>
File "site.py", line 43, in main
File "calibre/debug.py", line 238, in main
File "calibre/debug.py", line 198, in run_debug_gui
File "calibre/gui_launch.py", line 74, in calibre
File "calibre/gui2/main.py", line 546, in main
File "calibre/gui2/main.py", line 558, in run_main
File "calibre/gui2/main.py", line 397, in run_gui
File "calibre/gui2/main.py", line 407, in run_gui_
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "bypy-importer.py", line 279, in exec_module
File "calibre/gui2/ui.py", line 52, in <module>
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "bypy-importer.py", line 279, in exec_module
File "calibre/gui2/init.py", line 37, in <module>
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "bypy-importer.py", line 279, in exec_module
File "calibre/gui2/library/alternate_views.py", line 68, in <module>
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "bypy-importer.py", line 279, in exec_module
File "calibre/gui2/pin_columns.py", line 9, in <module>
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "bypy-importer.py", line 279, in exec_module
File "calibre/gui2/library/delegates.py", line 47, in <module>
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "bypy-importer.py", line 279, in exec_module
File "calibre/gui2/dialogs/comments_dialog.py", line 11, in <module>
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "bypy-importer.py", line 279, in exec_module
File "calibre/gui2/comments_editor.py", line 14, in <module>
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "bypy-importer.py", line 279, in exec_module
File "html5_parser/__init__.py", line 31, in <module>
RuntimeError: html5-parser and lxml are using different versions of libxml2. This happens commonly when using pip installed versions of lxml. Use pip install --no-binary lxml lxml instead. libxml2 versions: html5-parser: (2, 9, 13) != lxml: (2, 15, 0)
calibre Debug log
calibre 8.16.2 embedded-python: True
Linux-5.15.0-164-generic-x86_64-with-glibc2.35 Linux ('64bit', 'ELF')
('Linux', '5.15.0-164-generic', '#174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025')
Python 3.11.14
Interface language: None
EXE path: /opt/calibre/bin/calibre-debug
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (2, 28, 0) && DeDRM (10, 0, 9) && Package KFX (from KFX Input) (2, 28, 0) && KFX metadata reader (from KFX Input) (2, 28, 0) && From KFX (2, 28, 0) && KFX Input (2, 28, 0) && Set KFX metadata (from KFX Output) (2, 18, 0) && KFX Output (2, 18, 0)
calibre 8.16.2 embedded-python: True
Linux-5.15.0-164-generic-x86_64-with-glibc2.35 Linux ('64bit', 'ELF')
('Linux', '5.15.0-164-generic', '#174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025')
Python 3.11.14
Interface language: None
EXE path: /opt/calibre/bin/calibre-debug
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (2, 28, 0) && DeDRM (10, 0, 9) && Package KFX (from KFX Input) (2, 28, 0) && KFX metadata reader (from KFX Input) (2, 28, 0) && From KFX (2, 28, 0) && KFX Input (2, 28, 0) && Set KFX metadata (from KFX Output) (2, 18, 0) && KFX Output (2, 18, 0)
QPA platform: xcb
devicePixelRatio: 1.0
logicalDpi: 96.0 x 96.0
physicalDpi: 81.68844221105527 x 81.64285714285714

Last edited by theducks; Yesterday at 10:42 PM. Reason: Please use SPOILER for all Logs
tinker123 is offline   Reply With Quote
Reply

Tags
conversion, kfx


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
What's Better? AZW3 or KFX MrSlow&Steady Calibre 58 10-09-2024 04:58 PM
Unexpected Missing Generic Font Family (Style Sheet.css) Seth H Editor 3 09-29-2024 09:49 AM
AZW3 or KFX? mmobes Conversion 6 01-29-2022 07:10 PM
azw3 vs kfx? kyrilson Amazon Kindle 17 07-12-2020 07:12 AM
How can I amend the style definition in HTML to fix Kindle default? eggheadbooks1 Kindle Formats 6 06-28-2011 05:14 PM


All times are GMT -4. The time now is 02:27 AM.


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