DRM Removal Tools for eBooks

Version 6.5.5 released on 20 October, 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,961 thoughts on “DRM Removal Tools for eBooks

    • Help! I cannot get the plugin installed in Calibre! – I keep getting the error message –

      “InvalidPlugin: The plugin in u’C:\Users\User\Downloads\DeDRM_tools_6.5.1.zip’ is invalid. It does not contain a top-level init.py file”

      What I am doing wrong?

      • Disregard previous comment – I did get the plugin installed, however, it is still not successful in removing the DRM. Can anyone assist in resolving this error?

          • calibre, version 2.77.0 (win32, embedded-python: True)
            Conversion Error: Failed: Convert book 1 of 1 (B01MU5VK6X EBOK)

            Convert book 1 of 1 (B01MU5VK6X EBOK)
            Resolved conversion options
            calibre version: 2.77.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_split_on_page_breaks’: False,
            ‘duplicate_links_in_toc’: False,
            ’embed_all_fonts’: False,
            ’embed_font_family’: None,
            ‘enable_heuristics’: False,
            ‘epub_flatten’: False,
            ‘epub_inline_toc’: False,
            ‘epub_toc_at_end’: False,
            ‘expand_css’: False,
            ‘extra_css’: None,
            ‘extract_to’: None,
            ‘filter_css’: u”,
            ‘fix_indents’: True,
            ‘flow_size’: 260,
            ‘font_size_mapping’: None,
            ‘format_scene_breaks’: True,
            ‘html_unwrap_factor’: 0.4,
            ‘input_encoding’: None,
            ‘input_profile’: <calibre.customize.profiles.InputProfile object at 0x04C57930>,
            ‘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,
            ‘no_chapters_in_toc’: False,
            ‘no_default_epub_cover’: False,
            ‘no_inline_navbars’: False,
            ‘no_svg_cover’: False,
            ‘output_profile’: <calibre.customize.profiles.TabletOutput object at 0x04C57F10>,
            ‘page_breaks_before’: u”//*[name()=’h1′ or name()=’h2′]”,
            ‘prefer_metadata_cover’: False,
            ‘preserve_cover_aspect_ratio’: False,
            ‘pretty_print’: True,
            ‘pubdate’: None,
            ‘publisher’: None,
            ‘rating’: None,
            ‘read_metadata_from_opf’: u’C:\Users\TR\AppData\Local\Temp\calibre_o2vce7\zncqcb.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,
            ‘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,
            ‘transform_css_rules’: ‘[]’,
            ‘unsmarten_punctuation’: False,
            ‘unwrap_lines’: True,
            ‘use_auto_toc’: False,
            ‘verbose’: 2}
            InputFormatPlugin: MOBI Input running
            on C:\Users\TR\AppData\Local\Temp\calibre_o2vce7\jrtcac.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 195, in main
            File “site-packages\calibre\gui2\convert\gui_conversion.py”, line 33, in gui_convert_override
            File “site-packages\calibre\gui2\convert\gui_conversion.py”, line 26, in gui_convert
            File “site-packages\calibre\ebooks\conversion\plumber.py”, line 1064, in run
            File “site-packages\calibre\customize\conversion.py”, line 245, in call
            File “site-packages\calibre\ebooks\conversion\plugins\mobi_input.py”, line 34, in convert
            File “site-packages\calibre\ebooks\mobi\reader\mobi6.py”, line 81, in init
            calibre.ebooks.mobi.MobiError: Unknown book type: ‘\x81\xc4\xde\x02|\x8c”\x08’

            • First off, that’s a conversion log, not an import log. DRM removal happens on import, not conversion.

              However, in this case, it does tell us that that’s one of the new KFX format ebooks from Amazon. See the FAQs at Apprentice Harper’s github site for details, including links to Kindle for PC version 1.17 that you’ll need to install to be able to get versions of your books in older formats that can have the DRM removed.

  1. Just checking if using Kindle for PC app 1.15 is still fine. It works for me so I’ve never updated it to any other versions. I noticed people are referring to 1.17; any reason I should stop using 1.15 and update to 1.17?

  2. Good morning.

    Had to reset my computer yesterday and “lost” my DRM Removal tools.

    I re-downloaded Calibre, Kindle For PC (version 17.), Nook Study (2.1.2.28770), Adobe Digital Edition (2.0.1.78765) and DeDRM tools 6.5.3.

    I’m using Windows 10 as my operating system.

    Now, two things.

    1) Will I have to download any other programs for the DeDRM tools to work with Calibre?

    2) Who can I talk to about problems with Nook Study? I’ve attempted to log into it with my B&N logon info but Nook Study times out and doesn’t give an error message (it just returns with the login page).

    • Looks like you have everything. But I’d suggest using Nook for PC instead of Nookstudy. (Download link available on the FAQs page here at the blog.) You’ll need to enter your B&N info into the plugin customization to retrieve your key.

      I don’t think there’s anyone to talk to about Nookstudy. Pretty sure they’ve completely stopped supporting it. I’ve never had an issue logging into Nookstudy, but I know some people are unable to. I’ve heard sometimes they can after changing their B&N account email to match their Adobe ID. (Mine were always the same.) But again, I say don’t bother with it — use Nook for PC.

      • Downloading Nook for PC (found the link).

        On the “plugin customization”, is the instructions for doing that included with the DeDRM tools?

        Or is that a Calibre thing?

      • Thanks for all the help.

        Downloaded & deDRMed some Kindle ebooks & a B&N ebook successfully.

        Mind you, Nook for PC worked but it’s a pain to use compared to Kindle for PC.

        Amazon will still be my first choice for getting new ebooks. 😉

  3. Hi
    I have a pdf file that supported by a native Drm can you help me how to open it.
    this file only open in exclusive app.

    Thanks

  4. Thank you! It worked like a charm. But only, and that cannot be stressed enough, when the windows user name contains only ascii characters! (Thanks for the hint in the FAQ.)
    I eventually had to go back to my Windows 7 machine, because due to some Win 10 bug, I could not log into a new user account on Windows 10.

  5. My Kindle for PC updated to version 1.19 and that seemed to break the deDRM. Newly downloaded books now had their own folder and importing into Calibre gave me an unrecognized file that couldn’t open. I uninstalled 1.19 and then reinstalled version 1.16 and everything was back to normal.

  6. Hi, thanks for all your hard work developing these marvelous tools. I have been struggling a bit to get this to work for me. I am trying to remove the DRM from a textbook on Kindle for PC. I am running Linux on a chromebook via crouton (things are hardly ever easy with this setup unfortunately). Here’s the text from the debug readout:

    calibre Debug log
    calibre 2.77 embedded-python: True is64bit: True
    Linux-3.10.18-x86_64-with-debian-jessie-sid Linux (’64bit’, ‘ELF’)
    (‘Linux’, ‘3.10.18’, ‘#1 SMP Fri Jan 6 23:50:53 PST 2017’)
    Python 2.7.9
    Linux: (‘debian’, ‘jessie/sid’, ”)
    Successfully initialized third party plugins: DeDRM (6, 5, 3)
    devicePixelRatio: 1.0
    logicalDpi: 96.1119113573 x 96.0945812808
    physicalDpi: 135.5328125 x 135.466666667
    Starting up…
    Started up in 10.33 seconds with 1 books
    DeDRM v6.5.3: Trying to decrypt B00AU0K15E_EBOK.azw4
    Using Library AlfCrypto DLL/DYLIB/SO
    MobiDeDrm v0.41.
    Copyright © 2008-2012 The Dark Reverser et al.
    MOBI header version 4, header length 248
    Decrypting Mobipocket 4 ebook: Water-Resources Engineering
    Found 0 keys to try after 0.3 seconds
    Crypto Type is: 2
    DeDRM v6.5.3: Failed to decrypt with error: No key found in 0 keys tried.
    DeDRM v6.5.3: Looking for new default Kindle Key after 0.3 seconds
    DeDRM v6.5.3: Running kindlekey.py under Wine
    DeDRM v6.5.3: Command line: ‘WINEPREFIX=”/home/justin” wine python.exe “/home/justin/.config/calibre/plugins/DeDRM/libraryfiles/kindlekey.py” “/home/justin/.config/calibre/plugins/DeDRM/libraryfiles/winekeysdir”‘
    wine: cannot find L”C:\windows\system32\python.exe”
    DeDRM v6.5.3: Found and decrypted 0 key files
    DeDRM v6.5.3: Ultimately failed to decrypt after 1.3 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 168, in _run_filetype_plugins
    File “calibre_plugins.dedrm.init“, line 610, in run
    File “calibre_plugins.dedrm.init“, line 560, in KindleMobiDecrypt
    DeDRMError: DeDRM v6.5.3: Ultimately failed to decrypt after 1.3 seconds
    Added Water-Resources Engineering to db in: 0.7
    Added 1 books in 3.0 seconds
    QXcbWindow: Unhandled client message: “_GTK_LOAD_ICONTHEMES”

    Thanks for the help! Would love to get this figured out before I have to return the book.

    • There is an issue where some Linux systems can’t find Python. You do need to have Python and PyCrypto installed under wine. Try running kindlekey.py manually and importing the key into calibre.

      Of course, the tools only work on purchased books, not rentals.

  7. Hello there, not a specialist in eBooks stuff only just discovering as I need to read that one for my science project, but DRM, what a plague… shame on these people. However, I nave a PROBLEM WITH THE PLUGIN, I have followed the procedure and the protection stays on no matter what. Here is a link to the material: [link removed]
    I would like to be able to have it on PDF like my other books in my favourite folder, and to be able to share it with a friend if I decide to. Is this fair?

    • Never ever link to books, you could get an DMCA-notice (and rightfully so).
      What is needed is an error log from DeDRM or the DeDRM-Calibre-plugin.
      The usual question first: is this book bough or lend?
      DeDRM works only on books you have bought yourself, not lent books.

  8. I’m trying to remove a book’s DRM, but it simply doesn’t work. Using the calibre plugin, everything up-to-date. It has been bought at the Amazon Kindle store, AZW3 format.

  9. I’m trying to remove an e-book’s DRM, but it just won’t work. I’ve followed all instructions; it works neither with the calibre plugin, nor with the Windows program. It is an AZW3 bought at the Amazon Kindle store.

  10. Hi everybody! I have a bit of an issue here. I think all my info is correct, I’m using the latest copy of calibre (2.78) and DeDRM (6.5.3) and I’m getting an error in my error log that says “AES improper key used”. I checked on GitHub and they said that the password was maybe not alpha-numeric. But my password is fine, all the info is correct, I checked several times. I bought the book and I can’t read it! There’s a curious thing though: the epub is accompanied by a 2.5 MB zip file, that I can’t open (no such file or directory).

    Any help would be much appreciated!

    Thank you for any responses and your concern!

    • oh, and I should mention that I’m using Nook for Android. Should I try using Nook for PC? I’m using a Mac and emulating the Nook for Android through VMWare Fusion and getting my ebooks onto the hard drive via Google Drive.

  11. Thanks for your attention. I tried Nook for PC on Windows 10, and it worked! Thanks for the heads up. it’s odd though, the Nook for PC had the title as well as the ISBN on the file name, but the Nook for Android only had the ISBN. I’m glad Nook for PC still works, though. It’s strange that Nook for Android doesn’t work for this book, because it’s the newest program and should work the best. I’d also like to add that Nook Study doesn’t work on 10.12.3. it just shows a blank screen. Now I’m wondering why Nook for Android doesn’t work, but Nook for PC does. I guess they introduced some new stuff in Nook for Android that make it difficult to copy the books off the “device”.

    Thanks once again for the suggestion. I would have had to get my money back and forego this book. Thanks again!

    • I know that the books from the Windows Store Nook app have problems because they sometimes have a piece of the DRM info stored separately from the ebook file. It’s possible they started doing this with Nook for Android as well. In both cases, the books are now stored in hidden folders to keep us from getting our grimey little hands on them!

      • It just gets my dander up the lengths they will go to to keep our own books from us! How can it be right to keep buying the same book over and over simply because for some reason or another one cannot access the ones previously bought? -I mean it does not happen that often, but still. . .

        I say we should strive to stop buying DRMed books; after all, they need the sales much more than we need to read those particular books! Yet it’s also true sometimes we may have to purchase the odd DRMed book. Thanks and a very big thanks for these tools and the awesome people who give of their time to help us use them.

        Buy tablets / e-readers that support side-loading because most other booksellers sells the DRM-freed versions. Let the proprietors keep their properties; it’s theirs. Our money is ours.

        • Yeah, B&N used to have one of the most flexible DRMs and that was a big reason why they were my prefered store. In 2014 when they started trying to lock everything down, I completely stopped buying ebooks from them. I definitely look for publishers (like Tor and Saga in the US) who are DRM-free. But as long as I can get DRM off, I’ll still buy them.

          • If you’re into science fiction, I recommend Baen Books. Unfortunately, when they started allowing Amazon to sell Kindle versions, Amazon forced Baen to raise their prices drastically, in some cases doubling the price, to match what Amazon charges.

            • Ah, yes, Baen — true DRM-free ebook pioneers! They have always understood the pointlessness of DRM. I think Tor would have been DRM sooner if not for their parent company Macmillan.

  12. The calibre plugin was working for me just a couple days ago, but when I tried it today, it failed. So I downloaded the latest DeDRM tools (6.5.3) and tried again. Again it failed. So I experimented a little using the DeDRM app and found that it still works on Kindle books that I bought before today, just not on today’s book. Here’s the DeDRM log:

    There is 1 ebook to be decrypted.
    Processing file: B00Z8POC5G_EBOK.azw
    shellcommand: /usr/bin/python ‘/Applications/DeDRM.app/Contents/Resources/k4mobidedrm.py’ -k ‘/Users/jt/Library/Preferences/com.apprenticealf.dedrm/Local Kindle Key.k4i’ -s ‘B001C1B882223199′ -p ’45JVJQ3*6U,’ ‘/Users/jt/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/My Kindle Content/B00Z8POC5G_EBOK.azw’ ‘/Users/jt/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/My Kindle Content/’ > ‘/Users/jt/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
    shellresult: Using Library AlfCrypto DLL/DYLIB/SO
    K4MobiDeDrm v5.4.
    Copyright © 2008-2013 The Dark Reverser et al.
    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 Tragedy of Y (Drury Lane Mysteries)
    Found 7 keys to try after 0.0 seconds
    Crypto Type is: 2
    Warning: PID has wrong number of digits
    Error decrypting book after 0.0 seconds: No key found in 6 keys tried.
    Traceback (most recent call last):
    File “/Applications/DeDRM.app/Contents/Resources/k4mobidedrm.py”, line 254, in decryptBook
    book = GetDecryptedBook(infile, kDatabases, androidFiles, serials, pids, starttime)
    File “/Applications/DeDRM.app/Contents/Resources/k4mobidedrm.py”, line 228, in GetDecryptedBook
    mb.processBook(totalpids)
    File “/Applications/DeDRM.app/Contents/Resources/mobidedrm.py”, line 471, in processBook
    raise DrmException(u”No key found in {0:d} keys tried.”.format(len(goodpids)))
    DrmException: No key found in 6 keys tried.
    shellcommand: /usr/bin/python ‘/Applications/DeDRM.app/Contents/Resources/kindlekey.py’ ‘/Users/jt/Library/Preferences/com.apprenticealf.dedrm/newKeys/’ > ‘/Users/jt/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
    shellresult: kindlekey.py v2.2
    Copyright © 2010-2016 by some_updates, Apprentice Alf and Apprentice Harper
    Found k4Mac kinf2011 file: /Users/jt/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2011
    Couldn’t decrypt file.
    Could not retrieve Kindle for Mac/PC key.

    There was an error with 1 ebook:
    B00Z8POC5G_EBOK.azw couldn’t be decrypted.

  13. Hello Apprentice Alf,
    I am just wondering if there is any way that the company that I purchased a DRM’d PDF or epub could find out that I removed the DRM from their file if I use your DeDRM plugin for caliber.

    Thanks,
    JP

  14. Need help. Using OS X 10.10.5
    Kindle for Mac 1.17.0
    Ebook from Amazon purchase

    calibre Debug log
    calibre 2.78 embedded-python: True is64bit: True
    Darwin-14.5.0-x86_64-i386-64bit Darwin (’64bit’, ”)
    (‘Darwin’, ‘14.5.0’, ‘Darwin Kernel Version 14.5.0: Thu Apr 21 20:40:54 PDT 2016; root:xnu-2782.50.3~1/RELEASE_X86_64’)
    Python 2.7.11
    OSX: (‘10.10.5’, (”, ”, ”), ‘x86_64’)
    Successfully initialized third party plugins: DeDRM (6, 5, 1) && KindleUnpack – The Plugin (0, 81, 3)
    devicePixelRatio: 2.0
    logicalDpi: 72.0 x 72.0
    physicalDpi: 110.50000166 x 110.50000166
    Starting up…
    Started up in 2.65 seconds with 13 books
    DeDRM v6.5.1: Trying to decrypt B00XIHJ2QU_EBOK.azw4
    Using Library AlfCrypto DLL/DYLIB/SO
    MobiDeDrm v0.41.
    Copyright © 2008-2012 The Dark Reverser et al.
    MOBI header version 4, header length 264
    Decrypting Mobipocket 4 ebook: Professional Nursing Practice: Concepts and Perspectives
    Found 8 keys to try after 0.1 seconds
    Crypto Type is: 2
    DeDRM v6.5.1: Failed to decrypt with error: Cannot decode library or rented ebooks.
    DeDRM v6.5.1: Looking for new default Kindle Key after 0.1 seconds
    Found k4Mac kinf2011 file: /Users/tk/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2011
    Found k4Mac kinf2011 file: /Users/tk/Library/Application Support/Kindle/storage/.kinf2011
    Decrypted key file using IDString ‘b1b53ac96be8’ and UserName ‘tk’
    Decrypted key file using IDString ‘b1b53ac96be8’ and UserName ‘tk’
    DeDRM v6.5.1: Found 1 new key
    MobiDeDrm v0.41.
    Copyright © 2008-2012 The Dark Reverser et al.
    MOBI header version 4, header length 264
    Decrypting Mobipocket 4 ebook: Professional Nursing Practice: Concepts and Perspectives
    Found 4 keys to try after 0.7 seconds
    Crypto Type is: 2
    DeDRM v6.5.1: Ultimately failed to decrypt after 0.7 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 168, in _run_filetype_plugins
    File “calibre_plugins.dedrm.init“, line 608, in run
    File “calibre_plugins.dedrm.init“, line 558, in KindleMobiDecrypt
    DeDRMError: DeDRM v6.5.1: Ultimately failed to decrypt after 0.7 seconds

  15. For What It Is Worth.

    A few days ago, I downloaded Kindle For PC (version 17.) and it was working fine.

    However, today it updated itself on me and I had some problems with DRMed files.

    Since I still had the installation software, I deleted it from my computer and reinstalled it.

    I made sure that it won’t update without asking me and I was able to deDRM the files.

  16. Hi there,

    I want to thank you for the work you put into this and share my experience for others.

    I also ran into the KFX format problem, with the Windows 10 – PC version of Kindle (not AppStore version)

    My workaround:

    Sync books to old school Kindle (I believe mine is 1st gen, the one with a keyboard.)

    In Calibre go to Preferences > (Highlight the DeDRM plugin) > Customize Plugin > eInk Kindle eBooks > Add new serial number (Green plus sign)

    In the Kindle, to to Home > Settings > Device Info
    -Grab the 16-digit serial number (Mine started with B006) and enter in into the plugin where prompted
    -Save/apply, then restart Calibre if needed

    Connect ancient Kindle to PC via USB

    Drag/drop files directly from Kindle directory, they should then automatically load.

    Convert them to EPUB, PDF, etc.

    I had trouble when saving files to disk then moving them into Calibre from there. Again, upload them directly from the device.

    I hope this helps anyone who runs into those pesky KFX issues!

    • Or: just delete the version 19 from your computer and all books downloaded by it, then reinstall version 17 and re-download the books. Remember to DISABLE AUTO-UPDATE on version 17.

  17. I keep getting an error message whenever trying to use Mac version of DeDRM. The error prompt reads as follows: File {My Computer Name} Users:{UserName}:Library:Preferences:com.apprenticealf.dedrm.plist wasn’t found. (-43)

    Have the ability to edit the file, but really don’t see anything out of the ordinary. Running the latest version of macOS Sierra Version 10.12.3

  18. So my KindleForPC upgraded to 1.19 (I thought I had turned off auto-upgrades, but I guess not). Is there any way to still get 1.17 from Amazon (or someplace safe)? And no, I had not saved the 1.17 installer, a lesson I have now learned.

  19. hello
    I’ve installed plugin in Calibre as told,
    The Book I’m trying to import is DRM protected.
    Looks like a new DRM

    B005OJC4SS_EBOK.phl
    B005OJC4SS_EBOK.azw

    I was unable to remove the DRM, Error message log below
    Is there a solution ?

    calibre, version 2.76.0
    ERREUR : Erreurs pendant l’ajout: Échec à l’ajout de n’importe quels livres, cliquez sur “Afficher les détails” pour plus d’information.

    Échec à ajouter le livreB005OJC4SS EBOK
    C:\Users\karim\Documents\My Kindle Content\B005OJC4SS_EBOK\B005OJC4SS_EBOK.azw
    Avec l’erreur :
    Traceback (most recent call last):
    File “site-packages\calibre\gui2\add.py”, line 379, in add_book
    File “site-packages\calibre\db\legacy.py”, line 217, in create_book_entry
    File “site-packages\calibre\db\cache.py”, line 61, in call_func_with_lock
    File “site-packages\calibre\db\cache.py”, line 1539, in create_book_entry
    File “site-packages\calibre\db\cache.py”, line 1261, in set_metadata
    File “site-packages\calibre\db\cache.py”, line 1088, in update_path
    File “site-packages\calibre\db\backend.py”, line 1551, in update_path
    File “site-packages\calibre\db\tables.py”, line 135, in set_path
    File “site-packages\calibre\db\backend.py”, line 822, in execute
    File “c:\cygwin64\home\kovid\sw\build\apsw-3.8.2-r1\src\cursor.c”, line 231, in resetcursor
    CantOpenError: CantOpenError: unable to open database file

    Échec à ajouter le livreCR!GCP61X6NKH6XV7D6N9CF1JT285Q5.azw
    C:\Users\karim\Documents\My Kindle Content\B005OJC4SS_EBOK\CR!GCP61X6NKH6XV7D6N9CF1JT285Q5.azw.md
    Avec l’erreur :
    Traceback (most recent call last):
    File “site-packages\calibre\gui2\add.py”, line 379, in add_book
    File “site-packages\calibre\db\legacy.py”, line 217, in create_book_entry
    File “site-packages\calibre\db\cache.py”, line 61, in call_func_with_lock
    File “site-packages\calibre\db\cache.py”, line 1529, in create_book_entry
    File “site-packages\calibre\db\backend.py”, line 822, in execute
    File “c:\cygwin64\home\kovid\sw\build\apsw-3.8.2-r1\src\cursor.c”, line 231, in resetcursor
    CantOpenError: CantOpenError: unable to open database file

  20. I can’t stand Kindle’s viewer. I need to get this out of Kindle. When I go through the process, I don’t get a DRM error, but I do get this nonsense.

    calibre, version 2.78.0 (win32, embedded-python: True)
    Conversion Error: Failed: Convert book 1 of 1 (The Western Heritage: Volume 2)

    Convert book 1 of 1 (The Western Heritage: Volume 2)
    Resolved conversion options
    calibre version: 2.78.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’: u’C:\Users\MATTH_~1\AppData\Local\Temp\calibre_wp7yqq\crxl2z.jpeg’,
    ‘custom_size’: None,
    ‘debug_pipeline’: None,
    ‘dehyphenate’: True,
    ‘delete_blank_paragraphs’: True,
    ‘disable_font_rescaling’: False,
    ‘duplicate_links_in_toc’: False,
    ’embed_all_fonts’: False,
    ’embed_font_family’: None,
    ‘enable_heuristics’: False,
    ‘expand_css’: False,
    ‘extra_css’: 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 0x049CDAD0>,
    ‘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,
    ‘no_chapters_in_toc’: False,
    ‘no_inline_navbars’: False,
    ‘old_pdf_engine’: False,
    ‘output_profile’: <calibre.customize.profiles.KindleDXOutput object at 0x049CDE50>,
    ‘override_profile_size’: False,
    ‘page_breaks_before’: u”//*[name()=’h1′ or name()=’h2′]”,
    ‘paper_size’: u’letter’,
    ‘pdf_add_toc’: False,
    ‘pdf_default_font_size’: 20,
    ‘pdf_footer_template’: None,
    ‘pdf_header_template’: None,
    ‘pdf_mark_links’: False,
    ‘pdf_mono_family’: u’Courier New’,
    ‘pdf_mono_font_size’: 16,
    ‘pdf_page_numbers’: False,
    ‘pdf_sans_family’: u’MS Shell Dlg 2′,
    ‘pdf_serif_family’: u’Times New Roman’,
    ‘pdf_standard_font’: u’serif’,
    ‘prefer_metadata_cover’: False,
    ‘preserve_cover_aspect_ratio’: False,
    ‘pretty_print’: False,
    ‘pubdate’: None,
    ‘publisher’: None,
    ‘rating’: None,
    ‘read_metadata_from_opf’: u’C:\Users\MATTH_~1\AppData\Local\Temp\calibre_wp7yqq\_pgnrn.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,
    ‘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,
    ‘transform_css_rules’: ‘[]’,
    ‘uncompressed_pdf’: False,
    ‘unit’: u’inch’,
    ‘unsmarten_punctuation’: False,
    ‘unwrap_lines’: True,
    ‘use_auto_toc’: False,
    ‘verbose’: 2}
    Python function terminated unexpectedly
    No embedded PDF found in AZW4 file (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 195, in main
    File “site-packages\calibre\gui2\convert\gui_conversion.py”, line 33, in gui_convert_override
    File “site-packages\calibre\gui2\convert\gui_conversion.py”, line 26, in gui_convert
    File “site-packages\calibre\ebooks\conversion\plumber.py”, line 1051, in run
    File “site-packages\calibre\ebooks\azw4\reader.py”, line 24, in unwrap
    ValueError: No embedded PDF found in AZW4 file

    I am using all latest version except for Kindle which is 1.17. I’m at a loss. Anyone know the answer? I get that error when attempting to convert.

    • DRM removal happens when you first add a book to calbre, not during conversion. Post an import log. However, since it’s an AZW4 and the title sounds like a textbook, I have to ask if it’s rented. If so, the tools cannot remove the DRM.

  21. The Kindle for PC Update and New Kindle eBooks installed are now coming inside a Folder with the B000P0JM5O_EBOK Filename for example inside with 4 Files 1.B000P0JM5O_EBOK.azw 2.amzn1.drm-voucher.v1.27438f84-e793-2406-0238-27304jjd5e30.voucher 3.CR!FXPJ7BYVMS3AV8R6AWM1VBBQTED6.azw.md and 4.CR!NC9TTD3Q412DZFNGPC84ETPDWXCG.azw.res — None of These are Able to have the DRM Stripped by the Current tools ??? Interesting …

  22. K4PC updated to 1.19 this morning. A book I’d gotten doesn’t even show up in My Kindle Content when I bring it up in Calibre. Whereas books I got 1-31 are showing just fine. Am I going to have to uninstall K4PC & re-install 1.17? And does that include having to un-install My Kindle Content from my Documents folder?

    • The book you can’t see is in new KFX format. Yes, reinstall 1.17. Make sure to turn off auto-updates. Not sure if the Kindle Content folder cleans itself up or not. It probably wouldn’t hurt to just delete it.

      • Success 🙂 I forgot to delete my kindle content but it didn’t seem to matter. Once 1.17 was installed all of the books showed up as they should via Calibre. And yes, I made sure not to auto-update 🙂

  23. Where do I find the ADE key, so that I can manually add it to the deDRM plugin? In my case the key must be added to the plugin. Where can I find the key?

    • I’ll put the answer here – It’s an ebook reader that searches for, accesses, downloads, and manages (on your provided “bookshelf”) ebooks from your library. One uses it instead of the library’s website. They like it more than the website method because, I believe, it provides better book security for them.

      • Thanks. I must admit to being sufficiently ambivalent about DRM on library books that I tend not to help with removing it. I hope you find a way to enjoy reading your library books in accordance with the library terms.

  24. Having trouble getting this to work. Here’s my import log:

    calibre Debug log
    calibre 2.75.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’)
    Successfully initialized third party plugins: DeDRM (6, 5, 3)
    devicePixelRatio: 1.0
    logicalDpi: 96.0 x 96.0
    physicalDpi: 84.2279792746 x 81.6428571429
    Starting up…
    Started up in 10.10 seconds with 3 books
    stdout+stderr from file dialog helper: [”, ”]
    piped data from file dialog helper: [‘\xb6\x9cd\xc2kW\xc1\xbc\xfd\xa5-8\xf7\xd7\x18K\t\xb3\xbbB\x9b\xcb\xbd:v\x88\xa7V\xd8\xe1\xa0\xdc’, ‘E:\Documents and Settings\Susan\My Documents\My eBooks\FamilyPlan9781426860645.prc’]
    DeDRM v6.5.3: Trying to decrypt FamilyPlan9781426860645.prc
    Using Library AlfCrypto DLL/DYLIB/SO
    MobiDeDrm v0.41.
    Copyright © 2008-2012 The Dark Reverser et al.
    MOBI header version 6, header length 232
    Extra Data Flags: 2
    Decrypting Mobipocket 6 ebook: The Family Plan
    Found 0 keys to try after 0.1 seconds
    Crypto Type is: 2
    DeDRM v6.5.3: Failed to decrypt with error: No key found in 0 keys tried.
    DeDRM v6.5.3: Looking for new default Kindle Key after 0.1 seconds
    searching for kinfoFiles in C:\Users\Susan\AppData\Local
    Found K4PC 1.9+ kinf2011 file: C:\Users\Susan\AppData\Local\Amazon\Kindle\storage.kinf2011
    Couldn’t decrypt file.
    DeDRM v6.5.3: Ultimately failed to decrypt after 0.2 seconds.
    Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
    Running file type plugin DeDRM failed with traceback:
    Traceback (most recent call last):
    File “site-packages\calibre\customize\ui.py”, line 168, in _run_filetype_plugins
    File “calibre_plugins.dedrm.init“, line 610, in run
    File “calibre_plugins.dedrm.init“, line 560, in KindleMobiDecrypt
    DeDRMError: DeDRM v6.5.3: Ultimately failed to decrypt after 0.2 seconds
    Added The Family Plan to db in: 0.3
    Added 1 books in 1.1 seconds

  25. Hello. Kindle for PC appears to have been updated today and the content is no longer unpack-able by this plugin. The new structure of a single book is:

    XXXX_EBOK\
    ———-amzn1.drm-voucher.____.voucher
    ———-XXXX_EBOK.azw
    ———-CR!____.azw.res
    ———-CR!____.azw.res
    ———-CR!____.azw.res
    ———-CR!____.azw.res
    ———-CR!____.azw.md

    • Yes, for several weeks now this has been discussed here. Version 1.19 for both the PC and Mac Kindle applications use a new form of encryption. The solution is to delete version 1.19 from your computer (along with any books downloaded by it) and then download and reinstall version 1.17; make SURE that you disable auto-update as soon as you install 1.17. Re-download the books you deleted.

  26. Hi,

    Tools and environment

    Windows 10
    Calibre 2.78 [64 bit]
    DeDRM v6.5.3
    Book downloaded from Amazon.ca to desktop (AZW3)

    No error messages

    I have calibre 2.78 [64 bit] running on my Windows 10 [64 bit] machine. I installed the plug-in DeDRM v6.5.3 into calibre (and checked – the plug-in is in place and seems functional). In calibre preferences have ‘Use internal viewer for:’ set to AZW and AZW3.

    I tried adding an AZW3 book to calibre that I downloaded from Amazon.ca website (for Kindle) to my desktop. There were no error messages and the book shows up in the calibre library listing, but when I try to open it the message says the book is protected with DRM. Hmmm?

    I have read through the FAQ.

    The book is not in the calibre library prior to adding it.

    Here is the log:

    calibre Debug log
    calibre 2.78 [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’)
    Successfully initialized third party plugins: DeDRM (6, 5, 3)
    devicePixelRatio: 1.0
    logicalDpi: 96.0 x 96.0
    physicalDpi: 93.9653179191 x 94.0740740741
    Starting up…
    Started up in 19.96 seconds with 29 books
    stdout+stderr from file dialog helper: [”, ”]
    piped data from file dialog helper: [‘\x1fd\xb8[\x9b\x06!L\xd3\xe8PVj\x0e\x95\xfa\xac\xde\xe9\xc9I\xe5G\x7f\x0b\x03L&k\x89\xb6\xa7’, ‘C:\Users\Garry\Desktop\The Myth of the Andalusian Paradise.azw3’]
    DeDRM v6.5.3: Trying to decrypt The Myth of the Andalusian Paradise.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 Myth of the Andalusian Paradise
    Found 0 keys to try after 0.1 seconds
    Crypto Type is: 2
    DeDRM v6.5.3: Failed to decrypt with error: No key found in 0 keys tried.
    DeDRM v6.5.3: Looking for new default Kindle Key after 0.1 seconds
    searching for kinfoFiles in C:\Users\Garry\AppData\Local
    Found K4PC 1.9+ kinf2011 file: C:\Users\Garry\AppData\Local\Amazon\Kindle\storage.kinf2011
    Decrypted key file using IDString ‘1881511718’ and UserName ‘4761727279’
    DeDRM v6.5.3: 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 Myth of the Andalusian Paradise
    Found 4 keys to try after 0.1 seconds
    Crypto Type is: 2
    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 168, in _run_filetype_plugins
    File “calibre_plugins.dedrm.init“, line 610, in run
    File “calibre_plugins.dedrm.init“, line 560, in KindleMobiDecrypt
    DeDRMError: DeDRM v6.5.3: Ultimately failed to decrypt after 0.1 seconds
    Added The Myth of the Andalusian Paradise to db in: 0.1
    Added 1 books in 0.9 seconds

    Can anyone give me a clue what might be wrong? Thank you for any help.

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