DRM Removal Tools for eBooks

Version 6.5.4 released on 27 June, 2017

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

3,778 thoughts on “DRM Removal Tools for eBooks

  1. I figured out how to update the Kindle plugin. I have both the Kindle for PC and an actual kindle device. The PC one looks to have auto-populated a key and I added the serial number of my kindle to the eink area of the plugin. Using the kindle for pc app, I was able to dedrm one kindle book only (AZW3 format). When I attempted to do a second one (AZW format), I got the following error message. I tried several times to remove the locked version and readded it to Calibre with no success.

    Convert book 1 of 1 (Water for Elephants)
    Resolved conversion options
    calibre version: 2.22.0
    {‘asciiize’: False,
    ‘author_sort’: None,
    ‘authors’: None,
    ‘base_font_size’: 0.0,
    ‘book_producer’: None,
    ‘change_justification’: u’original’,
    ‘chapter’: u”//[((name()=’h1′ or name()=’h2′) and re:test(., ‘\s((chapter|book|section|part)\s+)|((prolog|prologue|epilogue)(\s+|$))’, ‘i’)) or @class = ‘chapter’]”,
    ‘chapter_mark’: u’pagebreak’,
    ‘comments’: None,
    ‘cover’: None,
    ‘debug_pipeline’: None,
    ‘dehyphenate’: True,
    ‘delete_blank_paragraphs’: True,
    ‘disable_font_rescaling’: False,
    ‘dont_compress’: False,
    ‘duplicate_links_in_toc’: False,
    ’embed_all_fonts’: False,
    ’embed_font_family’: None,
    ‘enable_heuristics’: False,
    ‘expand_css’: False,
    ‘extra_css’: None,
    ‘extract_to’: None,
    ‘filter_css’: u”,
    ‘fix_indents’: True,
    ‘font_size_mapping’: None,
    ‘format_scene_breaks’: True,
    ‘html_unwrap_factor’: 0.4,
    ‘input_encoding’: None,
    ‘input_profile’: <calibre.customize.profiles.InputProfile object at 0x0398A030>,
    ‘insert_blank_line’: False,
    ‘insert_blank_line_size’: 0.5,
    ‘insert_metadata’: False,
    ‘isbn’: None,
    ‘italicize_common_cases’: True,
    ‘keep_ligatures’: False,
    ‘language’: None,
    ‘level1_toc’: None,
    ‘level2_toc’: None,
    ‘level3_toc’: None,
    ‘line_height’: 0.0,
    ‘linearize_tables’: False,
    ‘margin_bottom’: 5.0,
    ‘margin_left’: 5.0,
    ‘margin_right’: 5.0,
    ‘margin_top’: 5.0,
    ‘markup_chapter_headings’: True,
    ‘max_toc_links’: 50,
    ‘minimum_line_height’: 120.0,
    ‘mobi_file_type’: u’old’,
    ‘mobi_ignore_margins’: False,
    ‘mobi_keep_original_images’: False,
    ‘mobi_toc_at_start’: False,
    ‘no_chapters_in_toc’: False,
    ‘no_inline_navbars’: False,
    ‘no_inline_toc’: False,
    ‘output_profile’: <calibre.customize.profiles.NookOutput object at 0x0398A470>,
    ‘page_breaks_before’: u”//*[name()=’h1′ or name()=’h2′]”,
    ‘personal_doc’: u'[PDOC]’,
    ‘prefer_author_sort’: False,
    ‘prefer_metadata_cover’: False,
    ‘pretty_print’: False,
    ‘pubdate’: None,
    ‘publisher’: None,
    ‘rating’: None,
    ‘read_metadata_from_opf’: u’C:\Users\Rachel\AppData\Local\Temp\calibre_fxdwkl\bmgovz.opf’,
    ‘remove_fake_margins’: True,
    ‘remove_first_image’: False,
    ‘remove_paragraph_spacing’: False,
    ‘remove_paragraph_spacing_indent_size’: 1.5,
    ‘renumber_headings’: True,
    ‘replace_scene_breaks’: u”,
    ‘search_replace’: ‘[]’,
    ‘series’: None,
    ‘series_index’: None,
    ‘share_not_sync’: False,
    ‘smarten_punctuation’: False,
    ‘sr1_replace’: None,
    ‘sr1_search’: None,
    ‘sr2_replace’: None,
    ‘sr2_search’: None,
    ‘sr3_replace’: None,
    ‘sr3_search’: None,
    ‘start_reading_at’: None,
    ‘subset_embedded_fonts’: False,
    ‘tags’: None,
    ‘timestamp’: None,
    ‘title’: None,
    ‘title_sort’: None,
    ‘toc_filter’: None,
    ‘toc_threshold’: 6,
    ‘toc_title’: None,
    ‘unsmarten_punctuation’: False,
    ‘unwrap_lines’: True,
    ‘use_auto_toc’: False,
    ‘verbose’: 2}
    InputFormatPlugin: MOBI Input running
    on C:\Users\Rachel\AppData\Local\Temp\calibre_fxdwkl\gmtrvy.azw
    Python function terminated unexpectedly
    Unknown book type: ‘\x81\xc4\xde\x02|\x8c”\x08’ (Error Code: 1)
    Traceback (most recent call last):
    File “site.py”, line 132, in main
    File “site.py”, line 109, in run_entry_point
    File “site-packages\calibre\utils\ipc\worker.py”, line 193, in main
    File “site-packages\calibre\gui2\convert\gui_conversion.py”, line 31, in gui_convert_override
    File “site-packages\calibre\gui2\convert\gui_conversion.py”, line 25, in gui_convert
    File “site-packages\calibre\ebooks\conversion\plumber.py”, line 1041, in run
    File “site-packages\calibre\customize\conversion.py”, line 241, in call
    File “site-packages\calibre\ebooks\conversion\plugins\mobi_input.py”, line 33, in convert
    File “site-packages\calibre\ebooks\mobi\reader\mobi6.py”, line 78, in init
    calibre.ebooks.mobi.MobiError: Unknown book type: ‘\x81\xc4\xde\x02|\x8c”\x08’

    • It’s most likely you’ve downloaded a KFX format eBook. Download that same book from Amazon using USB transfer and you will get a KF8 format eBook that the DRM can be removed from.

      Also, what OS and version Kindle are you running on the computer?

      • I have Windows 7 and the paperwhite. The firmware version on the Kindle is 5.8.9.2 (3179290002). I seem to have the latest software version as I am unable to update the software.

        • Current Firmware for Paperwhite 2nd and 3d Gen ist 5.8.10, I do not think (!) it matters, but if you really want to be current, you can try to update manually.
          The last time that failed for me, the Kindle was low on memory (my fault), and the error message was indicating that.

      • Also, I downloaded all three Kindle books via the PC app (the latest version). It’s odd that one converted just fine but the other two are unknown file formats to Calibre. How is that possible?

            • AZW is the extension for all of Kindle for PC’s various formats. I’m guessing they’re KFX because that’s the most common problem people are having lately with Kindle books.

          • No offense, but those directions for downloading via usb are not helpful. I get to section where you can pick which location to download too (after clicking the “…” button and selecting download via usb), and I can only select my Kindle. I can see my Kindle for PC (the app is registered) but that is greyed out and I’m not able to select it…….

            • Following option three gets me no where. I still get an error message that the file has DRM when I go to convert…….

              Also still having issues removing the DRM from Nook books….

              • Did you enter your Kindle’s serial number into the plugin customization?

                Have you entered your B&N account email and password to retrieve your key?

                • How do I enter my login info? When I go to customize the B&N plugin, it only prompts me to add in my credit card info…..

                  Also, I was able to get around the KFX problem. I have a kindle paperwhite and that didn’t work with the download via usb (it uses eink, so I figured it would work). That serial number has already been added to the plugin.

                  • Update to the current plugin, version 6.5.4. It should ask for login info, not cc info.

                    The file downloaded for the Paperwhite from the website should work if the serial number is entered correctly.

            • See the link I gave above. There are 3 ways to avoid KFX and get a file that can be DeDRMed. Use an old version of Kindle for PC (version 1.17). Make a modification to the current version of Kindle for PC. Or download from the website for “download & transfer via USB” for an E-ink Kindle (not a Fire).

          • This are the details of the error message when I import a book via the newest Kindle for PC app:

            calibre, version 2.22.0
            ERROR: Could not open ebook: Unknown book type: ‘\x81\xc4\xde\x02|\x8c”\x08’

            Traceback (most recent call last):
            File “site-packages\calibre\gui2\viewer\main.py”, line 38, in run
            File “threading.py”, line 763, in run
            File “site-packages\calibre\ebooks\oeb\iterator\book.py”, line 99, in enter
            File “site-packages\calibre\customize\conversion.py”, line 241, in call
            File “site-packages\calibre\ebooks\conversion\plugins\mobi_input.py”, line 33, in convert
            File “site-packages\calibre\ebooks\mobi\reader\mobi6.py”, line 78, in init
            MobiError: Unknown book type: ‘\x81\xc4\xde\x02|\x8c”\x08’

          • I couldn’t get option 3 to work, but I downgraded the Kindle for PC app and it worked great! I made sure to turn off auto updates.

            How do I fix the Nook book drm problem? I have the study app on my computer (not sure which version) but I can’t remove the drm…

              • Weren’t we supposed to the Nook Study app? I had the regular Nook for PC and then they changed the encryption/there some sort of bug so I had to switch to the study one…

                • Back when they first changed from credit card based keys, the plugin could only get the new key through Nookstudy. Now you enter your B&N login info into the plugin to retrieve your key. But it might have trouble retrieving the key if you haven’t logged into Nook for PC before.

              • I followed your advice to no avail. I still can’t remove the DRM from my nook book. Here is the log:

                calibre Debug log
                calibre 2.22 isfrozen: True is64bit: False
                Windows-7-6.1.7601-SP1 Windows (’32bit’, ‘WindowsPE’)
                32bit process running on 64bit windows
                (‘Windows’, ‘7’, ‘6.1.7601’)
                Python 2.7.9
                Windows: (‘7’, ‘6.1.7601’, ‘SP1’, ‘Multiprocessor Free’)
                Successfully initialized third party plugins: DeDRM
                Starting up…
                Started up in 4.76 seconds with 87 books
                DeDRM v6.2.1: Trying to decrypt aplacecalledarmagedd_9781402272509.epub
                DeDRM v6.2.1: Verifying zip archive integrity
                DeDRM v6.2.1: “aplacecalledarmagedd_9781402272509.epub” is a secure Barnes & Noble ePub
                DeDRM v6.2.1: Trying Encryption key old cc
                Could not decrypt r3u0nm.epub because of an exception:
                Traceback (most recent call last):
                File “calibre_plugins.dedrm.ignobleepub”, line 314, in decryptBook
                File “calibre_plugins.dedrm.ignobleepub”, line 232, in decrypt
                File “calibre_plugins.dedrm.ignobleepub”, line 222, in decompress
                error: Error -3 while decompressing: invalid code lengths set

                DeDRM v6.2.1: Failed to decrypt with key old cc after 0.1 seconds
                DeDRM v6.2.1: Trying Encryption key B&N Key
                Could not decrypt r3u0nm.epub because of an exception:
                Traceback (most recent call last):
                File “calibre_plugins.dedrm.ignobleepub”, line 278, in decryptBook
                File “calibre_plugins.dedrm.ignobleepub”, line 209, in init
                File “calibre_plugins.dedrm.ignobleepub”, line 180, in init
                File “site-packages\pycrypto-2.6.1-py2.7-win32.egg\Crypto\Cipher\AES.py”, line 95, in new
                File “site-packages\pycrypto-2.6.1-py2.7-win32.egg\Crypto\Cipher\AES.py”, line 59, in init
                File “site-packages\pycrypto-2.6.1-py2.7-win32.egg\Crypto\Cipher\blockalgo.py”, line 141, in init
                ValueError: Key cannot be the null string

                DeDRM v6.2.1: Failed to decrypt with key B&N Key after 0.1 seconds
                DeDRM v6.2.1: Trying Encryption key default_key
                Could not decrypt r3u0nm.epub because of an exception:
                Traceback (most recent call last):
                File “calibre_plugins.dedrm.ignobleepub”, line 278, in decryptBook
                File “calibre_plugins.dedrm.ignobleepub”, line 209, in init
                File “calibre_plugins.dedrm.ignobleepub”, line 180, in init
                File “site-packages\pycrypto-2.6.1-py2.7-win32.egg\Crypto\Cipher\AES.py”, line 95, in new
                File “site-packages\pycrypto-2.6.1-py2.7-win32.egg\Crypto\Cipher\AES.py”, line 59, in init
                File “site-packages\pycrypto-2.6.1-py2.7-win32.egg\Crypto\Cipher\blockalgo.py”, line 141, in init
                ValueError: Key cannot be the null string

                DeDRM v6.2.1: Failed to decrypt with key default_key after 0.1 seconds
                DeDRM v6.2.1: Looking for new NOOK Study Keys after 0.1 seconds
                No nook Study log files have been found.
                DeDRM v6.2.1: Ultimately failed to decrypt after 0.1 seconds.
                Read the FAQs at Alf’s blog: https://apprenticealf.wordpress.com/
                Running file type plugin DeDRM failed with traceback:
                Traceback (most recent call last):
                File “site-packages\calibre\customize\ui.py”, line 155, in _run_filetype_plugins
                File “calibre_plugins.dedrm.init“, line 588, in run
                File “calibre_plugins.dedrm.init“, line 270, in ePubDecrypt
                DeDRMError: DeDRM v6.2.1: Ultimately failed to decrypt after 0.1 seconds.
                Added A Place Called Armageddon to db in: 0.2
                Added 1 books in 1.1 seconds

                • Update to the latest plugin. I note that the release note for version 6.2.2 says “This release adds support for retrieving Barnes & Noble/nook encryption keys from the B&N servers using a URL containing user email address and password.”

                  There have problem been other changes between your version and the current version. There may be no need for most people to update for ever release, but I think that you should be using 6.5.4.

                  • Paul, the older Barnes and Noble books I have (purchased 2015 and earlier) were done with a different credit card. The Nook book I attempted to DRM was one I purchased in 2015.

                    Since then, I have changed the card number associated with my B&N account. Now that B&N uses the login info, the card issue should be moot.

                    Why can I not remove the DRM from a two year old book?

                    • Download a fresh copy and it will unlock with your current key. Old copies might still have the cc based key (the default cc in your account at the time of download). Early 2015 was when they were in the process of getting the remaining accounts switched.

                    • Laura, I did what you said about downloading a new copy. It still didn’t work… 😦

                    • Please confirm this, with freshly downloaded versions of the books in question.
                      It is my understanding, that any change in the DRM-sheme at Barnes & Nobles (and probably other retailers) is applied to new downloads.

                      If you see the books and are not able to download them or even use them with something from Barnes & Nobles, I would contact support (yeah, I know, support? Barnes & Nobles? the main reason I buy at Amazon, Topnotch support).
                      If they work with Nook for Mac/Windows or Nookstudy, or on Nook Hardware, but DeDRM (plugin or standalone) does not work, a log is needed.

                      Or you could try my usual advice, given here just a few days ago: try a fresh user (Windows/Mac) and with fresh installations, etc. .

                • Yeah, DeDRM 6.2.1 is obviously not having any luck getting your current key out of Nookstudy. Update the plugin, and configure the B&N section with your B&N account info to retrieve your key.

        • Easy: quite a few books are in the older formats, which can be stripped with DeDRM and the Calibre plugin. The new ones are KFX, which is currently a problem. Solutions are linked here. You should backlevel Kindle for PC/Mac to Version 1.17.

          • On one of the computers here, I’m running Kindle for PC 1.20 and I don’t get any KFX eBooks. All you have to do is rename the program that converts the KF8 to KFX and you won’t get KFX.

            ren %localappdata%\Amazon\Kindle\application\renderer-test.exe renderer-test.xxx

      • Using the older Kindle app worked great and showed all the books I purchased save one. That one I downloaded via usb and was able to get the file as an AZW3. The DRM was not removed upon loading into Calibre. What went wrong?

        • Here is the log for the Kindle book that the drm does not seem to be removed from:

          calibre Debug log
          calibre 2.22 isfrozen: True is64bit: False
          Windows-7-6.1.7601-SP1 Windows (’32bit’, ‘WindowsPE’)
          32bit process running on 64bit windows
          (‘Windows’, ‘7’, ‘6.1.7601’)
          Python 2.7.9
          Windows: (‘7’, ‘6.1.7601’, ‘SP1’, ‘Multiprocessor Free’)
          Successfully initialized third party plugins: DeDRM
          Starting up…
          Started up in 7.21 seconds with 86 books
          DeDRM v6.2.1: Trying to decrypt The Woman on the Orient Express.azw3
          Using Library AlfCrypto DLL/DYLIB/SO
          MobiDeDrm v0.41.
          Copyright © 2008-2012 The Dark Reverser et al.
          MOBI header version 8, header length 264
          Extra Data Flags: 3
          Decrypting Kindle Format 8 ebook: The Woman on the Orient Express
          Found 10 keys to try after 0.1 seconds
          Crypto Type is: 2
          DeDRM v6.2.1: Failed to decrypt with error: No key found in 10 keys tried.
          DeDRM v6.2.1: Looking for new default Kindle Key after 0.1 seconds
          searching for kinfoFiles in C:\Users\Rachel\AppData\Local
          Found K4PC 1.9+ kinf2011 file: C:\Users\Rachel\AppData\Local\Amazon\Kindle\storage.kinf2011
          Decrypted key file using IDString ‘242359591’ and UserName ‘52616368656c’
          DeDRM v6.2.1: Found 1 new key
          MobiDeDrm v0.41.
          Copyright © 2008-2012 The Dark Reverser et al.
          MOBI header version 8, header length 264
          Extra Data Flags: 3
          Decrypting Kindle Format 8 ebook: The Woman on the Orient Express
          Found 4 keys to try after 0.2 seconds
          Crypto Type is: 2
          DeDRM v6.2.1: Ultimately failed to decrypt after 0.2 seconds.
          Read the FAQs at Alf’s blog: https://apprenticealf.wordpress.com/
          Running file type plugin DeDRM failed with traceback:
          Traceback (most recent call last):
          File “site-packages\calibre\customize\ui.py”, line 155, in _run_filetype_plugins
          File “calibre_plugins.dedrm.init“, line 577, in run
          File “calibre_plugins.dedrm.init“, line 528, in KindleMobiDecrypt
          DeDRMError: DeDRM v6.2.1: Ultimately failed to decrypt after 0.2 seconds
          Added The Woman on the Orient Express to db in: 0.3
          Added 1 books in 1.5 seconds

                  • The version Calibre plugin I am using is 6.3.3 from August 12, 2015 and it works without a problem. Works for ePub, B&N, Kindle, & PDF. I’ve never once wanted to update because something wasn’t working correctly.

                  • I updated the plugin but I still can’t DRM my nook books. I removed Nook Study and have the old Nook for PC app. I did customize the plugin: I added my login and clicked the retrieve key button before clicking ok. For some reason, the information is not saving in the plugin. I’ve tried it three times and it won’t save….

    • As JSWolf says, that’s a KFX format book, which the tools can’t handle.

      But note the DRM removal happens on import, not conversion. For help with removing DRM, post a log on the book being imported into calibre.

  2. Hello, is Amazon DRM updated? I can decrypt my older AZW files (saved in Calibre library after downloading with Kindle for PC) but not my newest purchases. I thought you should know, if you don’t already.

    • No, not the DRM has been updated, but the file format, you and most likely the Kindle for PC-Version. There are instructions here and elsewhere, how to get and install the older V 1.17 Kindle Version, the Version-Number is the same for PC and Mac.

      Quote from Laura:
      Books sent to my Kindle are now in KFX format (if I remember the type) which Calibre/DeDrm can’t deal with. If i install the older version of Kindle on my PC, that allows DE-DRMing. But I’m guessing that old version can only last so long. It seems like the usable options are being more and […]

      There are a couple other methods for avoiding KFX. See this thread at MobileRead:

      https://www.mobileread.com/forums/showthread.php?t=283371
      End-Quote

      Checked the link and the download, it is still working – for now (July 17th, 09:11 UT).
      After you de-installed and installed the older Kindle for PC-Version, be sure to disable check for updates in the settings.

      Another method (if you own an eInk-Kindle) is to use amazon.com/myk and download the books for transfer via USB. You need to configure the DeDRM-Standalone or Calibre-plugin with the serial number of your Kindle. This can be found at the same link and you can copy&paste it into a text-editor and strip the blank spaces, then copy&paste it into DeDRM or the plugin.

  3. I have tried Installing the DeDRM plugin v 6.5.4 for calibre. I get to “load form file” and get the following;
    first a warning it may contain virus/malware, I ignore that and click “yes” (green arrow).
    Then ERROR; Unhandling exception because “it does not contain a top-level_init_.py file”
    I suspect it may be my Kaspersy settings, I have copied to clipboard but cant open clipboard or go any further. This is soooo frustrating being trying for hours.
    if you have any other suggestion it would be appreciated.

      • Can’t he just add an exception to his anti-virus or did you mean to disable it, install the plugin, then re-enable the anti-virus?

    • The warning is standard for any plugin loaded from a file. The error is from trying to install the wrong thing. Unzip the main file, look in the DeDRM_calibre_plugin folder, then load the zip file in there.

  4. I just updated to Calibre 3.4.0 running Mac OS X 10.11.6. I added the DeDRM calibre plugin but am not able to “customize”. When I click “customize” I get the following error:

    calibre, version 3.4.0
    ERROR: Unhandled exception: KeyError:’androidkeys’

    calibre 3.4 embedded-python: True is64bit: True
    Darwin-15.6.0-x86_64-i386-64bit Darwin (’64bit’, ”)
    (‘Darwin’, ‘15.6.0’, ‘Darwin Kernel Version 15.6.0: Tue Apr 11 16:00:51 PDT 2017; root:xnu-3248.60.11.5.3~1/RELEASE_X86_64’)
    Python 2.7.12
    OSX: (‘10.11.6’, (”, ”, ”), ‘x86_64’)
    Interface language: None
    Successfully initialized third party plugins: DeDRM (6, 5, 4)
    Traceback (most recent call last):
    File “site-packages/calibre/gui2/preferences/plugins.py”, line 293, in customize_plugin
    File “site-packages/calibre/gui2/preferences/plugins.py”, line 371, in modify_plugin
    File “site-packages/calibre/customize/init.py”, line 155, in do_user_config
    File “calibre_plugins.dedrm.init“, line 635, in config_widget
    File “calibre_plugins.dedrm.config”, line 57, in init
    File “calibre_plugins.dedrm.prefs”, line 50, in getitem
    File “site-packages/calibre/utils/config.py”, line 420, in getitem
    KeyError: ‘androidkeys’

  5. I am so grateful these tools exist, thanks! I am just having a bit of trouble with the obok.py script. I was able to successfully convert my Kobo book into ePUB decrypted format and read it in iBooks, but iBooks will not let me make highlights in it, while I can highlight books that I imported from my Amazon library just fine. I’m thinking this must be due to the way the ePUB for this book is formatted; perhaps something about its headers or content that forces it to be non-editable. After looking at the css and the python and stuff for a few minutes, nothing jumps out at me, but I’m not an expert. Any help or comments about this would be greatly appreciated. Any thoughts? Thanks

    • I believe Obok just gives the Kobo kepub files an epub extension, but leaves all the extra kepub formating in there. You could try downloading regular Adobe DRM epubs from the Kobo website. You will need Adobe Digital Editions 2.0.1 authorized with an Adobe ID on the same machine and user as DeDRM.

      • Dang it, I did the Digital Editions thing after puzzling through the various stuff out there how to do it. I was able to DeDRM the Digital Editions download, but it has the exact same problem — cannot highlight texts or change font sizes.

        • Sorry about that. No idea why it would do that. You’re sure you didn’t mix up the Obok books with the DeDRM books somehow? Or that the Obok books weren’t actually replaced by the DeDRM ones? Don’t really know why it wouldn’t work with either really. As Ingo said, you might ask over in the MobileRead forums. They don’t allow discussion of DRM removal, but you could certainly ask about editing your (now DRM-free) epubs to work in iBooks.

          • Definitely the right book, no mix up there. The fact that I can read it using an open source epub editor or even vi shows that it has been DeDRM’d right? I’ll check out MobileRead. If I understand correctly, the DRM’d book is just an epub that has encryption wrapped around it. Once the encryption is removed, we’re just looking at a flavor of epub. So no need to discuss DRM over there except as an aside that yes that’s how I got there from a technical standpoint in case it’s relevant. I doubt it. Thanks

    • If you can read the book, DeDRM has worked, everything after that is beyond the scope of our help here.
      That said, I think you did, what I would have done, unZipped the EPUB and looked at the source.

      Maybe at mobile-read or some HTML / CSS expert (or Wiki) can shed further light on this. Depending on what kind of text this is, it might help to strip all formatting and start a new with Calibre, importing the main text. But that will turn out to be real work, and unless you have other books with the same problem, this might be a waste of time.

      • No worries, thought it was a puzzle worth trying to solve but it’s not a big deal if not. You are right, the DeDRM step worked. Now I know basically how ePUBs work which was interesting. The interesting things is that yes, the epub looks great and that’s 80% of the battle but any other format looks like hell — become maybe a calibre question etc. Thanks for the help and have a good day.

        • If you really want to get into ebook formats, EPUB may be the easiest way, so if other formats look like hell, as you have stripped DRM, you should have no trouble converting them to EPUB, it is one of the reasons to use Calibre.

          • I guess it wasn’t clear but the book is already in ePUB format. DRM has been removed. I’m unable to mark up the epub though after removing the DRM. That’s my actual question.

            • I was refering to the other ebooks, you said “look like hell”. Not having used iBooks a lot, I cannot say, how and why markup would not work on this particular book, could be something in the html/CSS-code. Again, unless someone knows what it is and says so, that is beyond this website, imho.

  6. The updated key is STILL not removing the DRM from that Kindle book. Here is the log:

    calibre Debug log
    calibre 2.22 isfrozen: True is64bit: False
    Windows-7-6.1.7601-SP1 Windows (’32bit’, ‘WindowsPE’)
    32bit process running on 64bit windows
    (‘Windows’, ‘7’, ‘6.1.7601’)
    Python 2.7.9
    Windows: (‘7’, ‘6.1.7601’, ‘SP1’, ‘Multiprocessor Free’)
    Successfully initialized third party plugins: DeDRM
    Starting up…
    Started up in 4.24 seconds with 87 books
    DeDRM v6.5.4: Trying to decrypt The Woman on the Orient Express.azw3
    Using Library AlfCrypto DLL/DYLIB/SO
    MobiDeDrm v0.41.
    Copyright © 2008-2012 The Dark Reverser et al.
    MOBI header version 8, header length 264
    Extra Data Flags: 3
    Decrypting Kindle Format 8 ebook: The Woman on the Orient Express
    Found 10 keys to try after 0.1 seconds
    Crypto Type is: 2
    DeDRM v6.5.4: Failed to decrypt with error: No key found in 10 keys tried.
    DeDRM v6.5.4: Looking for new default Kindle Key after 0.1 seconds
    searching for kinfoFiles in C:\Users\Rachel\AppData\Local
    Found K4PC 1.9+ kinf2011 file: C:\Users\Rachel\AppData\Local\Amazon\Kindle\storage.kinf2011
    Decrypted key file using IDString ‘242359591’ and UserName ‘52616368656c’
    DeDRM v6.5.4: Found 1 new key
    MobiDeDrm v0.41.
    Copyright © 2008-2012 The Dark Reverser et al.
    MOBI header version 8, header length 264
    Extra Data Flags: 3
    Decrypting Kindle Format 8 ebook: The Woman on the Orient Express
    Found 4 keys to try after 0.2 seconds
    Crypto Type is: 2
    DeDRM v6.5.4: 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 155, in _run_filetype_plugins
    File “calibre_plugins.dedrm.init“, line 611, in run
    File “calibre_plugins.dedrm.init“, line 561, in KindleMobiDecrypt
    DeDRMError: DeDRM v6.5.4: Ultimately failed to decrypt after 0.2 seconds
    Added The Woman on the Orient Express to db in: 0.3
    Added 1 books in 1.4 seconds

    • Please keep in mind that the new plugin is not working for Nook or Kindle. Both plugins are configured (for some reason the B&N one won’t save the info) correctly; the Kindle serial number is in correctly.

      The Kindle plugin is acting odd as I’ve dedrmed/converted other Kindle books with ease but this particular one (Orient Express) will not dedrm.

      Also, Calibre is acting odd too. It’ll say the file isn’t in Calibre, even though I can see it in the app and can navigate to the file location on my harddrive….

      • With Kindle books, each device and app installation has its own unique key. You can’t download this one with Kindle for PC?

        You might also want to update calibre. That version is over two years old and its updated very frequently.

        • The only way I can get it in AZW3 is to download via usb (the Kindle for PC app actually doesn’t even “see” the book). I then import that file into Calibre only to not have the drm removed.

          The files that Calibre claims aren’t there (but are) are several years old (my last batch of imports was 2015).

          I still have the older version of Calibre. When I updated the plugin, I removed the old one before I installed the new one. I noticed that the newest version of the plugin somehow captured the old plugin configurations. Could that be the problem? If so, what is the best way to fix it?

          • You should be able to see all your books in Kindle for PC’s library even if they’re not downloaded yet. Look for something that says all books (or similar) and not just downloaded books.

            The only reasons I can see the AZW3 not working is if the serial number is wrong or if the book was downloaded for a different Kindle.

            Don’t know why calibre isn’t showing old books. I’d still recommend updating calibre. No need to uninstall, but just have the old version closed. The configurations from previous versions of DeDRM should be fine. (That way you don’t have to re-configure with an update if you already have some working keys.) I only suggest removing the really old single file type DeDRM plugins, but I don’t see any of those in your logs.

          • Are the books you’ve recently imported in the same folder as the books you imported in 2015? Since it’s been a while since you last imported books into Calibre, I wonder if it’s possible that the file path to your Calibre library has changed.

        • Laura, clicking the “show all” button (or whatever it is) in the Kindle for PC app does not show the Orient Express book; there is no way to download the book via the PC app. The Orient Express book only shows up on my PC when I download via USB.

          I have manually entered AND copied and pasted the kindle serial number into the plugin. I only have one kindle device so that rules out an incorrect number and a different device.

          As for the plugin, I unstalled the old version and installed the newest version. Somehow, the newest version picked up all the old keys from old version.

          • It’s strange that the book isn’t showing in Kindle for PC. When you look at your Content and Devices page where the book is listed do you see Kindle for PC in the “Deliver to … other(s)” option (not download & transfer.) Alternatively, can you open the AZW3 you downloaded if you transfer it to your Paperwhite?

            Your old keys are stored seperately from the plugin itself so they don’t get deleted. If the old keys don’t work, it looks for the current ones saving working ones without overwriting the old.

            • I don’t know if this is helpful for you and @Annoyed Reader, but I know of at least one book that is of a certain format such that it cannot be read on my mac Kindle app but is available on my Kindle. I know this is a feature, not a bug. Some books are not available on some devices but are on others and I don’t know why or how this is implemented, but perhaps this is messing with your DeDRM scheme too.

              • Perhaps you’re right Richard. I’ve heard Amazon likes to play head games by using different file formats, so perhaps that is what is happening here. That’s a bummer.

              • That’s true, but as far as I know, they still show in your library in Kindle for PC. You just can’t download them. And if you download a book from the website for an E-ink Kindle, it’s in a format the tools can handle and has DRM that can be removed.

      • This sounds like old DRM Plugins or settings may still be found. To track down such problems, I suggest on both Windows and Mac to configure a new or different user, Install everything fresh, Calibre, DeDRM plugins, DeDRM, Kindle for Windows/Mac 1.17 etc. Kobo/Barnes & Nobles as needed. Then login in with your credentials Kindle, Kobo, Barnes and Nobles and download a book and open it with their program. This should be possible, if not, there is your error, even before DeDRM is able to work: wrong credit card, different email used to buy that book or something like that. Nothing that we here are able to help with.

        If this is possible, configure the DeDRM / DeDRM plugins as needed, and try to DeDRM the new, just downloaded book(s). Or import in Calibre.
        If all this succeeds, there where some old settings / plugins or a hickup in your other installation. If this still fails, a log is needed (again) to further investigate.
        Also, I for one am not so sure, the newer DeDRM will work with an older 2.x version of Calibre. If possible, I would use for everything the newest one, unless it is just published and may contain undetected errors. But that is seldom the case. And both DeDRM and Calibre have been out with the newest version for some time now.

        • Look at my response from July 25, 2017 at 12:15 am. I installed the Kindle for PC app (v1.17) and downloaded the book via the app; I have the latest version of the plugin. I wasn’t able to remove the drm so I posted the log.

          • I’ve got completely confused as to what you’ve tried or not, and which books you’ve got working or not. Since you seem to be having more than one problem, I suggest that you open one issue per problem at Apprentice Harper’s blog so that it will be easier to help. It might be even easier to concentrate on one problem at a time, either your nook or your kindle problem – trying to do both simultaneously is tricky.

            Other people do have these things working with current calibre and plugin. So it probably is just a configuration issue. With time and patience we should be able to help you track it down.

          • Ok, so Laura and me are somewhat at odds with our advice, sorry for that. As you are using Windows 7, I will now stay out of this discussion, as I can only guess what works and what not.

            If you cannot use the newest Calibre Version (Version 3.4, at least something above 3), I am not so sure, wether the new DeDRM-plugin are really able to work or not, and I cannot test it, as I the last installed Windows I have for test and support is XP, which does not work with Calibre 3.x .
            Still think a clean install with a new user might help, even just to rule everything out.
            In this thread of your problems this is my last comment, sorry.

            • Your advice about starting over with fresh installs is certainly a good idea if we can’t get things working soon. I do appreciate the help answering questions!

          • one thing i’m seeing… you say you’re importing the file. that’s never worked for me. only seems to work when I drag and drop the file directly into the caliber desktop… just a thought.

          • Like my Kindle, I only have one B&N account. For some reason, the B&N configuration will NOT save. I tried three times without success. :/

            • I had 3 books I’d bought from B&N that DeDRM absolutely would NOT work on, either the standalone version or the Calibre plug-in version. I solved my B&N problem in two ways:

              First, I bought a commercial software product called “Nook DRM Removal” that almost instantaneously removed the DRM from the Nook books, allowing me to put those books into iBooks, and later into MapleRead.

              Second, I never bought/buy ebooks from B&N again.

                • And as I SAID: Neither the STANDALONE version or the Calibre PLUG-IN version of DeDRM freaking WORKED! I don’t know what the publisher did to get their version of DeDRM to work on the 3 Nook books, but at least their software DID work.

                  Since then I only buy Kindle, Smashwords, or Baen ebooks. The latter 2 come as DRM-free ePubs, while I download the Kindle books to Kindle 4 Mac 1.17

                  • It’s just a different user interface on what the Apprentices & co. provide and maintain for free. Anytime I see it mentioned, I will let people know I think it’s a rip off.

                    • Laura, Laura, Laura, your “Holier than thou” mindset is showing.

                      What part of “DeDRM by itself DID NOT WORK for me on those 3 Nook books” can’t you understand?

                      What part of “The DeDRM plug-in in Calibre DID NOT WORK for me on those 3 Nook books” can’t you understand?

                      What part of “Nook DRM Remover DID WORK for me on those 3 Nook books can’t you understand?

                      Since the software I paid for DID WORK when the free versions did NOT, I don’t consider it a “rip off”. If the freaking free software HAD worked on the Nook books as well as it does on the Kindle books, I would NOT have had to buy the commercial software.

                    • That was uncalled for, you will not get any more help with that attitude.
                      Others are making money of the work which is offered here for free, that is a scam. Instead of digging into it why it did not work, you paid other people and insult someone who just points that out.
                      Take your problems elsewhere.

                    • I only went the commercial route after the free version did not work and there weren’t any solutions here that figured out why. This was years ago, and I’ve only used the free tools since and only on Kindle books. I REFUSE to buy Nook books due to my experience with them AND all the bad experiences reported here.

                      For Laura who has never had any problems with the free versions working, commercial DRM removal software is a “rip-off”.
                      For those like me who were forced to turn to commercial software when time after time the free software failed, it wasn’t a “rip-off” but rather a successful solution.

                      So, any idea why the free versions years ago did not work with either cc info or log-in info? No one here could figure it out back then. One possibility is that I use MacOS so maybe the versions of the free software weren’t as well written for use in conjunction with the Mac OS of that time whereas the commercial software was written specifically for MacOS.

                      BTW, do you know where is the free software to remove DRM from iBooks? Again I was forced to buy a commercial product in order to strip the DRM from them also.

                    • I don’t remember if you asked for help here back then, but I know that program can’t do anything more than this one can.

                    • Perhaps it was a problem because I use MacOS. I know it was suggested to use the cc data and when that didn’t work, my B&N log-in data which didn’t work either. It has been so long that I don’t remember WHO suggested each of those. We will have to agree to disagree regarding commercial software being a “rip-off” as since it WORKED FOR ME, I don’t consider my purchase a “rip-off”. But as always YMMV!

                      BTW, I also don’t consider the commercial software I bought to remove DRM from iBooks to be a “rip-off”.

                    • As far as I know, there isn’t any free software anymore that will remove iBooks DRM. Fortunately, I never bought anything there. B&N lost my business when they started becoming less and less ebook customer friendly almost 3 years ago. Amazon is pushing it! When I buy something with DRM, I usually stick with Kobo since there are two ways to free their books. (I also love their ereaders.)

                    • My first iPad was my first ereader (never got into reading NewtBooks) so I started out with iBooks. I bought a few iBooks and downloaded PDFs from Apple, then discovered DeDRM and started buying Kindle books, using Calibre to convert them to ePub so I could read them in iBooks. In early 2016, a new version of iBooks completely screwed up my collections in it so I started looking for a better ePub & PDF reader. I found the answer in MapleRead from MaplePop.

                      All but a few of my books transferred over easily; the ones that didn’t had DRM. I finally found iBookCopy and was able to remove the DRM so I could add the books to MapleRead. It works similar to DeDRM does with Kindle for Mac/PC in that you have to go to the iBook Library on your computer to get the book (this proves you own the book).

                      The iBook Store is now on my do-not-patronize ebook list along with B&N.

                    • xromad,

                      I don’t know why we couldn’t help you figure things out for Nook books. I know Paul and others on Mac have been able to. Getting the B&N key can be tough for whatever reason though (on some Windows setups too.) Glad your Kindle books didn’t have any troubles. I consider that commercial program very shady because they’re selling a program that uses this program as its backend with no attribution, of course.

                      For iBooks, there was Requiem, but I don’t think there’s any way to make it work now. Maybe someone has, but I’m not aware of it. There’s actually a very old post about it here at Alf’s blog: https://apprenticealf.wordpress.com/2012/09/09/apple-and-ebooks-ibookstore-drm-and-how-to-remove-it/

                    • No, Requiem doesn’t work with iTunes 11 and above, nor does it work with more modern Mac hardware. It is interesting that Steve Jobs banned DRM from the iTunes Store but it was quietly reinstated under his successor.

                    • Yeah, I didn’t think so. I imagine someone would have mentioned something about it here otherwise. I guess that most of us who care about DRM removal have learned not to buy iBooks. When will companies realize that DRM is pointless?

                    • Even if they would attribute it, they make money from your and others work, without paying you. Anyone who buys from them is throwing away money and supporting deceivers, if not criminals.

                    • Nothing much to be done except let people know there is this alternative. All the contributors to DeDRM (and Obok) are pseudononymous and don’t even take donations.

              • I recently bought a book from B&N and was able to download it using nook for PC and then remove the DRM. So yes, removing the DRM from B&N eBooks still works.

                • Yes, definitely. I still pick up freebies there just to keep tabs on it. But some people have reported having trouble retrieving their key with DeDRM until after they’ve logged in and downloaded a book to Nook for PC.

    • If you’re sure that the serial number is correct and you’re sure that is the device you associated it with when you downloaded it, then I honestly don’t know why it isn’t working.

  7. I downloaded mu book from Kindle to my PC and executed DeDRM. It worked. My question is I have highlighted sections on my iPad which was synched to AMZN. Will the highlight come with the download? I did not see them but hoping I missed a step instead of the highlights having to have been done in the DeDRM book

    • On eInk devices the highlight is as clear text in the “My Clippings.txt”-file (in the language you chose for the device, in my case German), like this (example)
      “Mariposa: Quantico: Book Two (Bear, Greg)
      – Ihre Markierung auf Seite 256 | bei Position 3490-3490 | Hinzugefügt am Mittwoch, 3. Dezember 2014 15:21:14”

      how that works in other software, I cannot say (could be a file saved somewhere with a similar name, maybe you can look for it).
      Again, like other questions from other people, nothing with DRM, the Mobileread Website should be able to help.

      (BTW: to stay off-topic, I do not really recommend the book, the first one, which I read again at that time, was a little better, review at Goodreads 2.5 / 5 stars, https://www.goodreads.com/review/show/1124140029 )

      • Sorry to the others for another off-topic post, but I think this might help:
        Thinking about it, it is obvious the highlights, markings, bookmarks should be in a different file: the ebook should not be changed, this espiacially true with DRM. Every different Bit would change the hashsum, upon which DRM should be based (this is guesswork).
        So, there are only two solutions: a big file, like “My Clippings.txt” for all books, this is the case on the Kindle eInk devices.
        Or a single file for each ebook, this is not the case.
        On my Mac the file is as follows:
        ~/Library/Application Support/Kindle/Cache/plugins/notebookexportplugin/notebookexport.db
        For questions like this, the “Activity Monitor” shows the open files for each running program, on Windows similar tools exist, but I am not sure, wether they are included in all or even some Windows distributions.

        But even without it, you should be able to find the path, even if it will be somehow different, but based under your username.

        This is an SQL-database, you need something to view it, I bough SQLlite professional when it was a cheap as a promo. The free version did not enough for me, and a real SQL-DB would be better. This is more like a viewer.

  8. I have just downloaded the latest DRM tools, updated Calibre, downloaded the books from my Amazon account AZW3 format, added the books to Calibre and it says the DRM is not removed. Is there something else I should do. I am using Windows 10. Any help would be appreciated.

    • Did you download the books using Kindle for PC (or Mac) version 1.17? If you used a version higher then they can’t have the DRM removed. Delete the higher version, then download and install version 1.17. Next, redownload those books into the software.

      Otherwise, if you have a E-INK Kindle, you need to enter the serial number in the DeDRM settings.

      • What is with Amazon trying to prevent people from removing the DRM? The courts have ruled that stripping the DRM is not a violation when it’s done for one’s own fair use (e.g. bringing Amazon content to a Barnes and Noble reader).

          • Laura, when I downloaded the new B&N book, it was through the Nook for PC app (I removed the Nook Study one first and deleted all the content before installing the Nook PC). I can not remove the DRM from that. As I mentioned in multiple posts before, the new plugin will NOT save my new configuration….What is wrong with the plugin?

            Paul, do you know why the plugin will not save my B&N login info???

              • Paul, I followed your instructions. Here is the log:

                calibre Debug log
                calibre 2.22 isfrozen: True is64bit: False
                Windows-7-6.1.7601-SP1 Windows (’32bit’, ‘WindowsPE’)
                32bit process running on 64bit windows
                (‘Windows’, ‘7’, ‘6.1.7601’)
                Python 2.7.9
                Windows: (‘7’, ‘6.1.7601’, ‘SP1’, ‘Multiprocessor Free’)
                Successfully initialized third party plugins: DeDRM
                Starting up…
                Started up in 5.83 seconds with 92 books

                • Also, the B&N books I’m trying to remove the DRM from I purchased back in 2015. I already have drm-free copies of them backed up, but I want to make sure the plugin works before I buy new books, so I’m trying to remove the DRM again. When I downloaded a fresh copy of the file, the DRM did not come off but I think that may be due to the configuration not saving….

                • How very strange. I would have expected to see something more. But I’ve just tried myself, and it didn’t give me any more in the log. Oh well.

                  Are you sure you’re clicking all the appropriate Apply and Save buttons as you finish the retrieving the key? There are two or three nested dialogs, and clicking the wrong button could result in the preferences changes being discarded.

                  • Paul, I don’t know what to tell you. I added the B&N configuration data in bug mode….and the information saved! I’m now able to strip my B&N books WITHOUT having to save through the multiple dialogs (which don’t actually have save buttons anywhere). How odd….

        • They are not really trying that hard, the first (Windows-only) program to remove DeDRM is listed somewhere here, although without a current Windows-Installation I was not able to try it out.
          Looking at the files which consist KFX on my Kindle, the DRM or the settings for DRM is stored in a file “voucher” (no extension). There is some clear text “clippinglimit” and “TextToSpeechDisable” followed shortly after with “false” for sample I looked into.
          This is all mostly a side effect of using a completely new format, not willingly using harder DRM.

  9. Hi, I’m trying to deDRM a Kindle book but having trouble. I’ve followed the steps to make a log of the import as suggested in the troubleshooting section. Can you advise what I’m doing wrong? The log is below. I downloaded the kindle book from the Amazon website to transfer via USB and I’m on a Windows 10 laptop. Here is the log:

    calibre Debug log
    calibre 3.4 embedded-python: True is64bit: False
    Windows-10-10.0.15063-SP0 Windows (’32bit’, ‘WindowsPE’)
    32bit process running on 64bit windows
    (‘Windows’, ’10’, ‘10.0.15063’)
    Python 2.7.12+
    Windows: (’10’, ‘10.0.15063’, ‘SP0′, u’Multiprocessor Free’)
    Interface language: en_GB
    Successfully initialized third party plugins: DeDRM (6, 5, 4)
    calibre 3.4 embedded-python: True is64bit: False
    Windows-10-10.0.15063-SP0 Windows (’32bit’, ‘WindowsPE’)
    32bit process running on 64bit windows
    (‘Windows’, ’10’, ‘10.0.15063’)
    Python 2.7.12+
    Windows: (’10’, ‘10.0.15063’, ‘SP0′, u’Multiprocessor Free’)
    Interface language: en_GB
    Successfully initialized third party plugins: DeDRM (6, 5, 4)
    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
    Starting up…
    Started up in 13.90 seconds with 1 books
    stdout+stderr from file dialog helper: [”, ”]
    piped data from file dialog helper: [‘S”\xcf\x97K\x9f\xd3\xfc\xbd\x9b6\x03\xc9\xf1\xea\xef\xee\x1d\xdd\xdc)\xf1\x08P:\xc7\x16\xce\x8d\x107\xb8’, ‘C:\Users\jenni\Downloads\Watching the English- The International Bestseller Revised and Updated.azw3’]
    DeDRM v6.5.4: Trying to decrypt Watching the English- The International Bestseller Revised and Updated.azw3
    Using Library AlfCrypto Python
    MobiDeDrm v0.41.
    Copyright © 2008-2012 The Dark Reverser et al.
    MOBI header version 8, header length 264
    Extra Data Flags: 3
    Decrypting Kindle Format 8 ebook: Watching the English: The International Bestseller Revised and Updated
    Found 2 keys to try after 0.0 seconds
    Crypto Type is: 2
    DeDRM v6.5.4: Failed to decrypt with error: No key found in 2 keys tried.
    DeDRM v6.5.4: Looking for new default Kindle Key after 0.0 seconds
    searching for kinfoFiles in C:\Users\jenni\AppData\Local
    Found K4PC 1.9+ kinf2011 file: C:\Users\jenni\AppData\Local\Amazon\Kindle\storage.kinf2011
    Decrypted key file using IDString ‘3624879431’ and UserName ‘6a656e6e69’
    DeDRM v6.5.4: Found 1 new key
    MobiDeDrm v0.41.
    Copyright © 2008-2012 The Dark Reverser et al.
    MOBI header version 8, header length 264
    Extra Data Flags: 3
    Decrypting Kindle Format 8 ebook: Watching the English: The International Bestseller Revised and Updated
    Found 4 keys to try after 0.1 seconds
    Crypto Type is: 2
    DeDRM v6.5.4: Ultimately failed to decrypt after 0.1 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 611, in run
    File “calibre_plugins.dedrm.init“, line 561, in KindleMobiDecrypt
    DeDRMError: DeDRM v6.5.4: Ultimately failed to decrypt after 0.1 seconds
    Added Watching the English: The International Bestseller Revised and Updated to db in: 0.2
    Added 1 books in 0.8 seconds
    Worker Launch took: 0.230000019073

    Many thanks for your help.

  10. Hi, I’m trying to deDRM a Kindle book but having trouble. I’ve followed the steps to make a log of the import as suggested in the troubleshooting section. Can you advise what I’m doing wrong? The log is below. I downloaded the kindle book from the Amazon website to transfer via USB and I’m on a Windows 10 laptop. Here is the log:

    calibre Debug log
    calibre 3.4 embedded-python: True is64bit: False
    Windows-10-10.0.15063-SP0 Windows (’32bit’, ‘WindowsPE’)
    32bit process running on 64bit windows
    (‘Windows’, ’10’, ‘10.0.15063’)
    Python 2.7.12+
    Windows: (’10’, ‘10.0.15063’, ‘SP0′, u’Multiprocessor Free’)
    Interface language: en_GB
    Successfully initialized third party plugins: DeDRM (6, 5, 4)
    calibre 3.4 embedded-python: True is64bit: False
    Windows-10-10.0.15063-SP0 Windows (’32bit’, ‘WindowsPE’)
    32bit process running on 64bit windows
    (‘Windows’, ’10’, ‘10.0.15063’)
    Python 2.7.12+
    Windows: (’10’, ‘10.0.15063’, ‘SP0′, u’Multiprocessor Free’)
    Interface language: en_GB
    Successfully initialized third party plugins: DeDRM (6, 5, 4)
    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
    Starting up…
    Started up in 13.90 seconds with 1 books
    stdout+stderr from file dialog helper: [”, ”]
    piped data from file dialog helper: [‘S”\xcf\x97K\x9f\xd3\xfc\xbd\x9b6\x03\xc9\xf1\xea\xef\xee\x1d\xdd\xdc)\xf1\x08P:\xc7\x16\xce\x8d\x107\xb8’, ‘C:\Users\jenni\Downloads\Watching the English- The International Bestseller Revised and Updated.azw3’]
    DeDRM v6.5.4: Trying to decrypt Watching the English- The International Bestseller Revised and Updated.azw3
    Using Library AlfCrypto Python
    MobiDeDrm v0.41.
    Copyright © 2008-2012 The Dark Reverser et al.
    MOBI header version 8, header length 264
    Extra Data Flags: 3
    Decrypting Kindle Format 8 ebook: Watching the English: The International Bestseller Revised and Updated
    Found 2 keys to try after 0.0 seconds
    Crypto Type is: 2
    DeDRM v6.5.4: Failed to decrypt with error: No key found in 2 keys tried.
    DeDRM v6.5.4: Looking for new default Kindle Key after 0.0 seconds
    searching for kinfoFiles in C:\Users\jenni\AppData\Local
    Found K4PC 1.9+ kinf2011 file: C:\Users\jenni\AppData\Local\Amazon\Kindle\storage.kinf2011
    Decrypted key file using IDString ‘3624879431’ and UserName ‘6a656e6e69’
    DeDRM v6.5.4: Found 1 new key
    MobiDeDrm v0.41.
    Copyright © 2008-2012 The Dark Reverser et al.
    MOBI header version 8, header length 264
    Extra Data Flags: 3
    Decrypting Kindle Format 8 ebook: Watching the English: The International Bestseller Revised and Updated
    Found 4 keys to try after 0.1 seconds
    Crypto Type is: 2
    DeDRM v6.5.4: Ultimately failed to decrypt after 0.1 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 611, in run
    File “calibre_plugins.dedrm.init“, line 561, in KindleMobiDecrypt
    DeDRMError: DeDRM v6.5.4: Ultimately failed to decrypt after 0.1 seconds
    Added Watching the English: The International Bestseller Revised and Updated to db in: 0.2
    Added 1 books in 0.8 seconds
    Worker Launch took: 0.230000019073

    Many thanks in advance

  11. Is there a reason that this fix is not part of the actual release? [link removed]
    It regards Amazon rented e-books which do not seem to use the new Amazon format, but still can’t be opened in Calibre (rented book downloaded with Kindle for PC 1.17).

    • Because that method is illegal since you do NOT OWN the books in question. It is only legal to remove DRM on books you yourself have purchased from the publisher. If they included that, then DeDRM would be subject to seizure by the Feds and the programmers heavily fined and/or sent to prison.

    • Do sometimes try to think for yourself, before asking questions? The answer is obvious, as is the reason why there is no support for the questions to the mentioned error message regarding lent library ebooks. Some try to be fair with the use of DeDRM, as it is not a crack, but can only be used on your ebooks you paid for. This is the purpose of the design.

  12. Hi, so I downloaded the latest dedrm zip file for windows. I’m trying to take off the drm for a kindle book that I bought a while ago, and although I put in the right zip file (I’m nearly sure of it anyway lol), every time that I try to open the book to see if the drm was taken off, it says that it’s unable to be opened because “it’s protected by drm”……… Am I doing something wrong or is my calibre just special? :3

  13. Hi,
    Mac Os Sierra, pub downloaded from the library. I have a kindle so I need to convert the pub into mobi.
    Thanks to those who will help me!

    calibre Debug log
    calibre 3.5 embedded-python: True is64bit: True
    Darwin-16.7.0-x86_64-i386-64bit Darwin (’64bit’, ”)
    (‘Darwin’, ‘16.7.0’, ‘Darwin Kernel Version 16.7.0: Thu Jun 15 17:36:27 PDT 2017; root:xnu-3789.70.16~2/RELEASE_X86_64’)
    Python 2.7.12
    OSX: (‘10.12.6’, (”, ”, ”), ‘x86_64′)
    Interface language: None
    Successfully initialized third party plugins: DeDRM (6, 5, 4)
    calibre 3.5 embedded-python: True is64bit: True
    Darwin-16.7.0-x86_64-i386-64bit Darwin (’64bit’, ”)
    (‘Darwin’, ‘16.7.0’, ‘Darwin Kernel Version 16.7.0: Thu Jun 15 17:36:27 PDT 2017; root:xnu-3789.70.16~2/RELEASE_X86_64’)
    Python 2.7.12
    OSX: (‘10.12.6’, (”, ”, ”), ‘x86_64’)
    Interface language: None
    Successfully initialized third party plugins: DeDRM (6, 5, 4)
    devicePixelRatio: 1.0
    logicalDpi: 72.0 x 72.0
    physicalDpi: 126.000001892 x 127.000001907
    Using calibre Qt style: True
    Starting up…
    Started up in 2.02 seconds with 0 books
    DeDRM v6.5.4: Trying to decrypt Nella perfida terra di Dio.epub
    DeDRM v6.5.4: Verifying zip archive integrity
    DeDRM v6.5.4: Nella perfida terra di Dio.epub is a secure Adobe Adept ePub
    DeDRM v6.5.4: Trying Encryption key default_key
    DeDRM v6.5.4: Decrypted with key default_key after 0.4 seconds
    DeDRM v6.5.4: Finished after 0.4 seconds
    Added Nella perfida terra di Dio to db in: 0.2
    Added 1 books in 1.6 seconds

    • What xromad says is correct.
      But, seeing that line in the log:
      “Decrypted with key default_key after 0.4 seconds”
      shows me, the DRM is removed, the ebook is decrypted.
      Probably you just described it wrong, and the book is bought.
      No real help here, if the DeDRM did it’s job.
      After removing the DRM, whatever help you need is to be found elsewhere, either at Calibre Website or at mobileread.com, both are good starting points.

      Converting EPUB to Mobi with Calibre is straightforward, you can complicate it or try different settings, but the menu point and/or the button is there to be selected (unless you chose to remove it, not sure wether that is even possible with the menu).

  14. Hi. I followed all the instructions (step 1 to 10), but the only think makes me wondering if I did it right or not is that you said “import books”, while I do not find any import button on Calibre (only “Add books”). If so I used that button and added the DRM protected books, and it seems like it doesn’t work. I tried two different .pdf-documents and neither worked. The first one had time limit restrictions and the other one had an simple password protection.

  15. calibre Debug log
    calibre 3.6 embedded-python: True is64bit: True
    Darwin-16.7.0-x86_64-i386-64bit Darwin (’64bit’, ”)
    (‘Darwin’, ‘16.7.0’, ‘Darwin Kernel Version 16.7.0: Thu Jun 15 17:36:27 PDT 2017; root:xnu-3789.70.16~2/RELEASE_X86_64’)
    Python 2.7.12
    OSX: (‘10.12.6’, (”, ”, ”), ‘x86_64′)
    Interface language: None
    Successfully initialized third party plugins: DeDRM (6, 5, 4)
    calibre 3.6 embedded-python: True is64bit: True
    Darwin-16.7.0-x86_64-i386-64bit Darwin (’64bit’, ”)
    (‘Darwin’, ‘16.7.0’, ‘Darwin Kernel Version 16.7.0: Thu Jun 15 17:36:27 PDT 2017; root:xnu-3789.70.16~2/RELEASE_X86_64’)
    Python 2.7.12
    OSX: (‘10.12.6’, (”, ”, ”), ‘x86_64’)
    Interface language: None
    Successfully initialized third party plugins: DeDRM (6, 5, 4)
    devicePixelRatio: 1.0
    logicalDpi: 72.0 x 72.0
    physicalDpi: 136.000002043 x 135.000002027
    Using calibre Qt style: True
    Starting up…
    Started up in 1.97 seconds with 0 books
    DeDRM v6.5.4: Trying to decrypt Diagnose, Treat, and Cure All Dis-Ease wit – Vera Kaur.azw
    Using Library AlfCrypto DLL/DYLIB/SO
    MobiDeDrm v0.41.
    Copyright © 2008-2012 The Dark Reverser et al.
    MOBI header version 8, header length 264
    Extra Data Flags: 3
    Decrypting Kindle Format 8 ebook: Diagnose, Treat, and Cure All Dis-Ease with Traditional Indian Holistic Therapies
    Found 0 keys to try after 0.1 seconds
    Crypto Type is: 0
    This book is not encrypted.
    Decryption succeeded after 0.1 seconds
    DeDRM v6.5.4: Finished after 0.1 seconds
    DeDRM v6.5.4: Trying to decrypt A Sane Diet for An Insane World – Hesh Goldstein.azw
    DeDRM v6.5.4: Trying to decrypt Carry On, Warrior_ The real truth about be – Glennon Melton.azw
    Using Library AlfCrypto DLL/DYLIB/SO
    MobiDeDrm v0.41.
    Copyright © 2008-2012 The Dark Reverser et al.
    MOBI header version 8, header length 264
    Extra Data Flags: 3
    Decrypting Kindle Format 8 ebook: A Sane Diet for An Insane World
    Found 0 keys to try after 0.1 seconds
    Crypto Type is: 2
    DeDRM v6.5.4: Failed to decrypt with error: No key found in 0 keys tried.
    DeDRM v6.5.4: Looking for new default Kindle Key after 0.1 seconds
    Using Library AlfCrypto DLL/DYLIB/SO
    MobiDeDrm v0.41.
    Copyright © 2008-2012 The Dark Reverser et al.
    MOBI header version 8, header length 256
    Extra Data Flags: 3
    Decrypting Kindle Format 8 ebook: Carry On, Warrior: The real truth about being a woman
    Found 0 keys to try after 0.1 seconds
    Crypto Type is: 2
    DeDRM v6.5.4: Failed to decrypt with error: No key found in 0 keys tried.
    DeDRM v6.5.4: Looking for new default Kindle Key after 0.1 seconds
    Found k4Mac kinf2011 file: /Users/Sunil/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2011
    Found k4Mac kinf2011 file: /Users/Sunil/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2011
    DeDRM v6.5.4: Trying to decrypt Transcendence – Norman E. Rosenthal.azw
    MobiDeDrm v0.41.
    Copyright © 2008-2012 The Dark Reverser et al.
    MOBI header version 6, header length 232
    Extra Data Flags: 10
    Decrypting Mobipocket 6 ebook: Transcendence
    Found 0 keys to try after 0.0 seconds
    Crypto Type is: 2
    DeDRM v6.5.4: Failed to decrypt with error: No key found in 0 keys tried.
    DeDRM v6.5.4: Looking for new default Kindle Key after 0.0 seconds
    Found k4Mac kinf2011 file: /Users/Sunil/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2011
    Added Diagnose, Treat, and Cure All Dis-Ease with Traditional Indian Holistic Therapies to db in: 0.1
    Decrypted key file using IDString ‘ed72a0ca40fc’ and UserName ‘Sunil’
    DeDRM v6.5.4: Found 1 new key
    MobiDeDrm v0.41.
    Copyright © 2008-2012 The Dark Reverser et al.
    Decrypted key file using IDString ‘ed72a0ca40fc’ and UserName ‘Sunil’
    DeDRM v6.5.4: Found 1 new key
    MobiDeDrm v0.41.
    Copyright © 2008-2012 The Dark Reverser et al.
    MOBI header version 8, header length 264
    Extra Data Flags: 3
    MOBI header version 8, header length 256
    Extra Data Flags: 3
    Decrypting Kindle Format 8 ebook: Carry On, Warrior: The real truth about being a woman
    Found 3 keys to try after 0.8 seconds
    Crypto Type is: 2
    Decrypting Kindle Format 8 ebook: A Sane Diet for An Insane World
    Found 3 keys to try after 0.8 seconds
    File is encoded with PID M1vkZ7u+QL.Crypto Type is: 2

    Decrypting. Please wait . . .File is encoded with PID 5P/CSq8Y2X.
    Decrypting. Please wait . . . . . done
    Decryption succeeded after 0.8 seconds
    DeDRM v6.5.4: Saving 1 new key
    DeDRM v6.5.4: Finished after 0.8 seconds
    done
    Decryption succeeded after 0.8 seconds
    DeDRM v6.5.4: Saving 1 new key
    DeDRM v6.5.4: Finished after 0.8 seconds
    Decrypted key file using IDString ‘ed72a0ca40fc’ and UserName ‘Sunil’
    DeDRM v6.5.4: Found 1 new key
    MobiDeDrm v0.41.
    Copyright © 2008-2012 The Dark Reverser et al.
    MOBI header version 6, header length 232
    Extra Data Flags: 10
    Decrypting Mobipocket 6 ebook: Transcendence
    Found 3 keys to try after 0.6 seconds
    Crypto Type is: 2
    File is encoded with PID yedhsw8NHZ.
    Decrypting. Please wait . . . . done
    Decryption succeeded after 0.7 seconds
    DeDRM v6.5.4: Saving 1 new key
    DeDRM v6.5.4: Finished after 0.7 seconds
    DeDRM v6.5.4: Trying to decrypt The Eye of the I_ From Which Nothing is Hi – David R. Hawkins.azw
    MobiDeDrm v0.41.
    Copyright © 2008-2012 The Dark Reverser et al.
    MOBI header version 8, header length 264
    Extra Data Flags: 3
    Decrypting Kindle Format 8 ebook: The Eye of the I: From Which Nothing is Hidden
    Found 3 keys to try after 0.0 seconds
    Crypto Type is: 2
    File is encoded with PID +FQBZAvoXN.
    Decrypting. Please wait . . .DeDRM v6.5.4: Trying to decrypt The Migraine Brain_ Your Breakthrough Guid – Carolyn Bernstein.azw
    DeDRM v6.5.4: Trying to decrypt Never In Your Wildest Dreams_ A Transforma – Natalie Ledwell.azw
    MobiDeDrm v0.41.
    Copyright © 2008-2012 The Dark Reverser et al.
    .MOBI header version 6, header length 232
    Extra Data Flags: 10
    Decrypting Mobipocket 6 ebook: The Migraine Brain: Your Breakthrough Guide to Fewer Headaches, Better Health
    Found 3 keys to try after 0.0 seconds
    Crypto Type is: 2
    File is encoded with PID 4Kcjo/YyAA.
    Decrypting. Please wait . . . done
    Decryption succeeded after 0.0 seconds
    DeDRM v6.5.4: Finished after 0.1 seconds
    . . . done
    Decryption succeeded after 0.1 seconds
    DeDRM v6.5.4: Finished after 0.1 seconds
    DeDRM v6.5.4: Trying to decrypt Excuses Begone!_ How to Change Lifelong, S – Wayne W. Dyer.azw
    MobiDeDrm v0.41.
    Copyright © 2008-2012 The Dark Reverser et al.
    MOBI header version 8, header length 264
    Extra Data Flags: 3
    Decrypting Kindle Format 8 ebook: Excuses Begone!: How to Change Lifelong, Self-Defeating Thinking Habits
    DeDRM v6.5.4: Trying to decrypt Letting Go_ The Pathway of Surrender – David R. Hawkins.azw
    Found 3 keys to try after 0.0 seconds
    Crypto Type is: 2
    File is encoded with PID Z00NtYg/MU.
    Decrypting. Please wait . . .MobiDeDrm v0.41.
    Copyright © 2008-2012 The Dark Reverser et al.
    MOBI header version 8, header length 264
    Extra Data Flags: 3
    Decrypting Kindle Format 8 ebook: Letting Go: The Pathway of Surrender
    Found 3 keys to try after 0.0 seconds
    Crypto Type is: 2
    File is encoded with PID lCBmbMJYKB.
    Decrypting. Please wait . . . . . done
    Decryption succeeded after 0.0 seconds
    DeDRM v6.5.4: Finished after 0.0 seconds
    MobiDeDrm v0.41.
    Copyright © 2008-2012 The Dark Reverser et al.
    MOBI header version 8, header length 248
    Extra Data Flags: 3
    Decrypting Kindle Format 8 ebook: Never In Your Wildest Dreams: A Transformational Story to Tap Into Your Hidden Gifts to Create a Life of Passion, Purpose, and Prosperity
    Found 3 keys to try after 0.2 seconds
    Crypto Type is: 2
    File is encoded with PID 97q9jlZcJE.
    Decrypting. Please wait . . . done
    Decryption succeeded after 0.0 seconds
    DeDRM v6.5.4: Finished after 0.0 seconds
    done
    Decryption succeeded after 0.2 seconds
    DeDRM v6.5.4: Finished after 0.2 seconds
    DeDRM v6.5.4: Trying to decrypt Eat Fat Get Thin_ Why the Fat We Eat Is th – Mark Hyman.azw
    MobiDeDrm v0.41.
    Copyright © 2008-2012 The Dark Reverser et al.
    MOBI header version 8, header length 264
    Extra Data Flags: 3
    Decrypting Kindle Format 8 ebook: Eat Fat Get Thin: Why the Fat We Eat Is the Key to Sustained Weight Loss and Vibrant Health
    Found 3 keys to try after 0.0 seconds
    Crypto Type is: 2
    File is encoded with PID USmGtDAkVM.
    Decrypting. Please wait . . . .DeDRM v6.5.4: Trying to decrypt Dowsing_ 30 Amazing Things You Can Do With – Mia Rose.azw
    .MobiDeDrm v0.41.
    Copyright © 2008-2012 The Dark Reverser et al.
    MOBI header version 8, header length 264
    Extra Data Flags: 3
    Decrypting Kindle Format 8 ebook: Dowsing: 30 Amazing Things You Can Do With Dowsing (Dowsing, Palmistry, Reiki, Crystals)
    Found 3 keys to try after 0.0 seconds
    Crypto Type is: 2
    done
    Decryption succeeded after 0.1 seconds
    File is encoded with PID +glV9A5iKL.
    Decrypting. Please wait . . . done
    Decryption succeeded after 0.0 seconds
    DeDRM v6.5.4: Finished after 0.1 seconds
    DeDRM v6.5.4: Finished after 0.0 seconds

    • Not sure, but it looks as though all the books eventual got decrypted (or didn’t have DRM). If any of them didn’t, try importing just one. If it still doesn’t work, post a log of just that one unsuccessful book.

  16. I believe I have the latest versions of Calibre (3.6.0) with DeDRM plug-in (6.5.4). But no luck on trying to view or convert a purchased Kindle book(AZW3) from “download and transfer via USB” from Amazon (nor from transfer of KFX file from Kindle Paperwhite). Correct Kindle serial number is in the plug-in configuration. Here is the transfer log file:

    calibre Debug log
    calibre 3.6 embedded-python: True is64bit: False
    Windows-10-10.0.15063-SP0 Windows (’32bit’, ‘WindowsPE’)
    32bit process running on 64bit windows
    (‘Windows’, ’10’, ‘10.0.15063’)
    Python 2.7.12+
    Windows: (’10’, ‘10.0.15063’, ‘SP0′, u’Multiprocessor Free’)
    Interface language: None
    Successfully initialized third party plugins: DeDRM (6, 5, 4)
    calibre 3.6 embedded-python: True is64bit: False
    Windows-10-10.0.15063-SP0 Windows (’32bit’, ‘WindowsPE’)
    32bit process running on 64bit windows
    (‘Windows’, ’10’, ‘10.0.15063’)
    Python 2.7.12+
    Windows: (’10’, ‘10.0.15063’, ‘SP0′, u’Multiprocessor Free’)
    Interface language: None
    Successfully initialized third party plugins: DeDRM (6, 5, 4)
    Turning on automatic hidpi scaling
    devicePixelRatio: 1.0
    logicalDpi: 96.0 x 96.0
    physicalDpi: 93.9653179191 x 94.0740740741
    Using calibre Qt style: True
    Starting up…
    Storage number map:
    {(7L, 0L): [(2L, ‘C’), (4L, ‘D’)],
    (7L, 1L): [(1L, ‘M’)],
    (7L, 2L): [(1L, ‘G’)],
    (7L, 3L): [(1L, ‘F’)],
    (7L, 4L): [(1L, ‘I’)],
    (7L, 5L): [(1L, ‘J’)],
    (7L, 6L): [(1L, ‘K’)],
    (7L, 7L): [(1L, ‘L’)]}
    Storage number for USBSTOR\DISK&VEN_KINDLE&PROD_INTERNAL_STORAGE&REV_0100\G090G1055395057S&0: StorageDeviceNumber(type=7L, number=2L, partition_number=0L)
    Drive letters for USBDevice(vendor_id=0x1949 product_id=0x4 bcd=0x100 devid=usb\vid_1949&pid_0004&rev_0100 devinst=17)
    {u’drive_letters’: [‘G’],
    u’pnp_id_map’: {‘G’: u’\\?\usbstor#disk&ven_kindle&prod_internal_storage&rev_0100#g090g1055395057s&0#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}’},
    u’readonly_drives’: set([]),
    u’sort_map’: {‘G’: (2L, 1L)}}
    Job: 1 Get device information started
    DeviceJob: 1 Get device information done, calling callback
    DeviceJob: 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: G:\ documents
    DEBUG: 0.0 USBMS: scan from root False G:\documents
    DEBUG: 0.1 USBMS: count found in cache: 29, count of files in metadata: 29, need_sync: False
    DEBUG: 0.1 USBMS: Finished fetching list of books from device. oncard= None
    DEBUG: 0.1 USBMS: Fetching list of books from device. Device= KINDLE2 oncard= carda
    DEBUG: 0.1 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= 29
    DeviceJob: set_books_in_library finished: time= 0.00799989700317
    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: 1 Get device information finished
    No details available.
    Job: 2 Set library information finished
    No details available.
    Job: 3 Get list of books on device finished
    No details available.
    DeDRM v6.5.4: Trying to decrypt Unbelievable__ Why after ten years of talking with atheists, I’m still a Christian.azw3
    Using Library AlfCrypto Python
    MobiDeDrm v0.41.
    Copyright © 2008-2012 The Dark Reverser et al.
    MOBI header version 8, header length 264
    Extra Data Flags: 3
    Decrypting Kindle Format 8 ebook: Unbelievable?: Why after ten years of talking with atheists, I’m still a Christian
    Found 2 keys to try after 0.1 seconds
    Crypto Type is: 2
    DeDRM v6.5.4: Failed to decrypt with error: No key found in 2 keys tried.
    DeDRM v6.5.4: Looking for new default Kindle Key after 0.1 seconds
    searching for kinfoFiles in C:\Users\Bill\AppData\Local
    Found K4PC 1.9+ kinf2011 file: C:\Users\Bill\AppData\Local\Amazon\Kindle\storage.kinf2011
    Decrypted key file using IDString ‘452099825’ and UserName ‘42696c6c’
    DeDRM v6.5.4: Found 1 new key
    MobiDeDrm v0.41.
    Copyright © 2008-2012 The Dark Reverser et al.
    MOBI header version 8, header length 264
    Extra Data Flags: 3
    Decrypting Kindle Format 8 ebook: Unbelievable?: Why after ten years of talking with atheists, I’m still a Christian
    Found 4 keys to try after 0.2 seconds
    Crypto Type is: 2
    DeDRM v6.5.4: 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 171, in _run_filetype_plugins
    File “calibre_plugins.dedrm.init“, line 611, in run
    File “calibre_plugins.dedrm.init“, line 561, in KindleMobiDecrypt
    DeDRMError: DeDRM v6.5.4: Ultimately failed to decrypt after 0.2 seconds
    Added Unbelievable?: Why after ten years of talking with atheists, I’m still a Christian to db in: 2.4
    Added 1 books in 3.1 seconds
    Started up in 295.05 seconds with 26 books

    Any suggestions would be greatly appreciated.

    • Looks like you don’t have the serial number in there correctly after all. Make sure by copy & paste from the website (remove any spaces). It’s also a good idea to close and reopen calibre after customizing the plugin and before adding books.

      • Well, whaddya know. That “5” in the serial number is actually an “S”! It’s all good now. Laura, I am bowing deeply in your general direction–which from the time difference and the way Calibre is spelled, I’m guessing is towards the UK. Many thanks for the rapid and accurate response.

  17. Error when installing plugin:

    calibre, version 3.6.0
    ERROR: Unhandled exception: InvalidPlugin:The plugin in u’C:\Users\Ned\Downloads\DeDRM_tools_6.5.4.zip’ is invalid. It does not contain a top-level init.py file

    calibre 3.6 embedded-python: True is64bit: False
    Windows-7-6.1.7601-SP1 Windows (’32bit’, ‘WindowsPE’)
    32bit process running on 64bit windows
    (‘Windows’, ‘7’, ‘6.1.7601’)
    Python 2.7.12+
    Windows: (‘7’, ‘6.1.7601’, ‘SP1′, u’Multiprocessor Free’)
    Interface language: None
    Traceback (most recent call last):
    File “site-packages\calibre\gui2\preferences\plugins.py”, line 317, in add_plugin
    File “site-packages\calibre\customize\ui.py”, line 461, in add_plugin
    File “site-packages\calibre\customize\ui.py”, line 60, in load_plugin
    File “site-packages\calibre\customize\zipplugin.py”, line 192, in load
    File “site-packages\calibre\customize\zipplugin.py”, line 290, in _locate_code
    InvalidPlugin: The plugin in u’C:\Users\Ned\Downloads\DeDRM_tools_6.5.4.zip’ is invalid. It does not contain a top-level init.py file

  18. I’ve been using 6.3.4 for kindle books for quite a while very happily, but just got a google play book that uses acsm. I installed ade 2.0.1 (osx 10.10.5) and updated the calibre plugin to 6.5.4 (remove 6.3, restart calibre, install 6.5.4, restart). Drag the acsm file in and calibre feeds it to ade, and ade downloads the epub and its viewable in ade. Nothing else happens in calibre – if I double click on it again, it feeds it to ade again and I have another copy of it there. I tried dragging the epub file into calibre and opening it, and it says it’s drm’d and can’t be opened.

  19. hello. i bought some kindle ebooks from amazon and an ereader kobo to read them. just after that, i’ve discovered DRM protection makes me unable to read them on the ereader. i’ve tried to remove it with calibre and the plugin, but every iter needs a serial number, which, as far as i know, can be found on a kindle ereader (the kobo serial number has 13 characters instead of 16, so it doesn’t work).
    how can i read kindle ebooks on the kobo ereader? thanks!

    • You need either a Kindle eInk-Device linked to your Amazon-Account and the serial number (without spaces) entered in the plugin. That only works for ebooks downloaded from amzon.com/myk for transfer via USB.
      An old, used Kindle, which could even have a broken display, as long as you can read the serial number, should not be too expensive.
      Or you install Kindle for Windows / Mac, but you must be aware to install version 1.17, which is still available. Newer versions will download books in a format (KFX) which currently does not work with DeDRM.
      You have to login in Kindle for Windows / Mac and download the books and should be able to open and read them there. This test is significant, if the books cannot be opened and read there, you cannot strip DRM.

      If you passed this test, DeDRM should (!) find the key automatically and strip DRM on importing the newly (!) downloaded Kindle ebooks.
      Else we need a Log.

      • Hi, i’ve installed kindle for windows version 1.17 and i can read there my kindle, but once i transfer them to calibre, it says the DRM protection blocks me.
        I went in the customisetion section of the plugin, clicked on “Kindle for Mac/PC ebooks” and it says: “The default encryption key for kindle for Max/PC could not be found”. (also i have the plugin version 6.5.4)
        Am i missing something? Thanks!

        • Sounds more like you have both an old plugin for Kindle and the newest DeDRM-Plugin installed.
          De-Install all old plugins for the different ebook-types, and restart Calibre. If that still fails to DeDRM, to be save, de-install the DeDRM-plugin, restart Calibre, install it new and try again. If that still fails, a log from the import is needed.

  20. Yes, Calibre and Kindle for PC are on the same machine. Also i checked and i had only the newest plugin installed on Calibre, still i remuved all other DeDRs from the pc and installed the new one again on Calibre. it still doesn’t work 😦
    What do you mean with ” a log from the import” ? Thanks again for helping me!

  21. calibre Log di debug
    calibre 3.6 [64bit] embedded-python: True is64bit: True
    Windows-10-10.0.15063-SP0 Windows (’64bit’, ‘WindowsPE’)
    (‘Windows’, ’10’, ‘10.0.15063’)
    Python 2.7.12+
    Windows: (’10’, ‘10.0.15063’, ‘SP0′, u’Multiprocessor Free’)
    Interface language: it
    Successfully initialized third party plugins: DeDRM (6, 5, 4)
    calibre 3.6 [64bit] embedded-python: True is64bit: True
    Windows-10-10.0.15063-SP0 Windows (’64bit’, ‘WindowsPE’)
    (‘Windows’, ’10’, ‘10.0.15063’)
    Python 2.7.12+
    Windows: (’10’, ‘10.0.15063’, ‘SP0′, u’Multiprocessor Free’)
    Interface language: it
    Successfully initialized third party plugins: DeDRM (6, 5, 4)
    Turning on automatic hidpi scaling
    devicePixelRatio: 1.0
    logicalDpi: 96.0 x 96.0
    physicalDpi: 98.3225806452 x 98.7777777778
    Using calibre Qt style: True
    Starting up…
    Key u’A’ for shortcut Apri la cartella contenente is already used by Aggiungi libri, ignoring
    Started up in 94.94 seconds with 1 books
    DeDRM v6.5.4: Trying to decrypt B00X47ZNRG_EBOK.azw
    Using Library AlfCrypto Python
    MobiDeDrm v0.41.
    Copyright © 2008-2012 The Dark Reverser et al.
    MOBI header version 8, header length 264
    Extra Data Flags: 3
    Decrypting Kindle Format 8 ebook: No Game No Life, Vol. 4 (light novel)
    Found 2 keys to try after 0.1 seconds
    Crypto Type is: 2
    DeDRM v6.5.4: Failed to decrypt with error: No key found in 2 keys tried.
    DeDRM v6.5.4: Looking for new default Kindle Key after 0.1 seconds
    searching for kinfoFiles in C:\Users\marco\AppData\Local
    Found K4PC 1.9+ kinf2011 file: C:\Users\marco\AppData\Local\Amazon\Kindle\storage.kinf2011
    Couldn’t decrypt file.
    DeDRM v6.5.4: 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 171, in _run_filetype_plugins
    File “calibre_plugins.dedrm.init“, line 611, in run
    File “calibre_plugins.dedrm.init“, line 561, in KindleMobiDecrypt
    DeDRMError: DeDRM v6.5.4: Ultimately failed to decrypt after 0.2 seconds
    Added No Game No Life, Vol. 4 (light novel) to db in: 0.2
    Added 1 books in 1.2 seconds
    Worker Launch took: 0.174000024796

  22. I’m wondering if there’s a fix in the works for the KFX issue? I have a bunch of books I dl’d with kindle for pc, but since they were kindle unlimited books, they’ve since been returned (I still have the original file tho). just wondering if I’ll be able to open them soon using calibre. thanks.

  23. The plugin I had previously wasn’t working for me today, so I thought I’d download your newest version. When I tried loading in into Calibre, it gave an error: “The plugin is invalid. It does not contain a top-level init.py file.”

    Help?

  24. Thanks, Paul! I did get the updated plugin to install. However, after I got the update, it didn’t fix my original problem.

    So… I downloaded an Amazon book, sent it to Kindle for PC, added that book to my Calibre library, but when I tried to convert the format of the file, it says that the file has DRM. What am I doing wrong?!

  25. I need a copy of Active Python 2.7 that is 32-bit (ActivePython link in Alf’s DRM instructions only have newer versions.) Does anyone know how can I obtain a copy of ActivePython-2.7.2.5-win32-x86.msi ?

Leave a 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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s