apprenticeharper / DeDRM_tools

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

[QUESTION] Book loads into calibre but does not decrypt #1431

Open glawton opened 3 years ago

glawton commented 3 years ago

CheckList


Title

My Environment

Calibre: Versionunknown

Kindle: Version latest

DeDRM: Version latest

Log

Log Title Microsoft Windows [Version 10.0.19041.685] (c) 2020 Microsoft Corporation. All rights reserved. C:\Users\glawt>calibre-debug -g calibre 5.5 [64bit] embedded-python: True is64bit: True Windows-10-10.0.19041 Windows ('64bit', 'WindowsPE') ('Windows', '10', '10.0.19041') Python 3.8.5 Windows: ('10', '10.0.19041', '', 'Multiprocessor Free') Interface language: None Integration status: True Initialized urlfixer Successfully initialized third party plugins: DeDRM (7, 0, 0) && Goodreads (1, 5, 1) && Goodreads More Tags (1, 2, 1) && Goodreads_Rating (3, 1, 0) && Kindle hi-res covers (0, 5, 0) && Wikidata (2, 0, 0) Turning on automatic hidpi scaling devicePixelRatio: 2.0 logicalDpi: 96.0 x 96.0 physicalDpi: 81.28 x 80.68235294117646 Using calibre Qt style: True [0.00] Starting up... [0.00] Showing splash screen... [0.31] splash screen shown [0.31] Initializing db... [0.36] db initialized [0.36] Constructing main UI... Loaded cached store plugin for: Amazon FR Kindle at version: 16 Ignoring blacklisted device: The \\?\usb#vid_18d1&pid_4ee1#89kx0antg#{6ac27878-a6fa-4155-ba85-f98f491d4f33} device has been blacklisted by the user [0.92] main UI initialized... [0.92] Hiding splash screen Starting QuickView [1.08] splash screen hidden [1.08] Started up in 1.08 seconds with 1147 books DeDRM v7.0.0: Trying to decrypt B01466LS4K_EBOK.azw Using Library AlfCrypto DLL/DYLIB/SO Using Library AlfCrypto DLL/DYLIB/SO DeDRM v7.0.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 v7.0.0: Looking for new default Kindle Key after 0.1 seconds searching for kinfoFiles in C:\Users\glawt\AppData\Local Found K4PC 1.25+ kinf2018 file: C:\Users\glawt\AppData\Local\Amazon\Kindle\storage\.kinf2018 Decrypted key file using IDString '683472257' and UserName 'glawt' DeDRM v7.0.0: Ultimately failed to decrypt after 3.0 seconds. Read the FAQs at Harper's repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md Added B01466LS4K EBOK to db in: 0.1 Added 1 books in 3.7 seconds ```log PUT YOUR LOG ```
ElleKayEm commented 3 years ago

You should disable KFX downloads. See this post for details: https://www.mobileread.com/forums/showthread.php?t=283371

zvtoth commented 3 years ago

I'm quite new to this (both calibre and de-drm), but having the same issue. And I have tried all the possible options on that forum thread (OK, just the ones in the first post). The problem is that I'm on Mac Big Sur, which does not support old versions of Kindle for Mac. And somehow the

chmod -x /Applications/Kindle.app/Contents/MacOS/renderer-test

did not seem to do anything (I had Kindle closed when I ran it; I had to run it with sudo, so supposedly it was running, but the books downloaded afterwards and imported to Calibre remained the same drm'd and unreadable). I would be happy to do some more reading/research around here, I just feel like I have exhausted the obvious options... any suggestions would be welcome. Thank you.

ZolaLa9 commented 3 years ago

@zvtoth: did you see this post for additional info for Mac?

zvtoth commented 3 years ago

Thank you @ZolaLa9. I had not seen it, and it clarifies some things, but I'm afraid I'm still struggling. (Kindle does crash every time I close it now, so the chmod must have done something.) Since I do have a kindle device, it seems that the easiest method would be Method 3 for me. But unfortunately it does not work either; the downloaded book remains drm'ed when added to Calibre. (It's not a really huge deal. I just hate being locked into kindle, and would really like to be able to read these books in some other way.)

ElleKayEm commented 3 years ago

Did you re-download your books and re-add them to calibre after applying the chmod command?

If you have an E-ink Kindle (not a Fire), add the Kindle's serial number to DeDRM's customization.

zvtoth commented 3 years ago

Sorry @glawton for hijacking your thread. My problem at least got solved, thanks to @ElleKayEm -- as a newbie I did not realize I had to add my kindle serial number to DeDRM's customization. Works like a charm now. Thank you!!!!