View Single Post
Old 01-30-2019, 09:56 PM   #164
BaconWaifu
Junior Member
BaconWaifu began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jan 2019
Device: Gen 1 Kindle Fire
I'm getting a FormatError from yj_to_epub_content when trying to convert a (admittedly, absolutely huge) KFX file with calibre. The book is in the "Print Replica" format.

Relevant backtrace.:
Code:
Traceback (most recent call last):
  File "calibre_plugins.kfx_input.__init__", line 102, in convert
  File "calibre_plugins.kfx_input.__init__", line 204, in convert_from_kfx
  File "calibre_plugins.kfx_input.kfxlib.yj_book", line 97, in convert_to_epub
  File "calibre_plugins.kfx_input.kfxlib.yj_to_epub", line 171, in __init__
  File "calibre_plugins.kfx_input.kfxlib.yj_to_epub_content", line 71, in process_reading_order
  File "calibre_plugins.kfx_input.kfxlib.yj_to_epub_content", line 110, in process_section
  File "calibre_plugins.kfx_input.kfxlib.yj_to_epub_content", line 244, in add_content
  File "calibre_plugins.kfx_input.kfxlib.yj_to_epub_content", line 228, in process_story
  File "calibre_plugins.kfx_input.kfxlib.yj_to_epub_content", line 252, in process_content_list
  File "calibre_plugins.kfx_input.kfxlib.yj_to_epub_content", line 390, in process_content
TypeError: %d format: a number is required, not IonStruct
VersionString:
Code:
Software versions: KFX Input 1.12.1, calibre 3.35, Linux-4.19.0-1-amd64-x86_64-with-debian-buster-sid
Other relevant log bits:
Code:
ERROR: Unexpected book reading order names: TargetReadingOrder
WARNING: Unknown kfxgen: 3.41.1.0/PackageVersion:YJReaderSDK-1.0.1962.11 Month-Day:10-17
Features: kfxgen.positionMaps-2, max_id-609, yj_custom_word_iterator-1, yj_fixed_layout-1, yj_graphical_highlights-1, yj_pdf_support-1, yj_textbook-1
WARNING: Unknown kindle_audit_metadata: creator_version=0.1.24.0
Metadata: ASIN=B00DYHUZ2O, asset_id=CR!P08D1BZ9H14PK3CZYDZG4A734DQC, author="Hoffer, Jeffrey A.", author="Topi, Heikki", author="Venkataraman, Ramesh", book_orientation_lock=none, cde_content_type=EBOK, content_id=B00DYHUZ2O, cover_image=506x648, file_creator=FLYP, graphical_highlights=1, is_sample=False, issue_date=2013-07-15, multipage_selection=disabled, pages=405, publisher="Pearson HE, Inc.", reading_orders=1, selection=enabled, title="Essentials of Database Management", user_visible_labeling=page_exclusive, yj_fixed_layout=1, yj_textbook=1
ERROR: Unexpected Ion symbols used: $136, $137
Converting book to EPUB 2.0
Format is fixed layout textbook EBOK
WARNING: This book contains PDF resources. They will be rendered as JPEG images during conversion.
WARNING: The original resources can be extracted using the KFX Input command line interface.
ERROR: resource Target_pg_1_g_2 has extra data: {$137: Decimal('0.1'), $136: Decimal('1')}
EDIT:
It appears the problem is with either `$66` or `$67` being an IonStruct instead of an IonInt. currently digging around to see if I can gather some relevant bits of the book, such as the contents of the struct in question.

Last edited by BaconWaifu; 01-30-2019 at 10:08 PM.
BaconWaifu is offline   Reply With Quote