apprenticeharper / DeDRM_tools

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

[QUESTION] Can't DeDrm Kindle book #2356

Closed LordIron1 closed 1 month ago

LordIron1 commented 1 month ago

CheckList


Title

My Environment

Calibre: 7.18

Kindle: 2.4.70904

DeDRM: 10.0.9

Log

Log Title ```log ApplicationPaletteChange event ignored Using calibre Qt style: True calibre Debug log calibre 7.18 embedded-python: True Windows-10-10.0.22631-SP0 Windows ('64bit', 'WindowsPE') ('Windows', '10', '10.0.22631') Python 3.11.5 Windows: ('10', '10.0.22631', 'SP0', 'Multiprocessor Free') Interface language: None EXE path: C:\Program Files\Calibre2\calibre-debug.exe Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (2, 15, 0) && DeDRM (7, 2, 1) && Package KFX (from KFX Input) (2, 15, 0) && KFX metadata reader (from KFX Input) (2, 15, 0) && From KFX (2, 15, 0) && KFX Input (2, 15, 0) calibre 7.18 embedded-python: True Windows-10-10.0.22631-SP0 Windows ('64bit', 'WindowsPE') ('Windows', '10', '10.0.22631') Python 3.11.5 Windows: ('10', '10.0.22631', 'SP0', 'Multiprocessor Free') Interface language: None EXE path: C:\Program Files\Calibre2\calibre-debug.exe Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (2, 15, 0) && DeDRM (7, 2, 1) && Package KFX (from KFX Input) (2, 15, 0) && KFX metadata reader (from KFX Input) (2, 15, 0) && From KFX (2, 15, 0) && KFX Input (2, 15, 0) QPA platform: windows devicePixelRatio: 1.25 logicalDpi: 96.0 x 96.0 physicalDpi: 113.41395348837209 x 113.12164948453608 [0.00] Starting up... [0.00] Showing splash screen... [1.17] splash screen shown [1.17] Initializing db... [1.17] db initialized [1.17] Constructing main UI... [1.91] GUI main window shown [1.95] main UI initialized... [1.95] Hiding splash screen [1.95] splash screen hidden [1.95] Started up in 1.95 seconds with 4 books Gather KFX-ZIP (from KFX Input) 2.15.0: Importing C:\Users\pzdou\Documents\My Kindle Content\B07S2T48TG_EBOK\B07S2T48TG_EBOK.azw Gather KFX-ZIP (from KFX Input): Gathered 7 file(s) as C:\Users\pzdou\AppData\Local\Temp\calibre_0atydeat\yx91lv9i.kfx-zip DeDRM v7.2.1: Trying to decrypt yx91lv9i.kfx-zip Using Library AlfCrypto DLL/DYLIB/SO Using Library AlfCrypto DLL/DYLIB/SO Decrypting KFX-ZIP ebook: yx91lv9i Got DSN key from database DeDRM Found 1 keys to try after 0.0 seconds Decrypting KFX DRM voucher: amzn1.drm-voucher.v1.de8e65e1-a765-4a56-98fa-865436389b45.voucher Traceback (most recent call last): File "calibre_plugins.dedrm.kfxdedrm", line 83, in decrypt_voucher File "C:\Users\pzdou\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 879, in decryptvoucher File "C:\Users\pzdou\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 758, in pkcs7unpad File "C:\Users\pzdou\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\pzdou\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 879, in decryptvoucher File "C:\Users\pzdou\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 758, in pkcs7unpad File "C:\Users\pzdou\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.0 seconds searching for kinfoFiles in C:\Users\pzdou\AppData\Local Found K4PC 1.25+ kinf2018 file: C:\Users\pzdou\AppData\Local\Amazon\Kindle\storage\.kinf2018 stdout+stderr from file dialog helper: [b'', b''] piped data from file dialog helper: [b'+\xfe\x1c(}\xc7]\xfaj\x1a\x01\xad\xc7\xa4\x99]MG\x99~\xe5\\\xb2z\x19q$\xf0kI\xcd\xa5', b'C:\\Users\\pzdou\\Documents\\My Kindle Content\\B07S2T48TG_EBOK\\B07S2T48TG_EBOK.azw'] Decrypted key file using IDString '1583162566' and UserName 'pzdou' DeDRM v7.2.1: Found 1 new key Decrypting KFX-ZIP ebook: yx91lv9i Got DSN key from database default_key_1 Found 1 keys to try after 1.4 seconds Decrypting KFX DRM voucher: amzn1.drm-voucher.v1.de8e65e1-a765-4a56-98fa-865436389b45.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\pzdou\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 879, in decryptvoucher File "C:\Users\pzdou\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 758, in pkcs7unpad File "C:\Users\pzdou\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\pzdou\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 879, in decryptvoucher File "C:\Users\pzdou\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 758, in pkcs7unpad File "C:\Users\pzdou\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 1.4 seconds. Read the FAQs at Harper's repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md 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 199, 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 1.4 seconds. Read the FAQs at Harper's repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md Package KFX (from KFX Input) 2.15.0: Packaging C:\Users\pzdou\AppData\Local\Temp\calibre_0atydeat\yx91lv9i.kfx-zip Processing container: B07S2T48TG_EBOK.azw Running file type plugin Package KFX (from KFX Input) failed with traceback: Traceback (most recent call last): File "calibre\customize\ui.py", line 199, in _run_filetype_plugins File "calibre_plugins.kfx_input.package_filetype", line 23, in run File "calibre_plugins.kfx_input.package_filetype", line 34, in package_kfx File "calibre_plugins.kfx_input.kfxlib.yj_book", line 79, in convert_to_single_kfx File "calibre_plugins.kfx_input.kfxlib.yj_book", line 212, in decode_book File "calibre_plugins.kfx_input.kfxlib.yj_book", line 321, in get_container calibre_plugins.kfx_input.kfxlib.utilities.KFXDRMError: Book container B07S2T48TG_EBOK.azw has DRM and cannot be converted KFX metadata reader (from KFX Input) activated for C:\Users\pzdou\AppData\Local\Temp\calibre_0atydeat\fo6m4a4n_add_books\0\B07S2T48TG_EBOK.kfx-zip ```
ElleKayEm commented 1 month ago

Log shows DeDRM 7.2.1. Make sure you install DeDRM 10.0.9 and restart calibre before re-importing your book.

LordIron1 commented 1 month ago

Log shows DeDRM 7.2.1. Make sure you install DeDRM 10.0.9 and restart calibre before re-importing your book.

Thank you! Looks like I had downloaded DeDrm a while ago and then when I redownloaded it today, I kept selecting the older version instead. It works now!

ElleKayEm commented 1 month ago

If you're all set, you can close the issue.