DRM Removal Tools for eBooks

Version 6.5.3 released on 12 January, 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,352 thoughts on “DRM Removal Tools for eBooks

  1. Hi
    Anybody out there that can help somebody who has problems reading?
    I bought an app to read to me, but in order for the app to be able to read my bought books they have to be free from DRM
    ofcourse I found this page and the software, but I can’t get it to work. Probably cause I always misread things. Have spend many evening reading and getting frustrated more and more.
    Anybody have a simple guide how it does work cause all I tried doesn’t.
    Feel like the world is still depriving its reading handicapt people of gaining the knowledge the want!

  2. How do we deal with any new thing going on with Amazon. I just bought a new bok and had high hopes to convert it to an EPUB but nothing it working and the format looks different than the other amazons i converted before.

  3. I just made a mistake and allowed Kindle for PC to update. Now my AWZ files are not downloading. I once found a download for an earlier version, but can’t find the installation file again. Which version do I want and where do I find it?

  4. Bought a few nook books and the plugins aren’t working. I last purchased from B&N several months ago and everything was working fine then. I’m on Linux mint 17.3 and downloaded the books via NookStudy.

    Traceback (most recent call last):
    File “site-packages/calibre/gui2/notify.py”, line 76, in call
    File “site-packages/dbus/proxies.py”, line 145, in call
    File “site-packages/dbus/connection.py”, line 651, in call_blocking
    DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name :1.147 was not provided by any .service files
    DeDRM v6.3.6: Trying to decrypt anextraordinaryunion_9781496707451.epub
    DeDRM v6.3.6: Verifying zip archive integrity
    DeDRM v6.3.6: “anextraordinaryunion_9781496707451.epub” is a secure Barnes & Noble ePub
    DeDRM v6.3.6: Trying Encryption key dedrmX
    Could not decrypt eQ9V22.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 158, in init
    IGNOBLEError: AES improper key used

    • Just realized that I was using an old version of the plugin. Updated but still not working:

      DeDRM v6.5.3: Trying to decrypt anextraordinaryunion_9781496707451.epub
      DeDRM v6.5.3: Verifying zip archive integrity
      DeDRM v6.5.3: “anextraordinaryunion_9781496707451.epub” is a secure Barnes & Noble ePub
      DeDRM v6.5.3: Trying Encryption key dedrmX
      Could not decrypt 3XqslN.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 158, in init
      IGNOBLEError: AES improper key used

      DeDRM v6.5.3: Failed to decrypt with key dedrmX after 0.2 seconds
      DeDRM v6.5.3: Looking for new NOOK Study Keys after 0.2 seconds
      DeDRM v6.5.3: Running ignoblekey.py under Wine
      DeDRM v6.5.3: Command line: ‘wine python.exe “/home/sherwood/.config/calibre/plugins/DeDRM/libraryfiles/ignoblekey.py” “/home/sherwood/.config/calibre/plugins/DeDRM/libraryfiles/winekeysdir”‘
      C:\windows\system32\python.exe: can’t open file ‘/home/sherwood/.config/calibre/plugins/DeDRM/libraryfiles/ignoblekey.py’: [Errno 2] No such file or directory
      fixme:msvcrt:clean_type_info_names_internal (0x1e24d588) stub
      DeDRM v6.5.3: Found and decrypted 0 key files
      DeDRM v6.5.3: Ultimately failed to decrypt after 16.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 170, in _run_filetype_plugins
      File “calibre_plugins.dedrm.__init
      “, line 621, in run
      File “calibre_plugins.dedrm.init“, line 292, in ePubDecrypt
      DeDRMError: DeDRM v6.5.3: Ultimately failed to decrypt after 16.2 seconds.

      • That’s odd, my B&N key hasn’t changed in over two years. Are you able to retrieve your current key by entering your B&N account email and password into the plugin customization?

        • I reentered my account info and got a new key, and now it’s working. I hadn’t had to to think about keys in over two years.

          Thank you.

  5. calibre, version 2.83.0
    ERROR: Unhandled exception: ImportError:No module named PyQt4.Qt

    calibre 2.83 embedded-python: True is64bit: False
    Windows-8-6.2.9200 Windows (’32bit’, ‘WindowsPE’)
    32bit process running on 64bit windows
    (‘Windows’, ‘8’, ‘6.2.9200’)
    Python 2.7.9
    Windows: (‘8’, ‘6.2.9200’, ”, ‘Multiprocessor Free’)
    Successfully initialized third party plugins: DeDRM (6, 0, 5) && Kindle Collections (1, 7, 17) && Extract ISBN (1, 4, 4) && Goodreads (1, 1, 12) && Find Duplicates (1, 6, 2)
    Traceback (most recent call last):
    File “site-packages\calibre\gui2\preferences\plugins.py”, line 290, in double_clicked
    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 490, in config_widget
    File “site-packages\calibre\customize\zipplugin.py”, line 183, in load_module
    File “calibre_plugins.dedrm.config”, line 12, in
    ImportError: No module named PyQt4.Qt

    I keep getting this message any ideas?

  6. I have a B&N Nook 7″ Tablet, When I try to enter my serial number, its incorrect as its not long enough…pretty sure t doesnt have an eink serial number (I could be wrong however). Any help would be appreciated…

      • Thanks, I have Nook on my PC, and it can read every book I download, Ive yet to run across one it hasnt.

        My issue is my Nook tablet. Ill get all kinds of retarded bs when I try to upload (File Format not supported, its an epub…how the hell is that not supported on an epub reader), or Ill download a book into my Nook tablet and it shows up in the library…then a few minutes later its gone, or the picture cover has turned into a blank spot, or a blue square with the title written on it…

        So, I was under the impression that would be DRM’s…are you saying I cant remove epub drm’s to upload my books to the tablet?

          • I dont know, I bootleg my books…All I know is on a generic ereader, I had no problems and read them all…on Nook for PC, again only 1 book wouldnt add to the library (Thats out of 300+ epubs)…

            But over half of them wont load on my Nook 7″ Tablet (Either format not supported, or they load in and disappear, and refuse to stay in my library). I was taking a friends advice, and they said it was probably DRM’s, so Ive been trying to figure out how to get rid of them…most sites point to Calibre and this plugin…if this is not a DRM issue, im kinda confused. I was hoping I could just transfer my books from the Nook PC app, since it has all the books I want to read…but I cant find a way to do that…

            But thanks for trying to help

            • If you can open them all on a generic ereader, then they don’t have DRM. If they did have DRM, you’d be out of luck anyway. These tools unlock your own purchased books.

        • I have had the same problems with my Nook tablet, and found some things that help. If a title has any of these in it, it sometimes helps to take them out – a colon, semicolon, an apostrophe, a hyphen, a dash [ _ ]. Also, even though the covers are doing wacky things and the books seem to disappear, they are on the tablet. If you change My Files to Title or Author, sometimes you can find them that way. Also, if you are using an SD card and have formatted it to be internal storage, you can go into Apps, open File Manager, open the SD card, open Nook, and there will be icons for all your books, and you can open them from there. All of the books opened on my Nook Simple Touch, but the Tablet and Glowlight Plus both have problems.

  7. What if someone only has Kindle for PC and Kindle for Android and no physical Kindle devices? Neither seems to have a serial number to use in decrypting.

    • Download to Kindle for PC version 1.17 (no higher!) then import into Calibre (with the DeDRM plug-in installed first).

        • I am using the Download for USB myself, but I select my old Kindle, pre-Paperwhite, now dead, as the destination device. I figure that uses the DRM for that device. What would a person do that had no physical Kindle?

            • In my account, there are my old and new Kindles plus the PC and Android versions I have installed. All except the Kindle are grayed out … I figured that is because USB doesn’t apply. Kindle for Mac is not listed as an option.

        • Kindle for PC 1.19 and higher use a new DRM scheme that can’t be removed yet. Continue to use Kindle for PC 1.17 until the new DRM scheme can be neuralized. Note the same applies to Kindle for Mac.

  8. I just attempted to update to 6.5.3 (from 6.4.0 and I am getting:
    calibre, version 2.83.0
    ERROR: Unhandled exception: InvalidPlugin:The plugin in u’C:\Downloads\Calibre\DeDRM_tools_6.5.3.zip’ is invalid. It does not contain a top-level init.py file

    calibre 2.83 embedded-python: True is64bit: False
    Windows-8-6.2.9200 Windows (’32bit’, ‘WindowsPE’)
    32bit process running on 64bit windows
    (‘Windows’, ‘8’, ‘6.2.9200’)
    Python 2.7.9
    Windows: (‘8’, ‘6.2.9200’, ”, ‘Multiprocessor Free’)
    Successfully initialized third party plugins: DeDRM (6, 4, 0)
    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 460, in add_plugin
    File “site-packages\calibre\customize\ui.py”, line 59, 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:\Downloads\Calibre\DeDRM_tools_6.5.3.zip’ is invalid. It does not contain a top-level init.py file

    I used Load Plugin from File and pointed to the downloaded zip. What am I doing wrong?

      • Worked like a champ! If I had looked more closely, I would have seen evidence of my doing just this in the past, but … oh well, fixed now.

  9. I’ve just deauthorized my ADE and the authorized it again with a different ID.I then downloaded a book which opened in ADE. I tried importing it to Calibre but the DRM is not removed. The log says it has the wrong encryption key and can’t find a new one. What do I do?

    calibre Debug log
    calibre 2.57.1 [64bit] embedded-python: True is64bit: True
    Windows-8-6.2.9200 Windows (’64bit’, ‘WindowsPE’)
    (‘Windows’, ‘8’, ‘6.2.9200’)
    Python 2.7.9
    Windows: (‘8’, ‘6.2.9200’, ”, ‘Multiprocessor Free’)
    DEBUG: 0.0 iOSReaderApp:initialize(v1.4.7.0.0)
    DEBUG: 0.0 iOSReaderApp:compile_ui()
    DEBUG: 0.1 iOSReaderApp:_init_prefs(prefs created under v1.1.1)
    DEBUG: 0.1 debug_libimobiledevice: False
    DEBUG: 0.1 debug_plugin: True
    DEBUG: 0.1 development_mode: False
    DEBUG: 0.1 marvin_edit_collections_cb: False
    DEBUG: 0.1 marvin_protect_rb: False
    DEBUG: 0.1 marvin_replace_rb: False
    DEBUG: 0.1 marvin_update_rb: True
    DEBUG: 0.1 preferred_reader_app: u’Marvin’
    DEBUG: 0.1 iOSReaderApp:_get_connected_device_info()
    DEBUG: 0.1 No connected iDevices
    Successfully initialized third party plugins: DeDRM && Modify ePub && iOS reader applications && Marvin 😄
    Starting up…
    DEBUG: 1.7 iOSReaderApp:startup()
    DEBUG: 1.7 iOSReaderApp:_dump_installed_plugins()
    DEBUG: 1.7 plugin author version
    DEBUG: 1.7 ———– —————————————————————— ——
    DEBUG: 1.7 DeDRM Apprentice Alf, Aprentice Harper, The Dark Reverser and i♥cabbages 6.5.3
    DEBUG: 1.7 Marvin 😄 Wulf C. Krueger 1.2.4
    DEBUG: 1.7 Modify ePub Grant Drake, with additions by Robert L. Hood and Leigh Parry 1.3.13
    DEBUG: 1.7 ———– —————————————————————— ——
    Started up in 44.87 seconds with 2201 books
    DeDRM v6.5.3: Trying to decrypt Londonistan.epub
    DeDRM v6.5.3: Verifying zip archive integrity
    DeDRM v6.5.3: Londonistan.epub is a secure Adobe Adept ePub
    DeDRM v6.5.3: Trying Encryption key default_key
    Could not decrypt ifwjve.epub. Wrong key
    DeDRM v6.5.3: Failed to decrypt with key default_key after 0.1 seconds
    DeDRM v6.5.3: Looking for new default Adobe Digital Editions Keys after 0.1 seconds
    DeDRM v6.5.3: Exception when getting default Adobe Key after 0.1 seconds
    Traceback (most recent call last):
    File “calibre_plugins.dedrm.init“, line 337, in ePubDecrypt
    File “calibre_plugins.dedrm.adobekey”, line 378, in adeptkeys
    File “calibre_plugins.dedrm.adobekey”, line 358, in CryptUnprotectData
    ADEPTError: Failed to decrypt user key key (sic)
    DeDRM v6.5.3: 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 154, in _run_filetype_plugins
    File “calibre_plugins.dedrm.init“, line 621, in run
    File “calibre_plugins.dedrm.init“, line 392, in ePubDecrypt
    DeDRMError: DeDRM v6.5.3: Ultimately failed to decrypt after 0.1 seconds.
    Added Londonistan to db in: 0.2
    Added 1 books in 1.2 seconds
    Exception TypeError: “‘NoneType’ object is not callable” in <bound method NativeFunction.__del__ of > ignored
    Exception TypeError: “‘NoneType’ object is not callable” in <bound method NativeFunction.__del__ of > ignored
    Worker Launch took: 0.170000076294

  10. Hi everyone, I can’t remove drm from my adobe ebooks. I’ve reinstalled ADE 1.7.2 (on my windows 10 PC) because I thought was a problem of latest version. I’ve added to calibre the latest plugin but also tried an old plugin 6.4.2. Calibre has always worked perfectly and it still works for kindle ebooks, but for Adobe ebooks no more, since at least 2015. I’ve tried other software too, but all of them don’t work for ADE ebooks. I don’t know what else to do. Has anyone removed recently drm from Adobe ebooks? How? Many thanks in advance to who is able to free me from this nightmere…

    • Delete ADE 1.7.2, and all preference and registry entries. Download and install ADE 2.0.1 (see FAQs for download link). Register ADE 2.0.1 with your Adobe ID. Make sure the DRMed ebook can be opened and read by your installation of ADE 2.0.1, and is an Adobe Adept ePub (i.e. was downloaded first by opening a .acsm file with ADE 2.0.1 or earlier).

      Then import the book into calibre. If it doesn’t work, post an import log.

  11. Got the correct plugin for removing DRM in Calibre as per this blog, reimported azw file into Calibre, but DRM persists. any thoughts, anyone? Many thanks.

  12. This works with the new Kindle 1.20 windows app. I converted a Kindle book to epub. It took a while, but it converted with no drm. But to be safe, I uninstalled the new version and installed 1.17 and it actually converts quicker.

    • Only works if you don’t get a KFX file. Not all books are in the new format. (Or if you modify the later versions to disable their ability to download KFX.)

  13. Kobo (“obok”) plugin problem resolved.

    With the new OBOK plugin, I reported that it still did not work (reported failure opening the database). With the aid of Process Monitor I have discovered the issue. The name returned by the tempfile module is encoded using the current code page. But sqlite3 expects the database name to be encoded using UTF-8. And tempfile by default puts the temporary file in your local user temp directory (approx /users/username/appdata/local/temp).

    For example, if you are in Japan and have Japanese characters in your username, this means tempfile returns Shift-JIS which sqlite3 attempts to decode as UTF-8. Which is absolutely guaranteed to fail since those character encoding systems have nothing in common beyond 7-bit ASCII, and will end up with a filename full of 0xFFFD (the Unicode “bad character” encoding). Obviously, attempting to open such a path is doomed to failure.

    But all is not lost. tempfile prefers to follow the environment variable TMPDIR ahead of TEMP and TMP, so you can just create a simple temporary directory name (e.g. C:/TEMP), set TMPDIR to that, and lo and behold, OBOK will start working again.

    A proper fix would be for tempfile and sqlite3 to agree on the filename encoding, but at least using TMPDIR provides a decent workaround.

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