apprenticeharper / DeDRM_tools

DeDRM tools for ebooks
14.49k stars 1.5k forks source link

Debug report when DeDRM did not work #2020

Closed sachama2 closed 1 year ago

sachama2 commented 2 years ago

e-book acquired today from Amazon. iMac M1 2021 Monterey 12.12.1

calibre Journal de débogage calibre 5.37 embedded-python: True is64bit: True macOS-10.16-x86_64-i386-64bit Darwin ('64bit', '') ('Darwin', '21.3.0', 'Darwin Kernel Version 21.3.0: Wed Jan 5 21:37:58 PST 2022; root:xnu-8019.80.24~20/RELEASE_ARM64_T8101') Python 3.8.5 OSX: ('10.16', ('', '', ''), 'x86_64') Interface language: fr Successfully initialized third party plugins: DeDRM (7, 2, 1) && EpubSplit (2, 7, 0) calibre 5.37 embedded-python: True is64bit: True macOS-10.16-x86_64-i386-64bit Darwin ('64bit', '') ('Darwin', '21.3.0', 'Darwin Kernel Version 21.3.0: Wed Jan 5 21:37:58 PST 2022; root:xnu-8019.80.24~20/RELEASE_ARM64_T8101') Python 3.8.5 OSX: ('10.16', ('', '', ''), 'x86_64') Interface language: fr Successfully initialized third party plugins: DeDRM (7, 2, 1) && EpubSplit (2, 7, 0) devicePixelRatio: 2.0 logicalDpi: 72.0 x 72.0 physicalDpi: 109.00000163701577 x 109.00000163701577 Using calibre Qt style: True [0.00] Starting up... [0.02] Showing splash screen... [0.19] splash screen shown [0.19] Initializing db... [0.26] db initialized [0.26] Constructing main UI... [0.88] main UI initialized... [0.88] Hiding splash screen Starting QuickView SMART_DEV ( 0.00: 0.000) _attach_to_port try ip address "" on port 9090 SMART_DEV ( 0.87: 0.823) _startup_on_demand listening on port 9090 SMART_DEV ( 0.91: 0.001) _attach_to_port try ip address "" on port 54982 SMART_DEV ( 0.94: 0.000) _startup_on_demand broadcast socket listening on port 54982 DeDRM v7.2.1: Trying to decrypt B09SBQ9LBV_EBOK.azw Using Library AlfCrypto Python Using Library AlfCrypto Python DeDRM v7.2.1: Failed to decrypt with error: The .kfx DRMION file cannot be decrypted by itself. A .kfx-zip archive containing a DRM voucher is required. DeDRM v7.2.1: Looking for new default Kindle Key after 0.4 seconds Found k4Mac kinf2018 file: /Users/Sacha/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2018 Found k4Mac kinf2018 file: /Users/Sacha/Library/Application Support/Kindle/storage/.kinf2018 Found k4Mac kinf2011 file: /Users/Sacha/Library/Application Support/Kindle/storage/.kinf2011 trying username b'Sacha' on file /Users/Sacha/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2018 trying IDString: b'99035300d348' Decrypted key file using IDString '99035300d348' and UserName 'Sacha' SMART_DEV ( 1.96: 1.007) run All IP addresses {'lo0': [{'addr': '127.0.0.1', 'netmask': '255.0.0.0', 'peer': '127.0.0.1'}], 'en1': [{'addr': '192.168.1.13', 'netmask': '255.255.255.0', 'broadcast': '192.168.1.255'}]} [10.30] splash screen hidden [10.30] Started up in 10.30 seconds with 2969 books trying username b'Sacha' on file /Users/Sacha/Library/Application Support/Kindle/storage/.kinf2018 trying IDString: b'99035300d348' trying IDString: b'13c5d4c30df5' trying IDString: b'13c5d4c30df4' trying IDString: b'9903536b24a1' trying IDString: b'939b61948465' trying IDString: b'939b61948461' trying IDString: b'939b61948465' trying IDString: b'disk3s1s1' trying IDString: b'disk3s6' trying IDString: b'disk3s2' trying IDString: b'disk3s4' trying IDString: b'disk1s2' trying IDString: b'disk1s1' trying IDString: b'disk1s3' trying IDString: b'disk3s5' trying IDString: b'9999999999' Couldn't decrypt file. trying username b'Sacha' on file /Users/Sacha/Library/Application Support/Kindle/storage/.kinf2011 trying IDString: b'99035300d348' trying IDString: b'13c5d4c30df5' trying IDString: b'13c5d4c30df4' trying IDString: b'9903536b24a1' trying IDString: b'939b61948465' trying IDString: b'939b61948461' trying IDString: b'939b61948465' trying IDString: b'disk3s1s1' trying IDString: b'disk3s6' trying IDString: b'disk3s2' trying IDString: b'disk3s4' trying IDString: b'disk1s2' trying IDString: b'disk1s1' trying IDString: b'disk1s3' trying IDString: b'disk3s5' trying IDString: b'9999999999' Couldn't decrypt file. DeDRM v7.2.1: Found 1 new key DeDRM v7.2.1: Ultimately failed to decrypt after 8.1 seconds. Read the FAQs at Harper's repository: https://github.com/apprenticeharper/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 540, in KindleMobiDecrypt book = k4mobidedrm.GetDecryptedBook(path_to_ebook,kindleDatabases,androidFiles,serials,pids,self.starttime) File "calibre_plugins.dedrm.k4mobidedrm", line 208, in GetDecryptedBook raise DrmException("The .kfx DRMION file cannot be decrypted by itself. A .kfx-zip archive containing a DRM voucher is required.") calibre_plugins.dedrm.k4mobidedrm.DrmException: The .kfx DRMION file cannot be decrypted by itself. A .kfx-zip archive containing a DRM voucher is required.

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "calibre/customize/ui.py", line 175, in _run_filetype_plugins File "calibre_plugins.dedrm.init", line 633, in run decrypted_ebook = self.KindleMobiDecrypt(path_to_ebook) File "calibre_plugins.dedrm.init", line 583, in KindleMobiDecrypt raise DeDRMError("{0} v{1}: Ultimately failed to decrypt after {2:.1f} seconds. Read the FAQs at Harper's repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md".format(PLUGIN_NAME, PLUGIN_VERSION,time.time()-self.starttime)) calibre_plugins.dedrm.DeDRMError: DeDRM v7.2.1: Ultimately failed to decrypt after 8.1 seconds. Read the FAQs at Harper's repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md Traceback (most recent call last): File "calibre/customize/ui.py", line 432, in get_file_type_metadata File "calibre/customize/builtins.py", line 257, in get_metadata File "calibre/ebooks/metadata/mobi.py", line 503, in get_metadata File "calibre/ebooks/mobi/reader/headers.py", line 293, in init File "calibre/ebooks/mobi/reader/headers.py", line 321, in identity calibre.ebooks.mobi.MobiError: Unknown book type: b'\x02\xa2\x81\xc4\xde\x02\x9d\x8c' Traceback (most recent call last): File "calibre/gui2/ui.py", line 135, in init File "calibre/gui2/ui.py", line 153, in init_iaction File "calibre/customize/init.py", line 624, in load_actual_plugin File "importlib/init.py", line 127, in import_module File "", line 1014, in _gcd_import File "", line 991, in _find_and_load File "", line 975, in _find_and_load_unlocked File "", line 671, in _load_unlocked File "calibre/customize/zipplugin.py", line 191, in exec_module File "calibre_plugins.epubsplit.epubsplit_plugin", line 14, in from ConfigParser import SafeConfigParser ModuleNotFoundError: No module named 'ConfigParser' Added B09SBQ9LBV EBOK to db in: 0.0 Added 1 books in 8.4 seconds

ElleKayEm commented 2 years ago

See this post: https://www.mobileread.com/forums/showthread.php?t=283371

And this: https://www.mobileread.com/forums/showpost.php?p=3819708&postcount=508

I also suggest using noDRM's updated DeDRM: https://github.com/noDRM/DeDRM_tools/releases/tag/v10.0.2

sachama2 commented 1 year ago

Hi, Everything worked for some time, but it is not working now. Should I use v10.0.2 or a newer one? Thanks

Le 20 févr. 2022 à 14:51, ElleKayEm @.***> a écrit :

See this post: https://www.mobileread.com/forums/showthread.php?t=283371

And this: https://www.mobileread.com/forums/showpost.php?p=3819708&postcount=508

I also suggest using noDRM's updated DeDRM: https://github.com/noDRM/DeDRM_tools/releases/tag/v10.0.2

— Reply to this email directly, view it on GitHub https://github.com/apprenticeharper/DeDRM_tools/issues/2020#issuecomment-1046242657, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMUBPBEMRMB733ZUPTZ5OADU4DWVNANCNFSM5O4J5SXQ. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you authored the thread.

ElleKayEm commented 1 year ago

Try DeDRM 10.0.3. And look at those other posts I linked to see what else you might need to do.

sachama2 commented 1 year ago

Thanks I posted a report #369 on Github

Le 11 juil. 2023 à 15:09, ElleKayEm @.***> a écrit :

Try DeDRM 10.0.3. And look at those other posts I linked to see what else you might need to do.

— Reply to this email directly, view it on GitHub https://github.com/apprenticeharper/DeDRM_tools/issues/2020#issuecomment-1630801408, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMUBPBBWMCOVTPVKFK3QBF3XPVGBPANCNFSM5O4J5SXQ. You are receiving this because you authored the thread.

ElleKayEm commented 1 year ago

Close this issue.