-
Notifications
You must be signed in to change notification settings - Fork 343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DRM not removed. #725
Comments
How was this downloaded? DeDRM doesn't currently work with Kindle for Mac. If this is from Kindle for PC, you'll need to use calibre/DeDRM/KFX Input on the machine it was downloaded on in order retrieve the key for that. |
I've run into nearly this exact error listing on my Mac. In my case I entered the serial number for my Kindle Scribe and downloaded the .kfx directly from the Scribe onto my Mac to be processed. It looks like it tried to run my serial number as a key, failed, looked for Kindle for Mac to grab a key from it, also failed, and then ended. I know DeDRM is installed correctly and working, as I previously downloaded a batch of books and converted them from .azw3 successfully. It's just choking on .kfx for some reason. |
You have KFX Input installed? |
Yes, KFX Input is installed and enabled and the "Allow import of KFX format books from Kindles" setting is checked (although I also tried without checking that once and it still didn't work). I also get the lines above about Gather KFX-ZIP running so I'm pretty sure it's using KFX Input to try to read the files. |
You're adding the books from D:\documents\Downloads\Items01 (if D: is your Kindle) Leave everything in its original folder structure. |
Amazon made me install a utility that just opens up a file manager to the Kindle storage so I couldn't get calibre to reference that path directly, and I've never been able to get calibre to connect directly to my Scribe as a device. However, I did notice that each book had a matching .sdr folder, so I copied both the .sdr folder and the .kfx file to my Mac desktop and ran calibre on that. It won't display the KFX format for some reason (not sure if the reader just doesn't know how to render it or if I need to tweak the KFX Input plugin some more) but I can convert to epub or mobi without problems. Thank you for the advice! |
Oh, sorry, I was looking at my Oasis plugged into a Windows machine and forgetting about the Scribe using MTP. To read KFX in the calibre ebook viewer, go to Preferences > Behavior and check KFX in the right column of formats to use the internal viewer. |
I'm having the same problem; the files start off as .azw files downloading using the Windows 10 Kindle App (ver 2.4.0 70904). Drag and drop into Calibre and they get unpacked as .KFX-ZIP, I have DeDRM 10.0.3 and KFX Input 2.19.0 installed, enabled, and configured per instructions and showing up in the file types, but attempting to open or convert the files gives the DRM message. .azw files that unpack into MOBI with DRM are able to remove DRM and convert just fine; so it's something specific to the KFX-ZIP :\ |
Having the same issues here. I have Kfx Input and DeDRM plugins installed. I added my Paperwhite serial number to the DeDRM plugin configuration, but the books keep being imported as KFX-ZIP in my Calibre library :( |
Update to DeDRM 10.0.9: https://github.com/noDRM/DeDRM_tools/releases/tag/v10.0.9 |
Sorry, here's the correct link:
https://github.com/noDRM/DeDRM_tools/releases/tag/v10.0.9
…On Wed, Feb 19, 2025, 9:34 AM ShadowDrakken ***@***.***> wrote:
Update to DeDRM 10.0.9: https://github.com/noDRM/DeDRM_tools
Latest, from that link, is 10.0.3
—
Reply to this email directly, view it on GitHub
<#725 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACYUWTNOTQGATWYJQZRRQ2T2QSI6RAVCNFSM6AAAAABXG45P42VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNRYHAZTGOBZGE>
.
You are receiving this because you commented.Message ID:
***@***.***>
[image: ShadowDrakken]*ShadowDrakken* left a comment
(noDRM/DeDRM_tools#725)
<#725 (comment)>
Update to DeDRM 10.0.9: https://github.com/noDRM/DeDRM_tools
Latest, from that link, is 10.0.3
—
Reply to this email directly, view it on GitHub
<#725 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACYUWTNOTQGATWYJQZRRQ2T2QSI6RAVCNFSM6AAAAABXG45P42VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNRYHAZTGOBZGE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
calibre, version 7.26.0
ApplicationPaletteChange event ignored
Using calibre Qt style: True
qt.gui.imageio: libpng warning: iCCP: known incorrect sRGB profile
2025-02-15 17:42:18.329 calibre-debug[62171:4839466] +[IMKClient subclass]: chose IMKClient_Modern
2025-02-15 17:42:18.329 calibre-debug[62171:4839466] +[IMKInputSession subclass]: chose IMKInputSession_Modern
calibre Debug log
calibre 7.26 embedded-python: True
macOS-15.3-arm64-arm-64bit Darwin ('64bit', '')
('Darwin', '24.3.0', 'Darwin Kernel Version 24.3.0: Thu Jan 2 20:24:23 PST 2025; root:xnu-11215.81.4
3/RELEASE_ARM64_T6020')3/RELEASE_ARM64_T6020')Python 3.11.5
OSX: ('15.3', ('', '', ''), 'arm64')
Interface language: None
EXE path: /Applications/calibre.app/Contents/MacOS/calibre-debug
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (2, 19, 0) && DeDRM (10, 0, 9) && Package KFX (from KFX Input) (2, 19, 0) && KFX metadata reader (from KFX Input) (2, 19, 0) && From KFX (2, 19, 0) && KFX Input (2, 19, 0) && Set KFX metadata (from KFX Output) (2, 13, 0) && KFX Output (2, 13, 0)
calibre 7.26 embedded-python: True
macOS-15.3-arm64-arm-64bit Darwin ('64bit', '')
('Darwin', '24.3.0', 'Darwin Kernel Version 24.3.0: Thu Jan 2 20:24:23 PST 2025; root:xnu-11215.81.4
Python 3.11.5
OSX: ('15.3', ('', '', ''), 'arm64')
Interface language: None
EXE path: /Applications/calibre.app/Contents/MacOS/calibre-debug
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (2, 19, 0) && DeDRM (10, 0, 9) && Package KFX (from KFX Input) (2, 19, 0) && KFX metadata reader (from KFX Input) (2, 19, 0) && From KFX (2, 19, 0) && KFX Input (2, 19, 0) && Set KFX metadata (from KFX Output) (2, 13, 0) && KFX Output (2, 13, 0)
QPA platform: cocoa
devicePixelRatio: 2.0
logicalDpi: 72.0 x 72.0
physicalDpi: 127.50000191485792 x 127.50000191485789
[0.00] Starting up...
[0.02] Showing splash screen...
[1.19] splash screen shown
[1.19] Initializing db...
[1.20] db initialized
[1.20] Constructing main UI...
[1.69] GUI main window shown
[1.71] main UI initialized...
[1.71] Hiding splash screen
[1.76] splash screen hidden
[1.76] Started up in 1.76 seconds with 152 books
2025-02-15 17:42:35.746 calibre-debug[62171:4839466] The class 'NSOpenPanel' overrides the method identifier. This method is implemented by class 'NSWindow'
Gather KFX-ZIP (from KFX Input) 2.19.0: Importing /Users/sotobase/Documents/My Kindle Content/B0C39XSMWN_EBOK/B0C39XSMWN_EBOK.azw
Gather KFX-ZIP (from KFX Input): Gathered 4 file(s) as /var/folders/zd/r0m2lyds4hdg4dvn23tcqvdc0000gn/C/calibre_7.26.0_tmp_lhm_0sk_/ttqcg2x3.kfx-zip
DeDRM v10.0.9: Trying to decrypt ttqcg2x3.kfx-zip
Decrypting KFX-ZIP ebook: ttqcg2x3
Found 0 keys to try after 0.3 seconds
Decrypting KFX DRM voucher: amzn1.drm-voucher.v1.2abe10d9-1d6e-454a-a120-671b25ed98c5.voucher
Decryption failed, trying next fallback
Decryption failed, trying next fallback
Decryption failed, trying next fallback
Decryption failed, trying next fallback
Decryption failed, trying next fallback
Decryption failed, trying next fallback
Decryption failed, trying next fallback
Decryption failed, trying next fallback
Decryption failed, trying next fallback
Decryption failed, trying next fallback
Decryption failed, trying next fallback
Decryption failed, trying next fallback
Decryption failed, trying next fallback
Traceback (most recent call last):
File "/Users/sotobase/Library/Preferences/calibre/plugins/DeDRM.zip/kfxdedrm.py", line 105, in decrypt_voucher
voucher.decryptvoucher()
File "/Users/sotobase/Library/Preferences/calibre/plugins/DeDRM.zip/ion.py", line 1368, in decryptvoucher
raise ex
^^
UnboundLocalError: cannot access local variable 'ex' where it is not associated with a value
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.3 seconds
No k4Mac kindle-info/rainier/kinf2011 files have been found.
DeDRM v10.0.9: Ultimately failed to decrypt after 0.3 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
book = k4mobidedrm.GetDecryptedBook(path_to_ebook,kindleDatabases,androidFiles,serials,pids,self.starttime)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/sotobase/Library/Preferences/calibre/plugins/DeDRM.zip/k4mobidedrm.py", line 203, in GetDecryptedBook
mb.processBook(totalpids)
File "/Users/sotobase/Library/Preferences/calibre/plugins/DeDRM.zip/kfxdedrm.py", line 67, in processBook
self.decrypt_voucher(totalpids)
File "/Users/sotobase/Library/Preferences/calibre/plugins/DeDRM.zip/kfxdedrm.py", line 111, in decrypt_voucher
raise Exception("Failed to decrypt KFX DRM voucher with any key")
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 200, in run_filetype_plugins
File "calibre_plugins.dedrm.init", line 1030, in run
decrypted_ebook = self.KindleMobiDecrypt(path_to_ebook)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "calibre_plugins.dedrm.init", line 981, in KindleMobiDecrypt
raise DeDRMError("{0} v{1}: Ultimately failed to decrypt after {2:.1f} seconds. Read the FAQs at noDRM's repository: https://github.com/noDRM/DeDRM_tools/blob/master/FAQs.md".format(PLUGIN_NAME, PLUGIN_VERSION,time.time()-self.starttime))
calibre_plugins.dedrm.DeDRMError: DeDRM v10.0.9: Ultimately failed to decrypt after 0.3 seconds. Read the FAQs at noDRM's repository: https://github.com/noDRM/DeDRM_tools/blob/master/FAQs.md
Package KFX (from KFX Input) 2.19.0: Packaging /var/folders/zd/r0m2lyds4hdg4dvn23tcqvdc0000gn/C/calibre_7.26.0_tmp_lhm_0sk/ttqcg2x3.kfx-zip
Processing container: B0C39XSMWN_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 200, in run_filetype_plugins
File "calibre_plugins.kfx_input.package_filetype", line 23, in run
return self.package_kfx(path_to_ebook)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "calibre_plugins.kfx_input.package_filetype", line 34, in package_kfx
kfx_data = YJ_Book(path_to_ebook).convert_to_single_kfx()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "calibre_plugins.kfx_input.kfxlib.yj_book", line 80, in convert_to_single_kfx
self.decode_book()
File "calibre_plugins.kfx_input.kfxlib.yj_book", line 214, in decode_book
container = self.get_container(datafile)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "calibre_plugins.kfx_input.kfxlib.yj_book", line 332, in get_container
raise KFXDRMError("Book container %s has DRM and cannot be converted" % datafile.name)
calibre_plugins.kfx_input.kfxlib.utilities.KFXDRMError: Book container B0C39XSMWN_EBOK.azw has DRM and cannot be converted
KFX metadata reader (from KFX Input) activated for /var/folders/zd/r0m2lyds4hdg4dvn23tcqvdc0000gn/C/calibre_7.26.0_tmp_lhm_0sk/wjk54nxr_add_books/0/B0C39XSMWN_EBOK.kfx-zip
Added Olivetti to db in: 0.0
Added 1 books in 0.8 seconds
qt.qpa.fonts: Populating font family aliases took 51 ms. Replace uses of missing font family "Times" with one that exists to avoid this cost.
Failed to request permission for showing notification: The operation couldn’t be completed. (UNErrorDomain error 1.)
Worker Launch took: 0.04 seconds
Job: 0 Convert book 1 of 1 (Olivetti) finished
Convert book 1 of 1 (Olivetti)
DeDRM v10.0.9: Trying to decrypt c00hlnh9.kfx-zip
Decrypting KFX-ZIP ebook: c00hlnh9
Found 0 keys to try after 0.3 seconds
Decrypting KFX DRM voucher: amzn1.drm-voucher.v1.2abe10d9-1d6e-454a-a120-671b25ed98c5.voucher
Decryption failed, trying next fallback
Decryption failed, trying next fallback
Decryption failed, trying next fallback
Decryption failed, trying next fallback
Decryption failed, trying next fallback
Decryption failed, trying next fallback
Decryption failed, trying next fallback
Decryption failed, trying next fallback
Decryption failed, trying next fallback
Decryption failed, trying next fallback
Decryption failed, trying next fallback
Decryption failed, trying next fallback
Decryption failed, trying next fallback
Traceback (most recent call last):
File "/Users/sotobase/Library/Preferences/calibre/plugins/DeDRM.zip/kfxdedrm.py", line 105, in decrypt_voucher
voucher.decryptvoucher()
File "/Users/sotobase/Library/Preferences/calibre/plugins/DeDRM.zip/ion.py", line 1368, in decryptvoucher
raise ex
^^
UnboundLocalError: cannot access local variable 'ex' where it is not associated with a value
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.3 seconds
No k4Mac kindle-info/rainier/kinf2011 files have been found.
DeDRM v10.0.9: Ultimately failed to decrypt after 0.3 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
book = k4mobidedrm.GetDecryptedBook(path_to_ebook,kindleDatabases,androidFiles,serials,pids,self.starttime)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/sotobase/Library/Preferences/calibre/plugins/DeDRM.zip/k4mobidedrm.py", line 203, in GetDecryptedBook
mb.processBook(totalpids)
File "/Users/sotobase/Library/Preferences/calibre/plugins/DeDRM.zip/kfxdedrm.py", line 67, in processBook
self.decrypt_voucher(totalpids)
File "/Users/sotobase/Library/Preferences/calibre/plugins/DeDRM.zip/kfxdedrm.py", line 111, in decrypt_voucher
raise Exception("Failed to decrypt KFX DRM voucher with any key")
Exception: Failed to decrypt KFX DRM voucher with any key
[257.67] Shutdown starting...
[259.94] Shutdown complete, quitting...
The text was updated successfully, but these errors were encountered: