noDRM / DeDRM_tools

DeDRM tools for ebooks
7k stars 313 forks source link

DRM Removal Not Working #633

Open Alex-0425 opened 6 days ago

Alex-0425 commented 6 days ago

Question / bug report

DRM isn't working when i tried to remove the DRM from TurtleMe's The Beginning After The End: Providence

Which version of Calibre are you running?

7.18

Which version of the DeDRM plugin are you running?

v10.0.9

If applicable, which version of the Kindle software are you running?

No response

Log output

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 (10, 0, 9) && 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 (10, 0, 9) && 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.41395348837209 [0.00] Starting up... [0.01] Showing splash screen... [1.23] splash screen shown [1.23] Initializing db... [1.25] db initialized [1.25] Constructing main UI... [2.89] GUI main window shown [3.05] main UI initialized... [3.05] Hiding splash screen [3.05] splash screen hidden [3.05] Started up in 3.05 seconds with 1 books stdout+stderr from file dialog helper: [b'', b''] piped data from file dialog helper: [b'E\xb9\xf0\xe7\xe0\xcdrO2\xf7Dt/\x82\xb3c!\xa2\xf5\x0b\xa8\xc2c\xa8\x14k\x14 v\x82y\x19', b'C:\Users\aleja\Documents\My Kindle Content\B0DF4FZRPG_EBOK\B0DF4FZRPG_EBOK.azw'] Gather KFX-ZIP (from KFX Input) 2.15.0: Importing C:\Users\aleja\Documents\My Kindle Content\B0DF4FZRPG_EBOK\B0DF4FZRPG_EBOK.azw Gather KFX-ZIP (from KFX Input): Gathered 4 file(s) as C:\Users\aleja\AppData\Local\Temp\calibre_7hqi4z04\l336v6vc.kfx-zip DeDRM v10.0.9: Trying to decrypt l336v6vc.kfx-zip Decrypting KFX-ZIP ebook: l336v6vc Found 0 keys to try after 1.1 seconds Decrypting KFX DRM voucher: amzn1.drm-voucher.v1.6bac44b3-45b8-4987-a895-48c2ba9b4904.voucher Traceback (most recent call last): File "C:\Users\aleja\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 104, in decrypt_voucher File "C:\Users\aleja\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 1394, in parse File "C:\Users\aleja\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 103, in _assert Exception: Unknown type encountered in envelope, expected VoucherEnvelope DeDRM v10.0.9: Failed to decrypt with error: Failed to decrypt KFX DRM voucher with any key DeDRM v10.0.9: Looking for new default Kindle Key after 1.1 seconds searching for kinfoFiles in C:\Users\aleja\AppData\Local Found K4PC 1.25+ kinf2018 file: C:\Users\aleja\AppData\Local\Amazon\Kindle\storage.kinf2018 Decrypted key file using IDString '2991554907' and UserName 'aleja' DeDRM v10.0.9: Found 1 new key Decrypting KFX-ZIP ebook: l336v6vc Got DSN key from database key_0 Found 1 keys to try after 1.5 seconds Decrypting KFX DRM voucher: amzn1.drm-voucher.v1.6bac44b3-45b8-4987-a895-48c2ba9b4904.voucher Traceback (most recent call last): File "calibre_plugins.dedrm.init", line 931, in KindleMobiDecrypt File "C:\Users\aleja\AppData\Roaming\calibre\plugins\DeDRM.zip\k4mobidedrm.py", line 203, in GetDecryptedBook File "C:\Users\aleja\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 67, in processBook File "C:\Users\aleja\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 111, 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 "C:\Users\aleja\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 104, in decrypt_voucher File "C:\Users\aleja\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 1394, in parse File "C:\Users\aleja\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 103, in _assert Exception: Unknown type encountered in envelope, expected VoucherEnvelope Traceback (most recent call last): File "calibre_plugins.dedrm.init", line 931, in KindleMobiDecrypt File "C:\Users\aleja\AppData\Roaming\calibre\plugins\DeDRM.zip\k4mobidedrm.py", line 203, in GetDecryptedBook File "C:\Users\aleja\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 67, in processBook File "C:\Users\aleja\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 111, 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 "C:\Users\aleja\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 104, in decrypt_voucher File "C:\Users\aleja\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 1394, in parse File "C:\Users\aleja\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 103, in _assert Exception: Unknown type encountered in envelope, expected VoucherEnvelope Traceback (most recent call last): File "calibre_plugins.dedrm.init", line 931, in KindleMobiDecrypt File "C:\Users\aleja\AppData\Roaming\calibre\plugins\DeDRM.zip\k4mobidedrm.py", line 203, in GetDecryptedBook File "C:\Users\aleja\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 67, in processBook File "C:\Users\aleja\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 111, 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.init", line 965, in KindleMobiDecrypt File "C:\Users\aleja\AppData\Roaming\calibre\plugins\DeDRM.zip\k4mobidedrm.py", line 203, in GetDecryptedBook File "C:\Users\aleja\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 67, in processBook File "C:\Users\aleja\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 111, in decrypt_voucher Exception: Failed to decrypt KFX DRM voucher with any key DeDRM v10.0.9: Ultimately failed to decrypt after 1.5 seconds. Read the FAQs at noDRM's repository: https://github.com/noDRM/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 931, in KindleMobiDecrypt File "C:\Users\aleja\AppData\Roaming\calibre\plugins\DeDRM.zip\k4mobidedrm.py", line 203, in GetDecryptedBook File "C:\Users\aleja\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 67, in processBook File "C:\Users\aleja\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 111, 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 1030, in run File "calibre_plugins.dedrm.init", line 981, in KindleMobiDecrypt calibre_plugins.dedrm.DeDRMError: DeDRM v10.0.9: Ultimately failed to decrypt after 1.5 seconds. Read the FAQs at noDRM's repository: https://github.com/noDRM/DeDRM_tools/blob/master/FAQs.md Package KFX (from KFX Input) 2.15.0: Packaging C:\Users\aleja\AppData\Local\Temp\calibre_7hqi4z04\l336v6vc.kfx-zip Processing container: B0DF4FZRPG_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 B0DF4FZRPG_EBOK.azw has DRM and cannot be converted KFX metadata reader (from KFX Input) activated for C:\Users\aleja\AppData\Local\Temp\calibre_7hqi4z04\g4e5wc8a_add_books\0\B0DF4FZRPG_EBOK.kfx-zip

ElleKayEm commented 6 days ago

Use Kindle for PC 2.4.0 (70904) aka 2.4.70904 and see method 2 at this post about blocking updates: https://www.mobileread.com/forums/showthread.php?t=361503

Alex-0425 commented 6 days ago

So i use the AZW file from the older version when i convert the book?

ElleKayEm commented 6 days ago

Download a new copy of the book with that version of Kindle for PC and add it to calibre to remove the DRM. Then you will be able to convert it if you want. At this time, DeDRM doesn't work with books from Kindle for PC 2.4.1 and newer.