Book container xxx.azw has DRM and cannot be converted KFX metadata reader (from KFX Input) activated for AppData\Local\Temp\calibre_e_0yjspk\96ukur43_add_books\0\B07N6NPKM3_EBOK.kfx-zip #2245
ikedabarry
started this conversation in
General
Replies: 1 comment 2 replies
-
First, you need DeDRM 10.0.3 for calibre 6. Download DeDRM_tools_10.0.3.zip from here: Unzip DeDRM_tools_10.0.3.zip and load DeDRM_plugin.zip into calibre. See this post for workarounds to get decryptable Amazon books: https://www.mobileread.com/forums/showthread.php?t=283371 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Installed DeDRM 7.2.1.
Not smart enough to know how to install the DeDRM tools master from this repo.
From Calibre's UI Plugin installer it kept looking for .zip but then didn't like DeDRM_tools-master.zip, saying:
"calibre, version 6.20.0
ERROR: Unhandled exception: InvalidPlugin:The plugin in 'K:\Downloads\DeDRM_tools-master.zip' is invalid. It does not contain a top-level init.py file
calibre 6.20 embedded-python: True
Windows-10-10.0.19045-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19045')
Python 3.10.1
Windows: ('10', '10.0.19045', 'SP0', 'Multiprocessor Free')
Interface language: en_CA
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (2, 0, 0) && DeDRM (7, 2, 1) && Package KFX (from KFX Input) (2, 0, 0) && KFX metadata reader (from KFX Input) (2, 0, 0) && KFX Input (2, 0, 0)
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 'K:\Downloads\DeDRM_tools-master.zip' is invalid. It does not contain a top-level init.py file"
So I copied the DeDRM_plugin folder to the C:\Program files\Calibre2\app\plugins folder. That's prob not right.
I did install the KFX Input and KFX Output plugins, but still not getting it to convert to PDF.
My only Kindle "device" is the Win desktop app, so no SN (that I can find).
Anyone know how to get this to work?
Thank you.
K
ApplicationPaletteChange event ignored
Using calibre Qt style: True
ApplicationPaletteChange event received
calibre Debug log
calibre 6.20 embedded-python: True
Windows-10-10.0.19045-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19045')
Python 3.10.1
Windows: ('10', '10.0.19045', 'SP0', 'Multiprocessor Free')
Interface language: en_CA
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (2, 0, 0) && DeDRM (7, 2, 1) && Package KFX (from KFX Input) (2, 0, 0) && KFX metadata reader (from KFX Input) (2, 0, 0) && KFX Input (2, 0, 0)
calibre 6.20 embedded-python: True
Windows-10-10.0.19045-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19045')
Python 3.10.1
Windows: ('10', '10.0.19045', 'SP0', 'Multiprocessor Free')
Interface language: en_CA
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (2, 0, 0) && DeDRM (7, 2, 1) && Package KFX (from KFX Input) (2, 0, 0) && KFX metadata reader (from KFX Input) (2, 0, 0) && KFX Input (2, 0, 0)
QPA platform: windows
devicePixelRatio: 1.0
logicalDpi: 96.0 x 96.0
physicalDpi: 102.66947368421053 x 102.74157303370787
[0.00] Starting up...
[0.02] Showing splash screen...
[0.22] splash screen shown
[0.22] Initializing db...
[0.22] db initialized
[0.22] Constructing main UI...
[1.50] main UI initialized...
[1.50] Hiding splash screen
Starting QuickView
Gather KFX-ZIP (from KFX Input) 2.0.0: Importing K:\E Book Library\My Kindle Content\B07N6NPKM3_EBOK\B07N6NPKM3_EBOK.azw
Gather KFX-ZIP (from KFX Input): Gathered 7 file(s) as C:\Users\User\AppData\Local\Temp\calibre_e_0yjspk\tzmicgk4.kfx-zip
DeDRM v7.2.1: Trying to decrypt tzmicgk4.kfx-zip
Using Library AlfCrypto DLL/DYLIB/SO
Using Library AlfCrypto DLL/DYLIB/SO
Decrypting KFX-ZIP ebook: tzmicgk4
Got DSN key from database default_key
Found 1 keys to try after 0.1 seconds
Decrypting KFX DRM voucher: amzn1.drm-voucher.v1.61e2bcef-1328-4aea-8b20-6c82d4a06148.voucher
Traceback (most recent call last):
File "calibre_plugins.dedrm.kfxdedrm", line 83, in decrypt_voucher
File "C:\Users\User\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 879, in decryptvoucher
File "C:\Users\User\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 758, in pkcs7unpad
File "C:\Users\User\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\User\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 879, in decryptvoucher
File "C:\Users\User\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 758, in pkcs7unpad
File "C:\Users\User\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
[32.70] splash screen hidden
[32.70] Started up in 32.70 seconds with 1 books
stdout+stderr from file dialog helper: [b'', b'']
piped data from file dialog helper: [b'\xb74\xa9\xf7\rr\xf1\x18\xde\x82\x94\x94,\x80\x0f\x0e\x12\x7f\xfb|\xc9\x82N\x99r*\xe1v\xa7j]U', b'K:\E Book Library\My Kindle Content\B07N6NPKM3_EBOK\B07N6NPKM3_EBOK.azw']
searching for kinfoFiles in C:\Users\User\AppData\Local
Found K4PC 1.25+ kinf2018 file: C:\Users\User\AppData\Local\Amazon\Kindle\storage.kinf2018
Decrypted key file using IDString '3471964580' and UserName 'Keith17'
DeDRM v7.2.1: Ultimately failed to decrypt after 3.2 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.2 seconds. Read the FAQs at Harper's repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
Package KFX (from KFX Input) 2.0.0: Packaging C:\Users\User\AppData\Local\Temp\calibre_e_0yjspk\tzmicgk4.kfx-zip
Processing container: B07N6NPKM3_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 21, in run
File "calibre_plugins.kfx_input.package_filetype", line 32, in run_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 210, in decode_book
File "calibre_plugins.kfx_input.kfxlib.yj_book", line 317, in get_container
calibre_plugins.kfx_input.kfxlib.utilities.KFXDRMError: Book container B07N6NPKM3_EBOK.azw has DRM and cannot be converted
KFX metadata reader (from KFX Input) activated for C:\Users\User\AppData\Local\Temp\calibre_e_0yjspk\96ukur43_add_books\0\B07N6NPKM3_EBOK.kfx-zip
Beta Was this translation helpful? Give feedback.
All reactions