apprenticeharper / DeDRM_tools

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

Unable to convert ebook #1973

Open KendallCH01 opened 2 years ago

KendallCH01 commented 2 years ago

I downloaded the book Star Trek Coda from Amazon after I bought it, and then got the plugin for Calibre which loaded fine. When I went to run it to convert the book it said it couldn't convert it.

Windows 11 System, latest Calibre version

calibre Debug log calibre 5.34 embedded-python: True is64bit: False Windows-10-10.0.22000 Windows ('32bit', 'WindowsPE') 32bit process running on 64bit windows ('Windows', '10', '10.0.22000') Python 3.8.5 Windows: ('10', '10.0.22000', '', 'Multiprocessor Free') Interface language: None Successfully initialized third party plugins: DeDRM (7, 2, 1) calibre 5.34 embedded-python: True is64bit: False Windows-10-10.0.22000 Windows ('32bit', 'WindowsPE') 32bit process running on 64bit windows ('Windows', '10', '10.0.22000') Python 3.8.5 Windows: ('10', '10.0.22000', '', 'Multiprocessor Free') Interface language: None Successfully initialized third party plugins: DeDRM (7, 2, 1) Turning on automatic hidpi scaling devicePixelRatio: 1.0 logicalDpi: 96.0 x 96.0 physicalDpi: 95.95555555555555 x 96.09458128078816 Using calibre Qt style: True [0.00] Starting up... [0.00] Showing splash screen... [0.56] splash screen shown [0.56] Initializing db... [0.58] db initialized [0.58] Constructing main UI... [1.22] main UI initialized... [1.22] Hiding splash screen Starting QuickView DeDRM v7.2.1: Trying to decrypt Star Trek Coda Book 1 Moments Asunder.azw Using Library AlfCrypto DLL/DYLIB/SO Using Library AlfCrypto DLL/DYLIB/SO MobiDeDrm v1.0. Copyright © 2008-2020 The Dark Reverser, Apprentice Harper et al. Decrypting Mobipocket 6 ebook: Star Trek: Coda: Book 1: Moments Asunder Got DSN key from database default_key Found 4 keys to try after 0.1 seconds Crypto Type is: 2 DeDRM v7.2.1: Failed to decrypt with error: No key found in 4 PIDs tried. DeDRM v7.2.1: Looking for new default Kindle Key after 0.1 seconds searching for kinfoFiles in C:\Users\kenda\AppData\Local Found K4PC 1.25+ kinf2018 file: C:\Users\kenda\AppData\Local\Amazon\Kindle\storage.kinf2018 [10.26] splash screen hidden [10.26] Started up in 10.26 seconds with 594 books stdout+stderr from file dialog helper: [b'', b''] piped data from file dialog helper: [b"\xc6v\xbd\xdf\x1a\x7f\xd3\x08\x9c\x16*Vz\x0bJ\xa4]\xa6C'\x14\xd3(\xfc\xba\xa8\x11dv>\x99\x0c", b'C:\Users\kenda\Downloads\Downloading\Star Trek Coda Book 1 Moments Asunder.azw'] Decrypted key file using IDString '506790452' and UserName 'kenda' DeDRM v7.2.1: Ultimately failed to decrypt after 5.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 File "calibre_plugins.dedrm.k4mobidedrm", line 238, in GetDecryptedBook File "calibre_plugins.dedrm.mobidedrm", line 484, in processBook calibre_plugins.dedrm.mobidedrm.DrmException: No key found in 4 PIDs tried.

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 File "calibre_plugins.dedrm.init", line 583, in KindleMobiDecrypt calibre_plugins.dedrm.DeDRMError: DeDRM v7.2.1: Ultimately failed to decrypt after 5.0 seconds. Read the FAQs at Harper's repository: https://github.com/apprenticeharper/DeDRM_tools/blob/mAdded Star Trek: Coda: Book 1: Moments Asunder to db in: 0.2 Added 1 books in 5.5 seconds

So, what did I do wrong???

ElleKayEm commented 2 years ago

If you download it from the website, you need to choose an E-ink Kindle (not a Fire) for the device. And you need to enter the Kindle's serial number into DeDRM's customization.

KendallCH01 commented 2 years ago

I don't have a Kindle so that part won't work for me on this...

On Sun, Dec 26, 2021 at 10:12 PM ElleKayEm @.***> wrote:

If you download it from the website, you need to choose an E-ink Kindle (not a Fire) for the device. And you need to enter the Kindle's serial number into DeDRM's customization.

— Reply to this email directly, view it on GitHub https://github.com/apprenticeharper/DeDRM_tools/issues/1973#issuecomment-1001322936, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXB2TSM7AEV3PDJSLG657BTUS7RRLANCNFSM5KZTAXRQ . 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.Message ID: @.***>

-- Do not meddle in the affair of Dragons...for you are crunchy and good with ketchup....

ElleKayEm commented 2 years ago

Then you will need to download it with Kindle for PC. See this post for getting files you can decrypt: https://www.mobileread.com/forums/showthread.php?t=283371

KendallCH01 commented 2 years ago

Or do I need to get an earlier version of Calibre?

(The Kindle for PC and Kindle for Mac programs use Amazon's KFX format for most books. Each book will appear in a separate subdirectory of the "My Kindle Content" folder with a file extension of ".azw". Unless additional steps are taken, these books will fail to convert in calibre with the error: "KFXError: This is an Amazon KFX book. It cannot be processed.")

I'm not getting the "KFXERROR" as mentioned above, as far as I can tell...

ElleKayEm commented 2 years ago

No, I always keep calibre up to date myself. That book doesn't look like KFX but it's also not from Kindle for PC. You can only decrypt books for E-ink Kindles or Kindle for PC/Mac.

KendallCH01 commented 2 years ago

Hmm..I DID download it from Amazon with the "Via Computer Transfer" (I think that's how its worded) again because I don't have a Kindle. I know of no other reason why it shouldn't be from Amazon...

On Mon, Dec 27, 2021 at 10:48 AM ElleKayEm @.***> wrote:

No, I always keep calibre up to date myself. That book doesn't look like KFX but it's also not from Kindle for PC. You can only decrypt books for E-ink Kindles or Kindle for PC/Mac.

— Reply to this email directly, view it on GitHub https://github.com/apprenticeharper/DeDRM_tools/issues/1973#issuecomment-1001652349, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXB2TSJDX6S6UWRGFVPTUQ3UTCKHLANCNFSM5KZTAXRQ . 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.Message ID: @.***>

-- Do not meddle in the affair of Dragons...for you are crunchy and good with ketchup....

j-howell commented 2 years ago

Amazon only makes the option to download and transfer via computer available to those who own either a Kindle device or a Fire tablet. You needed to select which registered device you would be using when you started the download.

If you downloaded it for a Kindle you need to customize the plugin with the serial number of that device. If you downloaded it for a Fire then DRM removal is not possible.

ElleKayEm commented 2 years ago

Earlier you said you didn't have a Kindle. So you will need to download it with Kindle for PC. See the link I gave previously.

KendallCH01 commented 2 years ago

(Been busy with holidays and having three teeth removed) Can I convert with the Kindle version 1.33 or do I need to get the 1.17 version? if I have to get the 1.17 version, where is a reliable place to d/l it?

Thanks!

On Mon, Dec 27, 2021 at 7:46 PM ElleKayEm @.***> wrote:

Earlier you said you didn't have a Kindle. So you will need to download it with Kindle for PC. See the link I gave previously.

— Reply to this email directly, view it on GitHub https://github.com/apprenticeharper/DeDRM_tools/issues/1973#issuecomment-1001826259, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXB2TSP3GLXEKDAZMD3J7TDUTEJFXANCNFSM5KZTAXRQ . 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.Message ID: @.***>

-- Do not meddle in the affair of Dragons...for you are crunchy and good with ketchup....

ElleKayEm commented 2 years ago

You can use either. All info for how is at the link I gave previously: https://www.mobileread.com/forums/showthread.php?t=283371

KendallCH01 commented 2 years ago

Thanks, I'll check it out. (Sorry for being such a noob)

On Sat, Jan 1, 2022 at 4:51 PM ElleKayEm @.***> wrote:

You can use either. All info for how is at the link I gave previously: https://www.mobileread.com/forums/showthread.php?t=283371

— Reply to this email directly, view it on GitHub https://github.com/apprenticeharper/DeDRM_tools/issues/1973#issuecomment-1003631058, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXB2TSKOLLBAPYCUEXMUV7TUT6AQXANCNFSM5KZTAXRQ . 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.Message ID: @.***>

-- Do not meddle in the affair of Dragons...for you are crunchy and good with ketchup....