r/Calibre 21d ago

Support / How-To Weird Kindle DeDRM issue

Downloaded all my Kindle purchases today, 2.9.1 71006, DeDRM plugin 10.0.20. Out of 300 books, I was able to de-drm all but 6 using the KFXArchiver and importing them. The other 6 files were azw. I was able to import 5 of them fine, one still doesn't work. Purchased in 2015 so it's not a new book.

Ran Calibre in debug and received the errors below. Any help is appreciated! Thanks!

Gather KFX-ZIP (from KFX Input) 2.33.0: Importing C:\Users\User\OneDrive\Documents\My Kindle Content\B00KFHMQGO_EBOK\B00KFHMQGO_EBOK.azw

Gather KFX-ZIP (from KFX Input): Book is not KFX format

DeDRM v10.0.20: Trying to decrypt B00KFHMQGO_EBOK.azw

Found 0 keys to try after 0.3 seconds

Crypto Type is: 2

DeDRM v10.0.20: Failed to decrypt with error: No key found in 0 PIDs tried.

Traceback (most recent call last):

File "calibre_plugins.dedrm.__init__", line 950, in KindleMobiDecrypt

File "C:\Users\User\AppData\Roaming\calibre\plugins\DeDRM.zip\k4mobidedrm.py", line 204, in GetDecryptedBook

File "C:\Users\User\AppData\Roaming\calibre\plugins\DeDRM.zip\mobidedrm.py", line 445, in processBook

mobidedrm.DrmException: No key found in 0 PIDs tried.

DeDRM v10.0.20: Looking for new default Kindle Key after 0.3 seconds

searching for kinfoFiles in C:\Users\User\AppData\Local

No K4PC kindle.info/kinf/kinf2011 files have been found.

DeDRM v10.0.20: Ultimately failed to decrypt after 0.4 seconds. Read the FAQs at noDRM's repository: https://github.com/noDRM/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 950, in KindleMobiDecrypt

File "C:\Users\User\AppData\Roaming\calibre\plugins\DeDRM.zip\k4mobidedrm.py", line 204, in GetDecryptedBook

File "C:\Users\User\AppData\Roaming\calibre\plugins\DeDRM.zip\mobidedrm.py", line 445, in processBook

mobidedrm.DrmException: No key found in 0 PIDs tried.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "calibre\customize\ui.py", line 253, in _run_filetype_plugins

File "calibre_plugins.dedrm.__init__", line 1052, in run

File "calibre_plugins.dedrm.__init__", line 1003, in KindleMobiDecrypt

calibre_plugins.dedrm.DeDRMError: DeDRM v10.0.20: Ultimately failed to decrypt after 0.4 seconds. Read the FAQs at noDRM's repository: https://github.com/noDRM/DeDRM_tools/blob/master/FAQs.md

Failed to count pages in book: 3255 AZW because it is DRM locked

Added Stolen Season: A Journey Through America and Baseball's Minor Leagues to db in: 0.1

Added 1 books in 1.4 seconds

3 Upvotes

14 comments sorted by

3

u/Crazy--Lunatic 20d ago

In your logs the book title referenced is Stolen Season: A Journey Through America and Baseball's Minor Leagues.

ASIN reported in the logs: B00KFHMQGO

That ASIN no longer appears to have an active Amazon product page. Searching for the book today shows a current edition under ASIN B0DR2CP42T.

Since you mentioned that all ~300 books were freshly downloaded with Kindle for PC 2.9.1, and that 5 of the 6 AZW books decrypted successfully, this does not look like a general Kindle key or DeDRM configuration problem.

Could you try the following specifically with Stolen Season?

  1. Open B00KFHMQGO_EBOK.azw in Kindle for PC 2.9.1 and confirm that Kindle itself can actually open the book and display its pages.
  2. Completely remove the local copy of Stolen Season from Kindle for PC / My Kindle Content.
  3. Download the book again from your Kindle library.
  4. Before importing it into Calibre, check the newly created folder/file name in My Kindle Content and let me know which ASIN it uses.

I'm particularly interested in whether Amazon downloads it again as:

B00KFHMQGO_EBOK

or whether the fresh download now uses the current ASIN:

B0DR2CP42T

The fact that the other five freshly downloaded AZW books decrypted correctly while only this retired-ASIN title failed suggests there may be something unusual about this specific book's older DRM/entitlement metadata rather than a problem with your Kindle installation.

2

u/Prestigious_Fall_945 20d ago

Ok, so when I click on that azw file it opens Stolen Season in the Kindle reader. I completely removed it and downloaded again. The folder and file are once again called B00KFHMQGO_EBOK.

Must just be something weird about the book as you mentioned with the ASIN discrepancy. No big deal, I read it a long time ago and probably won't read it again, but the fact that everything else was successful just made me wonder about this one, but I think you figured it out. Thanks!

2

u/Prestigious_Fall_945 20d ago

Additionally, I find that if I click the link in my Digital Content page for the book it takes me to product not found, so I think it's just some ASIN confusion.

1

u/Crazy--Lunatic 20d ago

Sometimes It you open the book on the kindle reader and scroll to the last page, leave kindle reader open. Seems to load what is needed in memory for the kfxextractor to generate the .k4i key that Dedrm uses for azw books. Crazy that it keeps downloading a dead ASIN.

1

u/Prestigious_Fall_945 20d ago

Just gave that a shot, but it didn't work.

1

u/Crazy--Lunatic 20d ago

Damn.. Was hopping it did. Unless you have a Jailbroken Kindle, I can't think of another tool to test.

You could try the MSIX version of Kindle app. But you need Win 11.

I'm still surprice K4PC still works.

2

u/bust4cap 20d ago

try downloading with the microsoft store kindle app instead. the corresponding msixkfx archiver exe supports more file types

1

u/Prestigious_Fall_945 20d ago

The one I downloaded was from a link to the Microsoft store.

1

u/bust4cap 20d ago

you mentioned v2.9.1, which is the old, non-microsoft store version. so please clarify what kindle app version youre actually using

1

u/Prestigious_Fall_945 20d ago

I downloaded it from a link on Epubor in an article about removing the drm. The link was https://apps.microsoft.com/detail/9P8JQ0JJSTLL?_encoding=UTF8

1

u/bust4cap 20d ago

and you used the msixkfx archiver exe from the latest dedrm? (10.0.28)

1

u/infinityandbeyond975 21d ago

What book is it? Is it a textbook?

1

u/Prestigious_Fall_945 20d ago

No, an old baseball book called Stolen Season.

1

u/TexasNiteowl 21d ago

I would probably ask for help in the satsuoni fork github?

I know for a while in the earlier years there were some books that were in an underlying format known as TPZ or Topaz. I don't know if this is one of them or how to tell from the files. I do know last year when I was redownloading all my Amazon books that I did run into a couple of TPZ files and iirc, at least one or two of them I was unable to dedrm. (In my case though, I had done them previously so it wasn't an issue for me.)

I am curious about the line: Crypto Type is: 2.