Using calibre with KFX input v2.15.0 and deDRM v10.0.9. Cannot remove DRM from kindle file. The azw file gets converted into KFX-ZIP, DRM removal fails.
I have run disable-k4pc-download.bat and Kindle has not updated automatically.
Which version of Calibre are you running?
7.17
Which version of the DeDRM plugin are you running?
v10.0.9
If applicable, which version of the Kindle software are you running?
2.3.5.70840
Log output
ApplicationPaletteChange event ignored
Using calibre Qt style: True
calibre Debug log
calibre 7.17 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) && Reading List (1, 15, 4)
calibre 7.17 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) && Reading List (1, 15, 4)
QPA platform: windows
devicePixelRatio: 1.5
logicalDpi: 96.0 x 96.0
physicalDpi: 126.04011627906975 x 126.05488372093023
[0.00] Starting up...
[0.01] Showing splash screen...
[1.16] splash screen shown
[1.16] Initializing db...
[1.16] db initialized
[1.16] Constructing main UI...
[1.86] GUI main window shown
[1.94] main UI initialized...
[1.94] Hiding splash screen
[1.94] splash screen hidden
[1.94] Started up in 1.94 seconds with 90 books
Gather KFX-ZIP (from KFX Input) 2.15.0: Importing C:\Users---\Documents\My Kindle Content\B08TN4T7KR_EBOK\B08TN4T7KR_EBOK.azw
Gather KFX-ZIP (from KFX Input): Gathered 15 file(s) as C:\Users---\AppData\Local\Temp\calibrecz0cv03l\kqzdrn1y.kfx-zip
DeDRM v10.0.9: Trying to decrypt kqzdrn1y.kfx-zip
stdout+stderr from file dialog helper: [b'', b'']
piped data from file dialog helper: [b'\x1c\xdch\xc8\xa1\x10\xfax\xdd0w\xf1\xe4\xd1\x15f\xc39qu\xe3R\xd4\x03]\xfb\x01\x9f\xe5\xd4\x82', b'C:\Users\---\Documents\My Kindle Content\B08TN4T7KR_EBOK\B08TN4T7KR_EBOK.azw']
Decrypting KFX-ZIP ebook: kqzdrn1y
Found 0 keys to try after 0.6 seconds
Decrypting KFX DRM voucher: amzn1.drm-voucher.v1.3e3c1131-3a9b-474a-8d6f-0cee2a08ef0d.voucher
Traceback (most recent call last):
File "C:\Users---\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 104, in decrypt_voucher
File "C:\Users---\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 1394, in parse
File "C:\Users---\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 0.6 seconds
searching for kinfoFiles in C:\Users---\AppData\Local
Found K4PC 1.25+ kinf2018 file: C:\Users---\AppData\Local\Amazon\Kindle\storage.kinf2018
Decrypted key file using IDString '1181269722' and UserName '---'
DeDRM v10.0.9: Found 1 new key
Decrypting KFX-ZIP ebook: kqzdrn1y
Got DSN key from database key_0
Found 1 keys to try after 0.7 seconds
Decrypting KFX DRM voucher: amzn1.drm-voucher.v1.3e3c1131-3a9b-474a-8d6f-0cee2a08ef0d.voucher
Traceback (most recent call last):
File "calibre_plugins.dedrm.init", line 931, in KindleMobiDecrypt
File "C:\Users---\AppData\Roaming\calibre\plugins\DeDRM.zip\k4mobidedrm.py", line 203, in GetDecryptedBook
File "C:\Users---\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 67, in processBook
File "C:\Users---\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---\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 104, in decrypt_voucher
File "C:\Users---\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 1394, in parse
File "C:\Users---\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---\AppData\Roaming\calibre\plugins\DeDRM.zip\k4mobidedrm.py", line 203, in GetDecryptedBook
File "C:\Users---\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 67, in processBook
File "C:\Users---\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---\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 104, in decrypt_voucher
File "C:\Users---\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 1394, in parse
File "C:\Users---\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---\AppData\Roaming\calibre\plugins\DeDRM.zip\k4mobidedrm.py", line 203, in GetDecryptedBook
File "C:\Users---\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 67, in processBook
File "C:\Users---\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---\AppData\Roaming\calibre\plugins\DeDRM.zip\k4mobidedrm.py", line 203, in GetDecryptedBook
File "C:\Users---\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 67, in processBook
File "C:\Users---\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 0.7 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---\AppData\Roaming\calibre\plugins\DeDRM.zip\k4mobidedrm.py", line 203, in GetDecryptedBook
File "C:\Users---\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 67, in processBook
File "C:\Users---\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 0.7 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---\AppData\Local\Temp\calibre_cz0cv03l\kqzdrn1y.kfx-zip
Processing container: B08TN4T7KR_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 B08TN4T7KR_EBOK.azw has DRM and cannot be converted
KFX metadata reader (from KFX Input) activated for C:\Users---\AppData\Local\Temp\calibre_cz0cv03l\ka0h37jj_add_books\0\B08TN4T7KR_EBOK.kfx-zip
Question / bug report
Using calibre with KFX input v2.15.0 and deDRM v10.0.9. Cannot remove DRM from kindle file. The azw file gets converted into KFX-ZIP, DRM removal fails. I have run disable-k4pc-download.bat and Kindle has not updated automatically.
Which version of Calibre are you running?
7.17
Which version of the DeDRM plugin are you running?
v10.0.9
If applicable, which version of the Kindle software are you running?
2.3.5.70840
Log output
ApplicationPaletteChange event ignored Using calibre Qt style: True calibre Debug log calibre 7.17 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) && Reading List (1, 15, 4) calibre 7.17 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) && Reading List (1, 15, 4) QPA platform: windows devicePixelRatio: 1.5 logicalDpi: 96.0 x 96.0 physicalDpi: 126.04011627906975 x 126.05488372093023 [0.00] Starting up... [0.01] Showing splash screen... [1.16] splash screen shown [1.16] Initializing db... [1.16] db initialized [1.16] Constructing main UI... [1.86] GUI main window shown [1.94] main UI initialized... [1.94] Hiding splash screen [1.94] splash screen hidden [1.94] Started up in 1.94 seconds with 90 books Gather KFX-ZIP (from KFX Input) 2.15.0: Importing C:\Users---\Documents\My Kindle Content\B08TN4T7KR_EBOK\B08TN4T7KR_EBOK.azw Gather KFX-ZIP (from KFX Input): Gathered 15 file(s) as C:\Users---\AppData\Local\Temp\calibrecz0cv03l\kqzdrn1y.kfx-zip DeDRM v10.0.9: Trying to decrypt kqzdrn1y.kfx-zip stdout+stderr from file dialog helper: [b'', b''] piped data from file dialog helper: [b'\x1c\xdch\xc8\xa1\x10\xfax\xdd0w\xf1\xe4\xd1\x15f\xc39qu\xe3R\xd4\x03]\xfb\x01\x9f\xe5\xd4\x82', b'C:\Users\---\Documents\My Kindle Content\B08TN4T7KR_EBOK\B08TN4T7KR_EBOK.azw'] Decrypting KFX-ZIP ebook: kqzdrn1y Found 0 keys to try after 0.6 seconds Decrypting KFX DRM voucher: amzn1.drm-voucher.v1.3e3c1131-3a9b-474a-8d6f-0cee2a08ef0d.voucher Traceback (most recent call last): File "C:\Users---\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 104, in decrypt_voucher File "C:\Users---\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 1394, in parse File "C:\Users---\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 0.6 seconds searching for kinfoFiles in C:\Users---\AppData\Local Found K4PC 1.25+ kinf2018 file: C:\Users---\AppData\Local\Amazon\Kindle\storage.kinf2018 Decrypted key file using IDString '1181269722' and UserName '---' DeDRM v10.0.9: Found 1 new key Decrypting KFX-ZIP ebook: kqzdrn1y Got DSN key from database key_0 Found 1 keys to try after 0.7 seconds Decrypting KFX DRM voucher: amzn1.drm-voucher.v1.3e3c1131-3a9b-474a-8d6f-0cee2a08ef0d.voucher Traceback (most recent call last): File "calibre_plugins.dedrm.init", line 931, in KindleMobiDecrypt File "C:\Users---\AppData\Roaming\calibre\plugins\DeDRM.zip\k4mobidedrm.py", line 203, in GetDecryptedBook File "C:\Users---\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 67, in processBook File "C:\Users---\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---\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 104, in decrypt_voucher File "C:\Users---\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 1394, in parse File "C:\Users---\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---\AppData\Roaming\calibre\plugins\DeDRM.zip\k4mobidedrm.py", line 203, in GetDecryptedBook File "C:\Users---\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 67, in processBook File "C:\Users---\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---\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 104, in decrypt_voucher File "C:\Users---\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 1394, in parse File "C:\Users---\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---\AppData\Roaming\calibre\plugins\DeDRM.zip\k4mobidedrm.py", line 203, in GetDecryptedBook File "C:\Users---\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 67, in processBook File "C:\Users---\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---\AppData\Roaming\calibre\plugins\DeDRM.zip\k4mobidedrm.py", line 203, in GetDecryptedBook File "C:\Users---\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 67, in processBook File "C:\Users---\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 0.7 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---\AppData\Roaming\calibre\plugins\DeDRM.zip\k4mobidedrm.py", line 203, in GetDecryptedBook File "C:\Users---\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 67, in processBook File "C:\Users---\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 0.7 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---\AppData\Local\Temp\calibre_cz0cv03l\kqzdrn1y.kfx-zip Processing container: B08TN4T7KR_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 B08TN4T7KR_EBOK.azw has DRM and cannot be converted KFX metadata reader (from KFX Input) activated for C:\Users---\AppData\Local\Temp\calibre_cz0cv03l\ka0h37jj_add_books\0\B08TN4T7KR_EBOK.kfx-zip