Just to report a potential bug? malformed data?
Unpacking that
Korean to English dictionary from the Kindle forum generated this error:
Code:
calibre, version 5.8.1
ERREUR : Exception non gérée: <b>TypeError</b>:a bytes-like object is required, not 'str'
calibre 5.8.1 [64bit] embedded-python: True is64bit: True
Windows-10-10.0.19041 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19041')
Python 3.8.5
Windows: ('10', '10.0.19041', '', 'Multiprocessor Free')
Interface language: fr
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 36, 0) && DeDRM (7, 0, 0) && Package KFX (from KFX Input) (1, 36, 0) && APNX Generator (1, 1, 0) && Count Pages (1, 11, 0) && EpubCheck (0, 2, 3) && Find Duplicates (1, 8, 3) && Hyphenate This! (0, 1, 3) && KFX metadata reader (from KFX Input) (1, 36, 0) && KFX Input (1, 36, 0) && Set KFX metadata (from KFX Output) (1, 47, 0) && KFX Output (1, 47, 0) && KindleUnpack - The Plugin (0, 83, 0) && KindleXRay (0, 0, 4) && Open With (1, 5, 13) && Quality Check (1, 11, 0) && Standard Ebooks (0, 1, 1) && TTS to MP3 (0, 5, 8) && WordDumb (2, 0, 2) && X-Ray Creator (3, 2, 1)
Traceback (most recent call last):
File "calibre_plugins.kindleunpack_plugin.action", line 268, in unpack_ebook
File "calibre_plugins.kindleunpack_plugin.mobi_stuff", line 124, in unpackMOBI
File "calibre_plugins.kindleunpack_plugin.kindleunpackcore.kindleunpack", line 934, in unpackBook
File "calibre_plugins.kindleunpack_plugin.kindleunpackcore.kindleunpack", line 855, in process_all_mobi_headers
File "calibre_plugins.kindleunpack_plugin.kindleunpackcore.kindleunpack", line 632, in processMobi7
File "calibre_plugins.kindleunpack_plugin.kindleunpackcore.mobi_dict", line 219, in getPositionMap
KeyError: 2
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "calibre_plugins.kindleunpack_plugin.action", line 270, in unpack_ebook
File "calibre_plugins.kindleunpack_plugin.utilities", line 102, in showErrorDlg
File "traceback.py", line 163, in print_exc
File "traceback.py", line 105, in print_exception
TypeError: a bytes-like object is required, not 'str'