apprenticeharper / DeDRM_tools

DeDRM tools for ebooks
14.55k stars 1.52k forks source link

Cant convert ebooks using DeDRM. Please help! #1968

Open rish1708 opened 2 years ago

rish1708 commented 2 years ago

Hi,

I have downloaded Calibre 5.34 on my PC along with DeDRM Tools 7.2.1 and then KFX input. I am still unable to convert ebooks on my Kindle (1.26 version). Please advise what could be wrong here?

Here is the Debug report I have got on Calibre for the ebook file I used to convert. It's downloaded from my Kindle library and I am using my Windows PC - Intel Core i5- 7400T CPU @2.40 GHz , 8 GB Ram and 64 Bit operating system.

calibre Debug log calibre 5.34 embedded-python: True is64bit: False Windows-10-10.0.19041 Windows ('32bit', 'WindowsPE') 32bit process running on 64bit windows ('Windows', '10', '10.0.19041') Python 3.8.5 Windows: ('10', '10.0.19041', '', 'Multiprocessor Free') Interface language: None Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 46, 0) && DeDRM (7, 2, 1) && Package KFX (from KFX Input) (1, 46, 0) && KFX metadata reader (from KFX Input) (1, 46, 0) && KFX Input (1, 46, 0) calibre 5.34 embedded-python: True is64bit: False Windows-10-10.0.19041 Windows ('32bit', 'WindowsPE') 32bit process running on 64bit windows ('Windows', '10', '10.0.19041') Python 3.8.5 Windows: ('10', '10.0.19041', '', 'Multiprocessor Free') Interface language: None Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 46, 0) && DeDRM (7, 2, 1) && Package KFX (from KFX Input) (1, 46, 0) && KFX metadata reader (from KFX Input) (1, 46, 0) && KFX Input (1, 46, 0) Turning on automatic hidpi scaling devicePixelRatio: 1.0 logicalDpi: 96.0 x 96.0 physicalDpi: 92.53889943074003 x 92.36363636363636 Using calibre Qt style: True [0.00] Starting up... [0.02] Showing splash screen... [0.67] splash screen shown [0.67] Initializing db... [0.67] db initialized [0.67] Constructing main UI... [1.34] main UI initialized... [1.34] Hiding splash screen Starting QuickView [16.59] splash screen hidden [16.59] Started up in 16.59 seconds with 0 books stdout+stderr from file dialog helper: [b'', b''] piped data from file dialog helper: [b'\xa14\x89,Z\xdb\x93=\xcc\x97]k1\x81]\x89\xf5\xa3\xff\xd9x\x19\x9b0\xf6A\x10\xed\xed\xfa\xf2y', b'C:\Users\HP\Documents\My Kindle Content\B07RQTJ16G_EBOK\CR!0MZNTK8C5S3Y5645YSZWYBCWR15Z.azw.md'] Added CR!0MZNTK8C5S3Y5645YSZWYBCWR15Z.azw to db in: 1.6 Added 1 books in 3.6 seconds

ElleKayEm commented 2 years ago

Looks like you are importing the wrong file here. The .md file is part of a KFX format book but not the main file you need to import. Make sure extensions are not hidden and import the azw file.

rish1708 commented 2 years ago

Oh yes realized that earlier and managed to convert some files too, thanks. but some of them still give this error.

"Cannot convert the Republic (AmazonClassics Edition). This book is locked by DRM. To learn more about DRM and why you cannot read or convert this book in Calibre, click here."

Would you know what the reason could be? TIA

rish1708 commented 2 years ago

calibre Debug log calibre 5.34 embedded-python: True is64bit: False Windows-10-10.0.19041 Windows ('32bit', 'WindowsPE') 32bit process running on 64bit windows ('Windows', '10', '10.0.19041') Python 3.8.5 Windows: ('10', '10.0.19041', '', 'Multiprocessor Free') Interface language: None Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 46, 0) && DeDRM (7, 2, 1) && Package KFX (from KFX Input) (1, 46, 0) && KFX metadata reader (from KFX Input) (1, 46, 0) && KFX Input (1, 46, 0) calibre 5.34 embedded-python: True is64bit: False Windows-10-10.0.19041 Windows ('32bit', 'WindowsPE') 32bit process running on 64bit windows ('Windows', '10', '10.0.19041') Python 3.8.5 Windows: ('10', '10.0.19041', '', 'Multiprocessor Free') Interface language: None Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 46, 0) && DeDRM (7, 2, 1) && Package KFX (from KFX Input) (1, 46, 0) && KFX metadata reader (from KFX Input) (1, 46, 0) && KFX Input (1, 46, 0) Turning on automatic hidpi scaling devicePixelRatio: 1.0 logicalDpi: 96.0 x 96.0 physicalDpi: 92.53889943074003 x 92.36363636363636 Using calibre Qt style: True [0.00] Starting up... [0.00] Showing splash screen... [0.66] splash screen shown [0.66] Initializing db... [0.66] db initialized [0.66] Constructing main UI... [1.30] main UI initialized... [1.30] Hiding splash screen Starting QuickView [8.44] splash screen hidden [8.44] Started up in 8.44 seconds with 29 books

ElleKayEm commented 2 years ago

No book is added in this log so I can't tell what the issue might be.

rish1708 commented 2 years ago

calibre Debug log calibre 5.34 embedded-python: True is64bit: False Windows-10-10.0.19041 Windows ('32bit', 'WindowsPE') 32bit process running on 64bit windows ('Windows', '10', '10.0.19041') Python 3.8.5 Windows: ('10', '10.0.19041', '', 'Multiprocessor Free') Interface language: None Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 46, 0) && DeDRM (7, 2, 1) && Package KFX (from KFX Input) (1, 46, 0) && KFX metadata reader (from KFX Input) (1, 46, 0) && KFX Input (1, 46, 0) calibre 5.34 embedded-python: True is64bit: False Windows-10-10.0.19041 Windows ('32bit', 'WindowsPE') 32bit process running on 64bit windows ('Windows', '10', '10.0.19041') Python 3.8.5 Windows: ('10', '10.0.19041', '', 'Multiprocessor Free') Interface language: None Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 46, 0) && DeDRM (7, 2, 1) && Package KFX (from KFX Input) (1, 46, 0) && KFX metadata reader (from KFX Input) (1, 46, 0) && KFX Input (1, 46, 0) Turning on automatic hidpi scaling devicePixelRatio: 1.0 logicalDpi: 96.0 x 96.0 physicalDpi: 92.53889943074003 x 92.36363636363636 Using calibre Qt style: True [0.00] Starting up... [0.02] Showing splash screen... [0.64] splash screen shown [0.64] Initializing db... [0.64] db initialized [0.64] Constructing main UI... [1.30] main UI initialized... [1.30] Hiding splash screen Starting QuickView Gather KFX-ZIP (from KFX Input) 1.46.0: Importing C:\Users\HP\Documents\My Kindle Content\B00DIIZGXW_EBOK\B00DIIZGXW_EBOK.azw Gather KFX-ZIP (from KFX Input): Gathered 4 file(s) as C:\Users\HP\AppData\Local\Temp\calibre_tkfata_k\hvy3pkx1.kfx-zip DeDRM v7.2.1: Trying to decrypt hvy3pkx1.kfx-zip Using Library AlfCrypto DLL/DYLIB/SO Using Library AlfCrypto DLL/DYLIB/SO Decrypting KFX-ZIP ebook: hvy3pkx1 Got DSN key from database default_key Found 1 keys to try after 0.1 seconds Decrypting KFX DRM voucher: amzn1.drm-voucher.v1.546dc467-56e9-4f69-aef6-d319c6fc05cc.voucher Traceback (most recent call last): File "calibre_plugins.dedrm.kfxdedrm", line 83, in decrypt_voucher File "C:\Users\HP\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 879, in decryptvoucher File "C:\Users\HP\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 758, in pkcs7unpad File "C:\Users\HP\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 98, in _assert Exception: Incorrect padding - Wrong key Traceback (most recent call last): File "calibre_plugins.dedrm.kfxdedrm", line 83, in decrypt_voucher File "C:\Users\HP\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 879, in decryptvoucher File "C:\Users\HP\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 758, in pkcs7unpad File "C:\Users\HP\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 98, in _assert Exception: Incorrect padding - Wrong key DeDRM v7.2.1: Failed to decrypt with error: Failed to decrypt KFX DRM voucher with any key DeDRM v7.2.1: Looking for new default Kindle Key after 0.1 seconds searching for kinfoFiles in C:\Users\HP\AppData\Local Found K4PC 1.25+ kinf2018 file: C:\Users\HP\AppData\Local\Amazon\Kindle\storage.kinf2018 [10.62] splash screen hidden [10.62] Started up in 10.62 seconds with 30 books stdout+stderr from file dialog helper: [b'', b''] piped data from file dialog helper: [b"\x80\x8b\xe0o\xc0\x14\x06S7\xcc\\xdb10'\x0e\x9e\xf0K9\x15g\x9f\xae\xc94v\xacc\x01\x8e\x1c", b'C:\Users\HP\Documents\My Kindle Content\B00DIIZGXW_EBOK\B00DIIZGXW_EBOK.azw'] Decrypted key file using IDString '1421515351' and UserName 'HP' DeDRM v7.2.1: Found 1 new key Decrypting KFX-ZIP ebook: hvy3pkx1 Got DSN key from database default_key_1 Found 1 keys to try after 3.7 seconds Decrypting KFX DRM voucher: amzn1.drm-voucher.v1.546dc467-56e9-4f69-aef6-d319c6fc05cc.voucher Traceback (most recent call last): File "calibre_plugins.dedrm.init", line 540, in KindleMobiDecrypt File "calibre_plugins.dedrm.k4mobidedrm", line 238, in GetDecryptedBook File "calibre_plugins.dedrm.kfxdedrm", line 45, in processBook File "calibre_plugins.dedrm.kfxdedrm", line 89, in decrypt_voucher Exception: Failed to decrypt KFX DRM voucher with any key

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "calibre_plugins.dedrm.kfxdedrm", line 83, in decrypt_voucher File "C:\Users\HP\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 879, in decryptvoucher File "C:\Users\HP\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 758, in pkcs7unpad File "C:\Users\HP\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 98, in _assert Exception: Incorrect padding - Wrong key Traceback (most recent call last): File "calibre_plugins.dedrm.init", line 540, in KindleMobiDecrypt File "calibre_plugins.dedrm.k4mobidedrm", line 238, in GetDecryptedBook File "calibre_plugins.dedrm.kfxdedrm", line 45, in processBook File "calibre_plugins.dedrm.kfxdedrm", line 89, in decrypt_voucher Exception: Failed to decrypt KFX DRM voucher with any key

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "calibre_plugins.dedrm.kfxdedrm", line 83, in decrypt_voucher File "C:\Users\HP\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 879, in decryptvoucher File "C:\Users\HP\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 758, in pkcs7unpad File "C:\Users\HP\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 98, in _assert Exception: Incorrect padding - Wrong key DeDRM v7.2.1: Ultimately failed to decrypt after 3.7 seconds. Read the FAQs at Harper's repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md Package KFX (from KFX Input) 1.46.0: Packaging C:\Users\HP\AppData\Local\Temp\calibre_tkfata_k\hvy3pkx1.kfx-zip Processing container: B00DIIZGXW_EBOK.azw KFX metadata reader (from KFX Input) activated for C:\Users\HP\AppData\Local\Temp\calibre_tkfata_k\qr0xtlow_add_books\0\B00DIIZGXW_EBOK.kfx-zip Running file type plugin DeDRM failed with traceback: Traceback (most recent call last): File "calibre_plugins.dedrm.init", line 540, in KindleMobiDecrypt File "calibre_plugins.dedrm.k4mobidedrm", line 238, in GetDecryptedBook File "calibre_plugins.dedrm.kfxdedrm", line 45, in processBook File "calibre_plugins.dedrm.kfxdedrm", line 89, in decrypt_voucher Exception: Failed to decrypt KFX DRM voucher with any key

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "calibre\customize\ui.py", line 175, in _run_filetype_plugins File "calibre_plugins.dedrm.init", line 633, in run File "calibre_plugins.dedrm.init", line 583, in KindleMobiDecrypt calibre_plugins.dedrm.DeDRMError: DeDRM v7.2.1: Ultimately failed to decrypt after 3.7 seconds. Read the FAQs at Harper's repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md Running file type plugin Package KFX (from KFX Input) failed with traceback: Traceback (most recent call last): File "calibre\customize\ui.py", line 175, in _run_filetype_plugins File "calibre_plugins.kfx_input.package_filetype", line 21, in run File "calibre_plugins.kfx_input.package_filetype", line 32, in run_kfx File "calibre_plugins.kfx_input.kfxlib.yj_book", line 84, in convert_to_single_kfx File "calibre_plugins.kfx_input.kfxlib.yj_book", line 211, in decode_book File "calibre_plugins.kfx_input.kfxlib.yj_book", line 318, in get_container calibre_plugins.kfx_input.kfxlib.utilities.KFXDRMError: Book conAdded Astrology: Superstition, Blind Faith or a Door to the Essential? (OSHO Singles) to db in: 1.5 Added 1 books in 7.2 seconds

ElleKayEm commented 2 years ago

This was downloaded with Kindle for PC 1.26 or earlier? That what you need to decrypt KFX format.

You may want to try disabling KFX format downloads. See this post for details: https://www.mobileread.com/forums/showthread.php?t=283371

rish1708 commented 2 years ago

Thank you!! Did this and Kindle is on 1.26 as it was previously and automatic download is disabled. I was able to download the previous book that was giving an issue but as I try other books, the issue still persists. Here is the debug report:

calibre Debug log calibre 5.34 embedded-python: True is64bit: False Windows-10-10.0.19041 Windows ('32bit', 'WindowsPE') 32bit process running on 64bit windows ('Windows', '10', '10.0.19041') Python 3.8.5 Windows: ('10', '10.0.19041', '', 'Multiprocessor Free') Interface language: None Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 46, 0) && DeDRM (7, 2, 1) && Package KFX (from KFX Input) (1, 46, 0) && KFX metadata reader (from KFX Input) (1, 46, 0) && KFX Input (1, 46, 0) calibre 5.34 embedded-python: True is64bit: False Windows-10-10.0.19041 Windows ('32bit', 'WindowsPE') 32bit process running on 64bit windows ('Windows', '10', '10.0.19041') Python 3.8.5 Windows: ('10', '10.0.19041', '', 'Multiprocessor Free') Interface language: None Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 46, 0) && DeDRM (7, 2, 1) && Package KFX (from KFX Input) (1, 46, 0) && KFX metadata reader (from KFX Input) (1, 46, 0) && KFX Input (1, 46, 0) Turning on automatic hidpi scaling devicePixelRatio: 1.0 logicalDpi: 96.0 x 96.0 physicalDpi: 92.53889943074003 x 92.36363636363636 Using calibre Qt style: True [0.00] Starting up... [0.00] Showing splash screen... [0.61] splash screen shown [0.61] Initializing db... [0.61] db initialized [0.61] Constructing main UI... [1.23] main UI initialized... [1.23] Hiding splash screen Starting QuickView Gather KFX-ZIP (from KFX Input) 1.46.0: Importing C:\Users\HP\Documents\My Kindle Content\B0752MV77R_EBOK\B0752MV77R_EBOK.azw Gather KFX-ZIP (from KFX Input): Gathered 4 file(s) as C:\Users\HP\AppData\Local\Temp\calibre_aj5e0ezo\6oq98oyy.kfx-zip DeDRM v7.2.1: Trying to decrypt 6oq98oyy.kfx-zip Using Library AlfCrypto DLL/DYLIB/SO Using Library AlfCrypto DLL/DYLIB/SO Decrypting KFX-ZIP ebook: 6oq98oyy Got DSN key from database default_key Found 1 keys to try after 0.1 seconds Decrypting KFX DRM voucher: amzn1.drm-voucher.v1.e96f08b2-de7e-4586-9ec6-ba585a921226.voucher Traceback (most recent call last): File "calibre_plugins.dedrm.kfxdedrm", line 83, in decrypt_voucher File "C:\Users\HP\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 879, in decryptvoucher File "C:\Users\HP\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 758, in pkcs7unpad File "C:\Users\HP\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 98, in _assert Exception: Incorrect padding - Wrong key KFX DRM voucher successfully decrypted DeDRM v7.2.1: Failed to decrypt with error: This book is licensed as KindleUnlimited. These tools are intended for use on purchased books. DeDRM v7.2.1: Looking for new default Kindle Key after 0.1 seconds searching for kinfoFiles in C:\Users\HP\AppData\Local Found K4PC 1.25+ kinf2018 file: C:\Users\HP\AppData\Local\Amazon\Kindle\storage.kinf2018 [3.97] splash screen hidden [3.97] Started up in 3.97 seconds with 7 books stdout+stderr from file dialog helper: [b'', b''] piped data from file dialog helper: [b"u\x97\xc0+\x19f\x0f\xb1\xad\xf6\xdb\xc8+ L\xd3*\xdf,\xa0\xb9(\xd1'5\xce?\xc3\x80\xd8Z\x81", b'C:\Users\HP\Documents\My Kindle Content\B0752MV77R_EBOK\B0752MV77R_EBOK.azw'] Decrypted key file using IDString '1421515351' and UserName 'HP' DeDRM v7.2.1: Found 1 new key Decrypting KFX-ZIP ebook: 6oq98oyy Got DSN key from database default_key_1 Found 1 keys to try after 3.6 seconds Decrypting KFX DRM voucher: amzn1.drm-voucher.v1.e96f08b2-de7e-4586-9ec6-ba585a921226.voucher Traceback (most recent call last): File "calibre_plugins.dedrm.init", line 540, in KindleMobiDecrypt File "calibre_plugins.dedrm.k4mobidedrm", line 238, in GetDecryptedBook File "calibre_plugins.dedrm.kfxdedrm", line 45, in processBook File "calibre_plugins.dedrm.kfxdedrm", line 95, in decrypt_voucher Exception: This book is licensed as KindleUnlimited. These tools are intended for use on purchased books.

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "calibre_plugins.dedrm.kfxdedrm", line 83, in decrypt_voucher File "C:\Users\HP\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 879, in decryptvoucher File "C:\Users\HP\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 758, in pkcs7unpad File "C:\Users\HP\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 98, in _assert Exception: Incorrect padding - Wrong key KFX DRM voucher successfully decrypted DeDRM v7.2.1: Ultimately failed to decrypt after 3.6 seconds. Read the FAQs at Harper's repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md Package KFX (from KFX Input) 1.46.0: Packaging C:\Users\HP\AppData\Local\Temp\calibre_aj5e0ezo\6oq98oyy.kfx-zip Processing container: B0752MV77R_EBOK.azw KFX metadata reader (from KFX Input) activated for C:\Users\HP\AppData\Local\Temp\calibre_aj5e0ezo\jwlhyr0h_add_books\0\B0752MV77R_EBOK.kfx-zip Running file type plugin DeDRM failed with traceback: Traceback (most recent call last): File "calibre_plugins.dedrm.init", line 540, in KindleMobiDecrypt File "calibre_plugins.dedrm.k4mobidedrm", line 238, in GetDecryptedBook File "calibre_plugins.dedrm.kfxdedrm", line 45, in processBook File "calibre_plugins.dedrm.kfxdedrm", line 95, in decrypt_voucher Exception: This book is licensed as KindleUnlimited. These tools are intended for use on purchased books.

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "calibre\customize\ui.py", line 175, in _run_filetype_plugins File "calibre_plugins.dedrm.init", line 633, in run File "calibre_plugins.dedrm.init", line 583, in KindleMobiDecrypt calibre_plugins.dedrm.DeDRMError: DeDRM v7.2.1: Ultimately failed to decrypt after 3.6 seconds. Read the FAQs at Harper's repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md Running file type plugin Package KFX (from KFX Input) failed with traceback: Traceback (most recent call last): File "calibre\customize\ui.py", line 175, in _run_filetype_plugins File "calibre_plugins.kfx_input.package_filetype", line 21, in run File "calibre_plugins.kfx_input.package_filetype", line 32, in run_kfx File "calibre_plugins.kfx_input.kfxlib.yj_book", line 84, in convert_to_single_kfx File "calibre_plugins.kfx_input.kfxlib.yj_book", line 211, in decode_book File "calibre_plugins.kfx_input.kfxlib.yj_book", line 318, in get_container calibre_plugins.kfx_input.kfxlib.utilities.KFXDRMError: Book container B0752MV77R_EAdded Self-Reliance and Other Essays (AmazonClassics Edition) to db in: 1.3 Added 1 books in 7.7 seconds

ElleKayEm commented 2 years ago

From the log: This book is licensed as KindleUnlimited. These tools are intended for use on purchased books.

rish1708 commented 2 years ago

Hi,

I am getting this error message. please help.

calibre, version 5.44.0 ERROR: Conversion failed:

Failed to convert: B0B11M36RZ EBOK

This is an Amazon KFX book. It cannot be processed. See here for information on how to handle KFX books.

During handling of the above exception, another exception occurred:

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 39, in File "site.py", line 35, in main File "calibre/utils/ipc/worker.py", line 215, in main File "calibre/gui2/convert/gui_conversion.py", line 38, in gui_convert_override File "calibre/gui2/convert/gui_conversion.py", line 25, in gui_convert File "calibre/ebooks/conversion/plumber.py", line 1108, in run File "calibre/customize/conversion.py", line 242, in call File "calibre/ebooks/conversion/plugins/mobi_input.py", line 33, in convert File "calibre/ebooks/mobi/reader/mobi6.py", line 89, in init calibre.ebooks.mobi.reader.mobi6.KFXError: This is an Amazon KFX book. It cannot be processed. See here for information on how to handle KFX books.

Convert book 1 of 1 (B0B11M36RZ EBOK) Conversion options changed from defaults: read_metadata_from_opf: '/var/folders/sz/qg8z0kfj6lx6lbl3k0pk7k_r0000gn/C/calibre_5.44.0_tmp_arhiqzmu/qpbcthwc.opf' output_profile: 'generic_eink' verbose: 2 Resolved conversion options calibre version: 5.44.0 {'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|prologue|epilogue)(\s+|$))', " "'i')) or @class = 'chapter']", 'chapter_mark': 'pagebreak', 'comments': None, 'cover': None, 'custom_size': None, 'debug_pipeline': None, 'dehyphenate': True, 'delete_blank_paragraphs': True, 'disable_font_rescaling': False, 'duplicate_links_in_toc': False, 'embed_all_fonts': False, 'embed_font_family': None, 'enable_heuristics': False, 'expand_css': False, 'extra_css': 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 0x1175ab2e0>, '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, 'no_chapters_in_toc': False, 'no_inline_navbars': False, 'output_profile': <calibre.customize.profiles.GenericEink object at 0x1175ab5e0>, 'page_breaks_before': "//[name()='h1' or name()='h2']", 'paper_size': 'letter', 'pdf_add_toc': False, 'pdf_default_font_size': 20, 'pdf_footer_template': None, 'pdf_header_template': None, 'pdf_hyphenate': False, 'pdf_mark_links': False, 'pdf_mono_family': 'Courier', 'pdf_mono_font_size': 16, 'pdf_odd_even_offset': 0.0, 'pdf_page_margin_bottom': 72.0, 'pdf_page_margin_left': 72.0, 'pdf_page_margin_right': 72.0, 'pdf_page_margin_top': 72.0, 'pdf_page_number_map': None, 'pdf_page_numbers': False, 'pdf_sans_family': 'Helvetica', 'pdf_serif_family': 'Times', 'pdf_standard_font': 'serif', 'pdf_use_document_margins': False, 'prefer_metadata_cover': False, 'preserve_cover_aspect_ratio': False, 'pretty_print': False, 'pubdate': None, 'publisher': None, 'rating': None, 'read_metadata_from_opf': '/var/folders/sz/qg8z0kfj6lx6lbl3k0pk7k_r0000gn/C/calibre_5.44.0_tmp_arhiqzmu/qpbcthwc.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, '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': '[]', 'uncompressed_pdf': False, 'unit': 'inch', 'unsmarten_punctuation': False, 'unwrap_lines': True, 'use_auto_toc': False, 'use_profile_size': False, 'verbose': 2} InputFormatPlugin: MOBI Input running on /var/folders/sz/qg8z0kfj6lx6lbl3k0pk7k_r0000gn/C/calibre_5.44.0_tmp_arhiqzmu/hupsplv3.azw Traceback (most recent call last): File "calibre/ebooks/conversion/plugins/mobi_input.py", line 27, in convert File "calibre/ebooks/mobi/reader/mobi6.py", line 89, in init calibre.ebooks.mobi.reader.mobi6.KFXError: This is an Amazon KFX book. It cannot be processed. See https://www.mobileread.com/forums/showthread.php?t=283371 for information on how to handle KFX books.

During handling of the above exception, another exception occurred:

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 39, in File "site.py", line 35, in main File "calibre/utils/ipc/worker.py", line 215, in main File "calibre/gui2/convert/gui_conversion.py", line 38, in gui_convert_override File "calibre/gui2/convert/gui_conversion.py", line 25, in gui_convert File "calibre/ebooks/conversion/plumber.py", line 1108, in run File "calibre/customize/conversion.py", line 242, in call File "calibre/ebooks/conversion/plugins/mobi_input.py", line 33, in convert File "calibre/ebooks/mobi/reader/mobi6.py", line 89, in init calibre.ebooks.mobi.reader.mobi6.KFXError: This is an Amazon KFX book. It cannot be processed. See https://www.mobileread.com/forums/showthread.php?t=283371 for information on how to handle KFX books.

On Fri, Dec 24, 2021 at 4:06 PM ElleKayEm @.***> wrote:

From the log: This book is licensed as KindleUnlimited. These tools are intended for use on purchased books.

— Reply to this email directly, view it on GitHub https://github.com/apprenticeharper/DeDRM_tools/issues/1968#issuecomment-1000779390, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMHHD756AM6P6DSWMXQBZNDUSREKZANCNFSM5KU7TPOA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

-- Best regards, Rishabh Gupta

ElleKayEm commented 2 years ago

As it says, this is KFX format. Follow the link given there for all the known ways of dealing with this: https://www.mobileread.com/forums/showthread.php?t=283371

rish1708 commented 2 years ago

Tried converting a book however it says locked by DRM so cannot convert. Any fix for this?

Thanks Rishabh

On Thu, Sep 22, 2022 at 8:13 PM ElleKayEm @.***> wrote:

As it says, this is KFX format. Follow the link given there for all the known ways of dealing with this: https://www.mobileread.com/forums/showthread.php?t=283371

— Reply to this email directly, view it on GitHub https://github.com/apprenticeharper/DeDRM_tools/issues/1968#issuecomment-1255130163, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMHHD7YHQCB5UM3WEPTX3VTV7RV77ANCNFSM5KU7TPOA . You are receiving this because you authored the thread.Message ID: @.***>

-- Best regards, Rishabh Gupta

ElleKayEm commented 2 years ago

Yes, same answer as previously.

rish1708 commented 1 year ago

Hi,

I am getting below message.. Somehow when I try converting from Calibre on my Mac it always shows message and when I do from PC it works. Please help.

calibre, version 5.44.0 ERROR: Conversion failed:

Failed to convert: B001QNVPYK EBOK

This is an Amazon KFX book. It cannot be processed. See here for information on how to handle KFX books.

During handling of the above exception, another exception occurred:

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 39, in File "site.py", line 35, in main File "calibre/utils/ipc/worker.py", line 215, in main File "calibre/gui2/convert/gui_conversion.py", line 38, in gui_convert_override File "calibre/gui2/convert/gui_conversion.py", line 25, in gui_convert File "calibre/ebooks/conversion/plumber.py", line 1108, in run File "calibre/customize/conversion.py", line 242, in call File "calibre/ebooks/conversion/plugins/mobi_input.py", line 33, in convert File "calibre/ebooks/mobi/reader/mobi6.py", line 89, in init calibre.ebooks.mobi.reader.mobi6.KFXError: This is an Amazon KFX book. It cannot be processed. See here for information on how to handle KFX books.

Convert book 1 of 1 (B001QNVPYK EBOK) Conversion options changed from defaults: read_metadata_from_opf: '/var/folders/sz/qg8z0kfj6lx6lbl3k0pk7k_r0000gn/C/calibre_5.44.0_tmp_hgs0ikrl/rrtx_y59.opf' output_profile: 'generic_eink' verbose: 2 Resolved conversion options calibre version: 5.44.0 {'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|prologue|epilogue)(\s+|$))', " "'i')) or @class = 'chapter']", 'chapter_mark': 'pagebreak', 'comments': None, 'cover': None, 'custom_size': None, 'debug_pipeline': None, 'dehyphenate': True, 'delete_blank_paragraphs': True, 'disable_font_rescaling': False, 'duplicate_links_in_toc': False, 'embed_all_fonts': False, 'embed_font_family': None, 'enable_heuristics': False, 'expand_css': False, 'extra_css': 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 0x1150832e0>, '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, 'no_chapters_in_toc': False, 'no_inline_navbars': False, 'output_profile': <calibre.customize.profiles.GenericEink object at 0x1150835e0>, 'page_breaks_before': "//[name()='h1' or name()='h2']", 'paper_size': 'letter', 'pdf_add_toc': False, 'pdf_default_font_size': 20, 'pdf_footer_template': None, 'pdf_header_template': None, 'pdf_hyphenate': False, 'pdf_mark_links': False, 'pdf_mono_family': 'Courier', 'pdf_mono_font_size': 16, 'pdf_odd_even_offset': 0.0, 'pdf_page_margin_bottom': 72.0, 'pdf_page_margin_left': 72.0, 'pdf_page_margin_right': 72.0, 'pdf_page_margin_top': 72.0, 'pdf_page_number_map': None, 'pdf_page_numbers': False, 'pdf_sans_family': 'Helvetica', 'pdf_serif_family': 'Times', 'pdf_standard_font': 'serif', 'pdf_use_document_margins': False, 'prefer_metadata_cover': False, 'preserve_cover_aspect_ratio': False, 'pretty_print': False, 'pubdate': None, 'publisher': None, 'rating': None, 'read_metadata_from_opf': '/var/folders/sz/qg8z0kfj6lx6lbl3k0pk7k_r0000gn/C/calibre_5.44.0_tmp_hgs0ikrl/rrtx_y59.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, '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': '[]', 'uncompressed_pdf': False, 'unit': 'inch', 'unsmarten_punctuation': False, 'unwrap_lines': True, 'use_auto_toc': False, 'use_profile_size': False, 'verbose': 2} InputFormatPlugin: MOBI Input running on /var/folders/sz/qg8z0kfj6lx6lbl3k0pk7k_r0000gn/C/calibre_5.44.0_tmp_hgs0ikrl/jy90hi78.azw Traceback (most recent call last): File "calibre/ebooks/conversion/plugins/mobi_input.py", line 27, in convert File "calibre/ebooks/mobi/reader/mobi6.py", line 89, in init calibre.ebooks.mobi.reader.mobi6.KFXError: This is an Amazon KFX book. It cannot be processed. See https://www.mobileread.com/forums/showthread.php?t=283371 for information on how to handle KFX books.

During handling of the above exception, another exception occurred:

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 39, in File "site.py", line 35, in main File "calibre/utils/ipc/worker.py", line 215, in main File "calibre/gui2/convert/gui_conversion.py", line 38, in gui_convert_override File "calibre/gui2/convert/gui_conversion.py", line 25, in gui_convert File "calibre/ebooks/conversion/plumber.py", line 1108, in run File "calibre/customize/conversion.py", line 242, in call File "calibre/ebooks/conversion/plugins/mobi_input.py", line 33, in convert File "calibre/ebooks/mobi/reader/mobi6.py", line 89, in init calibre.ebooks.mobi.reader.mobi6.KFXError: This is an Amazon KFX book. It cannot be processed. See https://www.mobileread.com/forums/showthread.php?t=283371 for information on how to handle KFX books.

On Sun, Oct 2, 2022 at 10:38 PM ElleKayEm @.***> wrote:

Yes, same answer as previously.

— Reply to this email directly, view it on GitHub https://github.com/apprenticeharper/DeDRM_tools/issues/1968#issuecomment-1264689946, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMHHD72O4CBKYAI6GB7OGBTWBG6SFANCNFSM5KU7TPOA . You are receiving this because you authored the thread.Message ID: @.***>

-- Best regards, Rishabh Gupta

ElleKayEm commented 1 year ago

See the link in the log for how to deal with KFX format like this. Also see this Mac specific info: https://www.mobileread.com/forums/showpost.php?p=3819708&postcount=508