apprenticeharper / DeDRM_tools

DeDRM tools for ebooks
14.52k stars 1.51k forks source link

Kindle DRM nightmare back #914

Closed CluelessReader closed 5 years ago

CluelessReader commented 5 years ago

My macbook updated to Catalina and forced my Kindle app to update too. I had Calibre set-up perfectly for my needs, it's been great the last three or four years and now it's all ruined. Tried to downgrade OS and got into scary territory. Decided upgrading my calibre plug-in to the most recent was the better option. Only now, while DRM removal still works for my Adobe ebooks - the Kindle ebooks won't convert. I saw that the latest Kindle for Mac version won't work and I can't get an older version to work on Catalina. So, I cranked up an old iMac, downloaded a kindle book on Kindle for Mac 1.17, then emailed it to my macbook and added it to calibre that way - only to find I still have an issue with DRM removal. Appreciate any help given.

My log: Traceback (most recent call last): File "site-packages/calibre/gui2/ui.py", line 157, in init File "site-packages/calibre/gui2/ui.py", line 171, in init_iaction File "site-packages/calibre/customize/init.py", line 612, in load_actual_plugin File "lib/python2.7/importlib/init.py", line 37, in import_module File "site-packages/calibre/customize/zipplugin.py", line 185, in load_module File "calibre_plugins.count_pages.action", line 26, in File "site-packages/calibre/customize/zipplugin.py", line 185, in load_module File "calibre_plugins.count_pages.dialogs", line 18, in ImportError: cannot import name get_available_formats_for_book calibre Debug log calibre 4.1 embedded-python: True is64bit: True Darwin-19.0.0-x86_64-i386-64bit Darwin ('64bit', '') ('Darwin', '19.0.0', 'Darwin Kernel Version 19.0.0: Wed Sep 25 20:18:50 PDT 2019; root:xnu-6153.11.26~2/RELEASE_X86_64') Python 2.7.16 OSX: ('10.15', ('', '', ''), 'x86_64') Interface language: None Successfully initialized third party plugins: DeDRM (6, 6, 3) && Count Pages (1, 8, 0) calibre 4.1 embedded-python: True is64bit: True Darwin-19.0.0-x86_64-i386-64bit Darwin ('64bit', '') ('Darwin', '19.0.0', 'Darwin Kernel Version 19.0.0: Wed Sep 25 20:18:50 PDT 2019; root:xnu-6153.11.26~2/RELEASE_X86_64') Python 2.7.16 OSX: ('10.15', ('', '', ''), 'x86_64') Interface language: None Successfully initialized third party plugins: DeDRM (6, 6, 3) && Count Pages (1, 8, 0) devicePixelRatio: 2.0 logicalDpi: 72.0 x 72.0 physicalDpi: 125.500001885 x 125.500001885 Using calibre Qt style: True [0.00] Starting up... [0.03] Showing splash screen... [0.31] splash screen shown [0.31] Initializing db... [0.54] db initialized [0.54] Constructing main UI... [2.04] main UI initialized... [2.04] Hiding splash screen DeDRM v6.6.3: Trying to decrypt B07BDF7WKP_EBOK.azw Using Library AlfCrypto Python MobiDeDrm v0.42. Copyright © 2008-2017 The Dark Reverser, Apprentice Harper et al. Decrypting Kindle Format 8 ebook: Cut and Run Found 4 keys to try after 0.1 seconds Crypto Type is: 2 DeDRM v6.6.3: Failed to decrypt with error: No key found in 4 keys tried. DeDRM v6.6.3: Looking for new default Kindle Key after 0.1 seconds No k4Mac kindle-info/rainier/kinf2011 files have been found. DeDRM v6.6.3: Ultimately failed to decrypt after 0.2 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 172, in _run_filetype_plugins File "calibre_plugins.dedrm.init", line 624, in run File "calibre_plugins.dedrm.init", line 574, in KindleMobiDecrypt DeDRMError: DeDRM v6.6.3: Ultimately failed to decrypt after 0.2 seconds. Read the FAQs at Harper's repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md [36.92] splash screen hidden [36.92] Started up in 36.92 seconds with 3876 books Added Cut and Run to db in: 0.1 Added 1 books in 0.9 seconds

ElleKayEm commented 5 years ago

Install calibre and the DeDRM plugin on the old iMac. Kindle for Mac needs to be on the same computer and user to get the key.

To get things working on Catalina, you would have needed to update Kindle for Mac to 1.26 and made sure things were working with DeDRM before updating the OS.

net-buoy commented 5 years ago

That is info posted a few times now on the list, but does not appear to be consistent with the lists from odamizu (https://www.mobileread.com/forums/showpost.php?p=3819708&postcount=508), and the confusion raises the question of what wold be responsible for allowing one to use kindle >1.23.1 (i.e. since I and other kept kindle at 1.23.1 because it wouldn't work with 1.26, what specifically changed?

On 10/16/19 11:18 AM, ElleKayEm wrote:

Install calibre and the DeDRM plugin on the old iMac. Kindle for Mac needs to be on the same computer and user to get the key.

To get things working on Catalina, you would have needed to update Kindle for Mac to 1.26 and made sure things were working with DeDRM before updating the OS.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/apprenticeharper/DeDRM_tools/issues/914?email_source=notifications&email_token=AAWVX7ISAIARDL34N2XIFHLQO5SG7A5CNFSM4JBPI6EKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBNUGEI#issuecomment-542851857, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAWVX7NJA4GESHKW332HJBDQO5SG7ANCNFSM4JBPI6EA.

-- "There are more things in heaven and earth, Horatio, Than are dreamt of in your philosophy. "

ElleKayEm commented 5 years ago

Explained in this comment at the blog:

https://apprenticealf.wordpress.com/2012/09/10/drm-removal-tools-for-ebooks/comment-page-49/#comment-69807

CluelessReader commented 5 years ago

Thank you! Had to find an equally ancient version of Calibre as my iMac :) but it got the job done. DeDRM worked perfectly, got the ebook converted on the old mac, then transferred successfully to my full Calibre library on my Catalina-laden macbook. Will be annoying to use the iMac as a workaround for long (plus it could die anytime) - but just thankful I've got a workaround for now.

One more question: The link given and comment above make it clear that Kindle for Mac 1.26 DeDRM needs to be working before upgrading to Catalina. But as I said, I'm already stuck with Catalina and DeDRM not working with K4M 1.26. Will DeDRM never work for me on Catalina now? Or is there a possibility that a future DeDRM upgrade will work?

And thank you for the super fast responses. You made my day. :)

ElleKayEm commented 5 years ago

From what I've seen, you must get things working before upgrading to Catalina. See the post that net-buoy linked above.

net-buoy commented 5 years ago

As I (net-buoy) noted here, I had 1.23.1 working on OSX 10.13, then did quick upgrades to 10.14 and 10.15 (catalina) and upgraded calibre to 4.0.1 before I saw the bit about Kindle 32 bit issues. So I upgraded to 1.26.1 after the upgrade. I pointed Kindle back to my 1.23.1 store (I don't know if this helped or not to be frank). Once I did the chmod, made sure all the books I wanted to add were not in the local store or in calibre, I opened Kindle 1.26.1, used the context menu to "Download", closed KIndle, opened caliber, added the file, and then converted to epub.

net-buoy commented 5 years ago

but, also as noted, you can't go back. I think it would be great if we had a recommended process with a description of why each step is where it is recommended, but I don't have enough info to do that yet. It seems that "best path" might be: (1) Make sure Kindle 1.23.1 is running on 10.13 High Sierra (2) Upgrade to Mojave (10.14) (3) Upgrade to calibre 4.0 while on 10.14 Mojave (can't upgrade to 4 under high sierra) (4) Do all you Apprentice Alf updates (6.6.3) and kfx plugin updates (5) do the Kindle update to 1.26.1 (I did the install from the App STore as I had already upgraded to Catalina) -- don't forget to do the chmod (6) Upgrade to Catalina.

@ElleKayEm ??

ElleKayEm commented 5 years ago

Unfortunately CluelessReader did not have an earlier version of Kindle for Mac working before the upgrade to Catalina. See where the log says "No k4Mac kindle-info/rainier/kinf2011 files have been found."

ElleKayEm commented 5 years ago

Pretty well detailed in the MobileRead post you linked earlier.

net-buoy commented 5 years ago

Roger that, but I think it would help if we could get info out as to "best practice" before more people start running into such problems. Because of how things get posted here and in the blog, it is often difficult to find the best path without something like a new blog post, or a new Mobile Read thread.

Took me quite a while to find the thread I linked to earlier, and I still had a number of unanswered questions and quite a few breathless moments ;-)

CluelessReader commented 5 years ago

So the only way is for me to go back a couple OS and upgrade my way back into it? I tried downgrading and it scared me. I'll probably wait until my iMac dies before I try that again. I'll just hope a fix comes out for those of us with broken Catalina DeDRM situations before then.

Thank you ElleKayEm and net-buoy. I appreciate your help and advice. It got me back and running for now. :)

net-buoy commented 5 years ago

I wonder if you could somehow try to make use of the necessary files from your iMac? That is beyond my wage grade, but if you are using the same account on the iMac do you think there is a way to spoof the install on the machine with catalina, @ElleKayEm? It seems all the app has to do is find the file...

ElleKayEm commented 5 years ago

@CluelessReader Not back to High Sierra, just Mojave. Mojove still runs 32-bit programs. Although I would be leery of rolling back the OS too.

@net-buoy Key and books must come from the same installation of Kindle for Mac.

That main thread at MobileRead has been where the ongoing issues with KFX files have been addressed ever since Kindle for PC/Mac 1.19. It's referenced in the FAQs here at GitHub. And there's a link on the latest post at the blog.