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

4,074 thoughts on “DRM Removal Tools for eBooks

  1. Is there support for the DRM that openlibrary.org uses? Supposedly their DRM conforms to that the National Library Service uses for Blind Audio Reading Devices (NLS BARD key)

  2. After some effort, i finally succeeded in getting the obok plug-in to work in Calibre. At first, after faithfully following the instructions on the readme page of the version 6.5.5 release download, when I clicked on the obok icon I had set up in Calibre, I got a dialogue box indicating that it appeared I did not have the Kobo desktop app on my PC, which I did have. After several failed attempts to resolve this, finally I just uninstalled the Kobo app, reinstalled it, synced with the ebook I had purchased, dropped the book into the Calibre window, opened the obok plug-in and every work fine. The book is now on my Kindle. Thank you. You’re terrific.

  3. with the upgrade of Amazon’s newer .kfx file format, it seems that the DeDRM version 6.5.5 is not working on Calibre. I tried to reinstall kindle version 1.17, but Amazon automatically updated it to version 1.21.
    Any suggestions to resolve this issue?
    Your help would be very much appreciated.

  4. I have installed the calibre plugin, but my books still have DRM. When I try to convert my books, calibre says they have DRM. I uninstalled the plugin, removes the books, reinstalled the plugin, added the books back and it still won’t remove the DRM.

    I had tested this with a free book first and had no problems, but with purchased books it isn’t working. Is this in relation to what Andy Rogers was saying?

  5. I’m not having any success using the latest Apprentice Alf package and the latest Calibre. Running on Mac OS X version 10.12.6 (16G1114) [Sierra]. Getting errors naturally. Sample error message reads:

    calibre, version 3.15.0
    ERROR: Could not open e-book: Failed to read book, /Users/LDMartin1959/Library/Application Support/Calibre Library/Unknown/B075YN6ZZ9 EBOK (4557)/B075YN6ZZ9 EBOK – Unknown.azw click “Show Details” for more information

    Traceback (most recent call last):
    File “site-packages/calibre/utils/ipc/simple_worker.py”, line 284, in main
    File “site-packages/calibre/ebooks/oeb/iterator/book.py”, line 64, in extract_book
    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 84, in init
    KFXError: This is an Amazon KFX book. It cannot be processed. See https://www.mobileread.com/forums/showthread.php?t=283371 for information on how to handle KFX books.

    Log reads:

    calibre Debug log
    calibre 3.15 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: Mon Nov 13 21:56:25 PST 2017; root:xnu-3789.72.11~1/RELEASE_X86_64’)
    Python 2.7.12
    OSX: (‘10.12.6’, (”, ”, ”), ‘x86_64′)
    Interface language: None
    Successfully initialized third party plugins: DeDRM (6, 5, 5) && Find Duplicates (1, 6, 3)
    calibre 3.15 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: Mon Nov 13 21:56:25 PST 2017; root:xnu-3789.72.11~1/RELEASE_X86_64’)
    Python 2.7.12
    OSX: (‘10.12.6’, (”, ”, ”), ‘x86_64’)
    Interface language: None
    Successfully initialized third party plugins: DeDRM (6, 5, 5) && Find Duplicates (1, 6, 3)
    devicePixelRatio: 1.0
    logicalDpi: 72.0 x 72.0
    physicalDpi: 114.000001712 x 114.000001712
    Using calibre Qt style: True
    Starting up…
    Started up in 1.84 seconds with 0 books
    DeDRM v6.5.5: Trying to decrypt B01LWDG7HM_EBOK.azw
    Using Library AlfCrypto DLL/DYLIB/SO
    DeDRM v6.5.5: Trying to decrypt B075YN6ZZ9_EBOK.azw
    DeDRM v6.5.5: Failed to decrypt with error: KFX format detected. This format cannot be decrypted yet.
    DeDRM v6.5.5: Looking for new default Kindle Key after 0.1 seconds
    Using Library AlfCrypto DLL/DYLIB/SO
    Found k4Mac kinf2011 file: /Users/LDMartin1959/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2011
    DeDRM v6.5.5: Failed to decrypt with error: KFX format detected. This format cannot be decrypted yet.
    DeDRM v6.5.5: Looking for new default Kindle Key after 0.1 seconds
    Found k4Mac kinf2011 file: /Users/LDMartin1959/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2011
    Added CR!Z13X4GD2B10WK8F1G9NE8R6Y682C.azw to db in: 0.0
    Added CR!ZWQNNK44E14Q1F2TNFWBYC84G4ZN.azw to db in: 0.0
    Decrypted key file using IDString ‘0922068a91f1’ and UserName ‘LDMartin1959’
    DeDRM v6.5.5: Found 1 new key
    DeDRM v6.5.5: Ultimately failed to decrypt after 0.6 seconds. Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
    Running file type plugin DeDRM failed with traceback:
    Traceback (most recent call last):
    File “site-packages/calibre/customize/ui.py”, line 171, in _run_filetype_plugins
    File “calibre_plugins.dedrm.init“, line 618, in run
    File “calibre_plugins.dedrm.init“, line 568, in KindleMobiDecrypt
    DeDRMError: DeDRM v6.5.5: Ultimately failed to decrypt after 0.6 seconds. Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
    Decrypted key file using IDString ‘0922068a91f1’ and UserName ‘LDMartin1959’
    DeDRM v6.5.5: Found 1 new key
    DeDRM v6.5.5: Ultimately failed to decrypt after 0.5 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 618, in run
    File “calibre_plugins.dedrm.init“, line 568, in KindleMobiDecrypt
    DeDRMError: DeDRM v6.5.5: Ultimately failed to decrypt after 0.5 seconds. Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
    Traceback (most recent call last):
    File “site-packages/calibre/customize/ui.py”, line 417, in get_file_type_metadata
    File “site-packages/calibre/customize/builtins.py”, line 284, in get_metadata
    File “site-packages/calibre/ebooks/metadata/mobi.py”, line 494, in get_metadata
    File “site-packages/calibre/ebooks/mobi/reader/headers.py”, line 284, in init
    File “site-packages/calibre/ebooks/mobi/reader/headers.py”, line 312, in identity
    MobiError: Unknown book type: Ńfiúå”
    Traceback (most recent call last):
    File “site-packages/calibre/customize/ui.py”, line 417, in get_file_type_metadata
    File “site-packages/calibre/customize/builtins.py”, line 284, in get_metadata
    File “site-packages/calibre/ebooks/metadata/mobi.py”, line 494, in get_metadata
    File “site-packages/calibre/ebooks/mobi/reader/headers.py”, line 284, in init
    File “site-packages/calibre/ebooks/mobi/reader/headers.py”, line 312, in identity
    MobiError: Unknown book type: ¢Åƒfiùå
    Added B01LWDG7HM EBOK to db in: 0.1
    Added B075YN6ZZ9 EBOK to db in: 0.0
    Added 4 books in 1.5 seconds

    Yes, I see that it says “DeDRM v6.5.5: Failed to decrypt with error: KFX format detected. This format cannot be decrypted yet.” Has Amazon changed their encryption and I’m the only one getting books with the new format (since no one else seems to be having this specific issue)?

  6. Well you’re doing better than me and I’ve reached the end of my patience, any reason for not sharing instead of just saying you’ve figured it out ?

    Windows 7, Calibre 3.15,
    Followed all instructions but when I attempt to Customize told I need to close/reopen Calibre but when I do the DeDRM plugin is nowhere to be found.

    Steps 6-8 skipped as I’m using Kindle for PC 1.17 and have an.azw file I’m trying to de-DRM

    Even installed KOBO desktop but can’t configure it as I don’t have a KOBO, there is an Obok icon on the menu bar but if I click that it just complains:

    EROR: Obok DeDRM v6.5.4:

    No books found in Kobo Library
    Are you sure it’s installed\configured\synchronized?

    Doh!

    Essentially then I cannot get to the screen between steps 7 and 8.

    Why can’t people write instructions that just bloodywell WORK !!!!!!!!!!!!!!!!!!!!!!

    • Have you bought any books from Kobo? Have you downloaded them to the Kobo Desktop app? Unless both of those are true, the obok plugin isn’t going to do you much good.

      I don’t know what instructions you’re referring to with ‘steps 7 and 8’. Just install the DeDRM plugin, restart calibre, and then go to the plugin Customization dialogs. DeDRM adds no visible interface to calibre except in the cusomization dialogs, accessed through the plugins section of preferences.

      • Paul, you should explain “Customization dialogs” for non-techies. I hope my steps on how to get to them helps a little.

    • In Calibre go: Preferences>Advanced>Plugins>File type plugins>DeDRM
      Once you open the DeDRM plugin, click on the appropriate tab. If you are using an E-Ink Kindle, enter the Kindle’s serial number; if Kindle for PC, try clicking the Import Existing Keyfiles button.

  7. This is the first time that I have had a problem with this plugin.
    calibre Debug log
    calibre 2.56 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.9
    Windows: (‘7’, ‘6.1.7601’, ‘SP1’, ‘Multiprocessor Free’)
    Successfully initialized third party plugins: DeDRM
    Starting up…
    Started up in 25.95 seconds with 53 books
    DeDRM v6.4.3: Trying to decrypt American Gods – Neil Gaiman.epub
    DeDRM v6.4.3: Verifying zip archive integrity
    DeDRM v6.4.3: American Gods – Neil Gaiman.epub is a secure Adobe Adept ePub
    DeDRM v6.4.3: Trying Encryption key default_key
    Could not decrypt lmscfg.epub. Wrong key
    DeDRM v6.4.3: Failed to decrypt with key default_key after 0.7 seconds
    DeDRM v6.4.3: Looking for new default Adobe Digital Editions Keys after 0.7 seconds
    Found 1 keys
    DeDRM v6.4.3: 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 154, in _run_filetype_plugins
    File “calibre_plugins.dedrm.init“, line 615, in run
    File “calibre_plugins.dedrm.init“, line 386, in ePubDecrypt
    DeDRMError: DeDRM v6.4.3: Ultimately failed to decrypt after 0.7 seconds.
    Added American Gods to db in: 1.1
    Added 1 books in 3.1 seconds
    Exception TypeError: “‘NoneType’ object is not callable” in <bound method NativeFunction.__del__ of > ignored
    Worker Launch took: 0.219000101089
    Worker Launch took: 0.264999866486
    Thanks for the help.
    The book was downloaded from the Library to another computer Windows 10 and copied over to my win 7 computer for DRM removal.
    Thanks
    Andrew

  8. I have the Kobo reader app installed in my laptop. Installed succesfully the Obok plug in.
    I use Kobo plus to get my books. I syncrhonise the books on my laptop.

    Calibre says it succesfully added the books, and shows them as a epub file in the paths too.
    When opening the added file in the calibre reader, I only get weird characters. When transferring the file to my Kindle as a .mobi file I get weird characters as well.
    I can’t run a log, as I follow the instructions in the read.me file i enter ‘calibre-debug-g ‘ (without the quotes) in the command promp and I get an error message.
    When i enter calibre-debug it states:
    Module readline not available.
    Welcome to the interactive calibre shell

    But then nothing happens.

    Could it be because I obtain the file via Kobo Plus which might use another kind of protection of the files?

    Thanks for any info!

    • It all depends on if the bookseller is using the newer DRM. If you can open it in ADE 2.0.1 authorized with your Adobe ID, then you can remove the DRM.

        • I don’t know. The test is to try opening the epub with ADE 2.0.1 that’s been authorized with your Adobe ID. ADE 3 and later can handle a DRM that DeDRM can’t remove (as well as the older DRM). ADE 2.0.1 can only open files with the older Adobe DRM which DeDRM can remove.

  9. Hi all,

    I am a bit new at this, so please excuse any obvious blunders! The debug note was as follows:

    calibre Debug log
    calibre 2.44.1 isfrozen: 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’)
    Starting up…
    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 KoboTouch:books – oncard=’None’
    DEBUG: 0.0 KoboTouch:books – oncard=’None’, prefix=’F:\’
    DEBUG: 0.0 Kobo device: Kobo Touch
    DEBUG: 0.1 Version of driver: (2, 1, 11) Has kepubs: True
    DEBUG: 0.1 Version of firmware: (4, 3, 8966) Has kepubs: True
    DEBUG: 0.1 Firmware supports cover image tree: True
    DEBUG: 0.2 KoboTouch:books – opts.extra_customization= [u”, False, False, False, False, False, False, False, False, False, False, False, u”]
    DEBUG: 0.2 KoboTouch:books – prefs[‘manage_device_metadata’]= manual
    DEBUG: 0.2 KoboTouch:books – set_debugging_title to ”
    DEBUG: 0.2 KoboTouch:books – length bl=0
    Job: 1 Get device information finished
    No details available.
    Job: 2 Set library information finished
    No details available.
    DEBUG: 3.4 KoboTouch:books – length bl after sync=231
    DEBUG: 3.4 KoboTouch:books – reading device database
    DeviceJob: 3 Get list of books on device done, calling callback
    file is encrypted or is not a database

    Traceback (most recent call last):
    File “site-packages\calibre\gui2\device.py”, line 87, in run
    File “site-packages\calibre\gui2\device.py”, line 503, in _books
    File “site-packages\calibre\devices\kobo\driver.py”, line 1691, in books
    DatabaseError: file is encrypted or is not a database

    DeviceJob: 3 Get list of books on device callback returned
    Job: 3 Get list of books on device finished
    file is encrypted or is not a database

    Traceback (most recent call last):
      File "site-packages\calibre\gui2\device.py", line 87, in run
      File "site-packages\calibre\gui2\device.py", line 503, in _books
      File "site-packages\calibre\devices\kobo\driver.py", line 1691, in books
    DatabaseError: file is encrypted or is not a database
    

    Started up in 37.80 seconds with 185 books
    Added The light bearer to db in: 2.6
    Added 1 books in 5.5 seconds

    Any suggestions on how I can get the plugin to work?

    Thank you for your patience!

  10. I have an ebook with footnotes. Interestingly, they work in Calibre (as in I can click on them and read the content), but not on my Kindle. Why is that?

    • So obviously the DRM was removed successfully.

      What format was the book originally? Maybe an issue with conversion? I’d ask over at the MobileRead forums.

        • Hmm, try going from epub to AZW3 instead of mobi. If that doesn’t do it, ask in the calibre forums at MobileRead. Someone there will probably know.

          • I thought it was the file format too until I realized my kindle software was out of date. I’ve been reading the book off and on since November 2017 (and the footnotes never worked). Then, my kindle updated two days ago. As soon as the update went through, the footnotes started working!

            Next time, I’ll convert to AZW3 and see if that prevents any further issues.

        • Since you could convert it, the DRM on the ePub had been successfully removed. So there’s nothing we can help you with here.

          Problems with calibre conversions are best explored in the calibre forum at MobileRead.

  11. Hi!
    Need help, I have the newest plug in (6.5.5) installed in Calibre, however no matter what I do, my B&N books still have DRM when I add them to Calibre.
    I have added the B&N key for my account used to purchase my books.

    What other steps can I take to check why the plug-n is not removing DRM!

  12. I am using the Mac DeDRM app on OSX 10.12.6 to decrypt a epub downloaded with ADE 2.0.1 and I am getting this error in my log (username replaced intentionally with “——-“):
    There is 1 ebook to be decrypted.
    Processing file: Gilgamesh.epub
    shellcommand: /usr/local/bin/python ‘/private/var/folders/yh/spcvd9wx7hjf0prl2k5045r00000gn/T/AppTranslocation/73592C7C-6750-4110-A92C-E4747AABC776/d/DeDRM.app/Contents/Resources/zipfix.py’ ‘/Users/——-/Documents/Digital Editions/Gilgamesh.epub’ ‘/Users/——-/Desktop/Gilgamesh_fixed.epub’ > ‘/Users/——-/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
    shellresult:
    shellcommand: /usr/local/bin/python ‘/private/var/folders/yh/spcvd9wx7hjf0prl2k5045r00000gn/T/AppTranslocation/73592C7C-6750-4110-A92C-E4747AABC776/d/DeDRM.app/Contents/Resources/epubtest.py’ ‘/Users/——-/Desktop/Gilgamesh_fixed.epub’ > ‘/Users/——-/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
    shellresult: Adobe

    shellcommand: /usr/local/bin/python ‘/private/var/folders/yh/spcvd9wx7hjf0prl2k5045r00000gn/T/AppTranslocation/73592C7C-6750-4110-A92C-E4747AABC776/d/DeDRM.app/Contents/Resources/adobekey.py’ ‘/Users/——-/Library/Preferences/com.apprenticealf.dedrm/newKeys/’ > ‘/Users/——-/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
    shellresult: adobekey.py v6.0
    Copyright © 2009-2013 i♥cabbages and Apprentice Alf
    Saved a key to /Users/——-/Library/Preferences/com.apprenticealf.dedrm/newKeys/adobekey_1.der

    shellcommand: /usr/local/bin/python ‘/private/var/folders/yh/spcvd9wx7hjf0prl2k5045r00000gn/T/AppTranslocation/73592C7C-6750-4110-A92C-E4747AABC776/d/DeDRM.app/Contents/Resources/ineptepub.py’ ‘/Users/——-/Library/Preferences/com.apprenticealf.dedrm/AdobeKey 2.der’ ‘/Users/——-/Desktop/Gilgamesh_fixed.epub’ ‘/Users/——-/Desktop/Gilgamesh_nodrm.epub’ > ‘/Users/——-/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
    shellresult: sh: line 1: 23336 Illegal instruction: 4 /usr/local/bin/python ‘/private/var/folders/yh/spcvd9wx7hjf0prl2k5045r00000gn/T/AppTranslocation/73592C7C-6750-4110-A92C-E4747AABC776/d/DeDRM.app/Contents/Resources/ineptepub.py’ ‘/Users/——-/Library/Preferences/com.apprenticealf.dedrm/AdobeKey 2.der’ ‘/Users/——-/Desktop/Gilgamesh_fixed.epub’ ‘/Users/——-/Desktop/Gilgamesh_nodrm.epub’ > ‘/Users/——-/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
    There was an error with 1 ebook:
    Gilgamesh.epub couldn’t be decoded:

  13. This is one of the many books I’m trying to convert into MOBI to read on Kindle.
    Please help!

    calibre Debug log
    calibre 3.15 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: Mon Nov 13 21:56:25 PST 2017; root:xnu-3789.72.11~1/RELEASE_X86_64’)
    Python 2.7.12
    OSX: (‘10.12.6’, (”, ”, ”), ‘x86_64′)
    Interface language: None
    Successfully initialized third party plugins: DeDRM (6, 5, 5)
    calibre 3.15 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: Mon Nov 13 21:56:25 PST 2017; root:xnu-3789.72.11~1/RELEASE_X86_64’)
    Python 2.7.12
    OSX: (‘10.12.6’, (”, ”, ”), ‘x86_64’)
    Interface language: None
    Successfully initialized third party plugins: DeDRM (6, 5, 5)
    devicePixelRatio: 1.0
    logicalDpi: 72.0 x 72.0
    physicalDpi: 128.000001922 x 128.000001922
    Using calibre Qt style: True
    Starting up…
    Started up in 1.43 seconds with 3 books
    2018-01-14 23:14:40.754 Calibre[1225:152812] deliverNotificationWithTitle()
    * Notification delivered.
    2018-01-14 23:14:56.932 calibre-debug[1211:152093] Bad cursor rect event, flags = 0
    DeDRM v6.5.5: Trying to decrypt 9780545317801-ePub.v1.epub
    DeDRM v6.5.5: Verifying zip archive integrity
    DeDRM v6.5.5: “9780545317801-ePub.v1.epub” is a secure Barnes & Noble ePub
    DeDRM v6.5.5: Trying Encryption key NookID
    Could not decrypt 5bYebn.epub because of an exception:
    Traceback (most recent call last):
    File “calibre_plugins.dedrm.ignobleepub”, line 280, in decryptBook
    File “calibre_plugins.dedrm.ignobleepub”, line 211, in init
    File “calibre_plugins.dedrm.ignobleepub”, line 160, in init
    IGNOBLEError: AES improper key used

    DeDRM v6.5.5: Failed to decrypt with key NookID after 0.1 seconds
    DeDRM v6.5.5: Looking for new NOOK Study Keys after 0.1 seconds
    Found nookStudy log file: /Users/vanessa/Library/Application Support/Barnes & Noble/DesktopReader/logs/BNClientLog.txt
    Found nookStudy log file: /Users/vanessa/Library/Application Support/Barnes & Noble/DesktopReader/indices/BNClientLog.txt
    Found nookStudy log file: /Users/vanessa/Library/Application Support/Barnes & Noble/BNDesktopReader/logs/BNClientLog.txt
    Found nookStudy log file: /Users/vanessa/Library/Application Support/Barnes & Noble/BNDesktopReader/indices/BNClientLog.txt
    DeDRM v6.5.5: 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 629, in run
    File “calibre_plugins.dedrm.init“, line 298, in ePubDecrypt
    DeDRMError: DeDRM v6.5.5: 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

    {‘bsd_drives’: {‘main’: u’/dev/disk2′},
    ‘drives’: {‘main’: ‘/Volumes/media’},
    ‘mount_map’: {‘/dev/disk1’: ‘/’,
    ‘/dev/disk2’: ‘/Volumes/media’,
    ‘devfs’: ‘/dev’,
    ‘map -hosts’: ‘/net’,
    ‘map auto_home’: ‘/home’}}
    Opened NOOK with product id: 2
    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= NOOK_COLOR oncard= None
    DEBUG: 0.0 USBMS: dirs are: /Volumes/media/ My Files
    Job: 1 Get device information finished
    No details available.
    Job: 2 Set library information finished
    No details available.
    DEBUG: 0.0 USBMS: scan from root True /Volumes/media/
    DEBUG: 0.1 USBMS: count found in cache: 59, count of files in metadata: 59, 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= NOOK_COLOR oncard= carda
    DEBUG: 0.1 USBMS: Fetching list of books from device. Device= NOOK_COLOR 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= 59
    DeviceJob: set_books_in_library finished: time= 0.0162081718445
    DeviceJob: metadata_downloaded: updating views
    DeviceJob: metadata_downloaded: syncing
    DeviceJob: metadata_downloaded: refreshing ondevice
    DeviceJob: metadata_downloaded: sending metadata_available signal
    DeviceJob: 3 Get list of books on device callback returned
    Job: 3 Get list of books on device finished
    No details available.
    Added Mockingjay to db in: 0.0
    Added 1 books in 0.7 seconds

      • When I was looking at Calibre the other day, I noticed that it’s help section mentioned that Mobi files don’t have the same features on newer kindles (kind of like when you convert a 1997 Excel file to the lastest format some flexibility is lost). Perhaps AZW3 works better than others?

        • Yes, AZW3 is newer than MOBI. And, from what I understand, AZW3 is similar to the EPUB format so they usually convert pretty well from one to the other.

  14. Posting the solution I found in case someone else is going through the same thing.

    I was trying to convert files I got from my Nook color by USB to my macbook. The main problem is that B&N no longer provides the options to download your own books in order to avoid losing business (i.e, me changing to kindle because <amazon).
    If you have access to a PC download nook for PC from a third party as it does NOT work for mac. This is the only way to download your ebooks into a computer. Nook Study did not work for me, I think they stripped that software and it is no longer funcitonal, who knows.

    Then follow the steps to add them to calibre while using the deDRM plugin.

    Tadaaa! I wish someone would have specified this from the beginning, saving me a lot of hours of downloading and deleting files thinking there was a glitch somewhere.

    Happy reading!

    • One of the reasons I stopped ordering Nook books. I now order ePubs from non-DRM sites or get Kindle books and convert them from the screwy Mobi format to ePub.

    • Yeah, Nook for PC is the best bet. The PC version of Nookstudy still works for some, but many have trouble getting logged in. You can access your books from the older Nook devices, but you’ll need to download fresh copies.

      Like xromad, I liberated my BN books and haven’t bought any more from them.

      • B&N aside, this is why I automatically import every new book into Calibre as soon as I purchase it. I have backed up all the unlocked versions of my books so I can convert as needed.

  15. I tried and tried to convert an awz file to epub but not able due to drm. I got 1.17 kidle for pc i used a kindle reader to put a number in for the calibre i got 6.5.5 toold i tried the older versions as well.
    I now not even able to read the files on the kindle like i used to so i think its because they are borrowed. Would this stop me from converting? or even be able to read them?

    • These tools are intended for purchased books. You should still be able to read the books under whatever terms you borrowed them, but you’ll need to ask your library about that.

  16. Hi everyone. I hope someone can help tell me what I am doing wrong. I am new to all of this and trying to follow every instruction but something is not working still. I have over 250 books on Barnes and Noble. I recently received a Kindle Paperwhite and want to read these books on that since no longer using a Nook.

    I went to B&N website and then downloaded the Nook app on my computer so I could download the books. I started by just downloading a couple in case they did not work.

    I installed the DeDRM plugin on Calibre by following the instructions that were included. Every time I try and import one of the books I get an error. I went ahead and restarted Calibre in debug mode and here is the results:

    calibre, version 3.15.0
    Debug mode:

    You have started calibre in debug mode. After you quit calibre, the debug log will be available in the file: c:\users\mike\appdata\local\temp\tmpeqfwfx.txt

    The log will be displayed automatically.

    calibre, version 3.15.0
    ERROR: Errors while adding: Failed to add any books, click “Show details” for more information

    Failed to add the book: Origin
    C:\Users\Mike\AppData\Local\Temp\calibre_3vmbg8\htiuaf_add_books\0\9780385542692.epub
    With error:
    Traceback (most recent call last):
    File “site-packages\calibre\gui2\add.py”, line 399, in add_book
    File “site-packages\calibre\db\legacy.py”, line 224, in create_book_entry
    File “site-packages\calibre\db\cache.py”, line 63, in call_func_with_lock
    File “site-packages\calibre\db\cache.py”, line 1566, in create_book_entry
    File “site-packages\calibre\db\cache.py”, line 1287, in set_metadata
    File “site-packages\calibre\db\cache.py”, line 1113, in update_path
    File “site-packages\calibre\db\backend.py”, line 1573, in update_path
    File “site-packages\calibre\db\tables.py”, line 135, in set_path
    File “site-packages\calibre\db\backend.py”, line 844, in execute
    File “c:\t\t\apsw-j6gj96\apsw-3.13.0-r1\src\cursor.c”, line 236, in resetcursor
    CantOpenError: CantOpenError: unable to open database file

    Let me know if there is any other information that is needed. I am new so simple words are best lol.

    Thanks for your help!

    • I’m not sure what’s going on that you are unable to even add your books to calibre at all. I suggest using the old Nook for PC program to download your books. Here’s the setup file:

      http://images.barnesandnoble.com/PResources/download/eReader2/bndr2_setup_latest.exe

      The books will be in a Barnes & Noble folder inside your Documents. Before adding your books to calibre, go into the B&N section of the plugin customization and put in your B&N account email and password.

      • Hi Laura,

        Thanks for fast response. I went ahead and downloaded that app program. Thank you for that link. I did go into the settings and add my B&N key in Calibre. I downloaded a book from the new B&N app and still getting the same results:

        calibre, version 3.15.0
        ERROR: Errors while adding: Failed to add any books, click “Show details” for more information

        Failed to add the book: Origin
        C:\Users\Mike\AppData\Local\Temp\calibre_ghe1pl\5embnq_add_books\0\origin_9780385542692.epub
        With error:
        Traceback (most recent call last):
        File “site-packages\calibre\gui2\add.py”, line 399, in add_book
        File “site-packages\calibre\db\legacy.py”, line 224, in create_book_entry
        File “site-packages\calibre\db\cache.py”, line 63, in call_func_with_lock
        File “site-packages\calibre\db\cache.py”, line 1566, in create_book_entry
        File “site-packages\calibre\db\cache.py”, line 1287, in set_metadata
        File “site-packages\calibre\db\cache.py”, line 1113, in update_path
        File “site-packages\calibre\db\backend.py”, line 1573, in update_path
        File “site-packages\calibre\db\tables.py”, line 135, in set_path
        File “site-packages\calibre\db\backend.py”, line 844, in execute
        File “c:\t\t\apsw-j6gj96\apsw-3.13.0-r1\src\cursor.c”, line 236, in resetcursor
        CantOpenError: CantOpenError: unable to open database file

        Might try reinstalling Calibre, maybe that will help with this mess.

        Thanks again for your patience and help!

          • Hi Laura and Paul

            Thank you both for your suggestions. I did try a fresh install and that did not seem to work either. I will check out MobileRead to try and find some answers. If I find anything usefully I would be happy to share with you all. I appreciate all of your help and knowledge. Keep up the great work!

            • Hi Laura and Paul

              Again thank you for your help. Turned out after talking to some amazing people over at MobileRead my issue was the destination folder of Calibre. Changed my output temporarily to desktop and it started working! Thanks again for everything!

  17. I have Kindle Reader for PC in Win 10, and I have latest Calibre also in Win 10. I use the DeDRM plugin to remove the DRM on the kindle books when I import them into the Calibre on Windows. This works fine.

    But my main reading platform is Calibre on Linux, so it would be nice if I could skip a step or two and use DeDRM directly in the Linux version of Calibre, bypassing the whole “import into Calibre on windows, convert to epub, export from windows Calibre, import into Linux Calibre” operation.

    I have looked at the encription key settings in the windows Calibre and done an export from there which I imported into the Linux Calibre and it does not seem to be DeDRM-ing on import.

    Am I doing something wrong? Is there another way to do it? Or is there no way to do DeDRM on Linux?

    thanks for any hints!

    Fred

    • You should be able to use the Kindle for PC key exported from the Windows version of calibre and imported into the Linux version of calibre as long as the books are from the installation of Kindle for PC on your Windows machine. Every Kindle device/app has its own unique key even if they are on the same Amazon account.

  18. calibre Debug log
    calibre 3.15 [64bit] embedded-python: True is64bit: True
    Windows-8.1-6.3.9600-SP0 Windows (’64bit’, ‘WindowsPE’)
    (‘Windows’, ‘8.1’, ‘6.3.9600’)
    Python 2.7.12+
    Windows: (‘8.1’, ‘6.3.9600’, ‘SP0′, u’Multiprocessor Free’)
    Interface language: None
    Successfully initialized third party plugins: DeDRM (6, 5, 5)
    calibre 3.15 [64bit] embedded-python: True is64bit: True
    Windows-8.1-6.3.9600-SP0 Windows (’64bit’, ‘WindowsPE’)
    (‘Windows’, ‘8.1’, ‘6.3.9600’)
    Python 2.7.12+
    Windows: (‘8.1’, ‘6.3.9600’, ‘SP0′, u’Multiprocessor Free’)
    Interface language: None
    Successfully initialized third party plugins: DeDRM (6, 5, 5)
    Turning on automatic hidpi scaling
    devicePixelRatio: 1.0
    logicalDpi: 96.0 x 96.0
    physicalDpi: 100.861627907 x 101.07357513
    Using calibre Qt style: True
    Starting up…
    Started up in 13.04 seconds with 1 books
    stdout+stderr from file dialog helper: [”, ”]
    piped data from file dialog helper: [‘\x87YcE\xa9\xa1\xb4q\x96\xb7\xd6\xc6)\x85N\x8aoa\xbdW\x0c\xf6\x0b\x84\xbb\x8c\xd2\x91\xffj\n\xb8’, ‘D:\ebooks\mathematics\Higher mathematics course\courseofhigherma03smir_encrypted.pdf’]
    DeDRM v6.5.5: Trying to decrypt courseofhigherma03smir_encrypted.pdf
    DeDRM v6.5.5: courseofhigherma03smir_encrypted.pdf is a PDF ebook
    DeDRM v6.5.5: Looking for new default Adobe Digital Editions Keys after 0.1 seconds
    DeDRM v6.5.5: Exception when getting default Adobe Key after 0.1 seconds
    Traceback (most recent call last):
    File “calibre_plugins.dedrm.init“, line 446, in PDFDecrypt
    File “calibre_plugins.dedrm.adobekey”, line 377, in adeptkeys
    ADEPTError: Adobe Digital Editions not activated
    DeDRM v6.5.5: 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 625, in run
    File “calibre_plugins.dedrm.init“, line 500, in PDFDecrypt
    DeDRMError: DeDRM v6.5.5: 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
    Syntax Error: Couldn’t find the ‘EBX_HANDLER’ security handler
    pdfinfo errored out with return code: 1
    Traceback (most recent call last):
    File “site-packages\calibre\customize\ui.py”, line 417, in get_file_type_metadata
    File “site-packages\calibre\customize\builtins.py”, line 342, in get_metadata
    File “site-packages\calibre\ebooks\metadata\pdf.py”, line 115, in get_metadata
    ValueError: Could not read info dict from PDF
    Added courseofhigherma03smir encrypted to db in: 0.6
    Added 1 books in 7.5 seconds
    Exception TypeError: “‘NoneType’ object is not callable” in <bound method NativeFunction.__del__ of > ignored

  19. Hi. I have a pdf I can´t seem to open. Is there someone out there who can help, open it and return it unlocked?

    • If you mean that you can’t read it, then contact the source where you got it. If you mean you can’t remove DRM, we can try to help you do it yourself with more info.

Leave a Reply to Laura Cancel reply

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

WordPress.com Logo

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

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