Help with debug
#1989
Replies: 2 comments 1 reply
-
First, I recommend using noDRM's DeDRM because it has some Kindle for Mac related improvements. Then I recommend avoiding KFX format if possible. Take a look at method 2 in this post: https://www.mobileread.com/forums/showthread.php?t=283371 And also this post: https://www.mobileread.com/forums/showpost.php?p=3819708&postcount=508 |
Beta Was this translation helpful? Give feedback.
1 reply
-
It looks like you're still using the older DeDRM v7.2.1. This version has a typo in the Mac key retrieval script. Try the latest DeDRM v10.0.2. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm really new at this but I'm trying to dedrm a textbook I've downloaded for school through the Kindle App. I would really appreciate it if you could look it over for me and figure out what I'm doing wrong. Thanks! I've pasted the debug code below:
calibre Debug log
calibre 5.34 embedded-python: True is64bit: True
macOS-10.16-x86_64-i386-64bit Darwin ('64bit', '')
('Darwin', '21.1.0', 'Darwin Kernel Version 21.1.0: Wed Oct 13 17:33:01 PDT 2021; root:xnu-8019.41.5
1/RELEASE_ARM64_T6000')1/RELEASE_ARM64_T6000')Python 3.8.5
OSX: ('10.16', ('', '', ''), 'x86_64')
Interface language: None
Successfully initialized third party plugins: DeDRM (7, 2, 1)
calibre 5.34 embedded-python: True is64bit: True
macOS-10.16-x86_64-i386-64bit Darwin ('64bit', '')
('Darwin', '21.1.0', 'Darwin Kernel Version 21.1.0: Wed Oct 13 17:33:01 PDT 2021; root:xnu-8019.41.5
Python 3.8.5
OSX: ('10.16', ('', '', ''), 'x86_64')
Interface language: None
Successfully initialized third party plugins: DeDRM (7, 2, 1)
devicePixelRatio: 2.0
logicalDpi: 72.0 x 72.0
physicalDpi: 127.50000191485789 x 127.50000191485789
Using calibre Qt style: True
[0.00] Starting up...
[0.02] Showing splash screen...
[0.22] splash screen shown
[0.22] Initializing db...
[0.23] db initialized
[0.23] Constructing main UI...
[1.02] main UI initialized...
[1.02] Hiding splash screen
Starting QuickView
DeDRM v7.2.1: Trying to decrypt B08MVC8359_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.1 seconds
Found k4Mac kinf2018 file: /Users/lisawan/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2018
trying username b'lisawan' on file /Users/l/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2018
trying IDString: b'c31e401bc16d'
trying IDString: b'c31e401bc16c'
[3.76] splash screen hidden
[3.76] Started up in 3.76 seconds with 1 books
trying IDString: b'c31e401bc16f'
trying IDString: b'5de82cf4c5c8'
Decrypted key file using IDString '5de82cf4c5c8' and UserName 'lisawan'
DeDRM v7.2.1: Found 1 new key
DeDRM v7.2.1: Ultimately failed to decrypt after 2.0 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 2.0 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 260, in get_metadata
File "calibre/ebooks/metadata/mobi.py", line 504, in get_metadata
File "calibre/ebooks/mobi/reader/headers.py", line 294, in init
File "calibre/ebooks/mobi/reader/headers.py", line 322, in identity
calibre.ebooks.mobi.MobiError: Unknown book type: b'\x02\xa2\x81\xc4\xde\x02\x9d\x8c'
Beta Was this translation helpful? Give feedback.
All reactions