apprenticeharper / DeDRM_tools

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

kfx books not drm free in calibre #477

Closed ruthnor closed 6 years ago

ruthnor commented 6 years ago

I'm a non-tech user but have always had great success with your DeDRM tools - thank you so much. Today, however, I installed the latest tools but am unable to successfully DeDRM 3 KFX kindle/amazon books.(MacOS HIgh Sierra 10.13.4 and Calibre 3.21) I include the Calibre log here:

2018-04-10 19:02:03.279 calibre-debug[26066:572662] Can't open input server /Library/InputManagers/CTLoader calibre Debug log calibre 3.21 embedded-python: True is64bit: True Darwin-17.5.0-x86_64-i386-64bit Darwin ('64bit', '') ('Darwin', '17.5.0', 'Darwin Kernel Version 17.5.0: Mon Mar 5 22:24:32 PST 2018; root:xnu-4570.51.1~1/RELEASE_X86_64') Python 2.7.12 OSX: ('10.13.4', ('', '', ''), 'x86_64') Interface language: en_GB Successfully initialized third party plugins: DeDRM (6, 6, 0) && Obok DeDRM (6, 5, 4) calibre 3.21 embedded-python: True is64bit: True Darwin-17.5.0-x86_64-i386-64bit Darwin ('64bit', '') ('Darwin', '17.5.0', 'Darwin Kernel Version 17.5.0: Mon Mar 5 22:24:32 PST 2018; root:xnu-4570.51.1~1/RELEASE_X86_64') Python 2.7.12 OSX: ('10.13.4', ('', '', ''), 'x86_64') Interface language: en_GB Successfully initialized third party plugins: DeDRM (6, 6, 0) && Obok DeDRM (6, 5, 4) devicePixelRatio: 1.0 logicalDpi: 72.0 x 72.0 physicalDpi: 84.0000012616 x 85.0000012766 Using calibre Qt style: True [0.00] Starting up... [0.04] Showing splash screen... [0.36] splash screen shown [0.36] Initializing db... [0.47] db initialized [0.47] Constructing main UI... DEBUG: 0.0 obok::utilities.py - loading translations DEBUG: 0.0 obok::dialogs.py - loading translations DEBUG: 0.0 obok::config.py - loading translations DEBUG: 0.0 obok::actionerr.py - loading translations [2.86] main UI initialized... [2.86] Hiding splash screen [2.90] splash screen hidden [2.90] Started up in 2.90 seconds with 1588 books objc[26066]: Class FIFinderSyncExtensionHost is implemented in both /System/Library/PrivateFrameworks/FinderKit.framework/Versions/A/FinderKit (0x7fffae857c90) and /System/Library/PrivateFrameworks/FileProvider.framework/OverrideBundles/FinderSyncCollaborationFileProviderOverride.bundle/Contents/MacOS/FinderSyncCollaborationFileProviderOverride (0x1171a2cd8). One of the two will be used. Which one is undefined. DeDRM v6.6.0: Trying to decrypt The Little Prince Unabridged with Large Illustrations - 70th Anniversary Edition (Antoine de Saint-Exupéry et Le Petit Prince).azw3 Using Library AlfCrypto DLL/DYLIB/SO MobiDeDrm v0.42. Copyright © 2008-2017 The Dark Reverser, Apprentice Harper et al. Decrypting Kindle Format 8 ebook: The Little Prince: Unabridged with Large Illustrations - 70th Anniversary Edition (Antoine de Saint-Exupéry et Le Petit Prince) Got DSN key from database default_key_2 Found 8 keys to try after 0.2 seconds Crypto Type is: 2 DeDRM v6.6.0: Failed to decrypt with error: No key found in 8 keys tried. DeDRM v6.6.0: Looking for new default Kindle Key after 0.2 seconds Found k4Mac kinf2011 file: /Users/ruthnor/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2011 Decrypted key file using IDString '99a2f198f261' and UserName 'ruthnor' DeDRM v6.6.0: Found 1 new key MobiDeDrm v0.42. Copyright © 2008-2017 The Dark Reverser, Apprentice Harper et al. Decrypting Kindle Format 8 ebook: The Little Prince: Unabridged with Large Illustrations - 70th Anniversary Edition (Antoine de Saint-Exupéry et Le Petit Prince) Got DSN key from database default_key_1 Found 4 keys to try after 1.7 seconds Crypto Type is: 2 DeDRM v6.6.0: Ultimately failed to decrypt after 1.7 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 "site-packages/calibre/customize/ui.py", line 171, in _run_filetype_plugins File "calibre_plugins.dedrm.init", line 620, in run File "calibre_plugins.dedrm.init", line 570, in KindleMobiDecrypt DeDRMError: DeDRM v6.6.0: Ultimately failed to decrypt after 1.7 seconds. Read the FAQs at Harper's repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md 2018-04-10 19:03:32.213 calibre-parallel[26109:573550] Can't open input server /Library/InputManagers/CTLoader Added The Little Prince: Unabridged with Large Illustrations - 70th Anniversary Edition (Antoine de Saint-Exupéry et Le Petit Prince) to db in: 0.2 Added 1 books in 8.1 seconds Worker Launch took: 0.310653924942

ElleKayEm commented 6 years ago

The book in the log is a KF8 (AZW3) file. And it doesn't look like you have entered a serial number from an E-ink Kindle.

jostyee commented 6 years ago

kfx dedrm failed here, too:

calibre Debug log
calibre 3.21  embedded-python: True is64bit: True
Darwin-17.5.0-x86_64-i386-64bit Darwin ('64bit', '')
('Darwin', '17.5.0', 'Darwin Kernel Version 17.5.0: Mon Mar  5 22:24:32 PST 2018; root:xnu-4570.51.1~1/RELEASE_X86_64')
Python 2.7.12
OSX: ('10.13.4', ('', '', ''), 'x86_64')
Interface language: None
Successfully initialized third party plugins: DeDRM (6, 6, 0)
calibre 3.21  embedded-python: True is64bit: True
Darwin-17.5.0-x86_64-i386-64bit Darwin ('64bit', '')
('Darwin', '17.5.0', 'Darwin Kernel Version 17.5.0: Mon Mar  5 22:24:32 PST 2018; root:xnu-4570.51.1~1/RELEASE_X86_64')
Python 2.7.12
OSX: ('10.13.4', ('', '', ''), 'x86_64')
Interface language: None
Successfully initialized third party plugins: DeDRM (6, 6, 0)
devicePixelRatio: 2.0
logicalDpi: 72.0 x 72.0
physicalDpi: 110.50000166 x 110.50000166
Using calibre Qt style: True
[0.00] Starting up...
[0.02] Showing splash screen...
[0.20] splash screen shown
[0.20] Initializing db...
[0.22] db initialized
[0.22] Constructing main UI...
[1.35] main UI initialized...
[1.35] Hiding splash screen
[1.39] splash screen hidden
[1.39] Started up in 1.39 seconds with 337 books
Using proxies: {'http': '127.0.0.1:8888', 'https': '127.0.0.1:8888'}
2018-04-11 13:30:31.212 Calibre[20157:4018751] deliverNotificationWithTitle()
* Notification delivered.
DeDRM v6.6.0: Trying to decrypt Elon Musk_ Tesla, SpaceX, and the Quest for a Fantastic Future_B00KVI76ZS.kfx
Unknown booktype kfx. Passing back to calibre unchanged

{'bsd_drives': {'main': u'/dev/disk5s1'},
 'drives': {'main': '/Volumes/Kindle'},
 'mount_map': {'/Library/Input Methods/FTInput.app': '/private/var/folders/vc/nvhwlhjs28xdc001nvbkfj2h0000gn/T/AppTranslocation/09741843-8956-4709-B20B-3E1730B6756F',
               '/dev/disk1s1': '/',
               '/dev/disk1s4': '/private/var/vm',
               '/dev/disk2s1': '/Volumes/Transcend',
               '/dev/disk3s2': '/Volumes/WD My Passport 0837 Media',
               '/dev/disk4': '/Volumes/TimeMachine',
               '/dev/disk5s1': '/Volumes/Kindle',
               'devfs': '/dev',
               'map -hosts': '/net',
               'map auto_home': '/home'}}
Job: 1 Get device information started
DeviceJob: 1 Get device information done, calling callback
DeviceJob: 1 Get device information callback returned
Job: 2 Set library information started
DeviceJob: 2 Set library information done, calling callback
DeviceJob: 2 Set library information callback returned
Job: 3 Get list of books on device started
DEBUG:    0.0 USBMS: Fetching list of books from device. Device= KINDLE2 oncard= None
DEBUG:    0.0 USBMS: dirs are: /Volumes/Kindle/ documents
DEBUG:    0.0 USBMS: scan from root False /Volumes/Kindle/documents
DEBUG:    0.1 USBMS: count found in cache: 40, count of files in metadata: 40, need_sync: False
DEBUG:    0.1 USBMS: Finished fetching list of books from device. oncard= None
DEBUG:    0.1 USBMS: Fetching list of books from device. Device= KINDLE2 oncard= carda
DEBUG:    0.1 USBMS: Fetching list of books from device. Device= KINDLE2 oncard= cardb
DeviceJob: 3 Get list of books on device done, calling callback
DeviceJob: metadata_downloaded: Starting set_books_in_library
DeviceJob: set_books_in_library: books to process= 40
DeviceJob: set_books_in_library finished: time= 0.00747203826904
DeviceJob: metadata_downloaded: updating views
DeviceJob: metadata_downloaded: syncing
DeviceJob: metadata_downloaded: refreshing ondevice
DeviceJob: metadata_downloaded: sending metadata_available signal
DeviceJob: 3 Get list of books on device callback returned
Job: 1 Get device information finished
No details available.
Job: 2 Set library information finished
No details available.
Job: 3 Get list of books on device finished
No details available.
Added Elon Musk Tesla, SpaceX, and the Quest for a Fantastic Future B00KVI76ZS to db in: 0.0
Added 1 books in 0.4 seconds
ruthnor commented 6 years ago

I'm not sure how to do that. Sorry. I'm not a tech person, but have always managed with these tools until now. Please can you explain how I should do whatever I need to do? Many thanks, Ruth

Sent from Outlookhttp://aka.ms/weboutlook


From: ElleKayEm notifications@github.com Sent: 10 April 2018 18:46 To: apprenticeharper/DeDRM_tools Cc: ruthnor; Author Subject: Re: [apprenticeharper/DeDRM_tools] kfx books not drm free in calibre (#477)

The book in the log is a KF8 (AZW3) file. And it doesn't look like you have entered a serial number from an E-ink Kindle.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/apprenticeharper/DeDRM_tools/issues/477#issuecomment-380207307, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AkfP33L_bQU--tygERGZUz1ei3hc076bks5tnP4PgaJpZM4TOwo8.

ElleKayEm commented 6 years ago

@jostyee You need to install the KFX Input plugin. Start your own issue if you're still having problems.

@ruthnor When downloading Kindle books from the website, you need to choose an E-ink Kindle (not a Fire) for the device and enter its serial number into the DeDRM plugin customization.

ruthnor commented 6 years ago

Many thanks for your help. I think I have now successfully entered a serial number for my kindle into the DeDRM plugin. I have tried importing the three books and have successfully managed DeDRM one of them. The other 2 are still not working, however, despite several attempts. The log is as follows (and thank you once again):

2018-04-11 14:21:23.982 calibre-debug[29520:673082] Can't open input server /Library/InputManagers/CTLoader calibre Debug log calibre 3.21 embedded-python: True is64bit: True Darwin-17.5.0-x86_64-i386-64bit Darwin ('64bit', '') ('Darwin', '17.5.0', 'Darwin Kernel Version 17.5.0: Mon Mar 5 22:24:32 PST 2018; root:xnu-4570.51.1~1/RELEASE_X86_64') Python 2.7.12 OSX: ('10.13.4', ('', '', ''), 'x86_64') Interface language: en_GB Successfully initialized third party plugins: DeDRM (6, 6, 0) && Obok DeDRM (6, 5, 4) calibre 3.21 embedded-python: True is64bit: True Darwin-17.5.0-x86_64-i386-64bit Darwin ('64bit', '') ('Darwin', '17.5.0', 'Darwin Kernel Version 17.5.0: Mon Mar 5 22:24:32 PST 2018; root:xnu-4570.51.1~1/RELEASE_X86_64') Python 2.7.12 OSX: ('10.13.4', ('', '', ''), 'x86_64') Interface language: en_GB Successfully initialized third party plugins: DeDRM (6, 6, 0) && Obok DeDRM (6, 5, 4) devicePixelRatio: 1.0 logicalDpi: 72.0 x 72.0 physicalDpi: 84.0000012616 x 85.0000012766 Using calibre Qt style: True [0.00] Starting up... [0.04] Showing splash screen... [0.24] splash screen shown [0.24] Initializing db... [0.38] db initialized [0.38] Constructing main UI... DEBUG: 0.0 obok::utilities.py - loading translations DEBUG: 0.0 obok::dialogs.py - loading translations DEBUG: 0.0 obok::config.py - loading translations DEBUG: 0.1 obok::action_err.py - loading translations [3.78] main UI initialized... [3.78] Hiding splash screen [3.81] splash screen hidden [3.81] Started up in 3.81 seconds with 1588 books objc[29520]: Class FIFinderSyncExtensionHost is implemented in both /System/Library/PrivateFrameworks/FinderKit.framework/Versions/A/FinderKit (0x7fffae857c90) and /System/Library/PrivateFrameworks/FileProvider.framework/OverrideBundles/FinderSyncCollaborationFileProviderOverride.bundle/Contents/MacOS/FinderSyncCollaborationFileProviderOverride (0x11a66dcd8). One of the two will be used. Which one is undefined. 2018-04-11 14:22:06.150 calibre-debug[29520:673082] Bad cursor rect event, flags = 0 DeDRM v6.6.0: Trying to decrypt B00LKWWFAU_EBOK.azw Using Library AlfCrypto DLL/DYLIB/SO MobiDeDrm v0.42. Copyright ¬© 2008-2017 The Dark Reverser, Apprentice Harper et al. Decrypting Kindle Format 8 ebook: Eat. Nourish. Glow.: 10 easy steps for losing weight, looking younger & feeling healthier Got DSN key from database default_key2 Found 8 keys to try after 0.5 seconds Crypto Type is: 2 File is encoded with PID L8r7i+aaWH. Decrypting. Please wait . . . done Decryption succeeded after 0.5 seconds DeDRM v6.6.0: Finished after 0.6 seconds DeDRM v6.6.0: Trying to decrypt Eat. Nourish. Glow. 10 easy steps for losing weight, looking younger & feeling healthier.azw3 Using Library AlfCrypto DLL/DYLIB/SO MobiDeDrm v0.42. Copyright ¬© 2008-2017 The Dark Reverser, Apprentice Harper et al. Decrypting Kindle Format 8 ebook: Eat. Nourish. Glow.: 10 easy steps for losing weight, looking younger & feeling healthier Got DSN key from database default_key_2 Found 8 keys to try after 0.5 seconds Crypto Type is: 2 DeDRM v6.6.0: Failed to decrypt with error: No key found in 8 keys tried. DeDRM v6.6.0: Looking for new default Kindle Key after 0.5 seconds Found k4Mac kinf2011 file: /Users/ruthnor/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2011 Decrypted key file using IDString '99a2f198f261' and UserName 'ruthnor' DeDRM v6.6.0: Found 1 new key MobiDeDrm v0.42. Copyright ¬© 2008-2017 The Dark Reverser, Apprentice Harper et al. Decrypting Kindle Format 8 ebook: Eat. Nourish. Glow.: 10 easy steps for losing weight, looking younger & feeling healthier Got DSN key from database default_key_1 Found 4 keys to try after 1.3 seconds Crypto Type is: 2 DeDRM v6.6.0: Ultimately failed to decrypt after 1.3 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 "site-packages/calibre/customize/ui.py", line 171, in _run_filetype_plugins File "calibre_plugins.dedrm.init", line 620, in run File "calibre_plugins.dedrm.init", line 570, in KindleMobiDecrypt DeDRMError: DeDRM v6.6.0: Ultimately failed to decrypt after 1.3 seconds. Read the FAQs at Harper's repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md 2018-04-11 14:22:28.933 calibre-parallel[29561:673998] Can't open input server /Library/InputManagers/CTLoader 2018-04-11 14:22:38.261 calibre-parallel[29565:674147] Can't open input server /Library/InputManagers/CTLoader 2018-04-11 14:23:25.200 calibre-parallel[29577:674609] Can't open input server /Library/InputManagers/CTLoader 2018-04-11 14:24:20.717 calibre-debug[29520:673082] Bad cursor rect event, flags = 0 Added B00LKWWFAU EBOK to db in: 1.0 Added Eat. Nourish. Glow.: 10 easy steps for losing weight, looking younger & feeling healthier to db in: 0.6 Added Eat. Nourish. Glow.: 10 easy steps for losing weight, looking younger & feeling healthier to db in: 0.5 Added 3 books in 13.4 seconds Worker Launch took: 0.63343000412 Worker Launch took: 0.298815965652 Worker Launch took: 0.306491851807 DeDRM v6.6.0: Trying to decrypt B0741FFW4REBOK.azw Using Library AlfCrypto DLL/DYLIB/SO DeDRM v6.6.0: 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 v6.6.0: Looking for new default Kindle Key after 0.2 seconds Found k4Mac kinf2011 file: /Users/ruthnor/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2011 DeDRM v6.6.0: Trying to decrypt Love Thy Body Answering Hard Questions about Life and Sexuality.azw3 Using Library AlfCrypto DLL/DYLIB/SO MobiDeDrm v0.42. Copyright ¬© 2008-2017 The Dark Reverser, Apprentice Harper et al. Decrypting Kindle Format 8 ebook: Love Thy Body: Answering Hard Questions about Life and Sexuality Got DSN key from database default_key_2 Found 8 keys to try after 0.1 seconds Crypto Type is: 2 DeDRM v6.6.0: Failed to decrypt with error: No key found in 8 keys tried. DeDRM v6.6.0: Looking for new default Kindle Key after 0.1 seconds Found k4Mac kinf2011 file: /Users/ruthnor/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2011 Decrypted key file using IDString '99a2f198f261' and UserName 'ruthnor' DeDRM v6.6.0: Found 1 new key DeDRM v6.6.0: Ultimately failed to decrypt after 1.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 "site-packages/calibre/customize/ui.py", line 171, in _run_filetype_plugins File "calibre_plugins.dedrm.init", line 620, in run File "calibre_plugins.dedrm.init", line 570, in KindleMobiDecrypt DeDRMError: DeDRM v6.6.0: Ultimately failed to decrypt after 1.1 seconds. Read the FAQs at Harper's repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md Decrypted key file using IDString '99a2f198f261' and UserName 'ruthnor' DeDRM v6.6.0: Found 1 new key MobiDeDrm v0.42. Copyright ¬© 2008-2017 The Dark Reverser, Apprentice Harper et al. Decrypting Kindle Format 8 ebook: Love Thy Body: Answering Hard Questions about Life and Sexuality Got DSN key from database default_key_1 Found 4 keys to try after 0.8 seconds Crypto Type is: 2 DeDRM v6.6.0: Ultimately failed to decrypt after 0.8 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 "site-packages/calibre/customize/ui.py", line 171, in _run_filetype_plugins File "calibre_plugins.dedrm.init", line 620, in run File "calibre_plugins.dedrm.init", line 570, in KindleMobiDecrypt DeDRMError: DeDRM v6.6.0: Ultimately failed to decrypt after 0.8 seconds. Read the FAQs at Harper's repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md Traceback (most recent call last): File "site-packages/calibre/customize/ui.py", line 417, in get_file_type_metadata File "site-packages/calibre/customize/builtins.py", line 284, in get_metadata File "site-packages/calibre/ebooks/metadata/mobi.py", line 494, in get_metadata File "site-packages/calibre/ebooks/mobi/reader/headers.py", line 284, in init File "site-packages/calibre/ebooks/mobi/reader/headers.py", line 312, in identity MobiError: Unknown book type: ¢Åƒfiùå 2018-04-11 14:24:38.924 calibre-parallel[29619:675533] Can't open input server /Library/InputManagers/CTLoader 2018-04-11 14:25:17.842 calibre-parallel[29631:676025] Can't open input server /Library/InputManagers/CTLoader Added Love Thy Body: Answering Hard Questions about Life and Sexuality to db in: 0.3 Added CR!70SVV8YS2177VBRZMR8AZVEVWG9Z.azw to db in: 0.2 Added B0741FFW4R EBOK to db in: 0.2 Added 3 books in 8.3 seconds Worker Launch took: 0.473761081696 Worker Launch took: 0.312402009964 DeDRM v6.6.0: Trying to decrypt B00SP9KG34EBOK.azw Using Library AlfCrypto DLL/DYLIB/SO DeDRM v6.6.0: 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 v6.6.0: Looking for new default Kindle Key after 0.3 seconds Found k4Mac kinf2011 file: /Users/ruthnor/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2011 DeDRM v6.6.0: Trying to decrypt The Little Prince Unabridged with Large Illustrations - 70th Anniversary Edition (Antoine de Saint-Exup√©ry et Le Petit Prince).azw3 Using Library AlfCrypto DLL/DYLIB/SO MobiDeDrm v0.42. Copyright ¬© 2008-2017 The Dark Reverser, Apprentice Harper et al. Decrypting Kindle Format 8 ebook: The Little Prince: Unabridged with Large Illustrations - 70th Anniversary Edition (Antoine de Saint-Exup√©ry et Le Petit Prince) Got DSN key from database default_key_2 Found 8 keys to try after 0.2 seconds Crypto Type is: 2 DeDRM v6.6.0: Failed to decrypt with error: No key found in 8 keys tried. DeDRM v6.6.0: Looking for new default Kindle Key after 0.2 seconds Found k4Mac kinf2011 file: /Users/ruthnor/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2011 Decrypted key file using IDString '99a2f198f261' and UserName 'ruthnor' DeDRM v6.6.0: Found 1 new key DeDRM v6.6.0: Ultimately failed to decrypt after 1.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 "site-packages/calibre/customize/ui.py", line 171, in _run_filetype_plugins File "calibre_plugins.dedrm.init", line 620, in run File "calibre_plugins.dedrm.init", line 570, in KindleMobiDecrypt DeDRMError: DeDRM v6.6.0: Ultimately failed to decrypt after 1.0 seconds. Read the FAQs at Harper's repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md Decrypted key file using IDString '99a2f198f261' and UserName 'ruthnor' DeDRM v6.6.0: Found 1 new key MobiDeDrm v0.42. Copyright ¬© 2008-2017 The Dark Reverser, Apprentice Harper et al. Decrypting Kindle Format 8 ebook: The Little Prince: Unabridged with Large Illustrations - 70th Anniversary Edition (Antoine de Saint-Exup√©ry et Le Petit Prince) Got DSN key from database default_key_1 Found 4 keys to try after 0.8 seconds Crypto Type is: 2 DeDRM v6.6.0: Ultimately failed to decrypt after 0.8 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 "site-packages/calibre/customize/ui.py", line 171, in _run_filetype_plugins File "calibre_plugins.dedrm.init", line 620, in run File "calibre_plugins.dedrm.init", line 570, in KindleMobiDecrypt DeDRMError: DeDRM v6.6.0: Ultimately failed to decrypt after 0.8 seconds. Read the FAQs at Harper's repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md Traceback (most recent call last): File "site-packages/calibre/customize/ui.py", line 417, in get_file_type_metadata File "site-packages/calibre/customize/builtins.py", line 284, in get_metadata File "site-packages/calibre/ebooks/metadata/mobi.py", line 494, in get_metadata File "site-packages/calibre/ebooks/mobi/reader/headers.py", line 284, in init File "site-packages/calibre/ebooks/mobi/reader/headers.py", line 312, in identity MobiError: Unknown book type: ¢Åƒfiùå 2018-04-11 14:27:27.225 calibre-parallel[29676:677140] Can't open input server /Library/InputManagers/CTLoader Added CR!63VMA2HJF164Q2BKN964JBMMTJ7P.azw to db in: 0.2 Added B00SP9KG34 EBOK to db in: 0.1 Added The Little Prince: Unabridged with Large Illustrations - 70th Anniversary Edition (Antoine de Saint-Exup√©ry et Le Petit Prince) to db in: 0.3 Added 3 books in 7.9 seconds Worker Launch took: 0.308092832565

Sent from Outlookhttp://aka.ms/weboutlook


From: ElleKayEm notifications@github.com Sent: 11 April 2018 10:38 To: apprenticeharper/DeDRM_tools Cc: ruthnor; Mention Subject: Re: [apprenticeharper/DeDRM_tools] kfx books not drm free in calibre (#477)

@jostyeehttps://github.com/jostyee You need to install the KFX Input plugin. Start your own issue if you're still having problems.

@ruthnorhttps://github.com/ruthnor When downloading Kindle books from the website, you need to choose an E-ink Kindle (not a Fire) for the device and enter its serial number into the DeDRM plugin customization.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/apprenticeharper/DeDRM_tools/issues/477#issuecomment-380407252, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AkfP3w3hEcK7ehnyEm6lMu9mmiwNdHFRks5tnd06gaJpZM4TOwo8.

ElleKayEm commented 6 years ago

It looks like all 3 of these are from Kindle for Mac so you don't need to worry about adding a Kindle serial number for those.

The two that didn't work are KFX files. In order to remove their DRM, you'll need the KFX Input plugin. To install that, look under the Preferences menu in calibre, click Get Plugins, and search for KFX Input. Restart calibre after installing it and try adding those books again.

j-howell commented 6 years ago

That log shows six different attempts.

B00LKWWFAU_EBOK.azw: (edit) successful decryption

Eat. Nourish. Glow._ 10 easy steps for losing weight, looking younger & feeling healthier.azw3: missing/incorrect plugin configuration

B0741FFW4R_EBOK.azw: KFX file requires that the KFX Input plugin also be installed in calibre

Love Thy Body_ Answering Hard Questions about Life and Sexuality.azw3: missing/incorrect plugin configuration

B00SP9KG34_EBOK.azw: KFX file requires that the KFX Input plugin also be installed in calibre

The Little Prince_ Unabridged with Large Illustrations - 70th Anniversary Edition.azw3: missing/incorrect plugin configuration

ruthnor commented 6 years ago

Many thanks. I've done all of that - installed KFX input as per your instructions, and restarted Calibre. Unfortunately it is still not working. Sorry 😞

2018-04-11 15:48:17.059 calibre-debug[30782:707654] Can't open input server /Library/InputManagers/CTLoader calibre Debug log calibre 3.21 embedded-python: True is64bit: True Darwin-17.5.0-x86_64-i386-64bit Darwin ('64bit', '') ('Darwin', '17.5.0', 'Darwin Kernel Version 17.5.0: Mon Mar 5 22:24:32 PST 2018; root:xnu-4570.51.1~1/RELEASE_X86_64') Python 2.7.12 OSX: ('10.13.4', ('', '', ''), 'x86_64') Interface language: en_GB Successfully initialized third party plugins: Gather KFX-ZIP File Type (from KFX Input) (1, 3, 0) && DeDRM (6, 6, 0) && Package KFX File Type (from KFX Input) (1, 3, 0) && KFX metadata reader (from KFX Input) (1, 3, 0) && KFX Input (1, 3, 0) && Obok DeDRM (6, 5, 4) calibre 3.21 embedded-python: True is64bit: True Darwin-17.5.0-x86_64-i386-64bit Darwin ('64bit', '') ('Darwin', '17.5.0', 'Darwin Kernel Version 17.5.0: Mon Mar 5 22:24:32 PST 2018; root:xnu-4570.51.1~1/RELEASE_X86_64') Python 2.7.12 OSX: ('10.13.4', ('', '', ''), 'x86_64') Interface language: en_GB Successfully initialized third party plugins: Gather KFX-ZIP File Type (from KFX Input) (1, 3, 0) && DeDRM (6, 6, 0) && Package KFX File Type (from KFX Input) (1, 3, 0) && KFX metadata reader (from KFX Input) (1, 3, 0) && KFX Input (1, 3, 0) && Obok DeDRM (6, 5, 4) devicePixelRatio: 1.0 logicalDpi: 72.0 x 72.0 physicalDpi: 84.0000012616 x 85.0000012766 Using calibre Qt style: True [0.00] Starting up... [0.04] Showing splash screen... [0.26] splash screen shown [0.26] Initializing db... [0.45] db initialized [0.45] Constructing main UI... DEBUG: 0.0 obok::utilities.py - loading translations DEBUG: 0.0 obok::dialogs.py - loading translations DEBUG: 0.0 obok::config.py - loading translations DEBUG: 0.1 obok::actionerr.py - loading translations [3.14] main UI initialized... [3.14] Hiding splash screen [3.16] splash screen hidden [3.17] Started up in 3.17 seconds with 1590 books objc[30782]: Class FIFinderSyncExtensionHost is implemented in both /System/Library/PrivateFrameworks/FinderKit.framework/Versions/A/FinderKit (0x7fffae857c90) and /System/Library/PrivateFrameworks/FileProvider.framework/OverrideBundles/FinderSyncCollaborationFileProviderOverride.bundle/Contents/MacOS/FinderSyncCollaborationFileProviderOverride (0x12406fcd8). One of the two will be used. Which one is undefined. 2018-04-11 15:48:40.840 calibre-debug[30782:707654] Bad cursor rect event, flags = 0 DeDRM v6.6.0: Trying to decrypt The Little Prince Unabridged with Large Illustrations - 70th Anniversary Edition (Antoine de Saint-Exupéry et Le Petit Prince).azw3 Gather KFX-ZIP File Type (from KFX Input) 1.3.0: Importing /Users/ruthnor/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/My Kindle Content/B00SP9KG34_EBOK/B00SP9KG34_EBOK.azw KFX Input: Gathered 4 files as /var/folders/dc/_n17242s5fx1hhwh2ggbk9m00000gn/C/calibre_3.21.0_tmp_DOQakG/OEWl2Y.kfx-zip DeDRM v6.6.0: Trying to decrypt OEWl2Y.kfx-zip Using Library AlfCrypto DLL/DYLIB/SO Using Library AlfCrypto DLL/DYLIB/SO Decrypting KFX-ZIP ebook: OEWl2Y Got DSN key from database default_key_2 Found 2 keys to try after 0.2 seconds Decrypting KFX DRM voucher: amzn1.drm-voucher.v1.f69b361c-99f9-421a-b9ea-10a348b5817a.voucher KFX DRM voucher successfully decrypted Decrypting KFX DRMION: B00SP9KG34_EBOK.azw Decryption succeeded after 0.2 seconds DeDRM v6.6.0: Finished after 0.3 seconds MobiDeDrm v0.42. Copyright © 2008-2017 The Dark Reverser, Apprentice Harper et al. Decrypting Kindle Format 8 ebook: The Little Prince: Unabridged with Large Illustrations - 70th Anniversary Edition (Antoine de Saint-Exupéry et Le Petit Prince) Got DSN key from database default_key_2 Found 8 keys to try after 0.4 seconds Crypto Type is: 2 DeDRM v6.6.0: Failed to decrypt with error: No key found in 8 keys tried. DeDRM v6.6.0: Looking for new default Kindle Key after 0.4 seconds Found k4Mac kinf2011 file: /Users/ruthnor/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2011 Decrypted key file using IDString '99a2f198f261' and UserName 'ruthnor' DeDRM v6.6.0: Found 1 new key MobiDeDrm v0.42. Copyright © 2008-2017 The Dark Reverser, Apprentice Harper et al. Decrypting Kindle Format 8 ebook: The Little Prince: Unabridged with Large Illustrations - 70th Anniversary Edition (Antoine de Saint-Exupéry et Le Petit Prince) Got DSN key from database default_key_1 Found 4 keys to try after 1.1 seconds Crypto Type is: 2 DeDRM v6.6.0: Ultimately failed to decrypt after 1.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 "site-packages/calibre/customize/ui.py", line 171, in _run_filetype_plugins File "calibre_plugins.dedrm.init", line 620, in run File "calibre_plugins.dedrm.init", line 570, in KindleMobiDecrypt DeDRMError: DeDRM v6.6.0: Ultimately failed to decrypt after 1.1 seconds. Read the FAQs at Harper's repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md Package KFX File Type (from KFX Input) 1.3.0: Packaging /var/folders/dc/_n17242s5fx1hhwh2ggbk9m00000gn/C/calibre_3.21.0_tmp_DOQakG/KaEpjw.kfx-zip Processing container: B00SP9KG34_EBOK.azw Processing container: CR!63VMA2HJF164Q2BKN964JBMMTJ7P.azw.md Processing container: CR!QNHPVFM2XD2V7EFFFQ1666K9A1WP.azw.res kfxgen version: 7.149.1.0/PackageVersion:YJReaderSDK-1.6.1938.0 Month-Day:01-29/748 Features: CanonicalFormat-2, kfxgen.textBlock-1, reflow-style-9 Metadata: ASIN=B00SP9KG34, asset_id=CR!802K0SBJGX1H57MYZNW49R1D81K8, author="de Saint-Exupéry, Antoine", book_id=2PZMEkAHTB_8VI80EJZZOA1, cde_content_type=EBOK, content_id=B00SP9KG34, cover_image=1000x1333, creator_version=2.15.0, description="The Little Prince.", file_creator=YJConversionTools, is_sample=False, issue_date=2015-01-24, language=en, override_kindle_font=False, publisher=Kentauron.com, reading_orders=1, selection=enabled, title="The Little Prince: Unabridged with Large Illustrations - 70th Anniversary Edition (Antoine de Saint-Exupéry et Le Petit Prince)" KFX Input: Imported as /var/folders/dc/_n17242s5fx1hhwh2ggbk9m00000gn/C/calibre_3.21.0_tmp_DOQakG/64MHph.kfx KFX metadata reader activated for /var/folders/dc/_n17242s5fx1hhwh2ggbk9m00000gn/C/calibre_3.21.0_tmp_DOQakG/LmbeWW_add_books/0/B00SP9KG34_EBOK.kfx 2018-04-11 15:49:19.564 calibre-parallel[30823:708504] Can't open input server /Library/InputManagers/CTLoader Added CR!63VMA2HJF164Q2BKN964JBMMTJ7P.azw to db in: 0.1 Added The Little Prince: Unabridged with Large Illustrations - 70th Anniversary Edition (Antoine de Saint-Exupéry et Le Petit Prince) to db in: 0.2 Added The Little Prince: Unabridged with Large Illustrations - 70th Anniversary Edition (Antoine de Saint-Exupéry et Le Petit Prince) to db in: 0.3 Added 3 books in 12.5 seconds Worker Launch took: 0.333500146866

Sent from Outlookhttp://aka.ms/weboutlook


From: ElleKayEm notifications@github.com Sent: 11 April 2018 13:57 To: apprenticeharper/DeDRM_tools Cc: ruthnor; Mention Subject: Re: [apprenticeharper/DeDRM_tools] kfx books not drm free in calibre (#477)

It looks like all 3 of these are from Kindle for Mac so you don't need to worry about adding a Kindle serial number for those.

The two that didn't work are KFX files. In order to remove their DRM, you'll need the KFX Input plugin. To install that, look under the Preferences menu in calibre, click Get Plugins, and search for KFX Input. Restart calibre after installing it and try adding those books again.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/apprenticeharper/DeDRM_tools/issues/477#issuecomment-380461312, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AkfP32RX-Tg-ivvzcAQ3yyQ4QM3gCPAMks5tngvSgaJpZM4TOwo8.

ruthnor commented 6 years ago

Yes, thanks. I received instructions from ElleKayEm about installing the KFX input plugin and have done that, but still without success. I'm awaiting further instructions from ElleKayEm since I've only just sent the message. (The book Eat, nourish, glow works, but not the other 2).

Sent from Outlookhttp://aka.ms/weboutlook


From: John Howell notifications@github.com Sent: 11 April 2018 14:04 To: apprenticeharper/DeDRM_tools Cc: ruthnor; Mention Subject: Re: [apprenticeharper/DeDRM_tools] kfx books not drm free in calibre (#477)

That log shows six different attempts.

B00LKWWFAU_EBOK.azw: had no DRM

Eat. Nourish. Glow._ 10 easy steps for losing weight, looking younger & feeling healthier.azw3: missing/incorrect plugin configuration

B0741FFW4R_EBOK.azw: KFX file requires that the KFX Input plugin also be installed in calibre

Love Thy Body_ Answering Hard Questions about Life and Sexuality.azw3: missing/incorrect plugin configuration

B00SP9KG34_EBOK.azw: KFX file requires that the KFX Input plugin also be installed in calibre

The Little Prince_ Unabridged with Large Illustrations - 70th Anniversary Edition.azw3: missing/incorrect plugin configuration

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/apprenticeharper/DeDRM_tools/issues/477#issuecomment-380463892, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AkfP3zG-yg0I5VfmFUQV6r2oMGmzI8QQks5tng2AgaJpZM4TOwo8.

j-howell commented 6 years ago

Your latest log is very confusing to me. It appears to show the results of three imports intermingled.

The import of "The Little Prince_ Unabridged with Large Illustrations - 70th Anniversary Edition.azw3" fails due to an incorrect or missing key.

Crypto Type is: 2 DeDRM v6.6.0: Failed to decrypt with error: No key found in 8 keys tried.

The import of the same book in KFX format succeeds in having DRM removed:

Decrypting KFX DRMION: B00SP9KG34_EBOK.azw Decryption succeeded after 0.2 seconds DeDRM v6.6.0: Finished after 0.3 seconds

But there is a strange error later:

2018-04-11 15:49:19.564 calibre-parallel[30823:708504] Can't open input server /Library/InputManagers/CTLoader

I have no idea what could cause that or how to fix it.

ADDED:

Looking again at the end of the log I see that there were three books imported.

Two had the same name: The Little Prince: Unabridged with Large Illustrations - 70th Anniversary Edition (Antoine de Saint-Exupéry et Le Petit Prince)

One was the unsuccessful AZW3 and the other was the successful KFX.

The third was due to an attempt to import an incorrect file (CR!63VMA2HJF164Q2BKN964JBMMTJ7P.azw.md).

So despite the odd error message it looks like the KFX import was successful.

ElleKayEm commented 6 years ago

It looks like the KFX version imported from Kindle for Mac was successful. As for the AZW3 version, I assume it was downloaded from the website? Again, you need to chose an E-ink Kindle -- like a Paperwhite or Oasis, not a Fire -- for the device and make sure to correctly enter its serial number into the E-ink Kindle section of the DeDRM plugin customization. Try copy and paste of the serial number from your devices page (removing any spaces).

ruthnor commented 6 years ago

Thank you. Yes, I did copy and paste the serial number, as you suggest, yesterday. I'm going to have a go at re-downloading the relevant files again today and will let you know how I get on.

Sent from Outlookhttp://aka.ms/weboutlook


From: ElleKayEm notifications@github.com Sent: 11 April 2018 22:21 To: apprenticeharper/DeDRM_tools Cc: ruthnor; Mention Subject: Re: [apprenticeharper/DeDRM_tools] kfx books not drm free in calibre (#477)

It looks like the KFX version imported from Kindle for Mac was successful. As for the AZW3 version, I assume it was downloaded from the website? Again, you need to chose an E-ink Kindle -- like a Paperwhite or Oasis, not a Fire -- for the device and make sure to correctly enter its serial number into the E-ink Kindle section of the DeDRM plugin customization. Try copy and paste of the serial number from your devices page (removing any spaces).

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/apprenticeharper/DeDRM_tools/issues/477#issuecomment-380614270, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AkfP36HnaPeLvIuZkj-n6BHIY4EKGJhQks5tnoHPgaJpZM4TOwo8.

ruthnor commented 6 years ago

I went through everything again and discovered that the e-ink serial number had not been saved in Cailbre. I can only assume that first time around I didn't click "Apply," which is bottom left of the "Preferences/Change Calibre Behaviour" screen, after closing the 2 smaller windows. I really do apologise for wasting some of your time, therefore. But thank you so much for your kind assistance. Ruth


From: ElleKayEm notifications@github.com Sent: 11 April 2018 22:21 To: apprenticeharper/DeDRM_tools Cc: ruthnor; Mention Subject: Re: [apprenticeharper/DeDRM_tools] kfx books not drm free in calibre (#477)

It looks like the KFX version imported from Kindle for Mac was successful. As for the AZW3 version, I assume it was downloaded from the website? Again, you need to chose an E-ink Kindle -- like a Paperwhite or Oasis, not a Fire -- for the device and make sure to correctly enter its serial number into the E-ink Kindle section of the DeDRM plugin customization. Try copy and paste of the serial number from your devices page (removing any spaces).

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/apprenticeharper/DeDRM_tools/issues/477#issuecomment-380614270, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AkfP36HnaPeLvIuZkj-n6BHIY4EKGJhQks5tnoHPgaJpZM4TOwo8.