apprenticeharper / DeDRM_tools

DeDRM tools for ebooks
14.56k stars 1.52k forks source link

[QUESTION] Title Calibre can't remove DRM #2362

Closed Crazyloup closed 1 month ago

Crazyloup commented 1 month ago

CheckList


Title

My Environment

Calibre: Version6.11.0

Kindle: Versionbooks downloaded directly from amazon via USB to my Mac

DeDRM: Version10.0.9

Log

Log Title ```log PUT YOUR LOG Using calibre Qt style: True calibre Journal de débogage calibre 6.11 embedded-python: True macOS-11.7.10-x86_64-i386-64bit Darwin ('64bit', '') ('Darwin', '20.6.0', 'Darwin Kernel Version 20.6.0: Thu Jul 6 22:12:47 PDT 2023; root:xnu-7195.141.49.702.12~1/RELEASE_X86_64') Python 3.10.1 OSX: ('11.7.10', ('', '', ''), 'x86_64') Interface language: fr Successfully initialized third party plugins: DeDRM (10, 0, 9) calibre 6.11 embedded-python: True macOS-11.7.10-x86_64-i386-64bit Darwin ('64bit', '') ('Darwin', '20.6.0', 'Darwin Kernel Version 20.6.0: Thu Jul 6 22:12:47 PDT 2023; root:xnu-7195.141.49.702.12~1/RELEASE_X86_64') Python 3.10.1 OSX: ('11.7.10', ('', '', ''), 'x86_64') Interface language: fr Successfully initialized third party plugins: DeDRM (10, 0, 9) QPA platform: cocoa devicePixelRatio: 2.0 logicalDpi: 72.0 x 72.0 physicalDpi: 132.00000198244115 x 132.50000198995036 [0.00] Starting up... [0.03] Showing splash screen... [0.19] splash screen shown [0.19] Initializing db... [0.20] db initialized [0.20] Constructing main UI... Screens currently in system: {'depth': 24, 'device_pixel_ratio': 2.0, 'geometry_in_logical_pixels': {'height': 1120, 'width': 1792, 'x': 0, 'y': 0}, 'index_in_screens_list': 0, 'manufacturer': '', 'model': '', 'name': 'Color LCD', 'serial': '', 'size_in_logical_pixels': {'height': 1120, 'width': 1792}, 'virtual_geometry': {'height': 1120, 'width': 1792, 'x': 0, 'y': 0}} Restoring geometry for: calibre_main_window_geometry {'frame_geometry': {'height': 550, 'width': 933, 'x': 793, 'y': 161}, 'full_screened': False, 'geometry': {'height': 522, 'width': 933, 'x': 793, 'y': 189}, 'maximized': False, 'normal_geometry': {'height': 522, 'width': 933, 'x': 793, 'y': 189}, 'screen': {'depth': 24, 'device_pixel_ratio': 2.0, 'geometry_in_logical_pixels': {'height': 1120, 'width': 1792, 'x': 0, 'y': 0}, 'index_in_screens_list': 0, 'manufacturer': '', 'model': '', 'name': 'Color LCD', 'serial': '', 'size_in_logical_pixels': {'height': 1120, 'width': 1792}, 'virtual_geometry': {'height': 1120, 'width': 1792, 'x': 0, 'y': 0}}} Matching screen: {'depth': 24, 'device_pixel_ratio': 2.0, 'geometry_in_logical_pixels': {'height': 1120, 'width': 1792, 'x': 0, 'y': 0}, 'index_in_screens_list': 0, 'manufacturer': '', 'model': '', 'name': 'Color LCD', 'serial': '', 'size_in_logical_pixels': {'height': 1120, 'width': 1792}, 'virtual_geometry': {'height': 1120, 'width': 1792, 'x': 0, 'y': 0}} Setting widget geometry to: {'height': 522, 'width': 933, 'x': 793, 'y': 189} [0.73] main UI initialized... [0.73] Hiding splash screen Starting QuickView [3.48] splash screen hidden [3.48] Started up in 3.48 seconds with 22 books DeDRM v10.0.9: Trying to decrypt A hauteur des nuages (French Edition).azw3 DeDRM v10.0.9: Trying to decrypt La Voie du tarot (French Edition).azw3 DeDRM v10.0.9: Trying to decrypt Le Tirage astrologique du Tarot (French Edition).azw3 MobiDeDrm v1.1. Copyright © 2008-2022 The Dark Reverser, Apprentice Harper et al. Decrypting Kindle Format 8 ebook: A hauteur des nuages (French Edition) 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/christianrossier/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2018 trying username b'christianrossier' on file /Users/christianrossier/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2018 trying IDString: b'5d5a6777f40b' MobiDeDrm v1.1. Copyright © 2008-2022 The Dark Reverser, Apprentice Harper et al. MobiDeDrm v1.1. Copyright © 2008-2022 The Dark Reverser, Apprentice Harper et al. Decrypting Kindle Format 8 ebook: Le Tirage astrologique du Tarot (French Edition) 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 Decrypting Kindle Format 8 ebook: La Voie du tarot (French Edition) Found 0 keys to try after 0.7 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.7 seconds Found k4Mac kinf2018 file: /Users/christianrossier/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2018 Found k4Mac kinf2018 file: /Users/christianrossier/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2018 trying username b'christianrossier' on file /Users/christianrossier/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2018 trying IDString: b'5d5a6777f40b' trying username b'christianrossier' on file /Users/christianrossier/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2018 trying IDString: b'5d5a6777f40b' Decrypted key file using IDString '5d5a6777f40b' and UserName 'christianrossier' 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: A hauteur des nuages (French Edition) Got DSN key from database key_0 Found 4 keys to try after 0.9 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/christianrossier/Library/Preferences/calibre/plugins/DeDRM.zip/k4mobidedrm.py", line 203, in GetDecryptedBook mb.processBook(totalpids) File "/Users/christianrossier/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/christianrossier/Library/Preferences/calibre/plugins/DeDRM.zip/k4mobidedrm.py", line 203, in GetDecryptedBook mb.processBook(totalpids) File "/Users/christianrossier/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 0.9 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/christianrossier/Library/Preferences/calibre/plugins/DeDRM.zip/k4mobidedrm.py", line 203, in GetDecryptedBook mb.processBook(totalpids) File "/Users/christianrossier/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 178, 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.9 seconds. Read the FAQs at noDRM's repository: https://github.com/noDRM/DeDRM_tools/blob/master/FAQs.md Decrypted key file using IDString '5d5a6777f40b' and UserName 'christianrossier' DeDRM v10.0.9: Found 1 new key MobiDeDrm v1.1. Copyright © 2008-2022 The Dark Reverser, Apprentice Harper et al. Decrypted key file using IDString '5d5a6777f40b' and UserName 'christianrossier' 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: Le Tirage astrologique du Tarot (French Edition) Got DSN key from database key_0 Found 4 keys to try after 0.9 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/christianrossier/Library/Preferences/calibre/plugins/DeDRM.zip/k4mobidedrm.py", line 203, in GetDecryptedBook mb.processBook(totalpids) File "/Users/christianrossier/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/christianrossier/Library/Preferences/calibre/plugins/DeDRM.zip/k4mobidedrm.py", line 203, in GetDecryptedBook mb.processBook(totalpids) File "/Users/christianrossier/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 0.9 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/christianrossier/Library/Preferences/calibre/plugins/DeDRM.zip/k4mobidedrm.py", line 203, in GetDecryptedBook mb.processBook(totalpids) File "/Users/christianrossier/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 178, 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.9 seconds. Read the FAQs at noDRM's repository: https://github.com/noDRM/DeDRM_tools/blob/master/FAQs.md Decrypting Kindle Format 8 ebook: La Voie du tarot (French Edition) Got DSN key from database key_0 Found 4 keys to try after 1.0 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/christianrossier/Library/Preferences/calibre/plugins/DeDRM.zip/k4mobidedrm.py", line 203, in GetDecryptedBook mb.processBook(totalpids) File "/Users/christianrossier/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/christianrossier/Library/Preferences/calibre/plugins/DeDRM.zip/k4mobidedrm.py", line 203, in GetDecryptedBook mb.processBook(totalpids) File "/Users/christianrossier/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.0 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/christianrossier/Library/Preferences/calibre/plugins/DeDRM.zip/k4mobidedrm.py", line 203, in GetDecryptedBook mb.processBook(totalpids) File "/Users/christianrossier/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 178, 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.0 seconds. Read the FAQs at noDRM's repository: https://github.com/noDRM/DeDRM_tools/blob/master/FAQs.md
ElleKayEm commented 1 month ago

Will only work if you choose an E-ink Kindle (not a Fire) for the device. You also need to add that E-ink Kindle's serial number to DeDRM's customization.

Crazyloup commented 1 month ago

I found the solution ! 😉