Closed luigirovatti closed 3 months ago
This was downloaded with Kindle for PC which is on the same computer and user as calibre/DeDRM?
Yes to all of the above.
Let's see a debug log of adding the book to calibre.
ApplicationPaletteChange event ignored
Using calibre Qt style: True
ApplicationPaletteChange event received
Traceback (most recent call last):
File "calibre\gui2\ui.py", line 147, in __init__
File "calibre\gui2\ui.py", line 165, in init_iaction
File "calibre\customize\__init__.py", line 659, in load_actual_plugin
File "importlib\__init__.py", line 126, in import_module
File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "calibre\customize\zipplugin.py", line 198, in exec_module
File "calibre\customize\zipplugin.py", line 194, in get_code
File "calibre_plugins.savetoformat.savetoformataction", line 53
print 'Default saving'
^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
EpubMerge: DEBUG: 2024-08-07 00:53:08,641: calibre_plugins.epubmerge.epubmerge_plugin(156): macmenuhack file_path:C:\Users\luigi\AppData\Roaming\calibre\plugins\fanficfare_macmenuhack.txt
FFF: DEBUG: 2024-08-07 00:53:08,685: calibre_plugins.fanficfare_plugin.fff_plugin(217): Plugin FanFicFare macmenuhack file_path:C:\Users\luigi\AppData\Roaming\calibre\plugins\fanficfare_macmenuhack.txt
calibre Log di debug
calibre 7.16 embedded-python: True
Windows-10-10.0.22000-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.22000')
Python 3.11.5
Windows: ('10', '10.0.22000', 'SP0', 'Multiprocessor Free')
Interface language: it
EXE path: C:\Program Files\Calibre2\calibre-debug.exe
Successfully initialized third party plugins: DeACSM (0, 0, 16) && Gather KFX-ZIP (from KFX Input) (2, 15, 0) && DeDRM (10, 0, 9) && Package KFX (from KFX Input) (2, 15, 0) && EpubMerge (3, 1, 0) && EpubSplit (3, 8, 0) && FanFicFare (4, 37, 0) && KFX metadata reader (from KFX Input) (2, 15, 0) && From KFX (2, 15, 0) && KFX Input (2, 15, 0) && KindleUnpack - The Plugin (0, 83, 1) && Save To Format (0, 0, 6)
calibre 7.16 embedded-python: True
Windows-10-10.0.22000-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.22000')
Python 3.11.5
Windows: ('10', '10.0.22000', 'SP0', 'Multiprocessor Free')
Interface language: it
EXE path: C:\Program Files\Calibre2\calibre-debug.exe
Successfully initialized third party plugins: DeACSM (0, 0, 16) && Gather KFX-ZIP (from KFX Input) (2, 15, 0) && DeDRM (10, 0, 9) && Package KFX (from KFX Input) (2, 15, 0) && EpubMerge (3, 1, 0) && EpubSplit (3, 8, 0) && FanFicFare (4, 37, 0) && KFX metadata reader (from KFX Input) (2, 15, 0) && From KFX (2, 15, 0) && KFX Input (2, 15, 0) && KindleUnpack - The Plugin (0, 83, 1) && Save To Format (0, 0, 6)
QPA platform: windows
devicePixelRatio: 1.0
logicalDpi: 96.0 x 96.0
physicalDpi: 81.55183946488295 x 81.64285714285714
[0.00] Starting up...
[0.00] Showing splash screen...
[0.17] splash screen shown
[0.17] Initializing db...
[0.19] db initialized
[0.19] Constructing main UI...
[2.36] GUI main window shown
[2.51] main UI initialized...
[2.51] Hiding splash screen
[6.48] splash screen hidden
[6.48] Started up in 6.48 seconds with 37 books
Gather KFX-ZIP (from KFX Input) 2.15.0: Importing C:/Users/luigi/Documents/My Kindle Content/B01M29901Q_EBOK/B01M29901Q_EBOK.azw
Gather KFX-ZIP (from KFX Input): Gathered 3 file(s) as C:\Users\luigi\AppData\Local\Temp\calibre_lfcnn45t\7em6kh70.kfx-zip
DeDRM v10.0.9: Trying to decrypt 7em6kh70.kfx-zip
Decrypting KFX-ZIP ebook: 7em6kh70
Got DSN key from database default_key
Got DSN key from database default_key_2
Found 2 keys to try after 0.5 seconds
Decrypting KFX DRM voucher: amzn1.drm-voucher.v1.8714d102-2d05-4e0e-846a-027f4b99fe57.voucher
Traceback (most recent call last):
File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 105, in decrypt_voucher
File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 1417, in parse
File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 126, in _assert
Exception: Unknown type encountered in envelope, expected VoucherEnvelope
Traceback (most recent call last):
File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 105, in decrypt_voucher
File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 1417, in parse
File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 126, in _assert
Exception: Unknown type encountered in envelope, expected VoucherEnvelope
Traceback (most recent call last):
File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 105, in decrypt_voucher
File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 1417, in parse
File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 126, 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
Traceback (most recent call last):
File "calibre_plugins.dedrm.__init__", line 937, in KindleMobiDecrypt
File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\k4mobidedrm.py", line 204, in GetDecryptedBook
File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 68, in processBook
File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 112, in decrypt_voucher
Exception: Failed to decrypt KFX DRM voucher with any key
DeDRM v10.0.9: Looking for new default Kindle Key after 0.5 seconds
searching for kinfoFiles in C:\Users\luigi\AppData\Local
Found K4PC 1.25+ kinf2018 file: C:\Users\luigi\AppData\Local\Amazon\Kindle\storage\.kinf2018
Decrypted key file using IDString '3699311243' and UserName 'luigi'
DeDRM v10.0.9: Found 1 new key
Decrypting KFX-ZIP ebook: 7em6kh70
Got DSN key from database key_0
Found 1 keys to try after 0.7 seconds
Decrypting KFX DRM voucher: amzn1.drm-voucher.v1.8714d102-2d05-4e0e-846a-027f4b99fe57.voucher
Traceback (most recent call last):
File "calibre_plugins.dedrm.__init__", line 937, in KindleMobiDecrypt
File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\k4mobidedrm.py", line 204, in GetDecryptedBook
File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 68, in processBook
File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 112, 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\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 105, in decrypt_voucher
File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 1417, in parse
File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 126, in _assert
Exception: Unknown type encountered in envelope, expected VoucherEnvelope
Traceback (most recent call last):
File "calibre_plugins.dedrm.__init__", line 937, in KindleMobiDecrypt
File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\k4mobidedrm.py", line 204, in GetDecryptedBook
File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 68, in processBook
File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 112, 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\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 105, in decrypt_voucher
File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 1417, in parse
File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 126, in _assert
Exception: Unknown type encountered in envelope, expected VoucherEnvelope
Traceback (most recent call last):
File "calibre_plugins.dedrm.__init__", line 937, in KindleMobiDecrypt
File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\k4mobidedrm.py", line 204, in GetDecryptedBook
File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 68, in processBook
File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 112, 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 974, in KindleMobiDecrypt
File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\k4mobidedrm.py", line 204, in GetDecryptedBook
File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 68, in processBook
File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 112, 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 937, in KindleMobiDecrypt
File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\k4mobidedrm.py", line 204, in GetDecryptedBook
File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 68, in processBook
File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 112, 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 1039, in run
File "calibre_plugins.dedrm.__init__", line 990, 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\luigi\AppData\Local\Temp\calibre_lfcnn45t\7em6kh70.kfx-zip
Processing container: B01M29901Q_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 B01M29901Q_EBOK.azw has DRM and cannot be converted
KFX metadata reader (from KFX Input) activated for C:\Users\luigi\AppData\Local\Temp\calibre_lfcnn45t\uaqrgr47_add_books\0\B01M29901Q_EBOK.kfx-zip
Not sure what the issue is because that book should not have the hardened DRM that DeDRM cannot handle. If you can use one of the methods for downloading the book in non-kfx format, it will already be DRM-free.
I just wanted to ask if there was anything I could've done to dedrm the ebook got through kindle for pc. It happened after the last update of the app, so I think it's a issue.
This has still been working with recent versions of Kindle for PC. What version do you have?
2.4.1 (70946)
Could be that's the issue. The version which can currently still be downloaded from Amazon is 2.4.0 (KindleForPC-installer-2.4.70904.exe). That was reported as working with DeDRM 10.0.9 and KFX Input, but looks like yours updated to a newer version.
What do you suggest? That i download 2.4.0 for now?
You could try that. Let us know if it works.
Yeah, it works. It's obvious there's a discrepancy between the automatic update on the app and the version of the app downloadable from the website. I suggest you don't rely too much on that, but on the update.
Personally, I'm sticking with non-kfx and epubs from elsewhere.
Thank you for your time. Feel free to close the question.
I cannot. You can go ahead.
Question / bug report
I let kindle for pc update itself, then downloaded one ebook from the ones i bought on the windows app. Then i picked up the file and transferred it to calibre. It showed as kfx-zip. I have the latest nodrm drm plugin 10.0.9. I run calibre 7.16.0 on windows 11. I also have kfx input plugin 2.15. I don't know if you have the same issue, the update was made in the last hours.
However, from my contents and devices, it's still possible to download azw3. Just not from kindle for pc.
Which version of Calibre are you running?
7.16
Which version of the DeDRM plugin are you running?
10.0.9
If applicable, which version of the Kindle software are you running?
5.16.9
Log output