Closed slucyk closed 4 months ago
If that is from or for an E-ink Kindle (not a Fire), then you need to correctly enter that Kindle's serial number into DeDRM's customization.
Yeah I added the serial number. Im wondering if it's because the kindle is so old and barely functional (I think it's over 10 yrs old). I tried it with another kindle linked to my account and had the same issue where it was unable to remove the DRM
An old Kindle is not an issue as long as it is E-ink and not a Fire. If you are you downloading from the website, make sure you have chosen the correct device. And make sure the serial number is entered correctly by copy and pasting it from the website. After you have entered the serial number, restart calibre before re-adding the book.
I tried it again on my newer Kindle and reinstalled Calibre and the DeDRM plugin and IT WORKED! Thanks so much. Appreciate the help!
If you're all set, then you can close the issue.
Question / bug report
ApplicationPaletteChange event ignored Using calibre Qt style: True 2024-07-31 10:32:17.521 calibre-debug[25741:2706919] WARNING: Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState: and returning YES. qt.gui.imageio: libpng warning: iCCP: known incorrect sRGB profile calibre Debug log calibre 7.15 embedded-python: True macOS-14.5-arm64-arm-64bit Darwin ('64bit', '') ('Darwin', '23.5.0', 'Darwin Kernel Version 23.5.0: Wed May 1 20:12:58 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6000') Python 3.11.5 OSX: ('14.5', ('', '', ''), '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, 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) calibre 7.15 embedded-python: True macOS-14.5-arm64-arm-64bit Darwin ('64bit', '') ('Darwin', '23.5.0', 'Darwin Kernel Version 23.5.0: Wed May 1 20:12:58 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6000') Python 3.11.5 OSX: ('14.5', ('', '', ''), '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, 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) QPA platform: cocoa devicePixelRatio: 2.0 logicalDpi: 72.0 x 72.0 physicalDpi: 127.50000191485792 x 127.50000191485789 [0.00] Starting up... [0.01] Showing splash screen... [0.15] splash screen shown [0.15] Initializing db... [0.15] db initialized [0.15] Constructing main UI... [0.67] GUI main window shown [0.70] main UI initialized... [0.70] Hiding splash screen DeDRM v10.0.9: Trying to decrypt The Ink Black Heart (A Cormoran Strike Novel).azw3 MobiDeDrm v1.1. Copyright © 2008-2022 The Dark Reverser, Apprentice Harper et al. Decrypting Kindle Format 8 ebook: The Ink Black Heart (A Cormoran Strike Novel) Found 2 keys to try after 0.3 seconds Crypto Type is: 2 DeDRM v10.0.9: Failed to decrypt with error: No key found in 2 PIDs tried. DeDRM v10.0.9: Looking for new default Kindle Key after 0.3 seconds Found k4Mac kinf2018 file: /Users/scottlucyk/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2018 [17.71] splash screen hidden [17.71] Started up in 17.71 seconds with 1 books trying username b'scottlucyk' on file /Users/scottlucyk/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2018 trying IDString: b'ff6daaf6c44a' trying IDString: b'ff6daaf6c455' trying IDString: b'ff6daaf6c454' trying IDString: b'939796b1eee5' trying IDString: b'51712d0ec090' Decrypted key file using IDString '51712d0ec090' and UserName 'scottlucyk' DeDRM v10.0.9: Found 1 new key MobiDeDrm v1.1. Copyright © 2008-2022 The Dark Reverser, Apprentice Harper et al. Decrypting Kindle Format 8 ebook: The Ink Black Heart (A Cormoran Strike Novel) Got DSN key from database key_0 Found 4 keys to try after 3.5 seconds Crypto Type is: 2 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/scottlucyk/Library/Preferences/calibre/plugins/DeDRM.zip/k4mobidedrm.py", line 203, in GetDecryptedBook mb.processBook(totalpids) File "/Users/scottlucyk/Library/Preferences/calibre/plugins/DeDRM.zip/mobidedrm.py", line 401, in processBook raise DrmException("No key found in {0:d} PIDs tried.".format(len(goodpids))) mobidedrm.DrmException: No key found in 2 PIDs tried.
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "calibre_plugins.dedrm.init", line 965, in KindleMobiDecrypt book = k4mobidedrm.GetDecryptedBook(path_to_ebook,newkeys.items(),[],[],[],self.starttime) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/scottlucyk/Library/Preferences/calibre/plugins/DeDRM.zip/k4mobidedrm.py", line 203, in GetDecryptedBook mb.processBook(totalpids) File "/Users/scottlucyk/Library/Preferences/calibre/plugins/DeDRM.zip/mobidedrm.py", line 401, in processBook raise DrmException("No key found in {0:d} PIDs tried.".format(len(goodpids))) mobidedrm.DrmException: No key found in 4 PIDs tried. DeDRM v10.0.9: Ultimately failed to decrypt after 3.5 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/scottlucyk/Library/Preferences/calibre/plugins/DeDRM.zip/k4mobidedrm.py", line 203, in GetDecryptedBook mb.processBook(totalpids) File "/Users/scottlucyk/Library/Preferences/calibre/plugins/DeDRM.zip/mobidedrm.py", line 401, in processBook raise DrmException("No key found in {0:d} PIDs tried.".format(len(goodpids))) mobidedrm.DrmException: No key found in 2 PIDs tried.
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 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 3.5 seconds. Read the FAQs at noDRM's repository: https://github.com/noDRM/DeDRM_tools/blob/master/FAQs.md Added The Ink Black Heart (A Cormoran Strike Novel) to db in: 0.0 Added 1 books in 3.8 seconds
Which version of Calibre are you running?
7.15
Which version of the DeDRM plugin are you running?
v10.0.9
If applicable, which version of the Kindle software are you running?
Unsure. Very old.
Log output