DRM Removal Tools for eBooks

Version 6.6.0 released on 5 April, 2018

Welcome to Apprentice Alf’s blog

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

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

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

The Tools

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

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

Getting Help with the Tools

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

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

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

In any bug report or help request, please include:

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

Anti-Piracy Notice

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

Origin of the Tools

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

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

Other Sources

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

Advertisements

4,264 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.

  20. The book I’m trying to de-drm gets stuck adding to calibre. I treid running the standalone windows tool but the app crashes on launch.
    I’m using the calibre plugin 6.5.5 on Windows 10. I bought the kindle book on amazon and got the file through my PC Kindle App. \

    LOG:
    calibre Debug log
    calibre 3.1.1 [64bit] embedded-python: True is64bit: True
    Windows-10-10.0.16299-SP0 Windows (’64bit’, ‘WindowsPE’)
    (‘Windows’, ’10’, ‘10.0.16299’)
    Python 2.7.12+
    Windows: (’10’, ‘10.0.16299’, ‘SP0′, u’Multiprocessor Free’)
    Interface language: None
    Successfully initialized third party plugins: DeDRM (6, 5, 5)
    calibre 3.1.1 [64bit] embedded-python: True is64bit: True
    Windows-10-10.0.16299-SP0 Windows (’64bit’, ‘WindowsPE’)
    (‘Windows’, ’10’, ‘10.0.16299’)
    Python 2.7.12+
    Windows: (’10’, ‘10.0.16299’, ‘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: 94.1467181467 x 94.0740740741
    Using calibre Qt style: True
    Starting up…
    Started up in 10.39 seconds with 14 books
    DeDRM v6.5.5: Trying to decrypt B00I425SZ8_EBOK.azw
    Using Library AlfCrypto Python
    MobiDeDrm v0.42.
    Copyright © 2008-2017 The Dark Reverser, Apprentice Harper et al.
    Decrypting Kindle Format 8 ebook: The Student Leadership Challenge: Five Practices for Becoming an Exemplary Leader (J-B Leadership Challenge: Kouzes/Posner)
    Found 0 keys to try after 0.1 seconds
    Crypto Type is: 2
    DeDRM v6.5.5: Failed to decrypt with error: No key found in 0 keys tried.
    DeDRM v6.5.5: Looking for new default Kindle Key after 0.1 seconds
    searching for kinfoFiles in C:\Users\Kait\AppData\Local
    Found K4PC 1.9+ kinf2011 file: C:\Users\Kait\AppData\Local\Amazon\Kindle\storage.kinf2011
    Decrypted key file using IDString ‘3134696363’ and UserName ‘4b616974’
    DeDRM v6.5.5: Found 1 new key
    MobiDeDrm v0.42.
    Copyright © 2008-2017 The Dark Reverser, Apprentice Harper et al.
    Decrypting Kindle Format 8 ebook: The Student Leadership Challenge: Five Practices for Becoming an Exemplary Leader (J-B Leadership Challenge: Kouzes/Posner)
    Got DSN key from database default_key_1
    Found 4 keys to try after 0.2 seconds
    Crypto Type is: 2
    File is encoded with PID xVWIN8HHXD.
    Decrypting. Please wait . . . . done
    Decryption succeeded after 2.0 seconds
    DeDRM v6.5.5: Saving 1 new key
    DeDRM v6.5.5: Finished after 2.0 seconds
    Added The Student Leadership Challenge: Five Practices for Becoming an Exemplary Leader (J-B Leadership Challenge: Kouzes/Posner) to db in: 0.3
    Added 1 books in 3.2 seconds

  21. Hi everyone, I stumbled upon Calibre and this plugin in the search to transfer my purchased ebooks to my sony reader PRS 350. I had bought the books through google books. I guess some are in EPUB format while others are in acsm. format. Maybe i am doing something wrong but when i tried to import into calibre i see the book files in my library but they arent actually the books. They are a very small file. Am i doing something wrong?

    Thanks for your help. I would really like to get this sony reader back in service as i have read everything i had on it previously.

  22. Just bought this book and cannot remove DRM.

    Debug output:

    calibre 3.16 [64bit] embedded-python: True is64bit: True
    Windows-10-10.0.16299-SP0 Windows (’64bit’, ‘WindowsPE’)
    (‘Windows’, ’10’, ‘10.0.16299’)
    Python 2.7.12+
    Windows: (’10’, ‘10.0.16299’, ‘SP0′, u’Multiprocessor Free’)
    Interface language: None
    Successfully initialized third party plugins: DeDRM (6, 5, 5) && Obok DeDRM (6, 5, 4)
    Turning on automatic hidpi scaling
    devicePixelRatio: 1.0
    logicalDpi: 96.0 x 96.0
    physicalDpi: 109.22 x 109.182089552
    Using calibre Qt style: True
    Starting up…
    DEBUG: 0.0 obok::utilities.py – loading translations
    DEBUG: 0.0 obok::dialogs.py – loading translations
    DEBUG: 0.0 obok::config.py – loading translations
    DEBUG: 0.0 obok::action_err.py – loading translations
    Started up in 3.07 seconds with 169 books
    Storage number map:
    {(7L, 0L): [(3L, ‘C’)], (7L, 1L): [(1L, ‘F’)], (7L, 2L): [(1L, ‘D’)]}
    Storage number for USBSTOR\DISK&VEN_KOBO&PROD_EREADER-4.7.1041&REV_0110\N204B38409610&0: StorageDeviceNumber(type=7L, number=2L, partition_number=0L)
    Drive letters for USBDevice(vendor_id=0x2237 product_id=0x4193 bcd=0x110 devid=usb\vid_2237&pid_4193&rev_0110 devinst=6)
    {u’drive_letters’: [‘D’],
    u’pnp_id_map’: {‘D’: u’\\?\usbstor#disk&ven_kobo&prod_ereader-4.7.1041&rev_0110#n204b38409610&0#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}’},
    u’readonly_drives’: set([]),
    u’sort_map’: {‘D’: (2L, 1L)}}
    Job: 1 Get device information started
    DeviceJob: 1 Get device information done, calling callback
    DeviceJob: 1 Get device information callback returned
    Job: 2 Set library information started
    DeviceJob: 2 Set library information done, calling callback
    DeviceJob: 2 Set library information callback returned
    Job: 3 Get list of books on device started
    DEBUG: 0.0 KoboTouch:books – oncard=’None’
    DEBUG: 0.0 KoboTouch:books – oncard=’None’, prefix=’D:\’
    DEBUG: 0.0 Kobo device: Kobo Aura HD
    DEBUG: 0.0 Version of driver: (2, 3, 3) Has kepubs: True
    DEBUG: 0.0 Version of firmware: (4, 7, 10413) Has kepubs: True
    DEBUG: 0.0 Firmware supports cover image tree: True
    DEBUG: 0.0 KoboTouch:books – opts.extra_customization= []
    DEBUG: 0.0 KoboTouch:books – driver options= Driver:KoboTouch, Options – format_map: [‘kepub’, ‘epub’, ‘pdf’, ‘txt’, ‘cbz’, ‘cbr’], use_subdirs: True, read_metadata: True, use_author_sort: False, save_template: {author_sort}/{title} – {authors}, extra_customization: [], manage_collections: True, collections_columns: , create_collections: False, delete_empty_collections: False, ignore_collections_names: , upload_covers: False, keep_cover_aspect: False, upload_grayscale: False, show_archived_books: False, show_previews: False, show_recommendations: False, update_series: True, update_device_metadata: True, modify_css: False, support_newer_firmware: False, debugging_title: , driver_version:
    DEBUG: 0.0 KoboTouch:books – prefs[‘manage_device_metadata’]= manual
    DEBUG: 0.0 KoboTouch:books – set_debugging_title to ”
    DEBUG: 0.0 KoboTouch:books – length bl=0
    DEBUG: 0.1 KoboTouch:books – length bl after sync=155
    DEBUG: 0.1 KoboTouch:books – reading device database
    DEBUG: 0.1 Database Version: 143
    DEBUG: 0.1 KoboTouch:books – shelf list: [u’ReadingList’]
    DEBUG: 0.1 KoboTouch:books – query= SELECT Title, Attribution, DateCreated, ContentID, MimeType, ContentType, ImageID, ReadStatus, ___ExpirationStatus, FavouritesIndex, Accessibility, IsDownloaded, Series, SeriesNumber, ___UserID, ExternalId FROM content WHERE BookID IS NULL AND ((Accessibility = -1 AND IsDownloaded in (‘true’, 1 )) OR (Accessibility IN (1,2,9) and IsDownloaded in (‘true’, 1)) ) AND (externalId IS NULL OR externalId = ”) AND contentId NOT LIKE ‘file:///mnt/sd/%’
    DEBUG: 0.2 KoboTouch:books – about to sync_booklists
    DEBUG: 0.2 USBMS: starting sync_booklists
    Job: 1 Get device information finished
    No details available.
    Job: 2 Set library information finished
    No details available.
    DEBUG: 0.3 USBMS: finished sync_booklists
    DEBUG: 0.3 KoboTouch:books – have done sync_booklists
    DEBUG: 0.3 KoboTouch:books – end – oncard=’None’
    DEBUG: 0.3 KoboTouch:books – oncard=’carda’
    DEBUG: 0.3 KoboTouch:books – Asked to process ‘carda’, but do not have one!
    DEBUG: 0.3 KoboTouch:books – oncard=’cardb’
    DEBUG: 0.3 KoboTouch:books – Asked to process ‘cardb’, but do not have one!
    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= 155
    DeviceJob: set_books_in_library finished: time= 0.0160000324249
    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.
    Running Obok DeDRM v6.5.4
    DEBUG: 43.3 get_device_settings – device_path= D:\
    Obok v3.2.4
    Copyright © 2012-2016 Physisticated et al.
    c:\users\hansi\appdata\local\temp\tmphmjiu2
    DEBUG: 43.3 got kobodir D:.kobo
    Error parsing Kobo plist: no legacy user key found.
    Found 64 possible keys to try.
    DEBUG: 45.9 BookListTableWidget:get_books – book_num: 0
    DEBUG: 45.9 BookListTableWidget:get_books – book: The Machinery of Freedom
    DEBUG: 45.9 InterfacePluginAction::launchObok – number of books to decrypt: 1
    Obok DeDRM v6.5.4 – Decrypting The Machinery of Freedom
    Trying key: 05f14649af94774558cbdf4e5579c56b
    Bad JPEG: e6177d
    Decryption failed, trying next key.
    Trying key: 7c112638ddd8bc36e95b5051631dd313
    Bad JPEG: 41fdf5
    Decryption failed, trying next key.
    Trying key: 8099e3ec1cfe30174a5cff5019ff222e
    Bad JPEG: c5ebe8
    Decryption failed, trying next key.
    Trying key: 3ff16986240a3f19c8ecd8e522c664f7
    Bad JPEG: e347a6
    Decryption failed, trying next key.
    Trying key: 167bd6494e89d318eabe60389d7be710
    Bad JPEG: e1
    Decryption failed, trying next key.
    Trying key: d5fe9ee167381f0aeb8ce39d5645e819
    Bad JPEG:
    Decryption failed, trying next key.
    Trying key: aa354333a7593a3cd26e0ab320cd4501
    Bad JPEG: d174ef
    Decryption failed, trying next key.
    Trying key: 5d7f8327c662d2f8bbe29355447afa30
    Bad JPEG: 4a7474
    Decryption failed, trying next key.
    Trying key: 1d4ad764cb6d1111b10690a3f0897742
    Bad JPEG: 0c9337
    Decryption failed, trying next key.
    Trying key: 4a09b6a0b259293d590c2a065f82ae23
    Bad JPEG: 747774
    Decryption failed, trying next key.
    Trying key: a36d1f3ae28756aa5b164e7f85693ec2
    Bad JPEG:
    Decryption failed, trying next key.
    Trying key: efec54370fdc31656529e22cd8d6bf8a
    Bad JPEG: 659e2f
    Decryption failed, trying next key.
    Trying key: fb21e60237fa2afea9f5b2f4d114e3d3
    Bad JPEG: dc18e7
    Decryption failed, trying next key.
    Trying key: 211f08ed6dbbbb7875e09a0ee0a557fb
    Bad JPEG: 1a27b3
    Decryption failed, trying next key.
    Trying key: 41311869304f8d77e46eec931fbf09ae
    Bad JPEG:
    Decryption failed, trying next key.
    Trying key: e5622fed2eb73d17c67f4fc3aa270a07
    Bad JPEG:
    Decryption failed, trying next key.
    Trying key: a0cb86f34601ef5cc699c9988300262d
    Bad JPEG: 7e76d0
    Decryption failed, trying next key.
    Trying key: 2b4712adec1f4a213263b117b9893278
    Bad JPEG: 4113f9
    Decryption failed, trying next key.
    Trying key: 7e984881ab08151dba2f58f2adab2d0a
    Bad JPEG:
    Decryption failed, trying next key.
    Trying key: e9ae9f858841b6d3867f89fb5ecaef7d
    Bad JPEG:
    Decryption failed, trying next key.
    Trying key: 46f0c3ebe046ce58cde2f702c8c1892f
    Bad JPEG: 24e777
    Decryption failed, trying next key.
    Trying key: b7790ae43a29dac0b92f614eb2a984ff
    Bad JPEG: fa3f12
    Decryption failed, trying next key.
    Trying key: 2853546dd6ea7db2cdcc797c623a0c6f
    Bad JPEG: 9935d8
    Decryption failed, trying next key.
    Trying key: b892cac3907b626450a6d7c4e19282c9
    Bad JPEG: 8fec9a
    Decryption failed, trying next key.
    Trying key: 1bfe0eb3e07ea503b8b8b95ffd318f32
    Bad JPEG: 70134b
    Decryption failed, trying next key.
    Trying key: fc79798abcdb4590853896d67b429873
    Bad JPEG: 50a0b9
    Decryption failed, trying next key.
    Trying key: 3dee09bc12b2661d5e0515c492793fb2
    Bad JPEG: 9f0331
    Decryption failed, trying next key.
    Trying key: c842fde176ef4a5a765a26cf86838b9a
    Bad JPEG: 92e556
    Decryption failed, trying next key.
    Trying key: 61cc5e1d969eed33985aeab2f01b1aee
    Bad JPEG:
    Decryption failed, trying next key.
    Trying key: 1ad634d1e75f9aac6e99004578855250
    Bad JPEG: a564bc
    Decryption failed, trying next key.
    Trying key: a284bc0cff43e78e140427d2c31a9ec3
    Bad JPEG: 196d4f
    Decryption failed, trying next key.
    Trying key: 8f6fe4b1a8a12d7786b49db595719934
    Bad JPEG: 72a493
    Decryption failed, trying next key.
    Trying key: 88540c9b3e031b0307f41eb2d4b2f007
    Bad JPEG: d986e5
    Decryption failed, trying next key.
    Trying key: 4d13f84ec40b19d989484d94da01306b
    Bad JPEG: c29b8d
    Decryption failed, trying next key.
    Trying key: 90c604fd32f46ed91f9ca37fe2f32d0e
    Bad JPEG: 57da94
    Decryption failed, trying next key.
    Trying key: b799b6de81b726ba2313033b5820a686
    Bad JPEG: 592e4d
    Decryption failed, trying next key.
    Trying key: a4bd6a40c01f137a8d88d692872421fc
    Bad JPEG: 6af25e
    Decryption failed, trying next key.
    Trying key: fed45714302b6a7f9d6f65850cb1ed5a
    Bad JPEG: 3d9883
    Decryption failed, trying next key.
    Trying key: 7ab38f7c9e004b73b49db99d9a4d4a54
    Bad JPEG: e008be
    Decryption failed, trying next key.
    Trying key: ff98037ba2c5ad71cb906761feca2291
    Bad JPEG: 12ed1d
    Decryption failed, trying next key.
    Trying key: 026b2bf760aec6d8ddbeb84db4708e1e
    Bad JPEG: f80e58
    Decryption failed, trying next key.
    Trying key: 5896576048efdad5b3c4f6dcd6e0f851
    Bad JPEG:
    Decryption failed, trying next key.
    Trying key: 96f6897ab45a2ebb42a0bbbe3bdd8d74
    Bad JPEG: 0446b4
    Decryption failed, trying next key.
    Trying key: 6d4ba85e39478b08d6f99412917999b4
    Bad JPEG: a2127c
    Decryption failed, trying next key.
    Trying key: 39f9c17937974e18e588000bebc7615a
    Bad JPEG:
    Decryption failed, trying next key.
    Trying key: 703aa2793ae311c2675284c92409aa07
    Bad JPEG:
    Decryption failed, trying next key.
    Trying key: 9f5c3b7723d8ab82390f6d6f2459e552
    Bad JPEG: e3e59a
    Decryption failed, trying next key.
    Trying key: 7210b46bcad912159ea8cbde73ea5060
    Bad JPEG:
    Decryption failed, trying next key.
    Trying key: 27feaf860651434abb1b9cecb3ec4d5d
    Bad JPEG: 7c6d83
    Decryption failed, trying next key.
    Trying key: c85b6f8bc38cff54cd87718bccea5fb8
    Bad JPEG: 3f8867
    Decryption failed, trying next key.
    Trying key: 1a7e5375e2f55b2e468d0a57c7672a22
    Bad JPEG: e0f741
    Decryption failed, trying next key.
    Trying key: 531a497e7af7fa53b2d8736dd05161e4
    Bad JPEG: d872b0
    Decryption failed, trying next key.
    Trying key: a9dd40206a7e8084457cbad29d1ce432
    Bad JPEG: f94b1c
    Decryption failed, trying next key.
    Trying key: 27108f2323a790c6f0a311b1956d8f3f
    Bad JPEG: 9feb64
    Decryption failed, trying next key.
    Trying key: 4f2b3114cf9a2253922d5d2496860302
    Bad JPEG:
    Decryption failed, trying next key.
    Trying key: d7092112c6c61587b6a4be252c1c65d7
    Bad JPEG: 30c189
    Decryption failed, trying next key.
    Trying key: 1b44c098222e72cb486daf4cdde9508d
    Bad JPEG: f12b71
    Decryption failed, trying next key.
    Trying key: e0f86db64d899adfbf9cd86ba77bba65
    Bad JPEG: 3c6874
    Decryption failed, trying next key.
    Trying key: 282a5e4863e1ee4ae1084d07982cf1f4
    Bad JPEG: 564a99
    Decryption failed, trying next key.
    Trying key: 06217220aaff671638f797986801eb97
    Bad JPEG: cdf241
    Decryption failed, trying next key.
    Trying key: bc09412e90404457545115ed55af03d7
    Bad JPEG:
    Decryption failed, trying next key.
    Trying key: aedffe7178f32b1f71aed86b74885994
    Bad JPEG: 2039f4
    Decryption failed, trying next key.
    Trying key: 859006b93ebcb747d1b595c8ea4836b9
    Bad JPEG: ebfc60
    Decryption failed, trying next key.
    Trying key: cc29c942b693578088bc37b55e190d0a
    Bad JPEG: e17245
    Decryption failed, trying next key.
    Obok DeDRM v6.5.4 – Couldn’t decrypt The Machinery of Freedom
    DEBUG: 46.4 DecryptAddProgressDialog::do_book_action – book decryption failed: ‘The Machinery of Freedom’
    Obok DeDRM v6.5.4 – wrapping up results.

        • Ok, I gave Obok a try with a book from Kobo Desktop and it worked.

          Are you able to unlock other books from Kobo? Is it just the latest purchase that isn’t working? If so, it may be something specific to that book. You could post an issue at Apprentice Harper’s GitHub. Although he hasn’t had much time for this project for a while now.

          In the meantime, you could download the Adobe DRM epub from the website. (Be sure to read the instructions for using the regular DeDRM plugin with ADE files, if necessary, and let us know if you have any questions.)

  23. calibre Debug log
    calibre 3.15 embedded-python: True is64bit: True
    Darwin-17.4.0-x86_64-i386-64bit Darwin (’64bit’, ”)
    (‘Darwin’, ‘17.4.0’, ‘Darwin Kernel Version 17.4.0: Sun Dec 17 09:19:54 PST 2017; root:xnu-4570.41.2~1/RELEASE_X86_64’)
    Python 2.7.12
    OSX: (‘10.13.3’, (”, ”, ”), ‘x86_64′)
    Interface language: None
    Successfully initialized third party plugins: DeDRM (6, 5, 5) && Obok DeDRM (6, 5, 4)
    calibre 3.15 embedded-python: True is64bit: True
    Darwin-17.4.0-x86_64-i386-64bit Darwin (’64bit’, ”)
    (‘Darwin’, ‘17.4.0’, ‘Darwin Kernel Version 17.4.0: Sun Dec 17 09:19:54 PST 2017; root:xnu-4570.41.2~1/RELEASE_X86_64’)
    Python 2.7.12
    OSX: (‘10.13.3’, (”, ”, ”), ‘x86_64’)
    Interface language: None
    Successfully initialized third party plugins: DeDRM (6, 5, 5) && Obok DeDRM (6, 5, 4)
    devicePixelRatio: 2.0
    logicalDpi: 72.0 x 72.0
    physicalDpi: 128.000001922 x 127.500001915
    Using calibre Qt style: True
    Starting up…
    DEBUG: 0.0 obok::utilities.py – loading translations
    DEBUG: 0.0 obok::dialogs.py – loading translations
    DEBUG: 0.0 obok::config.py – loading translations
    DEBUG: 0.0 obok::action_err.py – loading translations
    Started up in 1.54 seconds with 247 books
    objc[6535]: Class FIFinderSyncExtensionHost is implemented in both /System/Library/PrivateFrameworks/FinderKit.framework/Versions/A/FinderKit (0x7fff9f571b68) and /System/Library/PrivateFrameworks/FileProvider.framework/OverrideBundles/FinderSyncCollaborationFileProviderOverride.bundle/Contents/MacOS/FinderSyncCollaborationFileProviderOverride (0x10bb6fcd8). One of the two will be used. Which one is undefined.
    DeDRM v6.5.5: Trying to decrypt The Black Prism – Brent Weeks.epub
    DeDRM v6.5.5: Verifying zip archive integrity
    DeDRM v6.5.5: The Black Prism – Brent Weeks.epub is a secure Adobe Adept ePub
    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 343, in ePubDecrypt
    File “calibre_plugins.dedrm.adobekey”, line 446, in adeptkeys
    ADEPTError: Could not find ADE activation.dat file.
    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 400, 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
    Added The Black Prism to db in: 0.0
    Added 1 books in 0.8 seconds

  24. Just purchased these two books, but the calibre plugin is not removing the DRM for some reason. Spent all day trying to figure this out. Any ideas?

    -DeDRM calibre plugin
    -calibre 3.15
    -Windows 10
    -where the ebook file came from (device or application): Amazon > Download & transfer via USB
    1. any error messages: (AZW) This book has DRM
    2. any error messages: (AZW3) This book has DRM

    -a log of the DRM-removal attempt
    calibre Debug log
    calibre 3.15 embedded-python: True is64bit: False
    Windows-10-10.0.16299-SP0 Windows (’32bit’, ‘WindowsPE’)
    32bit process running on 64bit windows
    (‘Windows’, ’10’, ‘10.0.16299’)
    Python 2.7.12+
    Windows: (’10’, ‘10.0.16299’, ‘SP0′, u’Multiprocessor Free’)
    Interface language: None
    Successfully initialized third party plugins: DeDRM (6, 5, 5) && KindleUnpack – The Plugin (0, 81, 2)
    calibre 3.15 embedded-python: True is64bit: False
    Windows-10-10.0.16299-SP0 Windows (’32bit’, ‘WindowsPE’)
    32bit process running on 64bit windows
    (‘Windows’, ’10’, ‘10.0.16299’)
    Python 2.7.12+
    Windows: (’10’, ‘10.0.16299’, ‘SP0′, u’Multiprocessor Free’)
    Interface language: None
    Successfully initialized third party plugins: DeDRM (6, 5, 5) && KindleUnpack – The Plugin (0, 81, 2)
    Not controlling automatic hidpi scaling
    devicePixelRatio: 1.0
    logicalDpi: 120.0 x 120.0
    physicalDpi: 141.76744186 x 142.134715026
    Using calibre Qt style: True
    Starting up…
    C:\Dropbox\BOOKS\CALIBRE Import Folder is not a valid directory to watch for new ebooks, ignoring
    Started up in 68.59 seconds with 4 books
    DeDRM v6.5.5: Trying to decrypt Book Title (Series Book 2)(1).azw
    Using Library AlfCrypto Python
    MobiDeDrm v0.42.
    Copyright © 2008-2017 The Dark Reverser, Apprentice Harper et al.
    Decrypting Mobipocket 6 ebook: Book Title (Series Book 2)
    Found 6 keys to try after 0.1 seconds
    Crypto Type is: 2
    DeDRM v6.5.5: Failed to decrypt with error: No key found in 6 keys tried.
    DeDRM v6.5.5: Looking for new default Kindle Key after 0.1 seconds
    searching for kinfoFiles in C:\Users\Bill\AppData\Local
    Found K4PC 1.9+ kinf2011 file: C:\Users\Bill\AppData\Local\Amazon\Kindle\storage.kinf2011
    Decrypted key file using IDString ‘1443776349’ and UserName ‘45726963’
    DeDRM v6.5.5: Found 1 new key
    MobiDeDrm v0.42.
    Copyright © 2008-2017 The Dark Reverser, Apprentice Harper et al.
    Decrypting Mobipocket 6 ebook: Book Title (Series Book 2)
    Got DSN key from database default_key_1
    Found 4 keys to try after 0.3 seconds
    Crypto Type is: 2
    DeDRM v6.5.5: Ultimately failed to decrypt after 0.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 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.3 seconds. Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
    Added Book Title (Series Book 2) to db in: 3.6
    Added 1 books in 5.3 seconds

  25. Hi I have a pdf which I would like to convert but it doesnt seem to be possible, the calibre converter gets stuck at 0% – funny thing though is, that the pdf doesnt have a classic drm, so I can copy and view it on any PC but when I tried to save it to a doc format from the adobe reader the program said its password protected. Anyway I cant view pdfs on my ereader and generally dislike the format so would be glad if there was a solution for this.

  26. I’m getting the following error when I try to run obok dedrm. I’m running linux and have purchased kobo ebooks on my kobo glo hd, connecting to my laptop. Any chance I can get some help troubleshooting? The error inside calibre when I try to run obok while viewing my kobo’s library within calibre is:

    calibre, version 3.17.0
    ERROR: Unhandled exception: DatabaseError:database disk image is malformed

    calibre 3.17 embedded-python: True is64bit: True
    Linux-4.8.17-galliumos-x86_64-with-debian-stretch-sid Linux (’64bit’, ‘ELF’)
    (‘Linux’, ‘4.8.17-galliumos’, ‘#1 SMP PREEMPT galliumos4 Thu Feb 23 02:27:28 UTC 2017’)
    Python 2.7.12
    Linux: (‘debian’, ‘stretch/sid’, ”)
    Interface language: None
    Successfully initialized third party plugins: DeDRM (6, 5, 5) && Obok DeDRM (6, 5, 4) && KoboTouchExtended (3, 0, 2) && Kobo Books (1, 3, 0) && KePub Output (3, 0, 0) && KePub Metadata Writer (3, 0, 3) && Kobo Utilities (2, 6, 0) && KePub Input (3, 0, 0) && KePub Metadata Reader (3, 0, 2)
    Traceback (most recent call last):
    File “calibre_plugins.obok_dedrm.action”, line 107, in launchObok
    File “calibre_plugins.obok_dedrm.action”, line 210, in build_book_list
    File “calibre_plugins.obok_dedrm.obok.obok”, line 416, in books
    DatabaseError: database disk image is malformed

    Here’s debug information: calibre, version 3.17.0
    ERROR: Unhandled exception: DatabaseError:database disk image is malformed

    calibre 3.17 embedded-python: True is64bit: True
    Linux-4.8.17-galliumos-x86_64-with-debian-stretch-sid Linux (’64bit’, ‘ELF’)
    (‘Linux’, ‘4.8.17-galliumos’, ‘#1 SMP PREEMPT galliumos4 Thu Feb 23 02:27:28 UTC 2017’)
    Python 2.7.12
    Linux: (‘debian’, ‘stretch/sid’, ”)
    Interface language: None
    Successfully initialized third party plugins: DeDRM (6, 5, 5) && Obok DeDRM (6, 5, 4) && KoboTouchExtended (3, 0, 2) && Kobo Books (1, 3, 0) && KePub Output (3, 0, 0) && KePub Metadata Writer (3, 0, 3) && Kobo Utilities (2, 6, 0) && KePub Input (3, 0, 0) && KePub Metadata Reader (3, 0, 2)
    Traceback (most recent call last):
    File “calibre_plugins.obok_dedrm.action”, line 107, in launchObok
    File “calibre_plugins.obok_dedrm.action”, line 210, in build_book_list
    File “calibre_plugins.obok_dedrm.obok.obok”, line 416, in books
    DatabaseError: database disk image is malformed

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 )

Google+ photo

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

Twitter picture

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

Facebook photo

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

w

Connecting to %s