apprenticeharper / DeDRM_tools

DeDRM tools for ebooks
14.53k stars 1.51k forks source link

Problems with DDRM and Calibre. Not working the plugin #2292

Open Maxtina2010 opened 9 months ago

Maxtina2010 commented 9 months ago

CheckList


Title

My Environment

Calibre: Version

Kindle: Version

DeDRM: Version

Log

Log Title ```log Using calibre Qt style: True ApplicationPaletteChange event received ApplicationPaletteChange event received ApplicationPaletteChange event received calibre Registro de depuración calibre 7.2 embedded-python: True Windows-10-10.0.19045-SP0 Windows ('64bit', 'WindowsPE') ('Windows', '10', '10.0.19045') Python 3.11.5 Windows: ('10', '10.0.19045', 'SP0', 'Multiprocessor Free') Interface language: es Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (2, 7, 0) && DeDRM (7, 2, 1) && Package KFX (from KFX Input) (2, 7, 0) && KFX metadata reader (from KFX Input) (2, 7, 0) && From KFX (2, 7, 0) && KFX Input (2, 7, 0) calibre 7.2 embedded-python: True Windows-10-10.0.19045-SP0 Windows ('64bit', 'WindowsPE') ('Windows', '10', '10.0.19045') Python 3.11.5 Windows: ('10', '10.0.19045', 'SP0', 'Multiprocessor Free') Interface language: es Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (2, 7, 0) && DeDRM (7, 2, 1) && Package KFX (from KFX Input) (2, 7, 0) && KFX metadata reader (from KFX Input) (2, 7, 0) && From KFX (2, 7, 0) && KFX Input (2, 7, 0) QPA platform: windows devicePixelRatio: 1.0 logicalDpi: 96.0 x 96.0 physicalDpi: 100.86162790697674 x 101.07357512953367 [0.00] Starting up... [0.00] Showing splash screen... [0.20] splash screen shown [0.20] Initializing db... [0.22] db initialized [0.22] Constructing main UI... [1.52] main UI initialized... [1.52] Hiding splash screen [1.56] GUI main window shown [1.66] QuickView starting [1.66] QuickView started Gather KFX-ZIP (from KFX Input) 2.7.0: Importing C:\Users\adria\OneDrive\Documents\My Kindle Content\B00A3BO8P4_EBOK\B00A3BO8P4_EBOK.azw Gather KFX-ZIP (from KFX Input): Gathered 4 file(s) as C:\Users\adria\AppData\Local\Temp\calibre_5mlaffv5\b17trm0e.kfx-zip DeDRM v7.2.1: Trying to decrypt b17trm0e.kfx-zip Using Library AlfCrypto DLL/DYLIB/SO Using Library AlfCrypto DLL/DYLIB/SO Decrypting KFX-ZIP ebook: b17trm0e Found 0 keys to try after 0.1 seconds Decrypting KFX DRM voucher: amzn1.drm-voucher.v1.065961b9-d944-4e2a-8758-4570235e2383.voucher Traceback (most recent call last): File "calibre_plugins.dedrm.kfxdedrm", line 83, in decrypt_voucher File "C:\Users\adria\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 879, in decryptvoucher File "C:\Users\adria\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 758, in pkcs7unpad File "C:\Users\adria\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 [4.58] Starting the smartdevice driver [30.03] splash screen hidden [30.03] Started up in 30.03 seconds with 0 books stdout+stderr from file dialog helper: [b'', b''] piped data from file dialog helper: [b'6\x85puG\xe5\xc7f\x98\x8f\xb4*_\xe0\xc5\xf8\x0e\x06\xff#\xbeR\x98ah\x0ff8\xd362\xd7', b'C:\\Users\\adria\\OneDrive\\Documents\\My Kindle Content\\B00A3BO8P4_EBOK\\B00A3BO8P4_EBOK.azw'] searching for kinfoFiles in C:\Users\adria\AppData\Local Found K4PC 1.25+ kinf2018 file: C:\Users\adria\AppData\Local\Amazon\Kindle\storage\.kinf2018 Decrypted key file using IDString '148492622' and UserName 'adria' DeDRM v7.2.1: Found 1 new key Decrypting KFX-ZIP ebook: b17trm0e Got DSN key from database default_key_1 Found 1 keys to try after 3.5 seconds Decrypting KFX DRM voucher: amzn1.drm-voucher.v1.065961b9-d944-4e2a-8758-4570235e2383.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\adria\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 879, in decryptvoucher File "C:\Users\adria\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 758, in pkcs7unpad File "C:\Users\adria\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\adria\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 879, in decryptvoucher File "C:\Users\adria\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 758, in pkcs7unpad File "C:\Users\adria\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.5 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 187, 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.5 seconds. Read the FAQs at Harper's repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md Package KFX (from KFX Input) 2.7.0: Packaging C:\Users\adria\AppData\Local\Temp\calibre_5mlaffv5\b17trm0e.kfx-zip Processing container: B00A3BO8P4_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 187, 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 B00A3BO8P4_EBOK.azw has DRM and cannot be converted KFX metadata reader (from KFX Input) activated for C:\Users\adria\AppData\Local\Temp\calibre_5mlaffv5\5nsgb62t_add_books\0\B00A3BO8P4_EBOK.kfx-zip ```
ElleKayEm commented 9 months ago

Try DeDRM 10.0.9: https://github.com/noDRM/DeDRM_tools/releases/tag/v10.0.9

Daniel3356 commented 9 months ago

@ElleKayEm I get this error:

calibre, version 7.2.0
ERROR: Unhandled exception: <b>InvalidPlugin</b>:The plugin in '/path/to the /file/DeDRM_tools_10.0.9.zip' is invalid. It does not contain a top-level __init__.py file

calibre 7.2  embedded-python: True
macOS-14.2.1-arm64-arm-64bit Darwin ('64bit', '')
('Darwin', '23.2.0', 'Darwin Kernel Version 23.2.0: Wed Nov 15 21:53:34 PST 2023; root:xnu-10002.61.3~2/RELEASE_ARM64_T8103')
Python 3.11.5
OSX: ('14.2.1', ('', '', ''), 'arm64')
Interface language: None
Traceback (most recent call last):
  File "calibre/gui2/preferences/plugins.py", line 325, in add_plugin
  File "calibre/customize/ui.py", line 513, in add_plugin
  File "calibre/customize/ui.py", line 64, in load_plugin
  File "calibre/customize/zipplugin.py", line 298, in load
  File "calibre/customize/zipplugin.py", line 393, in _locate_code
calibre.customize.InvalidPlugin: The plugin in '/path/to the /file/DeDRM_tools_10.0.9.zip' is invalid. It does not contain a top-level __init__.py file
ElleKayEm commented 9 months ago

Unzip DeDRM_tools_10.0.9.zip and load DeDRM_plugin.zip into calibre.

whiz4stars commented 2 months ago

Unzip DeDRM_tools_10.0.9.zip and load DeDRM_plugin.zip into calibre.

i shared the same problem and this didn't work. :(

ElleKayEm commented 2 months ago

What didn't work? Loading the plugin? Or DRM removal?