Skip to content
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

De-DRM Not Working #734

Open
kguttenberg opened this issue Feb 20, 2025 · 3 comments
Open

De-DRM Not Working #734

kguttenberg opened this issue Feb 20, 2025 · 3 comments

Comments

@kguttenberg
Copy link

The plugin has been working on the majority of files, but this one book is giving me issues (Crip Authorship by Mara Mills and Rebecca Sanchez).

I'm using the "download and transfer via USB" on my mac and firefox as my browser. idk if you need any more info

ApplicationPaletteChange event ignored
Using calibre Qt style: True
Failed to load resource: 'commit.txt' from the plugin zip file: /Users/katieguttenberg/Library/Preferences/calibre/plugins/OverDrive Libby.zip
Traceback (most recent call last):
File "calibre/customize/zipplugin.py", line 46, in get_resources
File "zipfile.py", line 1510, in read
File "zipfile.py", line 1547, in open
File "zipfile.py", line 1476, in getinfo
KeyError: "There is no item named 'commit.txt' in the archive"
calibre Debug log
calibre 7.26 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:16:51 PDT 2024; root:xnu-10063.121.35/RELEASE_ARM64_T8103')
Python 3.11.5
OSX: ('14.5', ('', '', ''), 'arm64')
Interface language: None
EXE path: /private/var/folders/gn/n203w1nx5z18y30svy5h0r580000gn/T/AppTranslocation/F39F067F-3D33-4249-958B-BE34B7F1F9F5/d/calibre.app/Contents/MacOS/calibre-debug
Successfully initialized third party plugins: DeDRM (10, 0, 9) && Goodreads Sync (1, 16, 11) && OverDrive Libby (0, 2, 3) && Reading Goal (1, 8, 8)
calibre 7.26 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:16:51 PDT 2024; root:xnu-10063.121.3
5/RELEASE_ARM64_T8103')
Python 3.11.5
OSX: ('14.5', ('', '', ''), 'arm64')
Interface language: None
EXE path: /private/var/folders/gn/n203w1nx5z18y30svy5h0r580000gn/T/AppTranslocation/F39F067F-3D33-4249-958B-BE34B7F1F9F5/d/calibre.app/Contents/MacOS/calibre-debug
Successfully initialized third party plugins: DeDRM (10, 0, 9) && Goodreads Sync (1, 16, 11) && OverDrive Libby (0, 2, 3) && Reading Goal (1, 8, 8)
QPA platform: cocoa
devicePixelRatio: 2.0
logicalDpi: 72.0 x 72.0
physicalDpi: 127.50000191485789 x 127.50000191485789
[0.00] Starting up...
[0.05] Showing splash screen...
[1.26] splash screen shown
[1.26] Initializing db...
[1.42] db initialized
[1.42] Constructing main UI...
[3.63] GUI main window shown
[3.85] main UI initialized...
[3.85] Hiding splash screen
[3.90] splash screen hidden
[3.90] Started up in 3.90 seconds with 1609 books
DeDRM v10.0.9: Trying to decrypt Crip Authorship.azw3
MobiDeDrm v1.1.
Copyright © 2008-2022 The Dark Reverser, Apprentice Harper et al.
Decrypting Kindle Format 8 ebook: Crip Authorship
Found 0 keys to try after 0.6 seconds
Crypto Type is: 2
DeDRM v10.0.9: Failed to decrypt with error: No key found in 0 PIDs tried.
DeDRM v10.0.9: Looking for new default Kindle Key after 0.6 seconds
Found k4Mac kinf2018 file: /Users/katieguttenberg/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2018
trying username b'katieguttenberg' on file /Users/katieguttenberg/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2018
trying IDString: b'1f4a45ec9b61'
trying IDString: b'1f4a45ec9b60'
trying IDString: b'93042d202e25'
trying IDString: b'bd9b4ae177c5'
Decrypted key file using IDString 'bd9b4ae177c5' and UserName 'katieguttenberg'
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: Crip Authorship
Got DSN key from database key_0
Found 4 keys to try after 1.2 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/katieguttenberg/Library/Preferences/calibre/plugins/DeDRM.zip/k4mobidedrm.py", line 203, in GetDecryptedBook
mb.processBook(totalpids)
File "/Users/katieguttenberg/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 0 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/katieguttenberg/Library/Preferences/calibre/plugins/DeDRM.zip/k4mobidedrm.py", line 203, in GetDecryptedBook
mb.processBook(totalpids)
File "/Users/katieguttenberg/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 1.2 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/katieguttenberg/Library/Preferences/calibre/plugins/DeDRM.zip/k4mobidedrm.py", line 203, in GetDecryptedBook
mb.processBook(totalpids)
File "/Users/katieguttenberg/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 0 PIDs tried.

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 1.2 seconds. Read the FAQs at noDRM's repository: https://github.com/noDRM/DeDRM_tools/blob/master/FAQs.md
Path override failed for key base::DIR_APP_DICTIONARIES and path '/private/var/folders/gn/n203w1nx5z18y30svy5h0r580000gn/T/AppTranslocation/F39F067F-3D33-4249-958B-BE34B7F1F9F5/d/calibre.app/Contents/MacOS/qtwebengine_dictionaries'
Path override failed for key base::DIR_APP_DICTIONARIES and path '/private/var/folders/gn/n203w1nx5z18y30svy5h0r580000gn/T/AppTranslocation/F39F067F-3D33-4249-958B-BE34B7F1F9F5/d/calibre.app/Contents/MacOS/qtwebengine_dictionaries'
Path override failed for key base::DIR_APP_DICTIONARIES and path '/private/var/folders/gn/n203w1nx5z18y30svy5h0r580000gn/T/AppTranslocation/F39F067F-3D33-4249-958B-BE34B7F1F9F5/d/calibre.app/Contents/Frameworks/QtWebEngineCore.framework/Versions/A/Helpers/QtWebEngineProcess.app/Contents/MacOS/qtwebengine_dictionaries'
Path override failed for key base::DIR_APP_DICTIONARIES and path '/private/var/folders/gn/n203w1nx5z18y30svy5h0r580000gn/T/AppTranslocation/F39F067F-3D33-4249-958B-BE34B7F1F9F5/d/calibre.app/Contents/Frameworks/QtWebEngineCore.framework/Versions/A/Helpers/QtWebEngineProcess.app/Contents/MacOS/qtwebengine_dictionaries'
Path override failed for key base::DIR_APP_DICTIONARIES and path '/private/var/folders/gn/n203w1nx5z18y30svy5h0r580000gn/T/AppTranslocation/F39F067F-3D33-4249-958B-BE34B7F1F9F5/d/calibre.app/Contents/Frameworks/QtWebEngineCore.framework/Versions/A/Helpers/QtWebEngineProcess.app/Contents/MacOS/qtwebengine_dictionaries'
Path override failed for key base::DIR_APP_DICTIONARIES and path '/private/var/folders/gn/n203w1nx5z18y30svy5h0r580000gn/T/AppTranslocation/F39F067F-3D33-4249-958B-BE34B7F1F9F5/d/calibre.app/Contents/Frameworks/QtWebEngineCore.framework/Versions/A/Helpers/QtWebEngineProcess.app/Contents/MacOS/qtwebengine_dictionaries'
Added Crip Authorship to db in: 0.3
Added 1 books in 4.6 seconds
Worker Launch took: 0.00 seconds
Worker Launch took: 0.01 seconds
[108.68] Shutdown starting...
[111.22] Shutdown complete, quitting...

@ElleKayEm
Copy link

Did you choose an E-ink Kindle (not a Fire) when downloading this book? It does not look like you have the Kindle's serial number entered in DeDRM's customization.

@kguttenberg
Copy link
Author

I haven't needed my serial number for anything else, idk where to find that on the device. Its definitely e-ink though.

@ElleKayEm
Copy link

Then those books were already DRM-free. You can find your Kindle's serial number on your devices page at Amazon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants