DRM Removal Tools for eBooks

Version 6.6.1 released on 2 June, 2018

Welcome to Apprentice Alf’s blog

This blog is intended to help anyone looking for free and simple software for removing DRM from their Kindle ebooks, stripping DRM from their Adobe Digital Editions ebooks, getting rid of DRM from their Barnes and Noble ebooks, freeing their Kobo ebooks of DRM, or decrypting their Fictionwise eReader ebooks.

If you want to find out more about ebooks, DRM and why you will probably want to remove the DRM from your ebooks, see this post:  Ebook Formats, DRM and You — A Guide for the Perplexed.

If you already know that you want to strip the DRM from your ebooks, you’ve found the right place.

The Tools

To get started on removing DRM from your ebooks, just download the tools archive from the link below. Unzip the archive, and start reading.

The latest release can be found at the top of this page:
https://github.com/apprenticeharper/DeDRM_tools/releases

Getting Help with the Tools

If you have any questions about the tools, ebooks, and DRM, check the FAQs at the GitHub repository:
https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md

If you have any problems with the current tools, please ask for help in a comment on this post or open a new issue at the GitHub repository. If you are having a problem with an older version of the tools, please first update to the current version, and see if that solves your problem.

Before commenting here, please check the ReadMe file and the FAQs (see link above).

In any bug report or help request, please include:

  • which tool was used
  • which OS you are using
  • where the ebook file came from (device or application)
  • any error messages
  • a log of the DRM-removal attempt (see the FAQs on how to get a log).

Anti-Piracy Notice

Please only use these tools for gaining full access to your own ebooks for archiving/conversion/convenience. De-drmed ebooks should not be uploaded to open servers, torrents, or other methods of mass distribution. No help will be given to people doing such things. Authors, retailers and publishers all need to make a living, so that they can continue to produce books for us to read. Don’t be a parasite.

Origin of the Tools

The tools for removing DRM from ePubs were originally posted at i♥cabbages’ blog. The tools for Kindle/Mobipocket were originally posted at The Dark Reverser’s blog.

They have since been improved by many people, but mostly some_updates, DiapDealer, Apprentice Alf, and Apprentice Harper. While there are many sites that redistribute these tools, the most up-to-date versions of the tools are currently released here.

Other Sources

Anyone trying to sell you ebook DRM removal tools for Adobe Adept ePub and PDFs, Barnes & Noble ePubs, Kindle ebooks, Kobo ebooks, or eReader ebooks has probably just repackaged (an earlier) version of the tools available here.

Advertisements

4,781 thoughts on “DRM Removal Tools for eBooks

  1. Transitioned from one machine to another. Installed Calibre 3.3.1(?) And the DDE Calibre plugin 6.6.1. Tried to configure the plugin for ebooks with Barnes and Noble. Usually, I can click on a button and have it import the key automatically. That option seems to be missing. This happens every so often and I can never remember how to fix it. Need help.

    • I’m an idiot. Didn’t read. Clicked on the plus button and was able to import the key. Sorry for wasting anyone’s time.

  2. Hello,

    trying to use the plugin for my Kindle on PC books so I can read them on my Kobo.
    Using Calibre with this plugin installed on my PC (Win 10). It uploads into Calibre but I can’t open it to read. I have an error saying:
    calibre, version 3.31.0
    ERROR: Could not open e-book: Failed to read book, C:\Users\DJH\Documents\Calibre Library\Unknown\B06XSVWZH6 EBOK (3)\B06XSVWZH6 EBOK – Unknown.azw click “Show Details” for more information

    Traceback (most recent call last):
    File “site-packages\calibre\utils\ipc\simple_worker.py”, line 289, in main
    File “site-packages\calibre\ebooks\oeb\iterator\book.py”, line 65, in extract_book
    File “site-packages\calibre\customize\conversion.py”, line 246, in call
    File “site-packages\calibre\ebooks\conversion\plugins\mobi_input.py”, line 35, in convert
    File “site-packages\calibre\ebooks\mobi\reader\mobi6.py”, line 84, in init
    KFXError: This is an Amazon KFX book. It cannot be processed. See https://www.mobileread.com/forums/showthread.php?t=283371 for information on how to handle KFX books.

    I also tried to open debug mode, but then I get another type of error:
    C:\Users-–>calibre-debug-g
    ‘calibre-debug-g’ is not recognized as an internal or external command,
    operable program or batch file.

    I am probably missing something somewhere. Please let me know if you need more information. Thank you.

  3. Hello –

    I got a new mac. So far the Calibre plugin has worked great, but ever since I switched to this new one, it won’t download metadata. I tried downloading from several different metadata sources so it doesn’t seem to be the source that is the issue. Here is the error message I get when I try:

    Starting job: Download metadata for one book
    Job: “Download metadata for one book” failed with error:
    Traceback (most recent call last):
    File “site-packages/calibre/gui2/threaded_jobs.py”, line 84, in start_work
    File “site-packages/calibre/gui2/metadata/bulk_download.py”, line 255, in download
    Exception: Failed to download metadata. Original traceback:

    Traceback (most recent call last):
    File “site-packages/calibre/utils/ipc/simple_worker.py”, line 289, in main
    File “site-packages/calibre/ebooks/metadata/sources/worker.py”, line 55, in main
    File “site-packages/calibre/ebooks/metadata/sources/update.py”, line 79, in patch_plugins
    File “site-packages/calibre/ebooks/metadata/sources/update.py”, line 62, in patch_search_engines
    File “”, line 11, in
    ImportError: No module named polyglot.builtins

    Called with args: ([3539], u’/var/folders/lw/_m5z748d2gq130sqwzxxh_cr0000gn/C/calibre_3.31.0_tmp_HPvyhF/Ix1SMc_metadata_bulk.log’, <calibre.db.legacy.LibraryDatabase object at 0x11892e690>, True, True, None) {u’abort’: <threading._Event object at 0x1284743d0>, u’notifications’: <Queue.Queue instance at 0x11fef4cb0>, u’log’: <calibre.utils.logging.GUILog object at 0x128474450>}

    How do I fix it? Thank you in advance!

  4. I’m having some trouble with the DRM removal plugin. I have the latest one installed, but when I import a book and try to open it with Calibre’s reader, I get an error message saying the book is locked with DRM. I am running Windows 10 and the book is in .azw3 format and was purchased from Amazon. Here is the debug log, thank you for any help.

    calibre Debug log
    calibre 3.31 embedded-python: True is64bit: False
    Windows-10-10.0.17134-SP0 Windows (’32bit’, ‘WindowsPE’)
    32bit process running on 64bit windows
    (‘Windows’, ’10’, ‘10.0.17134’)
    Python 2.7.12+
    Windows: (’10’, ‘10.0.17134’, ‘SP0′, u’Multiprocessor Free’)
    Interface language: None
    Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 8, 0) && DeDRM (6, 6, 1) && Package KFX (from KFX Input) (1, 8, 0) && KFX metadata reader (from KFX Input) (1, 8, 0) && KFX Input (1, 8, 0)
    calibre 3.31 embedded-python: True is64bit: False
    Windows-10-10.0.17134-SP0 Windows (’32bit’, ‘WindowsPE’)
    32bit process running on 64bit windows
    (‘Windows’, ’10’, ‘10.0.17134’)
    Python 2.7.12+
    Windows: (’10’, ‘10.0.17134’, ‘SP0′, u’Multiprocessor Free’)
    Interface language: None
    Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 8, 0) && DeDRM (6, 6, 1) && Package KFX (from KFX Input) (1, 8, 0) && KFX metadata reader (from KFX Input) (1, 8, 0) && KFX Input (1, 8, 0)
    Turning on automatic hidpi scaling
    devicePixelRatio: 2.0
    logicalDpi: 72.0 x 72.0
    physicalDpi: 78.9126213592 x 79.2832369942
    Using calibre Qt style: True
    [0.00] Starting up…
    [0.00] Showing splash screen…
    [0.17] splash screen shown
    [0.19] Initializing db…
    [0.25] db initialized
    [0.25] Constructing main UI…
    [3.16] main UI initialized…
    [3.16] Hiding splash screen
    [8.94] splash screen hidden
    [8.95] Started up in 8.95 seconds with 191 books
    stdout+stderr from file dialog helper: [”, ”]
    piped data from file dialog helper: [“-\xa3\x03x\xca;UXW\x9f\x9e\xe8\xfe|}\x9a\xd2\x8e\x0bx\xf6\xa1\x1c\xa5\x0b\x0c2\xdcdG\x1b'”, ‘C:\Users\Katie\Desktop\Greving Documents\My Kindle Content\Fear_ Trump in the White House.azw3’]
    DeDRM v6.6.1: Trying to decrypt Fear_ Trump in the White House.azw3
    Using Library AlfCrypto Python
    MobiDeDrm v0.42.
    Copyright © 2008-2017 The Dark Reverser, Apprentice Harper et al.
    Decrypting Kindle Format 8 ebook: Fear: Trump in the White House
    Found 4 keys to try after 0.4 seconds
    Crypto Type is: 2
    DeDRM v6.6.1: Failed to decrypt with error: No key found in 4 keys tried.
    DeDRM v6.6.1: Looking for new default Kindle Key after 0.4 seconds
    searching for kinfoFiles in C:\Users\Katie\AppData\Local
    Found K4PC 1.9+ kinf2011 file: C:\Users\Katie\AppData\Local\Amazon\Kindle\storage.kinf2011
    Decrypted key file using IDString ‘112988518’ and UserName ‘4b61746965’
    DeDRM v6.6.1: Found 1 new key
    MobiDeDrm v0.42.
    Copyright © 2008-2017 The Dark Reverser, Apprentice Harper et al.
    Decrypting Kindle Format 8 ebook: Fear: Trump in the White House
    Got DSN key from database default_key_1
    Found 4 keys to try after 0.6 seconds
    Crypto Type is: 2
    DeDRM v6.6.1: Ultimately failed to decrypt after 0.6 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 621, in run
    File “calibre_plugins.dedrm.init“, line 571, in KindleMobiDecrypt
    DeDRMError: DeDRM v6.6.1: Ultimately failed to decrypt after 0.6 seconds. Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
    Added Fear: Trump in the White House to db in: 0.4
    Added 1 books in 2.3 seconds

    • If the device you chose when downloading from the website was an E-ink Kindle (not a Fire), then you need to enter its serial number into the plugin customization. Otherwise, download it with Kindle for PC.

  5. Hello,

    I am having an issue with converting to PDF because the book says it is locked by DRM despite the plugin I have downloaded. I am using a Lenovo Yoga 720 with Windows 10 version 1803. The book was rented from Amazon.

    calibre Debug log
    calibre 3.31 embedded-python: True is64bit: False
    Windows-10-10.0.17134-SP0 Windows (’32bit’, ‘WindowsPE’)
    32bit process running on 64bit windows
    (‘Windows’, ’10’, ‘10.0.17134’)
    Python 2.7.12+
    Windows: (’10’, ‘10.0.17134’, ‘SP0′, u’Multiprocessor Free’)
    Interface language: None
    Successfully initialized third party plugins: DeDRM (6, 6, 1)
    calibre 3.31 embedded-python: True is64bit: False
    Windows-10-10.0.17134-SP0 Windows (’32bit’, ‘WindowsPE’)
    32bit process running on 64bit windows
    (‘Windows’, ’10’, ‘10.0.17134’)
    Python 2.7.12+
    Windows: (’10’, ‘10.0.17134’, ‘SP0′, u’Multiprocessor Free’)
    Interface language: None
    Successfully initialized third party plugins: DeDRM (6, 6, 1)
    Turning on automatic hidpi scaling
    devicePixelRatio: 1.0
    logicalDpi: 120.0 x 120.0
    physicalDpi: 176.695652174 x 175.846153846
    Using calibre Qt style: True
    [0.00] Starting up…
    [0.01] Showing splash screen…
    [0.14] splash screen shown
    [0.14] Initializing db…
    [0.16] db initialized
    [0.16] Constructing main UI…
    [1.89] main UI initialized…
    [1.89] Hiding splash screen
    [5.06] splash screen hidden
    [5.06] Started up in 5.06 seconds with 1 books
    stdout+stderr from file dialog helper: [”, ”]
    piped data from file dialog helper: [‘e\xfeOR&\xac\xd3\x1f\xb1\xb9\xf7\xe9\xef\xc4a\x9b\x9d\xf7\xb1ADK\x100\xcbM\xe4\x19\t\x93\xabi’, ‘C:\Users\mclen\OneDrive\Documents\My Kindle Content\B00VF63F1O_EBOK\B00VF63F1O_EBOK.azw’]
    DeDRM v6.6.1: Trying to decrypt B00VF63F1O_EBOK.azw
    Using Library AlfCrypto Python
    MobiDeDrm v0.42.
    Copyright © 2008-2017 The Dark Reverser, Apprentice Harper et al.
    Decrypting Mobipocket 4 ebook: eBook Online Access for Mastering ArcGis
    Found 0 keys to try after 0.6 seconds
    Crypto Type is: 2
    DeDRM v6.6.1: Failed to decrypt with error: Cannot decode library or rented ebooks.
    DeDRM v6.6.1: Looking for new default Kindle Key after 0.6 seconds
    searching for kinfoFiles in C:\Users\mclen\AppData\Local
    Found K4PC 1.9+ kinf2011 file: C:\Users\mclen\AppData\Local\Amazon\Kindle\storage.kinf2011
    Decrypted key file using IDString ‘1478822414’ and UserName ‘6d636c656e’
    DeDRM v6.6.1: Found 1 new key
    MobiDeDrm v0.42.
    Copyright © 2008-2017 The Dark Reverser, Apprentice Harper et al.
    Decrypting Mobipocket 4 ebook: eBook Online Access for Mastering ArcGis
    Got DSN key from database default_key_1
    Found 4 keys to try after 0.9 seconds
    Crypto Type is: 2
    DeDRM v6.6.1: Ultimately failed to decrypt after 0.9 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 621, in run
    File “calibre_plugins.dedrm.init“, line 571, in KindleMobiDecrypt
    DeDRMError: DeDRM v6.6.1: Ultimately failed to decrypt after 0.9 seconds. Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
    Added eBook Online Access for Mastering ArcGis to db in: 0.2
    Added 1 books in 1.7 seconds

    I appreciate any help! Thank you.

  6. I have KFX plugin and De-DRM plugins installed to latest version, but cannot get it to work with a recent book download from Kindle for PC. It continues to say the book is locked by DRM when I attempt to convert. I am using Calibre portable. Could that be the issue?

  7. Apple is about to release their new operating system (Mojave), which will apparently no longer run 32-bit applications. I’m wondering whether there is a 64-bit version of DeDRM imminent…?

      • Paul, are you saying that DeDRM will be dead after Apple & Microsoft finish doing away with 32-bit support in their operating systems? Both companies announced the conversion to 64-bit only operating systems several years ago in order for developers to PLAN AHEAD. Why was nothing done in regards to getting DeDRM prepared for 64-bit? Most developers released at least application versions containing both 32-bit & 64-bit code.

        • As far as I can see, the MacOS DeDRM is just an AppleScript saved as an application using the Apple-supplied Script Editor. If APPLE have planned ahead, then a 64-bit version of the MacOS DeDRM application should be simple.

          • Paul, Apple HAS been planning for this change which is why they have been telling developers about it for years. Also, since August/September 2009 developers HAVE had the capability to release 64-bit scripts IF they wanted to do so. So back to the questions:

            IS DeDRM 64-bit (either in 32/64-bit or solely 64-bit) or is it ONLY 32-bit?
            IF the last, why hasn’t a 64-bit version been released in the last NINE years?
            IF DeDRM is still only 32-bit, why do you expect the general user of DeDRM to be able to use Script Editor to create a 64-bit version?

            • I think Paul was saying it should be very simple for the developer to update the app — not expecting the general user to do so.

              Thanks for asking about calibre over at MobileRead — undoubtedly the better place to get an answer.

              • Looking at the Wikipedia Calibre (Software) article, it lists IA-32 and x64 platforms for both Windows & Linux. However for MacOS it doesn’t specify a platform; while we could take this to mean only the x64 platform is available for MacOS, I’d prefer to hear it confirmed by Kovid over at MobileRead. Hopefully he’ll reply in a day or so.

                OK, it would make sense that when the 64-bit DeDRM plug-n was made, the same was done with the Mac DeDRM APPLICATION. We just need definite confirmation.

                • The application and the plugin use exactly the same python scripts. The only question is whether the alfcrypto library has been compiled for 64-bit MacOS correctly. Even if it hasn’t, the scripts should still work, as I beleive there’s a python fallback if the alfcrypto library doesn’t load.

                  • Paul, in the reply you quoted, I was referring to Calibre, not DeDRM; we do need a definitive answer on both applications, if only for a warm fuzzy!

              • Running the mojave Beta part of my time, I can safely say, that Calibre Version 3.31 (and a little earlier 3.x) works under mojave.
                Will test DeDRM in the next few hours, and leave a comment, not really sure, wether I tested it before.

                Also, DeDRM Mac 6.5.1 (and some older ones, 6.5, maybe 6.4) standalone has a problem with decrypting Kindle Files, both drag&drop and with selecting with the file open dialog, both Kindle4Mac files and Files from an eInk device. Epub decrypting works.
                Therefore I still use a copy of 6.5.3 as a standalone for drag&drop, which I prefer. Sorry, I did not bother to report the error, even though I think, it might be an easy one to fix.
                The settings worked before, and where not changed for a long time, and are also in the place where the older version finds it without problems.

                • However, doesn’t Mojave still run 32-bit apps? IIRC, it will be the LAST version of MacOS to do so. It will be the September 2019 MacOS release that will run only 64-bit applications. Circumstantial evidence suggests that Calibre is a 64-bit application already, but we need a definitive answer.

                  • You are correct, but there should be a way to find out wether an App (program) is 32-Bit or 64-Bit.

                    A quick Google later. And this works also on Yosemite, so no need to boot mojave, lucky me.

                    Find 32-Bit Mac Apps
                    On the desktop, click on the Apple logo () at the upper left of the screen.
                    Click About This Mac.
                    In the window that pops up, click System Report.

                    Next, in the System Information app that this brings up, find Applications under Software in the left menu.
                    Click on Applications, and your Mac will take a few seconds to compile the list.
                    Once it’s finished, scroll sideways to right until you see the column with the header 64-bit (Intel).

                    This now might be good time to check your installed programs, before installing mojave.

                    And I still have older Calibre versions in this list (copies, saved backups or so), so the
                    Versions 1.48, 2.53, 3.31 are all 64-Bit.

            • There’s certainly a 64-bit version of calibre for the Mac (I use it). And since I use the DeDRM plugin with it, clearly the python scripts must be 64-bit compatible. If Apple has provided a 64-bit Script Editor, then I assume it’ll be a simple job to produce a 64-bit version of the DeDRM application.

              Umm… you do know that Apprentice Alf and Apprentice Harper do this on a volunteer basis? And that anyone can contribute a fix to the github repository?

              Hopefully someone will do so, if Alf and/or Harper don’t get around to it.

      • Booted into mojave Beta (which is freely available also to non-paying developers after registration).

        DeDRM standalone works (6.5.1).
        Calibre Version 3.31 works, Calibre DeDRM Plugin works.

        Tested with 3 Kindle books, and I also tested from Finder to open them with the ebook viewer from Calibre before stripping DRM, and got the normal error message, that all were locked with DRM, which was just by chance, they could also have all been without DRM and I wanted to be sure.

        But with mojave you have to give the permission to work a few times (to use Finder etc.), which gets really annoying. I thought there would be a dialog to save this setting or that would be saved after the second time automatically, but no. Hopefully this gets better with the release version.

    • Mojave is the last OS to support 32-bit. Over at GitHub, someone reported success using the stand-alone Mac app with a beta version of Mojave.

      Is the Mac version of calibre 64-bit?

        • I’ve just realised that I don’t actually know if calibre is 64-bit compatible. But I do know that the plugin works with the 64-bit Windows version, so my point about the python working under 64-bit holds.. And checking in the Mac DeDRM application, there appears to be 64-bit versions of the alfcrypto library.

          • There really should be an edit function! You can do one (and only one) of the following to my reply above:

            Delete “is”
            Delete “has”
            Add “and” between “is” & “has”

            The meaning will stay the same no matter which option you chose.

  8. I installed calibre 3.3.1, activated the plugin v6.6.1 and imported the .azw file from kindle PC directory successfully. But on opening it in the calibre ebook reader all the pages are white and I am also not being able to convert the .azw file to epub file with the conversion stopping at 47.5 %.

    Please advice/help.

  9. You are a genius, THANK YOU FOR THIS TOOL

    took a few minutes to figure out that without NOOK Study i had to configure the plugin to pull my key from b&N online wiht my Nook login, but smooth sailing after that

  10. I followed all installation instructions and added book to Calibre from my Kindle and it failed to remove DRM. Can anyone help please. My log is as follows:
    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: F:\ documents
    Job: 1 Get device information finished
    No details available.
    Job: 2 Set library information finished
    No details available.
    DEBUG: 0.4 USBMS: scan from root False F:\documents
    DEBUG: 0.7 USBMS: count found in cache: 80, count of files in metadata: 80, need_sync: False
    DEBUG: 0.7 USBMS: Finished fetching list of books from device. oncard= None
    DEBUG: 0.8 USBMS: Fetching list of books from device. Device= KINDLE2 oncard= carda
    DEBUG: 0.8 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= 80
    DeviceJob: set_books_in_library finished: time= 0.0370001792908
    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: 3 Get list of books on device finished
    No details available.
    Started up in 14.84 seconds with 108 books
    Job: 4 Prepare files for transfer from device started
    DeviceJob: 4 Prepare files for transfer from device done, calling callback
    DeviceJob: 4 Prepare files for transfer from device callback returned
    Job: 4 Prepare files for transfer from device finished
    No details available.
    DeDRM v6.6.1: Trying to decrypt The Road to Hell State Violence-asin_B01FYJ573Q-type_EBOK-v_0.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 Road to Hell: State Violence against Children in Postwar New Zealand
    Found 0 keys to try after 0.3 seconds
    Crypto Type is: 2
    DeDRM v6.6.1: Failed to decrypt with error: No key found in 0 keys tried.
    DeDRM v6.6.1: Looking for new default Kindle Key after 0.4 seconds
    searching for kinfoFiles in C:\Users\Allan\AppData\Local
    No K4PC kindle.info/kinf/kinf2011 files have been found.
    DeDRM v6.6.1: Ultimately failed to decrypt after 0.4 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 154, in _run_filetype_plugins
    File “calibre_plugins.dedrm.init“, line 621, in run
    File “calibre_plugins.dedrm.init“, line 571, in KindleMobiDecrypt
    DeDRMError: DeDRM v6.6.1: Ultimately failed to decrypt after 0.4 seconds. Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
    Added The Road to Hell: State Violence against Children in Postwar New Zealand to db in: 0.4
    Added 1 books in 3.4 seconds
    DeviceJob: set_books_in_library: books to process= 80
    DeviceJob: set_books_in_library finished: time= 0.0429999828339

      • My Problem is, that i bought a Kobo book in the meaning, that i can read it on my Kindle. But alas, i was wrong!
        So I started to try to do something and I followd your way.
        DRM isn’t removed, when I add Kobo book with drm to Calibre, with yout PlugIn installed.

        Clicking the Icon Obok DeDRM in Calibre give this error:

        calibre, version 3.31.0
        ERROR: Obok DeDRM v6.5.4: Could not find Kobo Library
        – Windows/Mac: do you have Kobo Desktop installed?
        – Windows/Mac/Linux: In case you have an Kobo eInk device, connect the device.

        I don’t have such a Device, I have only the Kobo App installed on the Windows 10- Desktop

        Here the log in the cmd Window:

        C:\Users\Besitzer>calibre-debug -g
        calibre 3.31 embedded-python: True is64bit: False
        Windows-10-10.0.17134-SP0 Windows (’32bit’, ‘WindowsPE’)
        32bit process running on 64bit windows
        (‘Windows’, ’10’, ‘10.0.17134’)
        Python 2.7.12+
        Windows: (’10’, ‘10.0.17134’, ‘SP0′, u’Multiprocessor Free’)
        Interface language: de
        Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 8, 0) && Package KFX (from KFX Input) (1, 8, 0) && KFX metadata reader (from KFX Input) (1, 8, 0) && KFX Input (1, 8, 0) && Obok DeDRM (6, 5, 4) && Kobo Utilities (2, 6, 0) && Kobo Books (1, 3, 0)
        Turning on automatic hidpi scaling
        devicePixelRatio: 1.0
        logicalDpi: 96.0 x 96.0
        physicalDpi: 86.4680851064 x 86.4106312292
        Using calibre Qt style: True
        [0.00] Starting up…
        [0.02] Showing splash screen…
        [0.08] splash screen shown
        [0.08] Initializing db…
        [0.09] db initialized
        [0.09] 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::action_err.py – loading translations
        DEBUG: 0.0 KoboUtilites::action.py – loading translations
        DEBUG: 0.0 KoboUtilites::dialogs.py – loading translations
        DEBUG: 0.0 KoboUtilites::action.py – loading translations
        DEBUG: 1.1 No Kobo Touch, Glo or Mini appears to be connected
        DEBUG: 1.1 rebuild_menus – self.supports_ratings=None, self.supports_tiles=None
        DEBUG: 1.1 KoboUtilities:set_toolbar_button_tooltip – start: text=’None’
        DEBUG: 1.1 device_driver_name – could not load extended driver. Exception= No module named kobotouch_extended.device.driver
        DEBUG: 1.1 KoboUtilities:set_toolbar_button_tooltip – setting to text=’Utilities to use with Kobo ereaders

        Driver: KoboTouch’
        DEBUG: 1.2 device_driver_name – could not load extended driver. Exception= No module named kobotouch_extended.device.driver
        [1.80] main UI initialized…
        [1.80] Hiding splash screen
        [2.09] splash screen hidden
        [2.09] Started up in 2.09 seconds with 4 books
        stdout+stderr from file dialog helper: [”, ”]
        piped data from file dialog helper: [‘S\xb9\xb1!Q\x99g\xd0\xaet\xed\xd6\xa6\x92\x9b\xfe\xa3\xdc\xf8R\xe6\xa7\t\x9d\xfb\xeel|\x1e\xeb\x1f\xad’, ‘C:\Users\Besitzer\Documents\My Digital Editions\21 Lezioni Per Il XXI Secolo.epub’]
        Added 21 Lezioni Per Il XXI Secolo to db in: 0.2
        Added 1 books in 0.5 seconds

        calibre, version 3.31.0
        ERROR: Obok DeDRM v6.5.4:

        Could not find Kobo Library

        Windows/Mac: do you have Kobo Desktop installed?

        Windows/Mac/Linux: In case you have an Kobo eInk device, connect the device.

  11. Hi, I’m trying to import/convert .kfx files from Kindle for Android into Calibre. I’m using Windows 10 on my laptop. My Andriod device is a Samsung Galaxy Tab S2 tablet. I downloaded DeDRM version Version 6.6.1 and the latest version of Calibre onto my laptop. I understand that I have to install the key from my Android device. While following the directions on the “Managing Kindle for Android Keys” help page, I ran into an error trying to add the key. The steps I’m following are:

    1) Installed Android Debug Bridge
    2) Ran “adb backup com.amazon.kindle”, which created the “backup.ab” file
    3) Opened the “Customize DeDRM” plug-in Calibre
    4) Clicked the “Kindle for Android ebooks” button
    5) Clicked the + sign to add a key
    6) Choose the backup.ab file and clicked Open
    7) Entered a name in the “Unique Key Name” box
    8) Clicked OK
    9) I get an Error that says “Please choose a Kindle for Android backup file”

    Please help.

  12. I can’t find a way to access my Nook books on my computer (Macbook, Sierra OS). I’ve tried downloading the Nook for Mac program from the link, but it crashes on opening. I haven’t been able to find a way to transfer them from my tablet either. When I use a file explorer to search the folder they should be in, nothing shows up. Are there any other methods I can try or am I SOL?

    • If you have access to a Windows PC, the old Nook for PC program still works. Other than that, I’m not sure. Possibly a rooted Android device or an old version of the Nook for Android app. Some older Nook devices and surprisingly the current Nook Glowlight 3 (I think).

  13. I’m trying to load the Obok plugin and calibre’s not recognising it. I have the latest version of both the tools and of calibre, and when I navigate to the folder, everything’s greyed out. I’m on a Mac running High Sierra 10.13.6. Did something become incompatible that isn’t noted?

    • If you downloaded the tools and unzipped them, you should see something like this in the finder:
      a folder named (or newer)
      DeDRM_tools_6.6.1
      inside this folder:
      folders = ():
      (DeDRM_Macintosh_Application)
      (DeDRM_Windows_Application)
      (DeDRM_calibre_plugin)
      (Obok_calibre_plugin)
      (Other_Tools)
      (scr)
      and these files
      FAQs.md
      README.md
      ReadMe_First.txt

      The folder named
      (Obok_calibre_plugin)
      contains
      (obok_plugin)
      obok_plugin.zip
      obok_plugin_ReadMe.txt

      The obok_plugin.zip is needed for Calibre and to be selected
      from within Calibre – as explained in the obok_plugin_ReadMe.txt.
      Most common errors:
      not having unZipped DeDRM_tools
      or everything (all Zips).

      Other problems? Beginning with Sierra / High Sierra and
      more so in mojave, MacOS has hightened security features, which
      can hinder installation of unsigned (unkown source) programs.

      There should pop up a dialogue asking for confirmation.
      Stil working mainly on Yosemite (without those security),
      I cannot say the exact wording nor how to circumvent this
      in this case, but I know it is possible.

      If this is your problem, maybe some other person may help?!
      Or Google.

  14. I just updated to this latest version and it just doesn’t work for the adobe files I have (it used to). I’ve done a ton of reading but I don’t believe I’ve done anything wrong! Anyone know if I need a special key or something? Using Windows 10… this has always been so simple in the past.

  15. Running adobekey.pyw produces the error message: Adobe Digital Editions not activated.

    My setup is: Ubuntu 18.04, wine-3.0 (Ubuntu 3.0-1ubuntu1), ADE 2.0.1 working and authorised, Python 2.7.15, pycrypto-2.6.1.win32-py2.7.exe

    Any help appreciated.

    • DeDRM can be tricky to set up on Linux. Sometimes ADE can even be troublesome on Windows. Try searching the issues over at Apprentice Harper’s GitHub repository.

  16. Hi. I have been using Calibre successfully for several years. Like many others, I am now having problems converting kindle ebooks. As suggested in forums I have visited, I have downgraded to v 1.17.0 of kindle for mac. I also have used the terminal input suggestion for preventing books from being downloaded in kfx format. When I get a book from Amazon & send it to kindle for mac, it comes in AZW format, but when I try to convert to MOBI, I get the error message stating the book is protected by DRM. I have installed the latest deDRM plugin. I just can’t figure out what I am doing wrong. Help please! Thanks in advance.

      • Here is the log. Even though the log states that the description was successful, when I try to convert the book from AZW to MOBI, I get the error message that the book is protected by DRM :

        libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
        objc[55882]: Class FIFinderSyncExtensionHost is implemented in both /System/Library/PrivateFrameworks/FinderKit.framework/Versions/A/FinderKit (0x7fffa9a071d0) and /System/Library/PrivateFrameworks/FileProvider.framework/OverrideBundles/FinderSyncCollaborationFileProviderOverride.bundle/Contents/MacOS/FinderSyncCollaborationFileProviderOverride (0x117a92dc8). One of the two will be used. Which one is undefined.
        calibre Debug log
        calibre 2.9 isfrozen: True is64bit: True
        Darwin-18.0.0-x86_64-i386-64bit Darwin (’64bit’, ”)
        (‘Darwin’, ‘18.0.0’, ‘Darwin Kernel Version 18.0.0: Wed Aug 22 20:13:40 PDT 2018; root:xnu-4903.201.2~1/RELEASE_X86_64’)
        Python 2.7.8
        OSX: (‘10.14’, (”, ”, ”), ‘x86_64’)
        Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) && DeDRM && Package KFX (from KFX Input) && KFX metadata reader (from KFX Input) && KFX Input && Set KFX metadata (from KFX Output) && KFX Output
        Starting up…
        Started up in 93.12 seconds with 2 books
        Worker Launch took: 0.0972712039948
        Job: 1 Read metadata (0 of 1) finished
        Read metadata (0 of 1)
        Gather KFX-ZIP (from KFX Input) 1.8.0: Importing /Users/applemac/Documents/Kindle Content Jim/B07J3NGCFD_EBOK.azw
        Gather KFX-ZIP (from KFX Input): File is not KFX format
        DeDRM v6.6.1: Trying to decrypt B07J3NGCFD_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: Confederate Union Victory
        Found 46 keys to try after 0.1 seconds
        Crypto Type is: 2
        File is encoded with PID b7h4MDrNN4.
        Decrypting. Please wait . . . . done
        Decryption succeeded after 0.1 seconds
        DeDRM v6.6.1: Finished after 0.1 seconds

        Added Confederate Union Victory to db in: 0.2707259655 seconds

        • Hmm, that’s odd. If the DRM removal was successful, it wouldn’t have the AZW extension after being added to calibre.

          I notice you’re using a pretty old version of calibre, but I’m kind of stumped as to what’s going on here. Is it a purchased book?

          • I actually thought that I had very recently updated Calibre. I guess I need to update now. The book is one I downloaded from Amazon’s Kindle unlimited program. I have the one-month trial membership.

        • Interesting. I just did the same book (“Confederate Union Victory”) on Friday, 12 Oct 18. I have Kindle for Mac 1.17 so I ended up with an AZW3 file in Calibre and converted it to ePub.

    • The log is needed to investigate the problem.
      The problem is usually that the key is not found, for some reason.

      Both on Windows and Mac OS I would suggest doing a clean install with a new user.
      Install the 1.17 (old, downgraded) version of Kindle for Mac, to be on the save side.
      Install Calibre (newest) and DeDRM (newest) either the standalone or the plugin for Calibre, start
      Calibre new.
      Login to Kindle for Mac with your account.
      Download the ebooks fresh there (this is important), and then try to DeDRM them.
      Probably it works.
      If not, as already said, we need a log.

      For Kfx there are now Calibre plugins to import (and export) this format, it works imho now for
      70% of the books, so you might give it a try.

      • If there are other problems, we need also more information, an error message and the OS Version. Since Mac OS mojave, there may be security settings preventing some part the installations.

  17. Hi, thanks for all the free tools. Only one question, why is the epub (Adobe digital edition) 4 pages shorter after DRM removal?

Leave a Reply to Word Instill Cancel reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.