DRM Removal Tools for eBooks

Last updated on 12th August, 2014

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, deleting the DRM from their Sony eBooks, 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 one of the links below. Unzip the archive, and start reading.

The latest tools_v6.0.9.zip can be downloaded from
http://www.datafilehost.com/d/979ff0c7

The latest plugin alternative tools can be downloaded from
http://www1.datafilehost.com/d/215c36f6

  • The download link is the grey button. Uncheck the box “Use our download manager and get recommended downloads”
  • Do not click on the advert on the right-hand side of the page, even if it says “DOWNLOAD NOW”.
  • The download will be a .zip file. If your download is a .exe file do not run it, as you have downloaded the download manager. Make sure that the check box is unchecked
  • Make sure Javascript is enabled in your browser.
  • No credit card or payment of any kind is required to download the tools.
  • If you are worried about the integrity of the tools, listed below is the MD5 checksum.

MD5(tools_v6.0.9.zip)= 8445d0e4197de5ff4b0a6642c9f25e16
MD5(Other_Tools.zip)= 72e0f5357d3740455eb93d87e55ebcf9

Changes in 6.0.9:

  • Add compatibility for QT5

Changes in 6.0.8:

  • Fixes invalid topaz files

Changes in 6.0.7

  • Fixes wine key creation folder issue.
  • Fixes DeDRM of PDFs with broken metadata.

Changes in 6.0.6:

  • Fixed up an incorrect function call. (Only relevant Linux Calibre users using Wine)

Changes in 6.0.5:

  • Fixed a problem that resulted in key issues (thanks, Paul)

Changes in 6.0.4:

  • Fixed a problem in the plugin converting earlier preferences (thanks, enno)
  • Fixed a problem in the plugin with importing pdb files (thanks, Tina Bird)
  • Fixed a problem with unicode characters in path names for the Mac application (thanks, K)

Changes in 6.0.3:

  • Fixed a problem with non-ascii characters in Windows user name
  • Fixed a problem early versions of Kindle for Mac
  • Fix for location of DeDRMed PDF files with Macintosh DeDRM Application
  • Fix in Windows DeDRM application for paths with spaces
  • Restored ability for calibre plugin to call wine for Kindle for PC decryption key
  • Added ability for calibre plugin to call wine for Adobe Digital Edition key
  • Hopefully removed any dependency on tinter (although still used if available).
  • Updated the readmes

Getting Help with the Tools

If you have any questions about the tools, ebooks and DRM, check my FAQs post Frequently Asked Questions about the DRM removal tools.

If you have any problems with the current tools, please ask for help in a comment on this post. 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 folder)
  • 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 this application for gaining full access to your own ebooks for archiving/converson/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 and Apprentice Alf. 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 or eReader ebooks has probably just repackaged (an earlier) version of the tools available here.

— Alf.

About these ads

414 thoughts on “DRM Removal Tools for eBooks

  1. All comments were deleted. There were far too many to be useful.

    Also, it seems that most of the recent comments asking for help were about the download link, so that one is updated.

    — Alf.

    • Trying to remove drm from a .prc file with the calicre addon. File get imported, but the drm is not removed. Here is the log:
      C:\Users\Jim>calibre-debug -g
      calibre 2.2 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.8
      Windows: (‘8′, ‘6.2.9200’, ”, ‘Multiprocessor Free’)
      Successfully initialized third party plugins: DeDRM && Generate Cover
      Starting up…
      QWindowsWindow::setGeometry: Unable to set geometry 1012×740+65+93 on QWidgetWin
      dow/’MainWindowWindow’. Resulting geometry: 1012×733+65+93 (frame: 8, 31, 8, 8,
      custom margin: 0, 0, 0, 0, minimum size: 507×370, maximum size: 16777215×167772
      15).
      Started up in 2.55 seconds with 162 books
      Worker Launch took: 0.478000164032
      Job: 1 Read metadata (0 of 1) finished
      Non-ASCII text detected. You must set your Console’s font to Lucida Console or C
      onsolas or some other TrueType font to see this text — Read metadata (0 of 1)
      DeDRM v6.0.9: Trying to decrypt B004GTM518_EBOK.prc
      Using Library AlfCrypto DLL/DYLIB/SO
      MobiDeDrm v0.41.
      Copyright (c) 2008-2012 The Dark Reverser et al.
      MOBI header version 8, header length 264
      Extra Data Flags: 3
      Decrypting Kindle Format 8 ebook: No Lesser Plea (The Butch Karp and Mar
      lene Ciampi Series, 1)
      Found 0 keys to try after 0.5 seconds
      Crypto Type is: 2
      DeDRM v6.0.9: Failed to decrypt with error: No key found in 0 keys tried
      .
      DeDRM v6.0.9: Looking for new default Kindle Key after 0.5 seconds
      searching for kinfoFiles in C:\Users\Jim\AppData\Local
      No K4PC kindle.info/kinf/kinf2011 files have been found.
      DeDRM v6.0.9: Ultimately failed to decrypt after 0.5 seconds.
      Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/
      Traceback (most recent call last):
      File “calibre_plugins.dedrm.__init__”, line 381, in KindleMobiDecrypt
      File “calibre_plugins.dedrm.k4mobidedrm”, line 216, in GetDecryptedBoo
      k
      File “calibre_plugins.dedrm.mobidedrm”, line 469, in processBook
      DrmException: No key found in 0 keys tried.
      Running file type plugin DeDRM failed with traceback:
      Traceback (most recent call last):
      File “site-packages\calibre\customize\ui.py”, line 154, in _run_filety
      pe_plugins
      File “calibre_plugins.dedrm.__init__”, line 472, in run
      File “calibre_plugins.dedrm.__init__”, line 423, in KindleMobiDecrypt
      DeDRMError: DeDRM v6.0.9: Ultimately failed to decrypt “B004GTM518_EBOK.
      prc” after 0.5 seconds with error: No key found in 0 keys tried.
      Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/

      Added No Lesser Plea (The Butch Karp and Marlene Ciampi Series, 1) to db in: 2.4
      8900008202 seconds

      • If that file came from from an E-Ink based kindle, then you just need to enter that Kindle’s serial number in the plugin’s customisation dialog.

        Otherwise, install Kindle for PC and download the book through that. Then import that copy. The DeDRM plugin can’t remove DRM without the encryption key, which is different for every book and device. The easiest way to to let the plugin pick up the key from a Kindle for PC installation.

    • Hi! I’m not very tech savvy and I appreciate how easy is it has been to follow your directions so far, but I need some more help, please. I downloaded the deDRM plug-in for Calibre and it worked great for most of my DRM’d books, but several still had DRM when I tried to convert them. I tried removing them from Calibre and re-loading them several times, but no luck. My OS is Windows 7, 64 bit. I got the file from a folder on my computer. The only error message I saw was calibre telling me I can’t convert my file because it is DRM protected. Here is my log:

      Microsoft Windows [Version 6.1.7600]
      Copyright (c) 2009 Microsoft Corporation. All rights reserved.

      C:\Users\Tisa>calibre-debug -g
      calibre 0.9.43 isfrozen: True is64bit: False
      Windows-7-6.1.7600 Windows (’32bit’, ‘WindowsPE’)
      (‘Windows’, ‘7’, ‘6.1.7600’)
      Python 2.7.4
      Windows: (‘7′, ‘6.1.7600’, ”, ‘Multiprocessor Free’)
      Starting up…
      Started up in 1.68 seconds with 811 books
      Worker Launch took: 0.34700012207
      Job: 1 Read metadata (0 of 1) finished
      Read metadata (0 of 1)
      DeDRM v6.0.9: Trying to decrypt (Anita Blake 22 ) Affliction – Laurell K
      . Hamilton.epub
      DeDRM v6.0.9: Verifying zip archive integrity
      DeDRM v6.0.9: “(Anita Blake 22 ) Affliction – Laurell K. Hamilton.epub”
      is a secure Barnes & Noble ePub
      DeDRM v6.0.9: Trying Encryption key B n N key
      Could not decrypt mewk5x.epub because of an exception:
      Traceback (most recent call last):
      File “calibre_plugins.dedrm.ignobleepub”, line 278, in decryptBook
      File “calibre_plugins.dedrm.ignobleepub”, line 209, in __init__
      File “calibre_plugins.dedrm.ignobleepub”, line 180, in __init__
      ValueError: Key cannot be the null string

      DeDRM v6.0.9: Failed to decrypt with key B n N key after 0.2 seconds
      DeDRM v6.0.9: Ultimately failed to decrypt after 0.2 seconds.
      Read the FAQs at Alf’s blog: http://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_filety
      pe_plugins
      File “calibre_plugins.dedrm.__init__”, line 483, in run
      File “calibre_plugins.dedrm.__init__”, line 181, in ePubDecrypt
      DeDRMError: DeDRM v6.0.9: Ultimately failed to decrypt “(Anita Blake 22
      ) Affliction – Laurell K. Hamilton.epub” after 0.2 seconds.
      Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/

      Added (Anita Blake 22 ) Affliction to db in: 0.516000032425 seconds
      Worker Launch took: 0.292999982834
      Job: 2 Convert book 1 of 1 ((Anita Blake 22 ) Affliction) finished
      Convert book 1 of 1 ((Anita Blake 22 ) Affliction)
      Resolved conversion options
      calibre version: 0.9.43
      {‘asciiize': False,
      ‘author_sort': None,
      ‘authors': None,
      ‘base_font_size': 0.0,
      ‘book_producer': None,
      ‘change_justification': u’original’,
      ‘chapter': u”//*[((name()='h1' or name()='h2') and re:test(., '\\s*((ch
      apter|book|section|part)\\s+)|((prolog|prologue|epilogue)(\\s+|$))', 'i')) or @c
      lass = 'chapter']“,
      ‘chapter_mark': u’pagebreak’,
      ‘comments': None,
      ‘cover': u’C:\\Users\\Tisa\\AppData\\Local\\Temp\\calibre_hkvs6s\\c8uno
      1.jpeg’,
      ‘custom_size': None,
      ‘debug_pipeline': None,
      ‘dehyphenate': True,
      ‘delete_blank_paragraphs': True,
      ‘disable_font_rescaling': False,
      ‘duplicate_links_in_toc': False,
      ‘embed_all_fonts': False,
      ‘embed_font_family': None,
      ‘enable_heuristics': False,
      ‘extra_css': None,
      ‘filter_css': u”,
      ‘fix_indents': True,
      ‘font_size_mapping': None,
      ‘format_scene_breaks': True,
      ‘html_unwrap_factor': 0.4,
      ‘input_encoding': None,
      ‘input_profile': ,
      ‘insert_blank_line': False,
      ‘insert_blank_line_size': 0.5,
      ‘insert_metadata': False,
      ‘isbn': None,
      ‘italicize_common_cases': True,
      ‘keep_ligatures': False,
      ‘language': None,
      ‘level1_toc': None,
      ‘level2_toc': None,
      ‘level3_toc': None,
      ‘line_height': 0.0,
      ‘linearize_tables': False,
      ‘margin_bottom': 5.0,
      ‘margin_left': 5.0,
      ‘margin_right': 5.0,
      ‘margin_top': 5.0,
      ‘markup_chapter_headings': True,
      ‘max_toc_links': 50,
      ‘minimum_line_height': 120.0,
      ‘no_chapters_in_toc': False,
      ‘no_inline_navbars': False,
      ‘old_pdf_engine': False,
      ‘output_profile': ,
      ‘override_profile_size': False,
      ‘page_breaks_before': u’/’,
      ‘paper_size': u’letter’,
      ‘pdf_add_toc': False,
      ‘pdf_default_font_size': 20,
      ‘pdf_footer_template': None,
      ‘pdf_header_template': None,
      ‘pdf_mark_links': False,
      ‘pdf_mono_family': u’Courier New’,
      ‘pdf_mono_font_size': 16,
      ‘pdf_page_numbers': False,
      ‘pdf_sans_family': u’MS Shell Dlg 2′,
      ‘pdf_serif_family': u’Times New Roman’,
      ‘pdf_standard_font': u’serif’,
      ‘prefer_metadata_cover': False,
      ‘preserve_cover_aspect_ratio': False,
      ‘pretty_print': False,
      ‘pubdate': None,
      ‘publisher': None,
      ‘rating': None,
      ‘read_metadata_from_opf': u’C:\\Users\\Tisa\\AppData\\Local\\Temp\\cali
      bre_hkvs6s\\ghrmgs.opf’,
      ‘remove_fake_margins': True,
      ‘remove_first_image': False,
      ‘remove_paragraph_spacing': False,
      ‘remove_paragraph_spacing_indent_size': 1.5,
      ‘renumber_headings': True,
      ‘replace_scene_breaks': u”,
      ‘search_replace': ‘[]’,
      ‘series': None,
      ‘series_index': None,
      ‘smarten_punctuation': False,
      ‘sr1_replace': None,
      ‘sr1_search': None,
      ‘sr2_replace': None,
      ‘sr2_search': None,
      ‘sr3_replace': None,
      ‘sr3_search': None,
      ‘start_reading_at': None,
      ‘subset_embedded_fonts': False,
      ‘tags': None,
      ‘timestamp': None,
      ‘title': None,
      ‘title_sort': None,
      ‘toc_filter': None,
      ‘toc_threshold': 6,
      ‘uncompressed_pdf': False,
      ‘unit': u’inch’,
      ‘unsmarten_punctuation': False,
      ‘unwrap_lines': True,
      ‘use_auto_toc': False,
      ‘verbose': 2}
      InputFormatPlugin: EPUB Input running
      on C:\Users\Tisa\AppData\Local\Temp\calibre_hkvs6s\o_zuy8.epub
      Python function terminated unexpectedly
      o_zuy8.epub (Error Code: 1)
      Traceback (most recent call last):
      File “site.py”, line 132, in main
      File “site.py”, line 109, in run_entry_point
      File “site-packages\calibre\utils\ipc\worker.py”, line 189, in main
      File “site-packages\calibre\gui2\convert\gui_conversion.py”, line 31,
      in gui_convert_override
      File “site-packages\calibre\gui2\convert\gui_conversion.py”, line 25,
      in gui_convert
      File “site-packages\calibre\ebooks\conversion\plumber.py”, line 1023,
      in run
      File “site-packages\calibre\customize\conversion.py”, line 241, in __c
      all__
      File “site-packages\calibre\ebooks\conversion\plugins\epub_input.py”,
      line 209, in convert
      calibre.ebooks.DRMError: o_zuy8.epub

      • Hi Tisa,

        It looks like the B&N key you’ve entered isn’t the right one for this book. If some of your other B&N ebooks have decrypted successfully, then perhaps this is one you downloaded a long time ago when the details were different. Download again and try with a fresh copy.

        Alternatively, perhaps you just haven’t got the details right. Try entering several variations on your name (case doesn’t matter) and double-check that the number is the default CC number on your B&N account.

          • This is just a thought – I had something similar happen recently with one of my older Nook Books would not decrypt. I then remembered I had purchased it with a credit card that has since expired. I had deleted that CC key when I got a new card & created a new BN key. I figured it was a long shot as the old card is not even in my BN account anymore but I put the old expired number back in & sure enough it worked! Apparently, the authorization is tied to the card you originally used to purchase the book, which is not necessarily the current card on file in the account.

      • i downloaded the tools_v6.0.9.zip but when i try to open the DeDRM app (macintosh folder) it says i can’t because it might be damaged or incomplete. help!

    • I am having an issue with the DRM of my B&N Nook books are not working. These are newer purchases. Here is the debug text:
      Microsoft Windows [Version 6.3.9600]
      (c) 2013 Microsoft Corporation. All rights reserved.

      C:\WINDOWS\system32>calibre-debug -g
      calibre 1.16 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.5
      Windows: (‘8′, ‘6.2.9200’, ”, ‘Multiprocessor Free’)

      C:\WINDOWS\system32>calibre-debug -g
      calibre 1.16 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.5
      Windows: (‘8′, ‘6.2.9200’, ”, ‘Multiprocessor Free’)
      Starting up…
      Started up in 1.00 seconds with 145 books
      Worker Launch took: 0.109999895096
      Job: 1 Read metadata (0 of 1) finished
      Read metadata (0 of 1)
      DeDRM v6.0.7: Trying to decrypt The Clowns of God-Morris West.epub
      DeDRM v6.0.7: Verifying zip archive integrity
      DeDRM v6.0.7: “The Clowns of God-Morris West.epub” is a secure Barnes &
      Noble ePub
      DeDRM v6.0.7: Trying Encryption key B&NCompromised Card
      Could not decrypt 5tfydb.epub because of an exception:
      Traceback (most recent call last):
      File “calibre_plugins.dedrm.ignobleepub”, line 278, in decryptBook
      File “calibre_plugins.dedrm.ignobleepub”, line 209, in __init__
      File “calibre_plugins.dedrm.ignobleepub”, line 180, in __init__
      ValueError: Key cannot be the null string

      DeDRM v6.0.7: Failed to decrypt with key B&NCompromised Card after 0.5 s
      econds
      DeDRM v6.0.7: Trying Encryption key B&NCurrentCC
      Could not decrypt 5tfydb.epub because of an exception:
      Traceback (most recent call last):
      File “calibre_plugins.dedrm.ignobleepub”, line 278, in decryptBook
      File “calibre_plugins.dedrm.ignobleepub”, line 209, in __init__
      File “calibre_plugins.dedrm.ignobleepub”, line 180, in __init__
      ValueError: AES key must be either 16, 24, or 32 bytes long

      DeDRM v6.0.7: Failed to decrypt with key B&NCurrentCC after 0.5 seconds
      DeDRM v6.0.7: Ultimately failed to decrypt after 0.5 seconds.
      Read the FAQs at Alf’s blog: http://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_filety
      pe_plugins
      File “calibre_plugins.dedrm.__init__”, line 479, in run
      File “calibre_plugins.dedrm.__init__”, line 177, in ePubDecrypt
      DeDRMError: DeDRM v6.0.7: Ultimately failed to decrypt “The Clowns of Go
      d-Morris West.epub” after 0.5 seconds.
      Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/
      IneptEpub: Using pycrypto.
      IneptEpub: Calibre configuration directory = C:\Users\Patty MacDuffie\Ap
      pData\Roaming\calibre
      IneptEpub: Couldn’t Retrieve key from ADE install.
      Running file type plugin Inept Epub DeDRM failed with traceback:
      Traceback (most recent call last):
      File “site-packages\calibre\customize\ui.py”, line 154, in _run_filety
      pe_plugins
      File “calibre_plugins.dummy4.__init__”, line 435, in run
      ADEPTError: IneptEpub – No keys found. Check keyfile(s)/ADE install
      IgnobleEpub: Using PyCrypto.
      IgnobleEpub: Calibre configuration directory = C:\Users\Patty MacDuffie\
      AppData\Roaming\calibre
      IgnobleEpub: No keyfiles found. Checking plugin customization string.
      Running file type plugin Ignoble Epub DeDRM failed with traceback:
      Traceback (most recent call last):
      File “site-packages\calibre\customize\ui.py”, line 154, in _run_filety
      pe_plugins
      File “calibre_plugins.dummy3.__init__”, line 321, in run
      IGNOBLEError: IgnobleEpub – No keys found. Plugin not configured.

      Added The Clowns of God to db in: 2.42100000381 seconds

      • Try other variations from the names in the various parts of your B&N account, and double-check that the number is the default number at the time you downloaded the books. Currently, it just looks like your haven’t got the right key.

        • Oh my… you are correct. Wherever the datum came from that you could use the name on your credit card or your address name is false. The CC has my middle initial. I did change to a new credit card for the account. I had created a new key, but used my name with the middle initial. I deleted that key, re-entered without the initial and all is working fine now. Thank you so much! I have spent hours in frustration with this issue! (Probably should have posted sooner, eh?)

    • Some time ago I set up Calibre with one of your tools and it has worked perfectly. It is not now working. The following are the items I have added to Calibre;
      eReader PDB 2 PML (0.0.8) by DiapDealer, Apprentice Alf and The Dark Reverser
      Removes DRM from secure pdb files. Credit given to The Dark Reverser for the original standalone
      script.
      Customization: scrimshaw,10698062
      Inept Epub DeDRM (0.2.1) by DiapDealer, Apprentice Alf and i♥cabbages
      Removes DRM from secure Adobe epub files. Credit given to i♥cabbages for the original stand-alone
      scripts.
      Inept PDF DeDRM (0.1.9) by DiapDealer, Apprentice Alf and i♥cabbages
      Removes DRM from secure Adobe pdf files. Credit given to i♥cabbages for the original stand-alone
      scripts.
      Kindle and Mobipocket DeDRM (0.4.18) by DiapDealer, SomeUpdates, mdlnx, Apprentice Alf and The Dark Reverser
      Removes DRM from eInk Kindle, Kindle 4 Mac and Kindle 4 PC ebooks, and from Mobipocket ebooks.
      Provided by the work of many including The Dark Reverser, DiapDealer, SomeUpdates, i♥cabbages,
      CMBDTC, Skindle, mdlnx, ApprenticeAlf, and probably others.

      I am using Mac OS X 10 .9.4. I have been downloading ebooks from Kindle store. This is the error message just says book is protected by ddm etc.

      My drm log is is empty. When I use DDRN 5.5.5, the log is filled.
      I have downloaded tools v6.0.9. I have not been able to unzip the file. I have tried many times and even had a friend using Widows 8 and he too has not been able to unzip the file.
      I would appreciate your advice

      • I had to deselect the option to use their download manager. It is immediately below the gray “Download” button, where it says, “Use our download manager and get recommended downloads”. I was then able to download it okay.

    • Hello- thanks for your pluggin. I am trying to DeDRM kindle for mac (azw) files using calibre 2.3. Here is the debug log:

      libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
      calibre Debug log
      calibre 2.3 isfrozen: True is64bit: True
      Darwin-13.3.0-x86_64-i386-64bit Darwin (’64bit’, ”)
      (‘Darwin’, ‘13.3.0’, ‘Darwin Kernel Version 13.3.0: Tue Jun 3 21:27:35 PDT 2014; root:xnu-2422.110.17~1/RELEASE_X86_64′)
      Python 2.7.8
      OSX: (‘10.9.4′, (”, ”, ”), ‘x86_64′)
      Successfully initialized third party plugins: DeDRM && KindleUnpack – The Plugin
      Starting up…
      Started up in 5.34 seconds with 0 books
      DeDRM v6.0.9: Trying to decrypt B005UQLIBE_EBOK.azw
      Using Library AlfCrypto DLL/DYLIB/SO
      MobiDeDrm v0.41.
      Copyright © 2008-2012 The Dark Reverser et al.
      MOBI header version 6, header length 232
      Extra Data Flags: 2
      Decrypting Mobipocket 6 ebook: Nursing Knowledge: Science, Practice, and Philosophy
      Found 0 keys to try after 0.0 seconds
      Crypto Type is: 2
      DeDRM v6.0.9: Failed to decrypt with error: No key found in 0 keys tried.
      DeDRM v6.0.9: Looking for new default Kindle Key after 0.0 seconds
      Found k4Mac kinf2011 file: /Users/Home/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2011
      Decrypted key file using IDString ‘b1b53ac846d0′ and UserName ‘Home’
      DeDRM v6.0.9: Found 1 new key
      MobiDeDrm v0.41.
      Copyright © 2008-2012 The Dark Reverser et al.
      MOBI header version 6, header length 232
      Extra Data Flags: 2
      Decrypting Mobipocket 6 ebook: Nursing Knowledge: Science, Practice, and Philosophy
      Found 4 keys to try after 0.3 seconds
      Crypto Type is: 2
      DeDRM v6.0.9: Ultimately failed to decrypt after 0.3 seconds.
      Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/
      Traceback (most recent call last):
      File “calibre_plugins.dedrm.__init__”, line 410, in KindleMobiDecrypt
      File “calibre_plugins.dedrm.k4mobidedrm”, line 216, in GetDecryptedBook
      File “calibre_plugins.dedrm.mobidedrm”, line 469, in processBook
      DrmException: No key found in 4 keys tried.
      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 472, in run
      File “calibre_plugins.dedrm.__init__”, line 423, in KindleMobiDecrypt
      DeDRMError: DeDRM v6.0.9: Ultimately failed to decrypt “B005UQLIBE_EBOK.azw” after 0.3 seconds with error: No key found in 4 keys tried.

      • SO- I reinstalled EVERYTHING (kindle, calibre, pluggins…) and it worked. Don’t know what I did wrong the first time, but you can forget this one. Thanks!

    • Hi, not very tech minded but I downloaded the latest tools and calibre, I followed the instructions but drm was not removed from books I added to calibre, not sure why, any ideas?

      • You’ll need to give more info. ideally a log of the import process. Instructions on how to get a log are in the FAQs.

        If you can’t manage that, at least details on what kind of ebook it is, where it was bought, how you got it onto your computer, and any customisation data your added in the plugin’s customisation dialog.

    • I have no problem following your instructions to download the alternate files but when I try to download the zip file, I get a page showing “Bayfiles” with no options other than a big orange “Download” button or “Premium download” The “premium download” takes me to “page not found” and the “Download” button gets me all sorts of pop ups and games, etc but no spot to download the file.

    • I’m having an issue with the plugin for calibre. I am currently using a Mac OS 10.9. I have downloaded Calibre for Mac and both the tools_v6.0.9.zip and Other_Tools.zip files. But when I open Calibre and go to add the plugins (using the “Load plugin from file” button) I get an error. InvalidPlugin: The plugin is invalid. It does not contain a top-level _init_.py file.

      What do I do to fix this, and I need these plugins to remove the DRM from my Kindle and Nook ebooks?

      Thanks.

      • You are clearly not adding the right file, but exactly what your error is is hard to determine. You’ve either not unzipped the tools_v6.0.9.zip to get the plugin, or you’re also unzipped the plugin. You need to add the zip file that has plugin in the name.

    • I’ve just downloaded v. 6.0.9 and cannot open DRM Macintosh Application on Snow Leopard (10.6.8). The app’s icon appears with a sort of no-entry sign and I keep getting the message that the app may be corrupted or missing some resources. That’s not the case I think; I’ve re-downloaded, checked md5 and looked inside package contents. The Info.plist looks pretty much the same as version 6.0.8’s (which starts fine). I just can’t get it. TIA for any help.

    • Hello Alf, I’m afraid I wasn’t sure how to ask you about an error matter except by clicking Reply.
      I bought a book from Amazon – AZW3 format – which I downloaded to my Kindle For PC app on my Vista 32 bit laptop. When I tried to DRM it in Calibre ,the error, “Invalid Start Byte” appears, and the book won’t open. The details are below. I installed the latest tools, though I haven’t updated Calibre for some months. Thank you.
      Paul.

      calibre, version 0.9.30
      ERROR: Could not open ebook: invalid start byte

      Traceback (most recent call last):
      File “site-packages\calibre\gui2\viewer\main.py”, line 40, in run
      File “threading.py”, line 763, in run
      File “site-packages\calibre\ebooks\oeb\iterator\book.py”, line 99, in __enter__
      File “site-packages\calibre\customize\conversion.py”, line 239, in __call__
      File “site-packages\calibre\ebooks\conversion\plugins\mobi_input.py”, line 40, in convert
      File “site-packages\calibre\ebooks\mobi\reader\mobi8.py”, line 95, in __call__
      File “site-packages\calibre\ebooks\mobi\reader\mobi8.py”, line 425, in expand_text
      File “site-packages\calibre\ebooks\mobi\reader\markup.py”, line 310, in expand_mobi8_markup
      File “site-packages\calibre\ebooks\mobi\reader\markup.py”, line 51, in update_internal_links
      File “encodings\utf_8.py”, line 16, in decode
      UnicodeDecodeError: ‘utf8′ codec can’t decode byte 0x99 in position 6819: invalid start byte

      • Update your calibre and that bug should go away. If you still have problems, post an import log, not a log of trying to view the book in the viewer, which seems to be what that is.

        • Thank you, Paul Durrant. Updating Calibre to the latest version made the AZW3 book open perfectly!
          Paul Moulder.

    • Hello, I found that the calibre plugin does not remove the drm from some books.
      I got some free ones from amazon and calibre fails to convert it.
      I get a DRM popup saying it is protected with DRM.
      How can i send you the link to the book on amazon so you can download the free book and see for your self?
      I wanted to read it on my Kobo but can’t since calibre dedrm plugin wont work nor will epubor.

      Please let me know
      Thanks
      Gren

    • If you see this – I have just put Ubuntu 14.10 on a new netbook. I installed Calibre, and the latest plugin fails because it uses Python 5. Please take a look at this. It occurs between Ubuntu 14.04 which was fine, and 14.10 which is not.

  2. To Durrant,

    I’ve installed 64-bit Calibre and it works! It decrypted the DRM successfully even with this unusually large ebook!! Thanks to your suggestion and thanks to Alf’s amazing tools. Truly grateful!!!!!

  3. First, please let me thank you profusely for the tools. I’ve used them for years, to make sure my purchases will always be readable. I don’t know if it’s because of tool changes, Calibre changes, or Amazon serial novel DRM changes, but I’m unable to deDRM the Kindle serial novel “Indexing” by Seanan McGuire. I’ve purchased it, the novel is complete, and I can open and read it in the Kindle app, but when I try to import it into Calibre, it looks like Calibre doesn’t know how to open it. Other AZW3’s convert fine.

  4. Hi,
    first, thanks you a ton for your work on DRM tools :-)
    About file hosting, why not host on Github, or a Dropbox link ? What would be super easy to setup, what do you think ?

  5. Hello, I’ve been using your tools and Calibre for a good while. The last book I downloaded in adobe editions epub won’t dedrm. I’ve done the debug and the debug information is as follows. Microsoft Windows [Version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation. All rights reserved.

    C:\Users\Ted>calibre-debug -g
    calibre 2.1 isfrozen: True is64bit: False
    Windows-7-6.1.7601-SP1 Windows (’32bit’, ‘WindowsPE’)
    (‘Windows’, ‘7’, ‘6.1.7601’)
    Python 2.7.8
    Windows: (‘7′, ‘6.1.7601’, ‘SP1′, ‘Multiprocessor Free’)
    Failed to initialize plugin: u’C:\\Users\\Ted\\AppData\\Roaming\\calibre\\plugin
    s\\iOS reader applications.zip’
    Traceback (most recent call last):
    File “site-packages\calibre\customize\ui.py”, line 578, in initialize_plugins
    File “site-packages\calibre\customize\ui.py”, line 53, in load_plugin
    File “site-packages\calibre\customize\zipplugin.py”, line 197, in load
    File “importlib\__init__.py”, line 37, in import_module
    File “site-packages\calibre\customize\zipplugin.py”, line 179, in load_module
    File “calibre_plugins.ios_reader_apps.__init__”, line 43, in
    ImportError: No module named PyQt4.Qt
    ITUNES.__init__():
    Debug logging enabled
    Successfully initialized third party plugins: K4PC, K4Mac, Kindle Mobi and Topaz
    DeDRM && Inept Epub DeDRM && Inept PDF DeDRM && eReader PDB 2 PML && Ignoble Ep
    ub DeDRM && Barnes & Noble && Goodreads
    Starting up…
    Started up in 1.02 seconds with 131 books
    Worker Launch took: 0.265000104904
    Job: 1 Read metadata (0 of 1) finished
    Read metadata (0 of 1)
    Failed to initialize plugin: u’C:\\Users\\Ted\\AppData\\Roaming\\calibre
    \\plugins\\iOS reader applications.zip’
    ITUNES.__init__():
    Debug logging enabled
    IneptEpub: Using pycrypto.
    IneptEpub: Calibre configuration directory = C:\Users\Ted\AppData\Roamin
    g\calibre
    IneptEpub: Keyfile calibre-adeptkey.der found in config folder.
    IneptEpub: Encryption key invalid… trying others.
    Running file type plugin Inept Epub DeDRM failed with traceback:
    Traceback (most recent call last):
    File “site-packages\calibre\customize\ui.py”, line 154, in _run_filety
    pe_plugins
    File “calibre_plugins.ineptepub.__init__”, line 475, in run
    ADEPTError: IneptEpub – Ultimately failed to decrypt
    IgnobleEpub: Using PyCrypto.
    IgnobleEpub: Calibre configuration directory = C:\Users\Ted\AppData\Roam
    ing\calibre
    IgnobleEpub: No keyfiles found. Checking plugin customization string.
    IgnobleEpub: 1 userkey(s) generated from customization data.
    Running file type plugin Ignoble Epub DeDRM failed with traceback:
    Traceback (most recent call last):
    File “site-packages\calibre\customize\ui.py”, line 154, in _run_filety
    pe_plugins
    File “calibre_plugins.ignobleepub.__init__”, line 353, in run
    File “calibre_plugins.ignobleepub.__init__”, line 240, in plugin_main
    File “calibre_plugins.ignobleepub.__init__”, line 160, in __init__
    File “site-packages\pycrypto-2.6.1-py2.7-win32.egg\Crypto\Cipher\AES.p
    y”, line 95, in new
    File “site-packages\pycrypto-2.6.1-py2.7-win32.egg\Crypto\Cipher\AES.p
    y”, line 59, in __init__
    File “site-packages\pycrypto-2.6.1-py2.7-win32.egg\Crypto\Cipher\block
    algo.py”, line 141, in __init__
    ValueError: IV must be 16 bytes long

    Added Mind Prey to db in: 0.047000169754 seconds
    Worker Launch took: 0.262000083923
    Job: 2 Read metadata (0 of 1) finished
    Read metadata (0 of 1)
    Failed to initialize plugin: u’C:\\Users\\Ted\\AppData\\Roaming\\calibre
    \\plugins\\iOS reader applications.zip’
    ITUNES.__init__():
    Debug logging enabled
    IneptEpub: Using pycrypto.
    IneptEpub: Calibre configuration directory = C:\Users\Ted\AppData\Roamin
    g\calibre
    IneptEpub: Keyfile calibre-adeptkey.der found in config folder.
    IneptEpub: Encryption key invalid… trying others.
    Running file type plugin Inept Epub DeDRM failed with traceback:
    Traceback (most recent call last):
    File “site-packages\calibre\customize\ui.py”, line 154, in _run_filety
    pe_plugins
    File “calibre_plugins.ineptepub.__init__”, line 475, in run
    ADEPTError: IneptEpub – Ultimately failed to decrypt
    IgnobleEpub: Using PyCrypto.
    IgnobleEpub: Calibre configuration directory = C:\Users\Ted\AppData\Roam
    ing\calibre
    IgnobleEpub: No keyfiles found. Checking plugin customization string.
    IgnobleEpub: 1 userkey(s) generated from customization data.
    Running file type plugin Ignoble Epub DeDRM failed with traceback:
    Traceback (most recent call last):
    File “site-packages\calibre\customize\ui.py”, line 154, in _run_filety
    pe_plugins
    File “calibre_plugins.ignobleepub.__init__”, line 353, in run
    File “calibre_plugins.ignobleepub.__init__”, line 240, in plugin_main
    File “calibre_plugins.ignobleepub.__init__”, line 160, in __init__
    File “site-packages\pycrypto-2.6.1-py2.7-win32.egg\Crypto\Cipher\AES.p
    y”, line 95, in new
    File “site-packages\pycrypto-2.6.1-py2.7-win32.egg\Crypto\Cipher\AES.p
    y”, line 59, in __init__
    File “site-packages\pycrypto-2.6.1-py2.7-win32.egg\Crypto\Cipher\block
    algo.py”, line 141, in __init__
    ValueError: IV must be 16 bytes long

    Added Voyager to db in: 0.793999910355 seconds

    • Just to add, I’m running adobe digital additions 2.0 and just updated to 3.0 but that didn’t make a difference. Also, deleted 2.1 Calibre and reloaded 2.0, just to make sure, but that didn’t work either. The only think I haven’t done is remove all the plugins and then reinstalled them. Just didn’t want to have to redo all the customization for B&N and Kindle.

      • As I said in reply to another of your comments here:

        No, the problems are unrelated. Looking at your log, your problem is that you’re not using the latest 6.0.9 plugin with calibre 2.1. Calibre 2.0 updated to use QT5 instead of QT4, and you MUST update to the 6.0.9 plugin when running calibre 2.0 or later. You should also remove ALL the older DRM removal plugins you currently have installed.

        The DeDRM plugin will pick up most, perhaps all, of the customisations you entered in the older individual plugins.

  6. Thanks for the tools. They work fabulously. I have never bought an IBook but notice gift cards on sale at substantial discounts. But I also notice that hte requiem onion site is down and has been since June, and any download links seem to result in the downloading of zip archives which will not open. Do you know if requiem still works to remove drm from IBooks and if so where I can find a working link. Thanks.

  7. I downloaded the latest Tools zip and am getting an error message when I open the mac standalone app “You can’t open the application beauase it may be damaged or incomplete”.

    • I am running OSX 10.9.4 and Python 2.7.5 and tools 6.0.9 downloaded from datafilehost, btw. I also re-downloaded it a second time and it has the same problem. The new bayfile link you put up today doesn’t seem to work. I just downloaded Tools 6.0.8 and it seems to work so there seems to be something wrong with the current 6.0.9 osx build.

      • There is. The Info.plist has an extra w where there shouldn’t be one. You can fix it with a text editior, or just keep on using the 6.0.8. As far as I know, the 6.0.9 update was just for the plugin.

      • I too am using OSX 10.9.4. I’m not sure what version of tools I am using but it has stopped working. I had the same issues trying to download tools 6.0.9, I have not been able to unzip the file and get tools v6.0.9. zip.cpgz. I get exactly the same with tools v6.0.8. Did you have any problems unzipping these files and how did you unzip 6.0.8?

        • Heres the fix – Right click the App > Show Contents –> right click info.plist –> open with –> TextEdit –> search (command+F) for this “w” –> delete the w –> save & close TextEdit –> Run Program.

            • That didnt work, sorry about mucking up your space, but I see no edit option. last try – “Less than sign” “slash” “array” “greater than sign” “w” Just delete that W at the end, & all is well.

  8. B&N seems to be using a new epub format that’s throwing the DeDRM plugin off – two of the six books I DL’d today were ignored by the plugin as not being B&N encrypted books, even though they definitely are. Examining the files in 7zip, it seems this new version lacks the rights.xml file in META-INF that all the other files have.

    To experiment, I dropped the rights.xml file from one of the files that was successfully de-DRM’d into the bad files and sure enough, the DeDRM plugin realized it was a B&N file but was unable to decrypt. Any advice? I can email you one of the bad epub files if that would help.

    • Where did you get the EPUBs from? I already discovered the issue with the Nook for Windows 8 app, but B&N hadn’t implemented it in any of their other apps at the time so there was no issue with Windows 7 and Android EPUBs. If they expanded this change to other apps this would become a bigger deal.

      Background: This seems to be a new trick from B&N to make it more inconvenient to decrypt their EPUBs. They remove the rights.xml file from the EPUB downloads and instead store the data inside a SQL Database. Copying the data to a blank rights.xml file and then dropping it into the EPUB fixes the issue. So far you have to manually copy the data, but the issue has only been confirmed in the Windows 8 app.

      • Jay, these files were DL’d directly from the My Library page on B&N’s website. I thought maybe they were corrupt as I occasionally get a bad download, but redownloading solved nothing.

        Is that SQL db you mention stored in the epub file or elsewhere? I was surprised to see that this didn’t break compatibility with our older Simple Touch readers, even one running an out of date firmware (1.1.2), so hopefully the change isn’t too radical.

        • The SQL Database is inside the AppData folder for the Windows 8 app. Can’t remember the exact location off the top of my head, but it’s not encrypted thankfully. But if they’re doing it with the website downloads that’s weird. Have you tried downloading the same book using the Windows 7 app?

          As for drastic change, it really isn’t, just a big inconvenience. They basically took the keyhole to the front door of the house and moved it under a rock in the backyard. We have to find the keyhole and put it back into the door in order to use our keys to get in.

      • I use Windows 8.1 but I go directly to my Nook library (on B&N site) and download the Nook Books from there. Have no problems removing the DRM from those books. Interestingly, I have the Windows 8 Nook app but I don’t see where the Nook Books are stored from it on my PC.

          • PM is having problems with the EPUBs he’s downloading from the Nook WEBSITE. All I was saying was that the issue is similar to the issue with DeDRMing books from the Windows 8 app and that it might be related. Why are you telling me to stop using the Windows 8 app when I’m not using it? Please read the conversation first before jumping to assumptions and interrupting a technical discussion.

        • C:\Users\USERNAME\AppData\Local\Packages\BarnesNoble.Nook_xxxxxxxxxxxxx\LocalState

          But as stated before, the books it downloads are missing their rights.xml file which is needed to decrypt them. The information is instead stored inside:
          “C:\Users\USERNAME\AppData\Local\Packages\BarnesNoble.Nook_xxxxxxxxxxxxx\LocalState\NookDownloads.db3″
          Table= download_doc
          Row= BOOK-ID-NUMBER
          Column= license

      • Why would you use the nook app for Windows 8? You can just point your web browser to B&N and download the ePub directly. Just fill in your credit card details in your nook DeDRM settings and you’ll be good to go. You don’t even need the desktop nook app.

    • Hmmm, first my epub books from the library in adobe digital editions and now your epub for B&N. My occurred just after the last update to Calibre 2.1. Could this be a common issue?

      • No, it’s not a common issue. I have no trouble stripping the DRM from ePub in my Digital Editions library. I’m using Calibre 2.1. I don’t know what you’ve done, but you’ve had to have done something if it was working and now it’s not.

        • I haven’t done anything differently. Exact process as other books. I download the ASCM file, then open it with Adobe digital additions, close additions, open Calibre and import the book. This has done it for the last 2 books. I did uninstall 2.1 and went back to 2.0 but that didn’t change things, so I went back to 2.1.

          • I did have a newly released eBook download as corrupted and I tried again the next day and it worked fine. It wasn’t a problem on my end. Take a look at the ePub you’ve ended up with. Is it too small to be a correct ePub?

      • No, the problems are unrelated. Looking at your log, your problem is that you’re not using the latest 6.0.9 plugin with calibre 2.1. Calibre 2.1 updated to use QT5 instead of QT4, and you MUST update to the 6.0.9 plugin for it to worrk. You should also remove ALL the older DRM removal plugins you currently have installed.

  9. here is my log, if anyone can help it would be greatly appreciated, this system used to work fine, I don’t know whot changed

    Microsoft Windows [Version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation. All rights reserved.

    C:\Users\tony.blakely>debug-calibre -g
    ‘debug-calibre’ is not recognized as an internal or external command,
    operable program or batch file.

    C:\Users\tony.blakely>calibre-debug -g
    calibre 2.1 [64bit] isfrozen: True is64bit: True
    Windows-7-6.1.7601-SP1 Windows (’64bit’, ‘WindowsPE’)
    (‘Windows’, ‘7’, ‘6.1.7601’)
    Python 2.7.8
    Windows: (‘7′, ‘6.1.7601’, ‘SP1′, ‘Multiprocessor Free’)
    Successfully initialized third party plugins: DeDRM
    Starting up…
    Started up in 0.54 seconds with 1 books
    Worker Launch took: 0.0939998626709
    Job: 1 Read metadata (0 of 1) finished
    Non-ASCII text detected. You must set your Console’s font to Lucida Console or C
    onsolas or some other TrueType font to see this text — Read metadata (0 of 1)
    DeDRM v6.0.9: Trying to decrypt The Last Witness.epub
    DeDRM v6.0.9: Verifying zip archive integrity
    DeDRM v6.0.9: The Last Witness.epub is a secure Adobe Adept ePub
    DeDRM v6.0.9: Trying Encryption key default_key
    Could not decrypt 4zkhsa.epub. Wrong key
    DeDRM v6.0.9: Failed to decrypt with key default_key after 0.1 seconds
    DeDRM v6.0.9: Looking for new default Adobe Digital Editions Keys after
    0.1 seconds
    Traceback (most recent call last):
    File “calibre_plugins.dedrm.__init__”, line 220, in ePubDecrypt
    File “calibre_plugins.dedrm.adobekey”, line 378, in adeptkeys
    File “calibre_plugins.dedrm.adobekey”, line 358, in CryptUnprotectData

    ADEPTError: Failed to decrypt user key key (sic)
    DeDRM v6.0.9: Ultimately failed to decrypt after 0.1 seconds.
    Read the FAQs at Alf’s blog: http://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_filety
    pe_plugins
    File “calibre_plugins.dedrm.__init__”, line 483, in run
    File “calibre_plugins.dedrm.__init__”, line 269, in ePubDecrypt
    DeDRMError: DeDRM v6.0.9: Ultimately failed to decrypt “The Last Witness
    .epub” after 0.1 seconds.
    Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/

    Added The Last Witness to db in: 0.148000001907 seconds

    • It looks like you’ve changed your Adobe ID or something to do with it. Assuming you were registering ADE with an Adobe ID, your best bet is to wipe ADE from your system completely and reinstall, reregister and redownload.

  10. As a follow-up to yesterday’s post, JWolf seems to have nailed it – today I re-downloaded the two books that were missing the rights.xml file and this time it was present in both, and Calibre decoded them without incident. Not sure what happened yesterday but I guess enough time elapsed that their system regenerated the epubs when I went to download and now everything seems to be alright.

  11. I downloaded the tools. Unzipped it but when i go to click on DeDRM.app it says the app is damaged or incomplete and won’t let me open it. I have a mac version 10.9.4. I’ve been struggling with this for 2 weeks. I just want to remove the DRM so I can use Calibre. I have downloaded Python but have no idea how to use it. I’m a newbie to all of this. I have read the “read me” sections of python but don’t even understand what I am reading! PLEASE HELP! I’m trying to remove it from Kindle books.

    • Install calibre. Install the DeDRM plugin. Drag & drop your books into calibre. You don’t need to install Python.

      (The 6.0.9 DeDRM app is damaged and won’t run without a tweak. It’s easier to just use the plugin.)

  12. I have a college ebook that has a lot of pictures in it, specifically some IRS forms. The converter works for most pages, though. When using the adobe digital editions plugin, it seems to reach out on the net to pull those images down. The book is from ecampus.com (I paid for it). You have to log in to ecampus.com through ADE to read the book, something I feel like may be related.

  13. Couldn’t get this to work with the latest ActivePython on Linux, had to use 2.7.6 instead and the Kindle key was retrieved successfully.

  14. I am trying to download the DeDRM application for Mac. I get the application but when I double click on it, it says: “You can’t open the application “DeDRM” because it may be damaged or incomplete”. Did I miss a step?

    • Unfortunately, DeDRM 6.0.9 for Mac is damaged. The Info.plist has an extra w where there shouldn’t be one. it’s easy to spot in a text editor, (e.g. TextWrangler), so it’s easy to fix it by hand. But otherwise just use the 6.0.8 version if you can find it, as there was no real difference between them. The 6.0.9 update seems to have been just for calibre 2.x compatibility.

      • I am having this problem. I am looking at the Info.plist but I do not see what “w” I should remove. Can you be more specific? I also tried version 6.0.8 but it does not run at all on my mac. os x 10.9.4. Any help is much appreciated.

        • As far as I recall it’s at the end of one of the lines after the >. But if you have 6.0.8 then there’s no need. 6.0.8 does run on 10.9.4 but you need to set your security settings to allow it to run. Or you could try right-clicking on it and selecting ‘open’, which might then ask for authorisation to run this unknown, unsigned application.

          • Darn, WordPress has eaten some text that look like HTML tags. (They’re XML tags.)

            Pretend the [ and ] are angle brackets: line 19 reads “[/array]w” but should read “[/array]“.

  15. Came across your site when trying to figure out how to remove a DRM from a book an author friend send me via email. I use Calibre and he said he has no issues with the book. It’s in .azw I want to convert to epub to read on my phone. but nothing will remove the DRM. Here is what is showing from the CMD line. I’m sure I’ve done something wrong, as usually that is my case.

    Microsoft Windows [Version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation. All rights reserved.

    C:\Users\Mike>calibre-debug -g
    calibre 2.1 isfrozen: True is64bit: False
    Windows-7-6.1.7601-SP1 Windows (’32bit’, ‘WindowsPE’)
    32bit process running on 64bit windows
    (‘Windows’, ‘7’, ‘6.1.7601’)
    Python 2.7.8
    Windows: (‘7′, ‘6.1.7601’, ‘SP1′, ‘Multiprocessor Free’)
    Successfully initialized third party plugins: DeDRM
    Starting up…
    Started up in 1.44 seconds with 2 books
    Worker Launch took: 0.338999986649
    Job: 1 Read metadata (0 of 1) finished
    Non-ASCII text detected. You must set your Console’s font to Lucida Console or C
    onsolas or some other TrueType font to see this text — Read metadata (0 of 1)
    DeDRM v6.0.9: Trying to decrypt CityOfNight.azw
    Using Library AlfCrypto DLL/DYLIB/SO
    MobiDeDrm v0.41.
    Copyright (c) 2008-2012 The Dark Reverser et al.
    MOBI header version 6, header length 232
    Extra Data Flags: 3
    Decrypting Mobipocket 6 ebook: City of Night
    Found 0 keys to try after 0.4 seconds
    Crypto Type is: 2
    DeDRM v6.0.9: Failed to decrypt with error: No key found in 0 keys tried
    .
    DeDRM v6.0.9: Looking for new default Kindle Key after 0.4 seconds
    searching for kinfoFiles in C:\Users\Mike\AppData\Local
    Found K4PC 1.9+ kinf2011 file: C:\Users\Mike\AppData\Local\Amazon\Kindle
    \storage\.kinf2011
    Decrypted key file using IDString ‘3230498206’ and UserName ‘Mike’
    DeDRM v6.0.9: Found 1 new key
    MobiDeDrm v0.41.
    Copyright (c) 2008-2012 The Dark Reverser et al.
    MOBI header version 6, header length 232
    Extra Data Flags: 3
    Decrypting Mobipocket 6 ebook: City of Night
    Found 4 keys to try after 0.6 seconds
    Crypto Type is: 2
    DeDRM v6.0.9: Ultimately failed to decrypt after 0.6 seconds.
    Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/
    Traceback (most recent call last):
    File “calibre_plugins.dedrm.__init__”, line 410, in KindleMobiDecrypt
    File “calibre_plugins.dedrm.k4mobidedrm”, line 216, in GetDecryptedBoo
    k
    File “calibre_plugins.dedrm.mobidedrm”, line 469, in processBook
    DrmException: No key found in 4 keys tried.
    Running file type plugin DeDRM failed with traceback:
    Traceback (most recent call last):
    File “site-packages\calibre\customize\ui.py”, line 154, in _run_filety
    pe_plugins
    File “calibre_plugins.dedrm.__init__”, line 472, in run
    File “calibre_plugins.dedrm.__init__”, line 423, in KindleMobiDecrypt
    DeDRMError: DeDRM v6.0.9: Ultimately failed to decrypt “CityOfNight.azw”
    after 0.6 seconds with error: No key found in 4 keys tried.
    Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/

    Added City of Night to db in: 1.77999997139 seconds

    • Amazon’s the only one who can add DRM to azw files, so if it has DRM it must have passed through Amazon’s servers. Ask your author friend to send you a copy of his book before it’s gone through Amazon.

  16. The calibre plugin chokes on a Digital Editions PDF obtained from a .acsm file I purchased (ADE version 4.0.98786).

    Here’s the output from Calibre. It seems to fail when looking for a EBX_HANDLER in the pdf file. I don’t know much about the pdf format but the file at least contains this: <>

    $ ./calibre-debug -g
    calibre 2.2 isfrozen: True is64bit: True
    Darwin-13.2.0-x86_64-i386-64bit Darwin (’64bit’, ”)
    (‘Darwin’, ‘13.2.0’, ‘Darwin Kernel Version 13.2.0: Thu Apr 17 23:03:13 PDT 2014; root:xnu-2422.100.13~1/RELEASE_X86_64′)
    Python 2.7.8
    OSX: (‘10.9.3′, (”, ”, ”), ‘x86_64′)
    Successfully initialized third party plugins: DeDRM
    Starting up…
    libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
    Started up in 1.80 seconds with 0 books
    Worker Launch took: 0.211992025375
    Job: 1 Read metadata (0 of 1) finished
    Read metadata (0 of 1)
    DeDRM v6.0.9: Trying to decrypt Inside Bluetooth Low Energy.pdf
    DeDRM v6.0.9: Inside Bluetooth Low Energy.pdf is a PDF ebook
    DeDRM v6.0.9: Ultimately failed to decrypt after 0.1 seconds.
    Read the FAQs at Alf’s blog: http://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 479, in run
    File “calibre_plugins.dedrm.__init__”, line 361, in PDFDecrypt
    DeDRMError: DeDRM v6.0.9: Ultimately failed to decrypt “Inside Bluetooth Low Energy.pdf” after 0.1 seconds.
    Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/
    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 347, in get_file_type_metadata
    File “site-packages/calibre/customize/builtins.py”, line 326, in get_metadata
    File “site-packages/calibre/ebooks/metadata/pdf.py”, line 101, in get_metadata
    ValueError: Could not read info dict from PDF

    Added Inside Bluetooth Low Energy to db in: 0.233540058136 seconds

  17. WordPress messed up my comment. I meant that pdf file contains “/Filter/EBX_HANDLER/V 4/Length 128/ADEPT_ID(urn:uuid:77f8051c-5036-4861-bd7f-0afec97a3f60)/EBX_TITLE(Inside Bluetooth Low Energy)/EBX_AUTHOR(Naresh Gupta)/EBX_PUBLISHER(Artech House)”

  18. Hi,
    I’m new to Calibre and DeDRM, but have done everything as told. The ebook has been bought by me, but I need citations for a blog. Adobe DE 3.0 does not provide me the Copy&Paste feature, so I decided to decrypt it. However, it doesn’t succeed. Here’s the result of debugmode. It is likely a coding error:
    Syntax Error: Couldn’t find the ‘EBX_HANDLER’ security handler pdfinfo errored out with return code: 1

    c:\Program Files\Calibre2>calibre-debug -g
    calibre 2.2 [64bit] isfrozen: True is64bit: True
    Windows-7-6.1.7600 Windows (’64bit’, ‘WindowsPE’)
    (‘Windows’, ‘7’, ‘6.1.7600’)
    Python 2.7.8
    Windows: (‘7′, ‘6.1.7600’, ”, ‘Multiprocessor Free’)
    Successfully initialized third party plugins: DeDRM
    Starting up…
    Problem creating accessible interface for: Main(0x2a0cf80, name = “MainWindow”)

    Make sure to deploy Qt with accessibility plugins.
    Started up in 2.02 seconds with 3 books
    QTextCursor::setPosition: Position ‘135’ out of range
    Worker Launch took: 0.325999975204
    Job: 1 Read metadata (0 of 1) finished
    Non-ASCII text detected. You must set your Console’s font to Lucida Console or C
    onsolas or some other TrueType font to see this text — Read metadata (0 of 1)
    DeDRM v6.0.9: Trying to decrypt The Case for Israel.pdf
    DeDRM v6.0.9: The Case for Israel.pdf is a PDF ebook
    DeDRM v6.0.9: Ultimately failed to decrypt after 0.2 seconds.
    Read the FAQs at Alf’s blog: http://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_filety
    pe_plugins
    File “calibre_plugins.dedrm.__init__”, line 479, in run
    File “calibre_plugins.dedrm.__init__”, line 361, in PDFDecrypt
    DeDRMError: DeDRM v6.0.9: Ultimately failed to decrypt “The Case for Isr
    ael.pdf” after 0.2 seconds.
    Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/
    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 347, in get_file_ty
    pe_metadata
    File “site-packages\calibre\customize\builtins.py”, line 326, in get_m
    etadata
    File “site-packages\calibre\ebooks\metadata\pdf.py”, line 101, in get_
    metadata
    ValueError: Could not read info dict from PDF

    Added The Case for Israel to db in: 0.554999828339 seconds
    QTextCursor::setPosition: Position ‘135’ out of range
    Worker Launch took: 0.302000045776

  19. Hello. I have just installed calibre v.2.2 and the latest deDRM plugin, but my imported Kindle books are still DRM blocked. I’m not sure if I do it right, but I followed the instructions carefully and have read the FAQ. I downloaded all the books with Kindle for PC, and I imported them by dragging them from that directory. But they are not decrypted in Calibre, so I am unable to read them there. What am I doing wrong?

    • I was successful on my desktop computer. It runs Win7, whereas my laptop runs Win8.

      Anyway, thank you very much for this awesome tool! Finally I can use my study books how study books are supposed to be used, with a proper reader and stylus :)

      • I’ve run into a similar problem using Calibre on Mac and the latest deDRM plugin. The stand-alone app for Mac was damaged. I have Windows 8 installed through Parallels, but no luck there either. Am now getting a copy of Windows 7 to see if I have any luck, like your, trying it that way. It seems a bit elaborate to remove DRM from a file, but this has become a personal quest now :-)

  20. Running into a problem with the obok script. I’m totally clueless concerning Python and programming, but managed to set up everything to start running nicely until, after it lists about a third of the boks in my kepub folder it gives me this error message:

    File “obok.py”, line 198, in
    print “%d: %s” % (i, volumekeys[key]["title"])
    File “C:\Python27\lib\encodings\cp850.py”, line 12, in encode
    return codecs.charmap_encode(input,errors,encoding_map)
    UnicodeEncodeError: ‘charmap’ codec can’t encode character u’\u2013′ in position
    44: character maps to

    A bit of googling gives me the impression that this is a common problem in Python 2.7, but this is what the obok script is for – so how to fix it?

      • I’m using the script from the Other Tools package in the latest version offered here. After your reply I saw that my PyCrypto version was out of date, but with the latest version of that I still get precisely the same error.

        • PyCrypto isn’t related to this, as you’ve discovered.

          It looks like you’ve got a book in your Kobo database that has some characters in the title that your terminal window can’t display. Python’s a bit tricky here, I think. I can find plenty of web pages telling how *not* to handle this, but not much telling *how* to handle it :-(

          Can you set your terminal window to use something better than CP850? This is a character set encoding; I’m not sure if Windows (?) lets you configure this at all in the Command Prompt, but if you can make it use something like Unicode or UTF-8 that will probably help.

        • Something else that might work is setting the PYTHONIOENCODING environment variable to UTF-8 before running the obok script. The script will output something weird instead of your book title, but it should carry on working.

          On Windows do this:

          SET PYTHONIOENCODING=UTF-8

          and in the same window run the obok.py script as you do normally.

          • Thanks a lot. I did a bit of googling myself and found a lot of stuff about how it’s Windows related and a lot of workarounds that go way over my head. So your help is much appreciated. It’s not that urgent right now and I’ve got lots of things on my plate, but when I get around to fiddling about with it a bit more, I’ll report back.

  21. just downloaded tools_v6.0.9 for the mac (10.9.4), fixed the plist file and tried decrypting a book downloaded amazon’s cloud using kindle for the mac. it failed with this log file:

    [~] cat Desktop/DeDRM.log
    shellcommand: /usr/bin/python ‘/Users/tom/Downloads/tools_v6/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/adobekey.py’ ‘/Users/tom/Library/Preferences/com.apprenticealf.dedrm/Local Adept Key.der’ > ‘/Users/tom/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
    shellresult: adobekey.py v6.0
    Copyright © 2009-2013 i♥cabbages and Apprentice Alf
    __main__.ADEPTError: Could not find ADE activation.dat file..”)on/DeDRM.app/Contents/Resources/adobekey.py”, line 446, in adeptkeys
    There are 0 ebooks to be decrypted.
    Processing file: B000FC1ICM_EBOK.mbp
    There is 1 ebook to be decrypted.
    Processing file: B000FC1ICM_EBOK.azw
    shellcommand: /usr/bin/python ‘/Users/tom/Downloads/tools_v6/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/k4mobidedrm.py’ -k ‘/Users/tom/Library/Preferences/com.apprenticealf.dedrm/Local Kindle Key.k4i’ ‘/Users/tom/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/My Kindle Content/B000FC1ICM_EBOK.azw’ ‘/Users/tom/Books/’ > ‘/Users/tom/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
    shellresult: Using Library AlfCrypto DLL/DYLIB/SO
    K4MobiDeDrm v5.2.
    Copyright © 2008-2013 The Dark Reverser et al.
    MobiDeDrm v0.41.
    Copyright © 2008-2012 The Dark Reverser et al.
    MOBI header version 8, header length 248
    Extra Data Flags: 3
    Decrypting Kindle Format 8 ebook: The Golden Compass: His Dark Materials
    Keys not found in the database /Users/tom/Library/Preferences/com.apprenticealf.dedrm/Local Kindle Key.k4i.
    Found 0 keys to try after 0.0 seconds
    Crypto Type is: 2
    Error decrypting book after 0.0 seconds: No key found in 0 keys tried.
    DrmException: No key found in 0 keys tried.:d} keys tried.”.format(len(goodpids)))ts/Resources/mobidedrm.py”, line 469, in processBooktedBook
    There was an error with 1 ebook:
    B000FC1ICM_EBOK.azw couldn’t be decrypted.

    [~]

    did i miss something along the way?

    thanks in advance,

      • on the DeDRM Configuration window, i select Kindle for Mac ebooks and i get a window that says

        Current Kindle for Mac key files:
        Local Kindle Key.k41.

        To add extra key files (.k4i), click the Add… button.

        searching for a .k4i file gives me: ‘~/Library/Preferences/com.apprenticealf.dedrm/Local Kindle Key.k4i’ which contains:

        [~] cat ‘Library/Preferences/com.apprenticealf.dedrm/Local Kindle Key.k4i’
        {“IDString”: “39393939393939393939”, “kindle.account.tokens”: “48”, “kindle.cookie.item”: “41”, “UserName”: “746f6d”}[~]

        • How interesting. In that case, delete that file (Local Kindle Key.k4i) and see if it re-creates it with the same info. If it does, I’d try doing the unregister/uninstall/wipe preferences&application support/reinstall/reregister/redownload route with Kindle for Mac and see if that fixes things (obvioiusly also delete the LocalKindkeKey again as well).

          • that worked! i deleted the file (well moved it), restarted DeDRM and it created a new and much different k4i file.

            thank you!

  22. Just downloaded DeDRM v6.0.9 and am running Calibre v2.2 on a Win 7 computer. I’m trying to customize with the serial # of my newest Kindle, and every time I click on ‘customize plugin’, I get an error message. calibre, version 2.2.0
    ERROR: Unhandled exception: AttributeError:’module’ object has no attribute ‘ConfigWidget’

    calibre 2.2 isfrozen: True is64bit: False
    Windows-7-6.1.7601-SP1 Windows (’32bit’, ‘WindowsPE’)
    32bit process running on 64bit windows
    (‘Windows’, ‘7’, ‘6.1.7601’)
    Python 2.7.8
    Windows: (‘7′, ‘6.1.7601’, ‘SP1′, ‘Multiprocessor Free’)
    Successfully initialized third party plugins: DeDRM && Kindle Collections
    Traceback (most recent call last):
    File “site-packages\calibre\gui2\preferences\plugins.py”, line 292, in customize_plugin
    File “site-packages\calibre\gui2\preferences\plugins.py”, line 370, in modify_plugin
    File “site-packages\calibre\customize\__init__.py”, line 152, in do_user_config
    File “calibre_plugins.dedrm.__init__”, line 496, in config_widget
    AttributeError: ‘module’ object has no attribute ‘ConfigWidget’

    Have done the usual uninstall/reinstall and restart Calibre routine, but continue to get the error. It worked fine with the prior version of the plugin and earlier versions of Calibre up until today (no changes made to the system). I removed the old version of the plugin and installed the newest version, but continue to get the error.

    Thank you for all your work on this tool!

  23. I have been downloading ebooks from Amazon into “Kindle for PC” and then into Calibre with plugin to read on my Sony Reader.
    Recently purchased books from Amazon now go into “Kindle Cloud Reader” and I can’t figure out how to get them onto my Sony Reader.
    Can anyone help please. If I am out of order posting this request on here I apologise.

    • If your Kindle for PC installation is still registered with your Amazon account, on the web pages at Amazon for your Kindle Library, there should be an option to ‘send to Kindle for PC’. Alternatively, in Kindle for PC, you should be able to see the books in your library and select them for download. If your can’t get the books into Kindle for PC (or onto an E-Ink based KIndle), these tools can’t help you.

  24. Hours ago I used alf’s plugin to process the books I bought recently, all handled well but one .azw4 book, it is over 400MB.

    Calibre spends minutes to “diagnose” this book then displays in the library just like all the other books, I can see the cover, title, author, etc..

    But when I want to view it or convert it, it displayed “locked”.

    So my question is, alf’s tool can’t handle such a large size book? The tool doesn’t tell me fail to unlock it, but the truth is the book is still locked.

    I know how to use this tool and have used it for years, so I am sure it’s not my operation error.

    Thank you

    • Try using the KindleUnpack plugin. azw4 are really PDFs wrapped in an Amazon wrapper. KindleUnpack will extract the PDF. If KindleUnpack says it’s still locked, it’s probably a memory error (because of the big size), in which case try installing the 64-bit version of calibre (assuming you have a 64-bit version of Windows installed).

      • Doesn’t help. The AZW4 book is locked and the “Unpack AZW4″ option is greyed out. I guess the large file size causes memory error when decode the book, I am using the latest version of Calibre 64-bit and I have 8 GB RAM on this PC. Maybe the file size is just too large.

  25. I add the book and when I try to convert it I get a DRM message I don’t know what i’m doing wrong

    C:\Users\Admin>calibre-debug -g
    calibre 2.3 isfrozen: True is64bit: False
    Windows-7-6.1.7601-SP1 Windows (’32bit’, ‘WindowsPE’)
    32bit process running on 64bit windows
    (‘Windows’, ‘7’, ‘6.1.7601’)
    Python 2.7.8
    Windows: (‘7′, ‘6.1.7601’, ‘SP1′, ‘Multiprocessor Free’)
    Successfully initialized third party plugins: DeDRM
    Starting up…
    Started up in 0.94 seconds with 1 books
    Worker Launch took: 0.161999940872
    Job: 1 Read metadata (0 of 1) finished
    Non-ASCII text detected. You must set your Console’s font to Lucida Console or C
    onsolas or some other TrueType font to see this text — Read metadata (0 of 1)
    DeDRM v6.0.9: Trying to decrypt B00I4A4CX4_EBOK.azw4
    Using Library AlfCrypto DLL/DYLIB/SO
    MobiDeDrm v0.41.
    Copyright (c) 2008-2012 The Dark Reverser et al.
    MOBI header version 4, header length 248
    Decrypting Mobipocket 4 ebook: Managerial Accounting
    Found 4 keys to try after 0.5 seconds
    Crypto Type is: 2
    DeDRM v6.0.9: Failed to decrypt with error: Cannot decode library or ren
    ted ebooks.
    DeDRM v6.0.9: Looking for new default Kindle Key after 0.5 seconds
    searching for kinfoFiles in C:\Users\Admin\AppData\Local
    Found K4PC 1.9+ kinf2011 file: C:\Users\Admin\AppData\Local\Amazon\Kindl
    e\storage\.kinf2011
    Decrypted key file using IDString ‘2120346793’ and UserName ‘Admin’
    DeDRM v6.0.9: Ultimately failed to decrypt after 0.6 seconds.
    Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/
    Traceback (most recent call last):
    File “calibre_plugins.dedrm.__init__”, line 381, in KindleMobiDecrypt
    File “calibre_plugins.dedrm.k4mobidedrm”, line 216, in GetDecryptedBoo
    k
    File “calibre_plugins.dedrm.mobidedrm”, line 441, in processBook
    DrmException: Cannot decode library or rented ebooks.
    Running file type plugin DeDRM failed with traceback:
    Traceback (most recent call last):
    File “site-packages\calibre\customize\ui.py”, line 154, in _run_filety
    pe_plugins
    File “calibre_plugins.dedrm.__init__”, line 472, in run
    File “calibre_plugins.dedrm.__init__”, line 423, in KindleMobiDecrypt
    DeDRMError: DeDRM v6.0.9: Ultimately failed to decrypt “B00I4A4CX4_EBOK.
    azw4″ after 0.6 seconds with error: Cannot decode library or rented ebooks.
    Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/

    Added Managerial Accounting to db in: 2.35300016403 seconds

  26. Hi there, I am a newbie at all of this I recently was given a kobo for my birthday and there are a few books that I would like to read but they are only available on kindl, so this software would be perfect…, I have downloaded the new calibire and wanted to download the plugin for it link that you provided but when I went to run the file it had the exe file I guess it’s the sites software you said not to download. The page only has the big orange button saying download which on previous posts you had said not to click and I couldn’t find another way to get the zipped file. Is there something I am missing? Thanks

    • Did you UNCHECK the ‘Use our download manager and get recommended downloads” check box before clicking the ‘DOWNLOAD’ button (grey on my system) that’s immediately below the ‘Size: 1.73 MB’ text?

  27. Hi

    Trying to install the 6.0.9 version Calibre Plugin and it brings up the error message “InvalidPlugin: The plugin in u’D:/Temp 2/alfcrypto_src.zip’ is invalid. It does not contain a top-level __init__.py file”

    Below is the debug.

    calibre, version 2.3.0
    ERROR: Unhandled exception: InvalidPlugin:The plugin in u’D:/Temp 2/alfcrypto_src.zip’ is invalid. It does not contain a top-level __init__.py file

    calibre 2.3 [64bit] isfrozen: True is64bit: True
    Windows-7-6.1.7601-SP1 Windows (’64bit’, ‘WindowsPE’)
    (‘Windows’, ‘7’, ‘6.1.7601’)
    Python 2.7.8
    Windows: (‘7′, ‘6.1.7601’, ‘SP1′, ‘Multiprocessor Free’)
    Traceback (most recent call last):
    File “site-packages\calibre\gui2\preferences\plugins.py”, line 316, in add_plugin
    File “site-packages\calibre\customize\ui.py”, line 379, in add_plugin
    File “site-packages\calibre\customize\ui.py”, line 53, in load_plugin
    File “site-packages\calibre\customize\zipplugin.py”, line 188, in load
    File “site-packages\calibre\customize\zipplugin.py”, line 286, in _locate_code
    InvalidPlugin: The plugin in u’D:/Temp 2/alfcrypto_src.zip’ is invalid. It does not contain a top-level __init__.py file

    Appreciate any help.

    Thanks

  28. C:\Program Files\Calibre2\pylib.zip\dateutil\parser.py:339: UnicodeWarning: Unic
    ode equal comparison failed to convert both arguments to Unicode – interpreting
    them as being unequal
    Added Die blendende Klinge: Roman – [Die Licht-Saga 2] (German Edition) to db in
    : 1.31900000572 seconds
    Worker Launch took: 0.256000041962

    Sorry I cant find another tool to post. My calibre drm didn`t work.

    Olaf

    • At a guess, I’d say that something was trying to convert a date and is getting fouled up due to internationalisation issues – German dates are formatted differently to American ones, etc.

      But it is impossible to diagnose this any further without something like a stack trace. Trying to force the language/locale to English *might* work.

  29. Can you guys figure out how to remove the DRM of Yuzu (Barnes and Nobles) textbooks? They’re copyrighted using Adobe’s DRM but idk the Adobe ID that they create after buying the book.

  30. I have a issue with my PDF from Adobe Digital Edition

    calibre 2.3 [64bit] isfrozen: True is64bit: True
    Windows-8-6.2.9200 Windows (’64bit’, ‘WindowsPE’)
    (‘Windows’, ‘8’, ‘6.2.9200’)
    Python 2.7.8
    Windows: (‘8′, ‘6.2.9200’, ”, ‘Multiprocessor Free’)
    Successfully initialized third party plugins: DeDRM && Wiki Reader
    Starting up…
    Started up in 2.47 seconds with 123 books
    Worker Launch took: 0.440999984741
    Job: 1 Read metadata (0 of 1) finished
    Read metadata (0 of 1)
    DeDRM v6.0.9: Trying to decrypt FPGA Prototyping by VHDL Examples Xilinx Spartan-3 Version.pdf
    DeDRM v6.0.9: FPGA Prototyping by VHDL Examples Xilinx Spartan-3 Version.pdf is a PDF ebook
    DeDRM v6.0.9: Ultimately failed to decrypt after 0.4 seconds.
    Read the FAQs at Alf’s blog: http://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 479, in run
    File “calibre_plugins.dedrm.__init__”, line 361, in PDFDecrypt
    DeDRMError: DeDRM v6.0.9: Ultimately failed to decrypt “FPGA Prototyping by VHDL Examples Xilinx Spartan-3 Version.pdf” after 0.4 seconds.
    Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/
    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 347, in get_file_type_metadata
    File “site-packages\calibre\customize\builtins.py”, line 326, in get_metadata
    File “site-packages\calibre\ebooks\metadata\pdf.py”, line 101, in get_metadata
    ValueError: Could not read info dict from PDF

    Added FPGA Prototyping by VHDL Examples Xilinx Spartan-3 Version to db in: 2.1819999218 seconds

  31. Hello

    I have downloaded the latest Version of Calibre (2.3.0),
    afterwards I tried to download the latest Plugin to remove DRM (AZW-File) – 6.0.9
    I got a data–folder named “Version 6.0-9″ but it obviously containend the Plug-in-Version 6.0.8
    (from July 23 2014).
    With this configuration I tried to convert a AZW-Book (see below), but it failed.

    I wonder, what was wrong

    Can you provide help ??

    calibre 2.3 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.8
    Windows: (‘8′, ‘6.2.9200’, ”, ‘Multiprocessor Free’)
    Successfully initialized third party plugins: DeDRM
    Starting up…
    Problem creating accessible interface for: Main(0x526b4c8, name = “MainWindow”)

    Make sure to deploy Qt with accessibility plugins.
    Started up in 0.83 seconds with 67 books
    Worker Launch took: 0.309000015259
    C:\Program Files (x86)\Calibre2\pylib.zip\dateutil\parser.py:339: UnicodeWarning
    : Unicode equal comparison failed to convert both arguments to Unicode – interpr
    eting them as being unequal
    Job: 1 Read metadata (0 of 1) finished
    Non-ASCII text detected. You must set your Console’s font to Lucida Console or C
    onsolas or some other TrueType font to see this text — Read metadata (0 of 1)
    DeDRM v6.0.8: Trying to decrypt Passing B00DXXRHIY_EBOK.azw
    Using Library AlfCrypto Python
    MobiDeDrm v0.41.
    Copyright (c) 2008-2012 The Dark Reverser et al.
    MOBI header version 8, header length 264
    Extra Data Flags: 3
    Decrypting Kindle Format 8 ebook: Passing
    Found 0 keys to try after 0.4 seconds
    Crypto Type is: 2
    DeDRM v6.0.8: Failed to decrypt with error: No key found in 0 keys tried
    .
    DeDRM v6.0.8: Looking for new default Kindle Key after 0.4 seconds
    searching for kinfoFiles in C:\Users\Jrgen\AppData\Local
    Found K4PC 1.9+ kinf2011 file: C:\Users\Jrgen\AppData\Local\Amazon\Kindl
    e\storage\.kinf2011
    Decrypted key file using IDString ‘1055967203’ and UserName ‘Jurgen’
    DeDRM v6.0.8: Found 1 new key
    MobiDeDrm v0.41.
    Copyright (c) 2008-2012 The Dark Reverser et al.
    MOBI header version 8, header length 264
    Extra Data Flags: 3
    Decrypting Kindle Format 8 ebook: Passing
    Error getting PIDs from database default_key_1: utf8
    Traceback (most recent call last):
    File “calibre_plugins.dedrm.kgenpids”, line 255, in getPidList
    File “calibre_plugins.dedrm.kgenpids”, line 202, in getK4Pids
    UnicodeDecodeError: ‘utf8′ codec can’t decode byte 0xfc in position 1: i
    nvalid start byte
    Found 0 keys to try after 0.5 seconds
    Crypto Type is: 2
    DeDRM v6.0.8: Ultimately failed to decrypt after 0.5 seconds.
    Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/
    Traceback (most recent call last):
    File “calibre_plugins.dedrm.__init__”, line 409, in KindleMobiDecrypt
    File “calibre_plugins.dedrm.k4mobidedrm”, line 216, in GetDecryptedBoo
    k
    File “calibre_plugins.dedrm.mobidedrm”, line 469, in processBook
    DrmException: No key found in 0 keys tried.
    Running file type plugin DeDRM failed with traceback:
    Traceback (most recent call last):
    File “site-packages\calibre\customize\ui.py”, line 154, in _run_filety
    pe_plugins
    File “calibre_plugins.dedrm.__init__”, line 471, in run
    File “calibre_plugins.dedrm.__init__”, line 422, in KindleMobiDecrypt
    DeDRMError: DeDRM v6.0.8: Ultimately failed to decrypt “Passing B00DXXRH
    IY_EBOK.azw” after 0.5 seconds with error: No key found in 0 keys tried.
    Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/

    Added Passing to db in: 1.86900019646 seconds
    QTextCursor::setPosition: Position ‘1’ out of range
    QTextCursor::setPosition: Position ‘532’ out of range
    QTextCursor::setPosition: Position ’84’ out of range
    QTextCursor::setPosition: Position ‘373’ out of range
    QTextCursor::setPosition: Position ’34’ out of range
    QTextCursor::setPosition: Position ’74’ out of range
    QTextCursor::setPosition: Position ‘1’ out of range
    QTextCursor::setPosition: Position ’34’ out of range
    QTextCursor::setPosition: Position ‘104’ out of range
    QTextCursor::setPosition: Position ’12’ out of range
    Worker Launch took: 0.365999937057
    Job: 2 Konvertiere Buch 1 von 1 (Passing) finished
    Konvertiere Buch 1 von 1 (Passing)
    C:\Program Files (x86)\Calibre2\pylib.zip\dateutil\parser.py:339: Unicod
    eWarning: Unicode equal comparison failed to convert both arguments to Unicode –
    interpreting them as being unequal
    Resolved conversion options
    calibre version: 2.3.0
    {‘asciiize': False,
    ‘author_sort': None,
    ‘authors': None,
    ‘base_font_size': 0.0,
    ‘book_producer': None,
    ‘change_justification': u’original’,
    ‘chapter': u”//*[((name()='h1' or name()='h2') and re:test(., '\\s*((ch
    apter|book|section|part)\\s+)|((prolog|prologue|epilogue)(\\s+|$))', 'i')) or @c
    lass = 'chapter']“,
    ‘chapter_mark': u’pagebreak’,
    ‘comments': None,
    ‘cover': u’C:\\Users\\JRGEN~1\\AppData\\Local\\Temp\\calibre_keht7b\\lv
    b_lq.jpeg’,
    ‘debug_pipeline': None,
    ‘dehyphenate': True,
    ‘delete_blank_paragraphs': True,
    ‘disable_font_rescaling': False,
    ‘dont_split_on_page_breaks': False,
    ‘duplicate_links_in_toc': False,
    ‘embed_all_fonts': False,
    ‘embed_font_family': None,
    ‘enable_heuristics': False,
    ‘epub_flatten': False,
    ‘epub_inline_toc': False,
    ‘epub_toc_at_end': False,
    ‘expand_css': False,
    ‘extra_css': None,
    ‘extract_to': None,
    ‘filter_css': u”,
    ‘fix_indents': True,
    ‘flow_size': 260,
    ‘font_size_mapping': None,
    ‘format_scene_breaks': True,
    ‘html_unwrap_factor': 0.4,
    ‘input_encoding': None,
    ‘input_profile': ,
    ‘insert_blank_line': False,
    ‘insert_blank_line_size': 0.5,
    ‘insert_metadata': False,
    ‘isbn': None,
    ‘italicize_common_cases': True,
    ‘keep_ligatures': False,
    ‘language': None,
    ‘level1_toc': None,
    ‘level2_toc': None,
    ‘level3_toc': None,
    ‘line_height': 0.0,
    ‘linearize_tables': False,
    ‘margin_bottom': 5.0,
    ‘margin_left': 5.0,
    ‘margin_right': 5.0,
    ‘margin_top': 5.0,
    ‘markup_chapter_headings': True,
    ‘max_toc_links': 50,
    ‘minimum_line_height': 120.0,
    ‘no_chapters_in_toc': False,
    ‘no_default_epub_cover': False,
    ‘no_inline_navbars': False,
    ‘no_svg_cover': False,
    ‘output_profile': ,
    ‘page_breaks_before': u”//*[name()='h1' or name()='h2']“,
    ‘prefer_metadata_cover': False,
    ‘preserve_cover_aspect_ratio': False,
    ‘pretty_print': True,
    ‘pubdate': None,
    ‘publisher': None,
    ‘rating': None,
    ‘read_metadata_from_opf': u’C:\\Users\\JRGEN~1\\AppData\\Local\\Temp\\c
    alibre_keht7b\\4cxhxg.opf’,
    ‘remove_fake_margins': True,
    ‘remove_first_image': False,
    ‘remove_paragraph_spacing': False,
    ‘remove_paragraph_spacing_indent_size': 1.5,
    ‘renumber_headings': True,
    ‘replace_scene_breaks': u”,
    ‘search_replace': ‘[]’,
    ‘series': None,
    ‘series_index': None,
    ‘smarten_punctuation': False,
    ‘sr1_replace': None,
    ‘sr1_search': None,
    ‘sr2_replace': None,
    ‘sr2_search': None,
    ‘sr3_replace': None,
    ‘sr3_search': None,
    ‘start_reading_at': None,
    ‘subset_embedded_fonts': False,
    ‘tags': None,
    ‘timestamp': None,
    ‘title': None,
    ‘title_sort': None,
    ‘toc_filter': None,
    ‘toc_threshold': 6,
    ‘toc_title': None,
    ‘unsmarten_punctuation': False,
    ‘unwrap_lines': True,
    ‘use_auto_toc': False,
    ‘verbose': 2}
    InputFormatPlugin: MOBI Input running
    on C:\Users\JRGEN~1\AppData\Local\Temp\calibre_keht7b\kmyq0x.azw
    Found KF8 MOBI of type ‘standalone’
    Python function terminated unexpectedly
    Passing (Error Code: 1)
    Traceback (most recent call last):
    File “site.py”, line 132, in main
    File “site.py”, line 109, in run_entry_point
    File “site-packages\calibre\utils\ipc\worker.py”, line 195, in main
    File “site-packages\calibre\gui2\convert\gui_conversion.py”, line 31,
    in gui_convert_override
    File “site-packages\calibre\gui2\convert\gui_conversion.py”, line 25,
    in gui_convert
    File “site-packages\calibre\ebooks\conversion\plumber.py”, line 1041,
    in run
    File “site-packages\calibre\customize\conversion.py”, line 241, in __c
    all__
    File “site-packages\calibre\ebooks\conversion\plugins\mobi_input.py”,
    line 43, in convert
    File “site-packages\calibre\ebooks\mobi\reader\mobi8.py”, line 77, in
    __call__
    File “site-packages\calibre\ebooks\mobi\reader\mobi6.py”, line 147, in
    check_for_drm
    calibre.ebooks.DRMError: Passing

    QTextCursor::setPosition: Position ‘274’ out of range
    QTextCursor::setPosition: Position ’12’ out of range

    • I have some books containing a digital watermark and it is a line of text stating that I (my name) bought that book, but it is unencripted. I do not know whether that is what they intend.

  32. Trying to convert a pdf file to a mobi, but is still DRM-ed. Here is the log. Thank you in advance.

    C:\Users\C>calibre-debug -g
    calibre 2.3 isfrozen: True is64bit: False
    Windows-7-6.1.7601-SP1 Windows (’32bit’, ‘WindowsPE’)
    32bit process running on 64bit windows
    (‘Windows’, ‘7’, ‘6.1.7601’)
    Python 2.7.8
    Windows: (‘7′, ‘6.1.7601’, ‘SP1′, ‘Multiprocessor Free’)
    Successfully initialized third party plugins: DeDRM
    Starting up…
    Started up in 0.97 seconds with 5 books
    Worker Launch took: 0.324999809265
    Job: 1 Read metadata (0 of 1) finished
    Non-ASCII text detected. You must set your Console’s font to Lucida Console or C
    onsolas or some other TrueType font to see this text — Read metadata (0 of 1)
    DeDRM v6.0.9: Trying to decrypt Dictionar juridic Roman-Englez.pdf
    DeDRM v6.0.9: Dictionar juridic Roman-Englez.pdf is a PDF ebook
    DeDRM v6.0.9: Ultimately failed to decrypt after 0.2 seconds.
    Read the FAQs at Alf’s blog: http://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_filety
    pe_plugins
    File “calibre_plugins.dedrm.__init__”, line 479, in run
    File “calibre_plugins.dedrm.__init__”, line 361, in PDFDecrypt
    DeDRMError: DeDRM v6.0.9: Ultimately failed to decrypt “Dictionar juridi
    c Roman-Englez.pdf” after 0.2 seconds.
    Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/
    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 347, in get_file_ty
    pe_metadata
    File “site-packages\calibre\customize\builtins.py”, line 326, in get_m
    etadata
    File “site-packages\calibre\ebooks\metadata\pdf.py”, line 101, in get_
    metadata
    ValueError: Could not read info dict from PDF

    Added Dictionar juridic Roman-Englez to db in: 1.14399981499 seconds

  33. Error when I try to customize Calibre Plugin. I am using Windows 7 Home Premium 32 bit and the plugin is a 32 bit process. Please help

    calibre, version 2.3.0
    ERROR: Unhandled exception: AttributeError:’module’ object has no attribute ‘ConfigWidget’

    calibre 2.3 isfrozen: True is64bit: False
    Windows-7-6.1.7601-SP1 Windows (’32bit’, ‘WindowsPE’)
    32bit process running on 64bit windows
    (‘Windows’, ‘7’, ‘6.1.7601’)
    Python 2.7.8
    Windows: (‘7′, ‘6.1.7601’, ‘SP1′, ‘Multiprocessor Free’)
    Successfully initialized third party plugins: DeDRM
    Traceback (most recent call last):
    File “site-packages\calibre\gui2\preferences\plugins.py”, line 292, in customize_plugin
    File “site-packages\calibre\gui2\preferences\plugins.py”, line 370, in modify_plugin
    File “site-packages\calibre\customize\__init__.py”, line 152, in do_user_config
    File “calibre_plugins.dedrm.__init__”, line 496, in config_widget
    AttributeError: ‘module’ object has no attribute ‘ConfigWidget’

  34. Hi, I’ve used de DeDRM Plugin and did exactly as you described,. It says the book has succesfully been decrypted. But I can’t read it. What have I done wrong?

    calibre 2.3 isfrozen: True is64bit: False
    Windows-7-6.1.7601-SP1 Windows (’32bit’, ‘WindowsPE’)
    32bit process running on 64bit windows
    (‘Windows’, ‘7’, ‘6.1.7601’)
    Python 2.7.8
    Windows: (‘7′, ‘6.1.7601’, ‘SP1′, ‘Multiprocessor Free’)
    Successfully initialized third party plugins: DeDRM
    Starting up…
    Started up in 0.62 seconds with 0 books
    Worker Launch took: 0.300000190735
    Job: 1 Read metadata (0 of 1) finished
    Non-ASCII text detected. You must set your Console’s font to Lucida Console or C
    onsolas or some other TrueType font to see this text — Read metadata (0 of 1)
    DeDRM v6.0.9: Trying to decrypt Brainspotting.epub
    DeDRM v6.0.9: Verifying zip archive integrity
    DeDRM v6.0.9: “Brainspotting.epub” is neither an Adobe Adept nor a Barne
    s & Noble encrypted ePub
    DeDRM v6.0.9: Successfully decrypted book after 0.1 seconds

    Thanks.
    Dore

  35. Hi, I am having trouble removing DRM via Calibre… Here is the trace:

    calibre 2.3 [64bit] isfrozen: True is64bit: True
    Windows-8-6.2.9200 Windows (’64bit’, ‘WindowsPE’)
    (‘Windows’, ‘8’, ‘6.2.9200’)
    Python 2.7.8
    Windows: (‘8′, ‘6.2.9200’, ”, ‘Multiprocessor Free’)
    Successfully initialized third party plugins: DeDRM
    Starting up…
    Started up in 0.97 seconds with 21 books
    Worker Launch took: 0.259000062943
    Job: 1 Read metadata (0 of 1) finished
    Non-ASCII text detected. You must set your Console’s font to Lucida Console or C
    onsolas or some other TrueType font to see this text — Read metadata (0 of 1)
    DeDRM v6.0.9: Trying to decrypt Stavba a uzivani nizkoenergetickych a pa
    sivnich domu.pdf
    DeDRM v6.0.9: Stavba a uzivani nizkoenergetickych a pasivnich domu.pdf i
    s a PDF ebook
    DeDRM v6.0.9: Ultimately failed to decrypt after 0.1 seconds.
    Read the FAQs at Alf’s blog: http://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_filety
    pe_plugins
    File “calibre_plugins.dedrm.__init__”, line 479, in run
    File “calibre_plugins.dedrm.__init__”, line 361, in PDFDecrypt
    DeDRMError: DeDRM v6.0.9: Ultimately failed to decrypt “Stavba a uzivani
    nizkoenergetickych a pasivnich domu.pdf” after 0.1 seconds.
    Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/
    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 347, in get_file_ty
    pe_metadata
    File “site-packages\calibre\customize\builtins.py”, line 326, in get_m
    etadata
    File “site-packages\calibre\ebooks\metadata\pdf.py”, line 101, in get_
    metadata
    ValueError: Could not read info dict from PDF

    Added Non-ASCII text detected. You must set your Console’s font to Lucida Consol
    e or Consolas or some other TrueType font to see this text — Stavba a uzivani n
    izkoenergetickych a pasivnich domu to db in: 0.678999900818 seconds

    Thank you very much for your help!

    Radek

  36. Trying to convert an azw3 file into epub using the Calibre plugin, but i get the error message “Cannot convert – This book is locked by DRM”. Have checked the FAQ, seems to be a key problem but don’t know how to fix it. Debug below. Grateful for any help!

    libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
    2014-09-17 21:15:47.037 Calibre[887:507] deliverNotificationWithTitle()
    * Notification delivered.
    calibre Debug log
    calibre 2.3 isfrozen: True is64bit: True
    Darwin-13.3.0-x86_64-i386-64bit Darwin (’64bit’, ”)
    (‘Darwin’, ‘13.3.0’, ‘Darwin Kernel Version 13.3.0: Tue Jun 3 21:27:35 PDT 2014; root:xnu-2422.110.17~1/RELEASE_X86_64′)
    Python 2.7.8
    OSX: (‘10.9.4′, (”, ”, ”), ‘x86_64′)
    Successfully initialized third party plugins: DeDRM
    Starting up…
    Started up in 8.86 seconds with 52 books
    {‘main': u’/dev/disk3s1′} {‘/dev/disk1s1′: ‘/Volumes/calibre-2.3.0′, ‘map auto_home': ‘/home’, ‘map -hosts': ‘/net’, ‘devfs': ‘/dev’, ‘/dev/disk2s2′: ‘/Volumes/Kindle’, ‘/dev/disk0s2′: ‘/’} {‘main': None}
    Job: 1 Get device information started
    DeviceJob: 1 Get device information done, calling callback
    DeviceJob: 1 Get device information callback returned
    Job: 2 Set library information started
    DeviceJob: 2 Set library information done, calling callback
    DeviceJob: 2 Set library information callback returned
    Job: 3 Get list of books on device started
    DEBUG: 0.0 USBMS: Fetching list of books from device. Device= KINDLE2 oncard= None
    DEBUG: 0.0 USBMS: dirs are: /Volumes/Kindle 1/ documents
    DEBUG: 0.2 USBMS: scan from root False /Volumes/Kindle 1/documents
    DEBUG: 0.4 USBMS: count found in cache: 110, count of files in metadata: 111, need_sync: False
    DEBUG: 0.4 USBMS: Finished fetching list of books from device. oncard= None
    DEBUG: 0.4 USBMS: Fetching list of books from device. Device= KINDLE2 oncard= carda
    DEBUG: 0.4 USBMS: Fetching list of books from device. Device= KINDLE2 oncard= cardb
    DeviceJob: 3 Get list of books on device done, calling callback
    DeviceJob: metadata_downloaded: Starting set_books_in_library
    DeviceJob: set_books_in_library: books to process= 111
    DeviceJob: set_books_in_library finished: time= 0.0143628120422
    DeviceJob: metadata_downloaded: updating views
    DeviceJob: metadata_downloaded: syncing
    DeviceJob: metadata_downloaded: refreshing ondevice
    DeviceJob: metadata_downloaded: sending metadata_available signal
    DeviceJob: 3 Get list of books on device callback returned
    Job: 1 Get device information finished
    No details available.
    Job: 2 Set library information finished
    No details available.
    Job: 3 Get list of books on device finished
    No details available.
    Job: 4 Prepare files for transfer from device started
    DeviceJob: 4 Prepare files for transfer from device done, calling callback
    DeviceJob: 4 Prepare files for transfer from device callback returned
    Worker Launch took: 0.0790109634399
    Job: 4 Prepare files for transfer from device finished
    No details available.
    Job: 5 Read metadata (0 of 1) finished
    Read metadata (0 of 1)
    DeDRM v6.0.9: Trying to decrypt Edge of Eternity Book Three of T-asin_B00FKF0F3C-type_EBOK-v_0.azw3
    Using Library AlfCrypto DLL/DYLIB/SO
    MobiDeDrm v0.41.
    Copyright © 2008-2012 The Dark Reverser et al.
    MOBI header version 8, header length 264
    Extra Data Flags: 3
    Decrypting Kindle Format 8 ebook: Edge of Eternity: Book Three of The Century Trilogy
    Found 0 keys to try after 0.1 seconds
    Crypto Type is: 2
    DeDRM v6.0.9: Failed to decrypt with error: No key found in 0 keys tried.
    DeDRM v6.0.9: Looking for new default Kindle Key after 0.1 seconds
    Found k4Mac kinf2011 file: /Users/elin/Library/Application Support/Kindle/storage/.kinf2011
    Decrypted key file using IDString ‘1d4df3428be5′ and UserName ‘elin’
    DeDRM v6.0.9: Found 1 new key
    MobiDeDrm v0.41.
    Copyright © 2008-2012 The Dark Reverser et al.
    MOBI header version 8, header length 264
    Extra Data Flags: 3
    Decrypting Kindle Format 8 ebook: Edge of Eternity: Book Three of The Century Trilogy
    Found 4 keys to try after 0.4 seconds
    Crypto Type is: 2
    DeDRM v6.0.9: Ultimately failed to decrypt after 0.4 seconds.
    Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/
    Traceback (most recent call last):
    File “calibre_plugins.dedrm.__init__”, line 410, in KindleMobiDecrypt
    File “calibre_plugins.dedrm.k4mobidedrm”, line 216, in GetDecryptedBook
    File “calibre_plugins.dedrm.mobidedrm”, line 469, in processBook
    DrmException: No key found in 4 keys tried.
    Running file type plugin DeDRM failed with traceback:
    2014-09-17 21:16:24.393 Calibre[899:507] deliverNotificationWithTitle()
    * Notification delivered.
    Traceback (most recent call last):
    File “site-packages/calibre/customize/ui.py”, line 154, in _run_filetype_plugins
    File “calibre_plugins.dedrm.__init__”, line 472, in run
    File “calibre_plugins.dedrm.__init__”, line 423, in KindleMobiDecrypt
    DeDRMError: DeDRM v6.0.9: Ultimately failed to decrypt “Edge of Eternity Book Three of T-asin_B00FKF0F3C-type_EBOK-v_0.azw3” after 0.4 seconds with error: No key found in 4 keys tried.
    Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/

    Added Edge of Eternity: Book Three of The Century Trilogy to db in: 0.209850072861 seconds
    DeviceJob: set_books_in_library: books to process= 111
    DeviceJob: set_books_in_library finished: time= 0.194782018661
    Worker Launch took: 0.0889449119568
    Job: 6 Convert book 1 of 1 (Edge of Eternity: Book Three of The Century Trilogy) finished
    Convert book 1 of 1 (Edge of Eternity: Book Three of The Century Trilogy)
    Resolved conversion options
    calibre version: 2.3.0
    {‘asciiize': False,
    ‘author_sort': None,
    ‘authors': None,
    ‘base_font_size': 0.0,
    ‘book_producer': None,
    ‘change_justification': u’original’,
    ‘chapter': u”//*[((name()='h1' or name()='h2') and re:test(., '\\s*((chapter|book|section|part)\\s+)|((prolog|prologue|epilogue)(\\s+|$))', 'i')) or @class = 'chapter']“,
    ‘chapter_mark': u’pagebreak’,
    ‘comments': None,
    ‘cover': u’/var/folders/mn/xf19m5vs1k7bg5p9xwh89k2r0000gp/T/calibre_2.3.0_tmp_g_s4Un/VbnKE6.jpeg’,
    ‘debug_pipeline': None,
    ‘dehyphenate': True,
    ‘delete_blank_paragraphs': True,
    ‘disable_font_rescaling': False,
    ‘dont_split_on_page_breaks': False,
    ‘duplicate_links_in_toc': False,
    ‘embed_all_fonts': False,
    ‘embed_font_family': None,
    ‘enable_heuristics': False,
    ‘epub_flatten': False,
    ‘epub_inline_toc': False,
    ‘epub_toc_at_end': False,
    ‘expand_css': False,
    ‘extra_css': None,
    ‘extract_to': None,
    ‘filter_css': u”,
    ‘fix_indents': True,
    ‘flow_size': 260,
    ‘font_size_mapping': None,
    ‘format_scene_breaks': True,
    ‘html_unwrap_factor': 0.4,
    ‘input_encoding': None,
    ‘input_profile': ,
    ‘insert_blank_line': False,
    ‘insert_blank_line_size': 0.5,
    ‘insert_metadata': False,
    ‘isbn': None,
    ‘italicize_common_cases': True,
    ‘keep_ligatures': False,
    ‘language': None,
    ‘level1_toc': None,
    ‘level2_toc': None,
    ‘level3_toc': None,
    ‘line_height': 0.0,
    ‘linearize_tables': False,
    ‘margin_bottom': 5.0,
    ‘margin_left': 5.0,
    ‘margin_right': 5.0,
    ‘margin_top': 5.0,
    ‘markup_chapter_headings': True,
    ‘max_toc_links': 50,
    ‘minimum_line_height': 120.0,
    ‘no_chapters_in_toc': False,
    ‘no_default_epub_cover': False,
    ‘no_inline_navbars': False,
    ‘no_svg_cover': False,
    ‘output_profile': ,
    ‘page_breaks_before': u”//*[name()='h1' or name()='h2']“,
    ‘prefer_metadata_cover': False,
    ‘preserve_cover_aspect_ratio': False,
    ‘pretty_print': True,
    ‘pubdate': None,
    ‘publisher': None,
    ‘rating': None,
    ‘read_metadata_from_opf': u’/var/folders/mn/xf19m5vs1k7bg5p9xwh89k2r0000gp/T/calibre_2.3.0_tmp_g_s4Un/h0CURz.opf’,
    ‘remove_fake_margins': True,
    ‘remove_first_image': False,
    ‘remove_paragraph_spacing': False,
    ‘remove_paragraph_spacing_indent_size': 1.5,
    ‘renumber_headings': True,
    ‘replace_scene_breaks': u”,
    ‘search_replace': ‘[]’,
    ‘series': None,
    ‘series_index': None,
    ‘smarten_punctuation': False,
    ‘sr1_replace': None,
    ‘sr1_search': None,
    ‘sr2_replace': None,
    ‘sr2_search': None,
    ‘sr3_replace': None,
    ‘sr3_search': None,
    ‘start_reading_at': None,
    ‘subset_embedded_fonts': False,
    ‘tags': None,
    ‘timestamp': None,
    ‘title': None,
    ‘title_sort': None,
    ‘toc_filter': None,
    ‘toc_threshold': 6,
    ‘toc_title': None,
    ‘unsmarten_punctuation': False,
    ‘unwrap_lines': True,
    ‘use_auto_toc': False,
    ‘verbose': 2}
    Python function terminated unexpectedly: Edge of Eternity: Book Three of The Century Trilogy
    InputFormatPlugin: MOBI Input running
    on /var/folders/mn/xf19m5vs1k7bg5p9xwh89k2r0000gp/T/calibre_2.3.0_tmp_g_s4Un/A6tLkY.azw3
    Found KF8 MOBI of type ‘standalone’
    Traceback (most recent call last):
    File “/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py”, line 208, in main
    return run_entry_point()
    File “/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py”, line 114, in run_entry_point
    return getattr(pmod, func)()
    File “site-packages/calibre/utils/ipc/worker.py”, line 195, in main
    File “site-packages/calibre/gui2/convert/gui_conversion.py”, line 31, in gui_convert_override
    File “site-packages/calibre/gui2/convert/gui_conversion.py”, line 25, in gui_convert
    File “site-packages/calibre/ebooks/conversion/plumber.py”, line 1041, in run
    File “site-packages/calibre/customize/conversion.py”, line 241, in __call__
    File “site-packages/calibre/ebooks/conversion/plugins/mobi_input.py”, line 43, in convert
    File “site-packages/calibre/ebooks/mobi/reader/mobi8.py”, line 77, in __call__
    File “site-packages/calibre/ebooks/mobi/reader/mobi6.py”, line 147, in check_for_drm
    calibre.ebooks.DRMError: Edge of Eternity: Book Three of The Century Trilogy

    l

    • That book (from the name of the file) doesn’t seem to have come from Kindle for Mac. If it’s from an E-Ink based kindle, you need to enter the Kindle’s serial number in the customisation dialog. Otherwise you need to download through Kindle for Mac and import that copy.

  37. Hello. I used the plugin without any issue on windows but now I moved to linux and the key can not be found. I followed the steps to install K4P through Wine after adding the extra component but it still won’t decrypt my book.

    here is the log
    calibre Journal de débogage
    calibre 1.25 isfrozen: False is64bit: False
    Linux-3.13.0-35-generic-i686-with-Ubuntu-14.04-trusty Linux (’32bit’, ‘ELF’)
    (‘Linux’, ‘3.13.0-35-generic’, ‘#62-Ubuntu SMP Fri Aug 15 01:58:01 UTC 2014′)
    Python 2.7.6
    Linux: (‘Ubuntu’, ‘14.04’, ‘trusty’)
    Starting up…
    Unable to open ~/.mtpz-data for reading, MTPZ disabled.Started up in 19.04 seconds with 0 books
    Worker Launch took: 0.684545040131
    Job: 1 Read metadata (0 of 1) finished
    Read metadata (0 of 1)
    DeDRM v6.0.8: Trying to decrypt B0071B0L0K_EBOK.azw
    Using Library AlfCrypto DLL/DYLIB/SO
    MobiDeDrm v0.41.
    Copyright © 2008-2012 The Dark Reverser et al.
    MOBI header version 8, header length 248
    Extra Data Flags: 3
    Decrypting Kindle Format 8 ebook: Saumon (Picquier poche) (French Edition)
    Found 0 keys to try after 0.2 seconds
    Crypto Type is: 2
    DeDRM v6.0.8: Failed to decrypt with error: No key found in 0 keys tried.
    DeDRM v6.0.8: Looking for new default Kindle Key after 0.2 seconds
    DeDRM v6.0.8: Running kindlekey.py under Wine
    DeDRM v6.0.8: Command line: “wine python.exe “/home/laowai/.config/calibre/plugins/DeDRM/libraryfiles/kindlekey.py” “/home/laowai/.config/calibre/plugins/DeDRM/libraryfiles/winekeysdir””
    fixme:heap:HeapSetInformation (nil) 1 (nil) 0
    fixme:advapi:GetCurrentHwProfileA (0x33fba0) semi-stub
    fixme:heap:HeapSetInformation (nil) 1 (nil) 0
    fixme:win:RegisterDeviceNotificationA (hwnd=0x13ac98, filter=0xe1e934,flags=0x00000001) returns a fake device notification handle!
    fixme:service:EnumServicesStatusW resume handle not supported
    fixme:service:EnumServicesStatusW resume handle not supported
    fixme:heap:HeapSetInformation (nil) 1 (nil) 0
    fixme:heap:HeapSetInformation (nil) 1 (nil) 0
    fixme:advapi:RegisterEventSourceW ((null),L”Bonjour Service”): stub
    fixme:advapi:ReportEventA (0xcafe4242,0x0004,0x0000,0x00000064,(nil),0x0001,0x00000000,0x79e53c,(nil)): stub
    fixme:advapi:ReportEventW (0xcafe4242,0x0004,0x0000,0x00000064,(nil),0x0001,0x00000000,0x12e828,(nil)): stub
    fixme:winsock:WSAIoctl WS_SIO_UDP_CONNRESET stub
    fixme:winsock:WSAIoctl -> SIO_ADDRESS_LIST_CHANGE request: stub
    fixme:iphlpapi:CreateIpForwardEntry (pRoute 0x79e908): stub
    fixme:advapi:ReportEventA (0xcafe4242,0x0004,0x0000,0x00000064,(nil),0x0001,0x00000000,0x79e53c,(nil)): stub
    fixme:advapi:ReportEventW (0xcafe4242,0x0004,0x0000,0x00000064,(nil),0x0001,0x00000000,0x12ece0,(nil)): stub
    fixme:service:EnumServicesStatusW resume handle not supported
    fixme:service:EnumServicesStatusW resume handle not supported
    fixme:advapi:ReportEventA (0xcafe4242,0x0004,0x0000,0x00000064,(nil),0x0001,0x00000000,0x79e53c,(nil)): stub
    fixme:advapi:ReportEventW (0xcafe4242,0x0004,0x0000,0x00000064,(nil),0x0001,0x00000000,0x12ece0,(nil)): stub
    fixme:netapi32:NetGetJoinInformation Semi-stub (null) 0x79e5f4 0x79e5ec
    fixme:winsock:WSAIoctl WS_SIO_UDP_CONNRESET stub
    wine: cannot find L”C:\\windows\\system32\\python.exe”
    DeDRM v6.0.8: Found and decrypted 0 key files
    DeDRM v6.0.8: Ultimately failed to decrypt after 2.0 seconds.
    Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/
    Traceback (most recent call last):
    File “calibre_plugins.dedrm.__init__”, line 380, in KindleMobiDecrypt
    File “calibre_plugins.dedrm.k4mobidedrm”, line 216, in GetDecryptedBook
    File “calibre_plugins.dedrm.mobidedrm”, line 469, in processBook
    DrmException: No key found in 0 keys tried.
    Running file type plugin DeDRM failed with traceback:
    Traceback (most recent call last):
    File “/usr/lib/calibre/calibre/customize/ui.py”, line 154, in _run_filetype_plugins
    nfp = plugin.run(path_to_file)
    File “calibre_plugins.dedrm.__init__”, line 471, in run
    File “calibre_plugins.dedrm.__init__”, line 422, in KindleMobiDecrypt
    DeDRMError: DeDRM v6.0.8: Ultimately failed to decrypt “B0071B0L0K_EBOK.azw” after 2.0 seconds with error: No key found in 0 keys tried.
    Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/
    fixme:advapi:ReportEventA (0xcafe4242,0x0001,0x0000,0x00000064,(nil),0x0001,0x00000000,0x79dd38,(nil)): stub
    fixme:advapi:ReportEventW (0xcafe4242,0x0001,0x0000,0x00000064,(nil),0x0001,0x00000000,0x12ece0,(nil)): stub
    err:eventlog:ReportEventW L”mDNSCoreReceiveResponse: Received from 192.168.1.45:5353 11 Aspire-7110.local. HINFO I6860c20a6LINUX”
    fixme:advapi:ReportEventA (0xcafe4242,0x0001,0x0000,0xInputFormatPlugin: MOBI Input running
    on /home/laowai/Documents/Books/AHN, Do-hyun/Saumon (Picquier poche) (French Edition) (7)/Saumon (Picquier poche) (French Edition) – AHN, Do-hyun.azw
    Found KF8 MOBI of type ‘standalone’
    Traceback (most recent call last):
    File “/usr/lib/calibre/calibre/gui2/ui.py”, line 918, in closeEvent
    self.shutdown(write_settings=False)
    File “/usr/lib/calibre/calibre/gui2/ui.py”, line 862, in shutdown
    self.update_checker.terminate()
    AttributeError: ‘Main’ object has no attribute ‘update_checker’
    00000064,(nil),0x0001,0x00000000,0x79dd3c,(nil)): stub
    fixme:advapi:ReportEventW (0xcafe4242,0x0001,0x0000,0x00000064,(nil),0x0001,0x00000000,0x12ece0,(nil)): stub
    err:eventlog:ReportEventW L”mDNSCoreReceiveResponse: ProbeCount 2; will deregister 4 Aspire-7110.local. Addr 192.168.1.45″
    fixme:advapi:ReportEventA (0xcafe4242,0x0001,0x0000,0x00000064,(nil),0x0001,0x00000000,0x79dcac,(nil)): stub
    fixme:advapi:ReportEventW (0xcafe4242,0x0001,0x0000,0x00000064,(nil),0x0001,0x00000000,0x12ece0,(nil)): stub
    err:eventlog:ReportEventW L”Local Hostname Aspire-7110.local already in use; will try Aspire-7155.local instead”

    Added Saumon (Picquier poche) (French Edition) to db in: 3.68559598923 seconds
    Worker Launch took: 0.501256942749

    • To be able to get the key needed from the Wine installation, you must install Python (& I think Pycrypto too) under your wine installation. I think there are instructions on this in the readme.

      • Hello Paul.
        Yes it works. I misread the readme file and thought you had these were refering to other DRM types.
        Thank you and sorry for the trouble.

  38. Edit to last post: It has been working fine till this one, all the python stuff is installed in the wine folder. This is the 1st one I have done since the v2 of Calibre and the 1st with 6.09

      • It looks like it was moderated. I had posted a log which had an error relating to wine saving in my ~/.config/calibre etc folder. Basically it didn’t save the key file so the undrm didn’t happen.

        • the log:
          Job: 1 Read metadata (0 of 1) finished
          Read metadata (0 of 1)
          DeDRM v6.0.9: Trying to decrypt B005JE1K9M_EBOK.azw
          Using Library AlfCrypto DLL/DYLIB/SO
          MobiDeDrm v0.41.
          Copyright © 2008-2012 The Dark Reverser et al.
          MOBI header version 8, header length 264
          Extra Data Flags: 3
          Decrypting Kindle Format 8 ebook: Assassin’s Apprentice (The Farseer Trilogy, Book 1)
          Found 2 keys to try after 0.0 seconds
          Crypto Type is: 2
          DeDRM v6.0.9: Failed to decrypt with error: No key found in 2 keys tried.
          DeDRM v6.0.9: Looking for new default Kindle Key after 0.0 seconds
          DeDRM v6.0.9: Running kindlekey.py under Wine
          DeDRM v6.0.9: Command line: “WINEPREFIX=”/home/hairybiker/.wine” wine python.exe “/home/hairybiker/.config/calibre/plugins/DeDRM/libraryfiles/kindlekey.py” “/home/hairybiker/.config/calibre/plugins/DeDRM/libraryfiles/winekeysdir””
          kindlekey.py v1.9
          Copyright © 2010-2013 some_updates and Apprentice Alf
          searching for kinfoFiles in C:\users\hairybiker\Local Settings\Application Data
          Found K4PC 1.9+ kinf2011 file: C:\users\hairybiker\Local Settings\Application Data\Amazon\Kindle\storage\.kinf2011
          Decrypted key file using IDString ‘0’ and UserName ‘hairybiker’
          Traceback (most recent call last):
          File “/home/hairybiker/.config/calibre/plugins/DeDRM/libraryfiles/kindlekey.py”, line 1935, in
          sys.exit(cli_main())
          File “/home/hairybiker/.config/calibre/plugins/DeDRM/libraryfiles/kindlekey.py”, line 1876, in cli_main
          if not getkey(outpath, files):
          File “/home/hairybiker/.config/calibre/plugins/DeDRM/libraryfiles/kindlekey.py”, line 1813, in getkey
          with file(outfile, ‘w’) as keyfileout:
          IOError: [Errno 2] No such file or directory: u’I:\\home\\hairybiker\\.config\\calibre\\plugins\\DeDRM\\libraryfiles\\winekeysdir’
          DeDRM v6.0.9: Found and decrypted 0 key files
          DeDRM v6.0.9: Ultimately failed to decrypt after 0.5 seconds.

          The folder exists but I: is already /home/hairybiker

          • I think the problem is the IDString ‘0’. I seem to remember some comments about the disk ID in wine sometimes being 0 by default sometimes, which messes up the decryption. You’ll need to give the disk ID some non-zero value, unregister, uninstall and reinstall Kindle for PC, and re-register it. And re-download your books. There might be something in the readme about this.

            • Added a serial and an id in wine. Removed/unlinked & replaced Kindle for pc. still same error

              URLS: ['file:///home/hairybiker/My%20Kindle%20Content/B005JE1K9M_EBOK.azw']
              Paths: [u'/home/hairybiker/My Kindle Content/B005JE1K9M_EBOK.azw']
              Extensions: frozenset([u'azw'])
              SMART_DEV ( 2.15: 1.023) run All IP addresses {‘lo': [{'peer': '127.0.0.1', 'netmask': '255.0.0.0', 'addr': '127.0.0.1'}], ‘eth0′: [{'broadcast': '192.168.1.255', 'netmask': '255.255.255.0', 'addr': '192.168.1.67'}]}
              Worker Launch took: 0.278400182724
              Job: 1 Read metadata (0 of 1) finished
              Read metadata (0 of 1)
              DeDRM v6.0.9: Trying to decrypt B005JE1K9M_EBOK.azw
              Using Library AlfCrypto DLL/DYLIB/SO
              MobiDeDrm v0.41.
              Copyright © 2008-2012 The Dark Reverser et al.
              MOBI header version 6, header length 264
              Extra Data Flags: 3
              Decrypting Mobipocket 6 ebook: Assassin’s Apprentice (The Farseer Trilogy, Book 1)
              Found 2 keys to try after 0.0 seconds
              Crypto Type is: 2
              DeDRM v6.0.9: Failed to decrypt with error: No key found in 2 keys tried.
              DeDRM v6.0.9: Looking for new default Kindle Key after 0.0 seconds
              DeDRM v6.0.9: Running kindlekey.py under Wine
              DeDRM v6.0.9: Command line: “WINEPREFIX=”/home/hairybiker/.wine” wine python.exe “/home/hairybiker/.config/calibre/plugins/DeDRM/libraryfiles/kindlekey.py” “/home/hairybiker/.config/calibre/plugins/DeDRM/libraryfiles/winekeysdir””
              kindlekey.py v1.9
              Copyright © 2010-2013 some_updates and Apprentice Alf
              searching for kinfoFiles in C:\users\hairybiker\Local Settings\Application Data
              Found K4PC 1.9+ kinf2011 file: C:\users\hairybiker\Local Settings\Application Data\Amazon\Kindle\storage\.kinf2011
              Found K4PC kindle.info file: C:\users\hairybiker\Local Settings\Application Data\Amazon\Kindle For PC\{AMAwzsaPaaZAzmZzZQzgZCAkZ3AjA_AY}\kindle.info
              Decrypted key file using IDString ‘305419896’ and UserName ‘hairybiker’
              Decrypted key file using IDString ‘305419896’ and UserName ‘hairybiker’
              Traceback (most recent call last):
              File “/home/hairybiker/.config/calibre/plugins/DeDRM/libraryfiles/kindlekey.py”, line 1935, in
              sys.exit(cli_main())
              File “/home/hairybiker/.config/calibre/plugins/DeDRM/libraryfiles/kindlekey.py”, line 1876, in cli_main
              if not getkey(outpath, files):
              File “/home/hairybiker/.config/calibre/plugins/DeDRM/libraryfiles/kindlekey.py”, line 1813, in getkey
              with file(outfile, ‘w’) as keyfileout:
              IOError: [Errno 2] No such file or directory: u’I:\\home\\hairybiker\\.config\\calibre\\plugins\\DeDRM\\libraryfiles\\winekeysdir’
              DeDRM v6.0.9: Found and decrypted 0 key files
              DeDRM v6.0.9: Ultimately failed to decrypt after 0.5 seconds.
              Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/
              Traceback (most recent call last):
              File “calibre_plugins.dedrm.__init__”, line 381, in KindleMobiDecrypt
              File “calibre_plugins.dedrm.k4mobidedrm”, line 216, in GetDecryptedBook
              File “calibre_plugins.dedrm.mobidedrm”, line 469, in processBook
              DrmException: No key found in 2 keys tried.
              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 472, in run
              File “calibre_plugins.dedrm.__init__”, line 423, in KindleMobiDecrypt
              DeDRMError: DeDRM v6.0.9: Ultimately failed to decrypt “B005JE1K9M_EBOK.azw” after 0.5 seconds with error: No key found in 2 keys tried.
              Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/

              • A very different error. Last time it couldn’t decrypt the key file. This time it could decrypt the key file, but it couldn’t write it out.

                For some reason I don’t understand it seems to think that your wine installation has an l: drive instead of a C: drive. Or something like that.

                IOError: [Errno 2] No such file or directory: u’I:\\home\\hairybiker\\.config\\calibre\\plugins\\DeDRM\\libraryfiles\\winekeysdir’

                is the vital bit of the log. Clearly it’s something to do with your configuration of wine, but we’ve now got beyond my competance.

              • Oh. I’ve just re-read both logs again, and you’re right it is the same error. It’s something weird in your wine config. Sorry I didn’t spot it earlier. I don’t know how to fix that.

                • As I said I: points to my home folder. I think it should be I:\\.config\\calibre\\plugins\\DeDRM\\libraryfiles\\winekeysdir not I:\\home\\hairybiker\\.config\\calibre\\plugins\\DeDRM\\libraryfiles\\winekeysdir.
                  If it wants the full path then it should be z: which is my root folder.
                  It does exist (the folder) and as I said it used to work with Calibre <2 and 6.07 which was the one I was using before the updates.
                  Is there anyway to patch this to use Z not I?

                  • I really don’t know. I’ve never used the Linux/wine in ernest, I only once set one up following the readme. And in that case I think I certainly only had a c: drive.

                    If you’re Linuxy enough to be setting up wine in a complex manner, I think it’ll be up to you to work out how to configure things to work with it.

                    Alternatively, you could set up a simple, separate wine system. Or perhaps try running the key generation manually under wine and then import the key manually into your linux calibre.

                    • This is a simple wine install, I didn’t add any drives to it, I only have 2 programs installed in it, with the addition of the python stuff needed for this. I can try recreating a new wine install and see if it fixes it.
                      How would I go about generating and adding the key manually?

                    • Bearing in mind that I haven’t done this….

                      You’d need to open a command line window and enter the commands from the log:

                      WINEPREFIX=”/home/hairybiker/.wine

                      wine python.exe “/home/hairybiker/.config/calibre/plugins/DeDRM/libraryfiles/kindlekey.py” “/home/hairybiker/.config/calibre/plugins/DeDRM/libraryfiles/winekeysdir”

                      Although, obviously(?), changing the last parameter to be a directory path that works.

                  • OK manually running it generated 2 key files and allowed me to import the book. Still get the error but at least the book is readable now.

  39. I imported Kindle .azw to Calibre (plug in already installed). However, when I converted it to PDF, got this error. Please help. Thanks.
    ______
    calibre, version 2.3.0 (darwin, isfrozen: True)
    Conversion Error: Failed: Convert book 1 of 1 (B00AJVC9D6 EBOK)

    Convert book 1 of 1 (B00AJVC9D6 EBOK)
    Resolved conversion options
    calibre version: 2.3.0
    {‘asciiize': False,
    ‘author_sort': None,
    ‘authors': None,
    ‘base_font_size': 0.0,
    ‘book_producer': None,
    ‘change_justification': u’original’,
    ‘chapter': u”//*[((name()='h1' or name()='h2') and re:test(., '\\s*((chapter|book|section|part)\\s+)|((prolog|prologue|epilogue)(\\s+|$))', 'i')) or @class = 'chapter']“,
    ‘chapter_mark': u’pagebreak’,
    ‘comments': None,
    ‘cover': None,
    ‘custom_size': None,
    ‘debug_pipeline': None,
    ‘dehyphenate': True,
    ‘delete_blank_paragraphs': True,
    ‘disable_font_rescaling': False,
    ‘duplicate_links_in_toc': False,
    ‘embed_all_fonts': False,
    ‘embed_font_family': None,
    ‘enable_heuristics': False,
    ‘expand_css': False,
    ‘extra_css': None,
    ‘filter_css': u”,
    ‘fix_indents': True,
    ‘font_size_mapping': None,
    ‘format_scene_breaks': True,
    ‘html_unwrap_factor': 0.4,
    ‘input_encoding': None,
    ‘input_profile': ,
    ‘insert_blank_line': False,
    ‘insert_blank_line_size': 0.5,
    ‘insert_metadata': False,
    ‘isbn': None,
    ‘italicize_common_cases': True,
    ‘keep_ligatures': False,
    ‘language': None,
    ‘level1_toc': None,
    ‘level2_toc': None,
    ‘level3_toc': None,
    ‘line_height': 0.0,
    ‘linearize_tables': False,
    ‘margin_bottom': 5.0,
    ‘margin_left': 5.0,
    ‘margin_right': 5.0,
    ‘margin_top': 5.0,
    ‘markup_chapter_headings': True,
    ‘max_toc_links': 50,
    ‘minimum_line_height': 120.0,
    ‘no_chapters_in_toc': False,
    ‘no_inline_navbars': False,
    ‘old_pdf_engine': False,
    ‘output_profile': ,
    ‘override_profile_size': False,
    ‘page_breaks_before': u”//*[name()='h1' or name()='h2']“,
    ‘paper_size': u’letter’,
    ‘pdf_add_toc': False,
    ‘pdf_default_font_size': 20,
    ‘pdf_footer_template': None,
    ‘pdf_header_template': None,
    ‘pdf_mark_links': False,
    ‘pdf_mono_family': u’Courier New’,
    ‘pdf_mono_font_size': 16,
    ‘pdf_page_numbers': False,
    ‘pdf_sans_family': u’Helvetica’,
    ‘pdf_serif_family': u’Times New Roman’,
    ‘pdf_standard_font': u’serif’,
    ‘prefer_metadata_cover': False,
    ‘preserve_cover_aspect_ratio': False,
    ‘pretty_print': False,
    ‘pubdate': None,
    ‘publisher': None,
    ‘rating': None,
    ‘read_metadata_from_opf': u’/var/folders/bn/466qtd1d2tz6dz91ljd7hl1c0000gp/T/calibre_2.3.0_tmp_RB0MtU/_7FysU.opf’,
    ‘remove_fake_margins': True,
    ‘remove_first_image': False,
    ‘remove_paragraph_spacing': False,
    ‘remove_paragraph_spacing_indent_size': 1.5,
    ‘renumber_headings': True,
    ‘replace_scene_breaks': u”,
    ‘search_replace': ‘[]’,
    ‘series': None,
    ‘series_index': None,
    ‘smarten_punctuation': False,
    ‘sr1_replace': None,
    ‘sr1_search': None,
    ‘sr2_replace': None,
    ‘sr2_search': None,
    ‘sr3_replace': None,
    ‘sr3_search': None,
    ‘start_reading_at': None,
    ‘subset_embedded_fonts': False,
    ‘tags': None,
    ‘timestamp': None,
    ‘title': None,
    ‘title_sort': None,
    ‘toc_filter': None,
    ‘toc_threshold': 6,
    ‘toc_title': None,
    ‘uncompressed_pdf': False,
    ‘unit': u’inch’,
    ‘unsmarten_punctuation': False,
    ‘unwrap_lines': True,
    ‘use_auto_toc': False,
    ‘verbose': 2}
    Python function terminated unexpectedly: Unknown book type: ‘APPLICAT’
    InputFormatPlugin: MOBI Input running
    on /var/folders/bn/466qtd1d2tz6dz91ljd7hl1c0000gp/T/calibre_2.3.0_tmp_RB0MtU/wzdG7O.azw
    Traceback (most recent call last):
    File “/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py”, line 208, in main
    return run_entry_point()
    File “/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py”, line 114, in run_entry_point
    return getattr(pmod, func)()
    File “site-packages/calibre/utils/ipc/worker.py”, line 195, in main
    File “site-packages/calibre/gui2/convert/gui_conversion.py”, line 31, in gui_convert_override
    File “site-packages/calibre/gui2/convert/gui_conversion.py”, line 25, in gui_convert
    File “site-packages/calibre/ebooks/conversion/plumber.py”, line 1041, in run
    File “site-packages/calibre/customize/conversion.py”, line 241, in __call__
    File “site-packages/calibre/ebooks/conversion/plugins/mobi_input.py”, line 33, in convert
    File “site-packages/calibre/ebooks/mobi/reader/mobi6.py”, line 82, in __init__
    calibre.ebooks.mobi.MobiError: Unknown book type: ‘APPLICAT’
    —————–

      • Hi Paul, Update: I located the “Import Log”. Please read below. It’s about missing key. But that’s the part I don’t understand even reading the blog. I tried to entered “Default_key” but that did not work. Please advise. Thanks.
        —————
        calibre Debug log
        calibre 2.3 isfrozen: True is64bit: True
        Darwin-13.3.0-x86_64-i386-64bit Darwin (’64bit’, ”)
        (‘Darwin’, ‘13.3.0’, ‘Darwin Kernel Version 13.3.0: Tue Jun 3 21:27:35 PDT 2014; root:xnu-2422.110.17~1/RELEASE_X86_64′)
        Python 2.7.8
        OSX: (‘10.9.4′, (”, ”, ”), ‘x86_64′)
        Successfully initialized third party plugins: DeDRM && KindleUnpack – The Plugin
        Starting up…
        Started up in 24.55 seconds with 3 books
        Worker Launch took: 0.0729811191559
        Job: 1 Read metadata (0 of 1) finished
        Read metadata (0 of 1)
        DeDRM v6.0.9: Trying to decrypt B00AJVC9D6_EBOK.azw
        Using Library AlfCrypto DLL/DYLIB/SO
        MobiDeDrm v0.41.
        Copyright © 2008-2012 The Dark Reverser et al.
        MOBI header version 8, header length 264
        Extra Data Flags: 3
        Decrypting Kindle Format 8 ebook: Behold Our Sovereign God: All Things From Him, Through Him, and To Him
        Found 4 keys to try after 0.0 seconds
        Crypto Type is: 2
        DeDRM v6.0.9: Failed to decrypt with error: No key found in 4 keys tried.
        DeDRM v6.0.9: Looking for new default Kindle Key after 0.0 seconds
        Found k4Mac kinf2011 file: /Users/KimLienDang/Library/Application Support/Kindle/storage/.kinf2011
        Decrypted key file using IDString ‘b5781431035e’ and UserName ‘KimLienDang’
        DeDRM v6.0.9: Ultimately failed to decrypt after 0.3 seconds.
        Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/
        Traceback (most recent call last):
        File “calibre_plugins.dedrm.__init__”, line 381, in KindleMobiDecrypt
        File “calibre_plugins.dedrm.k4mobidedrm”, line 216, in GetDecryptedBook
        File “calibre_plugins.dedrm.mobidedrm”, line 469, in processBook
        DrmException: No key found in 4 keys tried.
        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 472, in run
        File “calibre_plugins.dedrm.__init__”, line 423, in KindleMobiDecrypt
        DeDRMError: DeDRM v6.0.9: Ultimately failed to decrypt “B00AJVC9D6_EBOK.azw” after 0.3 seconds with error: No key found in 4 keys tried.
        Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/

        Added Behold Our Sovereign God: All Things From Him, Through Him, and To Him to db in: 0.868118047714 seconds
        ———————–

        • How odd. Where did you get the book file from? If it was downloaded to your Kindle for Mac installation I would have expected the DRM removal to have worked.

          However, if you copied the book from some other device, that would be why it didn’t work. Try downloading through Kindle for Mac and importing that copy of the book.

      • Hi Paul, I think I got it to work now. I had to de-register, uninstalled Kindle, and re-installed. Now Calibre removes DRM without problem. However, one question: I started Calibre in Debug mode to get the import log file, but this time it did not give me Import Log. Is that because it removed DRM successfully so it has no import log file?

        • If you start in debug mode from a terminal/command window, then the log will appear in that window. If it doesn’t, you may have mis-typed the debug command. A log will still be written to standard output on a successful decryption (since at the time the first bit of the log is written, it’s not known whether the decryption will be successful or not).

  40. Is it possible to use a calibre plugin to remove DRM from KePub books? I know something called obok is supposed to work, but have no idea how to use it. I’ve followed a link to pastebin, but don’t have the knowledge or understanding to proceed.

  41. I had a bit of trouble getting this to work on ubuntu 14.04 with wine. I followed the instructions exactly and installed kindle for pc in wine. It was a fresh clean install so the default prefix was used. I finally had to install python via winetricks and manually path to python with wine and run the command to get this keys manually like this

    wine ~/.wine/drive_c/Python26/python.exe “~/.config/calibre/plugins/DeDRM/libraryfiles/kindlekey.py” “~/.config/calibre/plugins/DeDRM/libraryfiles/winekeysdir”

    I’m not sure why wine wasn’t finding python but it wasn’t.

    After I did this everything works. Thanks for the script and I hope this helps someone else.

  42. Hi!
    After having utilized this software for years now it doesn’t seem to work anymore for me in the previous version. Calibre now lets me know it could not de-DRM the Kindle book.

    When I download the latest version here http://tinyurl.com/8q3t59l Immediately my Emsisoft Anti-Malware puts it in quarantine. When I have it restored to Downloads and click on it Windows 8.1 says it can’t work on this pc and deletes it!

    (If I could attach anything to this post I would make some photographs of what appears on my screen and show it.)

    • The link I posted by mistake was leading to Alf’s site. My intent was to post the link to this one: http://1phads.com/afu.php?
      zoneid=5900

      With apologies.

      It works fine, but -as said- my AV mistakes the file for a Trojan, and Windows 8.1 deletes it. At least on my notebook.

      It would be nice to be able to enjoy it again, as reading Kindle books on my Onyx Boox M92 (9.7″) e-ink is easier on the eyes than on my notebook screen.

      Although I can live with that, so ultimately it’s no biggie. ; )

        • Thank you. No AV warnings this time.

          I unchecked downloading the downloader add on, but still I got this:

          B and N Download Helper

          As well as:

          DRM Key Scipts
          Kindle for Android Patches
          Kobo
          Rocket ebooks
          Scuolabook DRM

          Since I only use this software for Kindle books, what should I use as plugins for Calibre?

            • Thanks again.
              I now see:

              DeDRM Calibre Plugin
              DeDRM Macintosh Application\
              DeDRM Windows Application
              ReadMeFirst

              I guess I need the Calibre one and maybe the Windows one (not using a Mac). Is that right? Or do I only need the Calibre one?

              • I suggest that reading the ReadMeFirst file might answer your questions as well, but if you’re using calibre, you only need the plugin one. The Windows and Macintosh applications are for those not using calibre.

                  • I get this message from Calibre when I try to install the DeDRM plugin:

                    ERROR: Unhandled exception
                    InvalidPlugin The plugin in u’C:/Users/User/
                    Downloads/tools_v6.0.9 zip’ is invalid.
                    It does not contain a top-level__init.__.py file

                    I try to installonly the plugin for Calibre. If I open that file I see a long list of items. But I close that and then only click on DeDRM_plugin.

                    I wonder if it might have something to do with Windows 8.1. I already had to reformat it after installing SpeedFan -for which Windows 8.1 gave the message that it wouldn’t run on this pc. Since I never had a problem with it on XP and 7, I tried in safe mode. That crashed Windows 8.1.

                    Luckily I have a Windows 8.1 disk,and a system backup and incremental ones saved on an external drive with the help of Backupper, a freebie.

                    • tools_v6.0.9.zip is not the plugin. You need to unzip tools_v6.0.9.zip to obtain (among other files) the DeDRM_plugin.zip file. It’s that file you need to install in calibre.

  43. Had a DRM removal issue with this title: Restless by William Boyd. I used the debug version of calibre and here’s the log:

    Microsoft Windows [Version 6.3.9600]
    (c) 2013 Microsoft Corporation. All rights reserved.

    C:\Windows\system32>calibre -debug -g

    C:\Windows\system32>calibre -debug -g

    C:\Windows\system32>calibre-debug -g
    calibre 2.3 [64bit] isfrozen: True is64bit: True
    Windows-8-6.2.9200 Windows (’64bit’, ‘WindowsPE’)
    (‘Windows’, ‘8’, ‘6.2.9200’)
    Python 2.7.8
    Windows: (‘8′, ‘6.2.9200’, ”, ‘Multiprocessor Free’)
    Successfully initialized third party plugins: DeDRM && Inept Epub DeDRM && Kobo
    Utilities
    Starting up…
    DEBUG: 0.0 KoboUtilites::action.py – loading translations
    DEBUG: 0.0 KoboUtilites::dialogs.py – loading translations
    DEBUG: 0.0 KoboUtilites::action.py – loading translations
    DEBUG: 0.5 No Kobo Touch, Glo or Mini appears to be connected
    DEBUG: 0.5 rebuild_menus – self.supports_ratings=False
    Started up in 0.66 seconds with 287 books
    Worker Launch took: 0.109000205994
    Job: 1 Read metadata (0 of 1) finished
    Non-ASCII text detected. You must set your Console’s font to Lucida Console or C
    onsolas or some other TrueType font to see this text — Read metadata (0 of 1)
    DeDRM v6.0.9: Trying to decrypt Restless_B002RZZIXU.azw3
    Using Library AlfCrypto DLL/DYLIB/SO
    MobiDeDrm v0.41.
    Copyright (c) 2008-2012 The Dark Reverser et al.
    MOBI header version 8, header length 264
    Extra Data Flags: 3
    Decrypting Kindle Format 8 ebook: Restless
    Found 2 keys to try after 0.1 seconds
    Crypto Type is: 2
    File is encoded with PID lSUI15H+6D.
    Decrypting. Please wait . . . . . done
    Decryption succeeded after 0.1 seconds
    DeDRM v6.0.9: Successfully decrypted book after 0.1 seconds

    Added Restless to db in: 1.14700007439 seconds
    Worker Launch took: 0.171999931335

    For the record, I’m using the latest version of Calibre and the DeDRM tools on Windows 8.1 x64.

    • That log shows a successful removal of DRM. What makes you think it didn’t work?

      (BTW, you probably shouldn’t have the Inept Epub plugin installed as well as the DeDRM plugin, not that that affects Kindle books.)

  44. Hey guys, I’m using OSX 10.6 on my old mac. Are there older versions of drm removal tool software available that works with calibre?
    Thanks
    Stefan

  45. I cant get it to work
    Microsoft Windows [Version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation. All rights reserved.

    C:\Users\Admin>calibre-debug -g
    calibre 2.3 isfrozen: True is64bit: False
    Windows-7-6.1.7601-SP1 Windows (’32bit’, ‘WindowsPE’)
    32bit process running on 64bit windows
    (‘Windows’, ‘7’, ‘6.1.7601’)
    Python 2.7.8
    Windows: (‘7′, ‘6.1.7601’, ‘SP1′, ‘Multiprocessor Free’)
    Successfully initialized third party plugins: DeDRM
    Starting up…
    Started up in 0.91 seconds with 1 books
    Worker Launch took: 0.236000061035
    Job: 1 Read metadata (0 of 1) finished
    Non-ASCII text detected. You must set your Console’s font to Lucida Console or C
    onsolas or some other TrueType font to see this text — Read metadata (0 of 1)
    DeDRM v6.0.9: Trying to decrypt Conversations with Your Audience A Pract
    ical Guide for Preparing.pdf
    DeDRM v6.0.9: Conversations with Your Audience A Practical Guide for Pre
    paring.pdf is a PDF ebook
    DeDRM v6.0.9: Ultimately failed to decrypt after 0.4 seconds.
    Read the FAQs at Alf’s blog: http://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_filety
    pe_plugins
    File “calibre_plugins.dedrm.__init__”, line 479, in run
    File “calibre_plugins.dedrm.__init__”, line 361, in PDFDecrypt
    DeDRMError: DeDRM v6.0.9: Ultimately failed to decrypt “Conversations wi
    th Your Audience A Practical Guide for Preparing.pdf” after 0.4 seconds.
    Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/
    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 347, in get_file_ty
    pe_metadata
    File “site-packages\calibre\customize\builtins.py”, line 326, in get_m
    etadata
    File “site-packages\calibre\ebooks\metadata\pdf.py”, line 101, in get_
    metadata
    ValueError: Could not read info dict from PDF

    Added Conversations with Your Audience A Practical Guide for Preparing to db in:
    1.60299992561 seconds
    Worker Launch took: 0.157999992371
    Added Conversations with Your Audience A Practical Guide for Preparing to db in:
    0.0260000228882 seconds
    Job: 2 Read metadata (0 of 1) finished
    Non-ASCII text detected. You must set your Console’s font to Lucida Console or C
    onsolas or some other TrueType font to see this text — Read metadata (0 of 1)
    DeDRM v6.0.9: Trying to decrypt Conversations with Your Audience A Pract
    ical Guide for Preparing.pdf
    DeDRM v6.0.9: Conversations with Your Audience A Practical Guide for Pre
    paring.pdf is a PDF ebook
    DeDRM v6.0.9: Ultimately failed to decrypt after 0.4 seconds.
    Read the FAQs at Alf’s blog: http://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_filety
    pe_plugins
    File “calibre_plugins.dedrm.__init__”, line 479, in run
    File “calibre_plugins.dedrm.__init__”, line 361, in PDFDecrypt
    DeDRMError: DeDRM v6.0.9: Ultimately failed to decrypt “Conversations wi
    th Your Audience A Practical Guide for Preparing.pdf” after 0.4 seconds.
    Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/
    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 347, in get_file_ty
    pe_metadata
    File “site-packages\calibre\customize\builtins.py”, line 326, in get_m
    etadata
    File “site-packages\calibre\ebooks\metadata\pdf.py”, line 101, in get_
    metadata
    ValueError: Could not read info dict from PDF

    Worker Launch took: 0.168999910355
    Worker Launch took: 0.339999914169

  46. The obok scripts have been turned into a calibre plugin. If you have kobo books to decrypt that aren’t standard ADE ePubs, this should help. It works with the Mac and Windows kobo desktop program, adding a button to the calibre toolbar which gives you a list of all the books available for decryption and import.

    The file in this link IS the plugin. Don’t unzip it before adding it to calibre!

    http://www.datafilehost.com/d/858189ea

    I expect Alf will add this plugin to the standard tools download sometime.

  47. Failed to check for calibre update:
    Worker Launch took: 0.139999866486
    Job: 1 Read metadata (0 of 1) finished
    Non-ASCII text detected. You must set your Console’s font to Lucida Console or C
    onsolas or some other TrueType font to see this text — Read metadata (0 of 1)
    DeDRM v6.0.9: Trying to decrypt H. Mahler Study Aids for SOA C CAS 4, Sp
    ring 2014.pdf
    DeDRM v6.0.9: H. Mahler Study Aids for SOA C CAS 4, Spring 2014.pdf is a
    PDF ebook
    DeDRM v6.0.9: Ultimately failed to decrypt after 0.3 seconds.
    Read the FAQs at Alf’s blog: http://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_filety
    pe_plugins
    File “calibre_plugins.dedrm.__init__”, line 479, in run
    File “calibre_plugins.dedrm.__init__”, line 361, in PDFDecrypt
    DeDRMError: DeDRM v6.0.9: Ultimately failed to decrypt “H. Mahler Study
    Aids for SOA C CAS 4, Spring 2014.pdf” after 0.3 seconds.
    Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/
    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 347, in get_file_ty
    pe_metadata
    File “site-packages\calibre\customize\builtins.py”, line 326, in get_m
    etadata
    File “site-packages\calibre\ebooks\metadata\pdf.py”, line 101, in get_
    metadata
    ValueError: Could not read info dict from PDF

    Added H. Mahler Study Aids for SOA C CAS 4, Spring 2014 to db in: 1.37000012398
    seconds

    • To T Nguyen:

      Go to the customisation dialog of the plugin and create the default ADE key (green +) before deleting the book from calibre and reimporting.

  48. Could someone please reply with DETAILED instructions on setting up the obok plugin, with or without calibre? It seems like all the comments here regarding that are just a tease. MR forums makes it difficult to help by not allowing discussion for DRM removal.

    First step should be where to find the script. The only link I found shows an executable, not a script so I wonder if it is correct. If it is indeed an executable that works in calibre, How do we get it to work in calibre?

    It is very frustrating to see comments that only say “I got it to work!”

    • I downloaded it from the link in a comment here by “Helpful Helper”. I loaded the downloaded zip into calibre as a plugin, and then I got an icon on the task bar (after a restart of calibre). Clicking on the icon got me a list of the books in my Kobo desktop application for import, and I just selected one.

  49. Joey, I’m no expert but I can tell you what I did to install the Calibre plugin – hopefully, I remember all the steps.

    First I opened my Kobo Desktop app and let it sync so that all my Kobo books would be available on my computer. I don’t use the app much but I think the plugin uses the library from the app to get the book files. All of the Kobo books I have were also available as downloadable epubs (I don’t have any kepub-only books to test with), but I think that when they’re synced to the Kobo desktop app they’re all automatically downloaded as kepubs. On my computer the books are stored in C:\Users\Sue\AppData\Local\Kobo\Kobo Desktop Edition\kepub.

    I clicked on the link in Helpful Helper’s post which brought me to a download screen. I don’t have any ad blockers installed so there were two download buttons showing and a checked box that said to use a download manager. I UNCHECKED the manager box and then clicked on the smaller of the download boxes (it was on the left side) and saved the obok_plugin.zip to my computer.

    Then I opened Calibre (I have version 2.3) and clicked on Preferences. On the next screen I clicked on Plugins under Advanced. On the next screen I clicked on Load plugin from file and navigated to where I had stored the zip file and selected it. After it installed (it appears under the User Interface Action plugins) I closed and reopened Calibre and the obok icon appeared at the top right of my Calbre screen.

    To use it, I click on the new obok icon and it gives me a list of book files to choose from. I believe it is every book in my Kobo desktop library but it doesn’t appear to be in any particular order so I have to scroll through the list to find the book I want. I select a book and it gets the file, strips off the DRM, converts it to epub and adds it to Calibre.

    I hope someone will correct this if I got anything wrong.

  50. Hi, I am having trouble removing DRM from PDF. Appreciate If someone could help me. Here is the log:

    Microsoft Windows [Version 6.2.9200]
    (c) 2012 Microsoft Corporation. All rights reserved.

    C:\Users\Pablo>calibre-debug -g
    calibre 2.3 [64bit] isfrozen: True is64bit: True
    Windows-8-6.2.9200 Windows (’64bit’, ‘WindowsPE’)
    (‘Windows’, ‘8’, ‘6.2.9200’)
    Python 2.7.8
    Windows: (‘8′, ‘6.2.9200’, ”, ‘Multiprocessor Free’)
    Successfully initialized third party plugins: DeDRM
    Starting up…
    Started up in 1.88 seconds with 34 books
    Worker Launch took: 0.240000009537
    Job: 1 Read metadata (0 of 1) finished
    Non-ASCII text detected. You must set your Console’s font to Lucida Console or C
    onsolas or some other TrueType font to see this text — Read metadata (0 of 1)
    DeDRM v6.0.9: Trying to decrypt Neuromarketing.pdf
    DeDRM v6.0.9: Neuromarketing.pdf is a PDF ebook
    DeDRM v6.0.9: Ultimately failed to decrypt after 0.4 seconds.
    Read the FAQs at Alf’s blog: http://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_filety
    pe_plugins
    File “calibre_plugins.dedrm.__init__”, line 479, in run
    File “calibre_plugins.dedrm.__init__”, line 361, in PDFDecrypt
    DeDRMError: DeDRM v6.0.9: Ultimately failed to decrypt “Neuromarketing.p
    df” after 0.4 seconds.
    Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/
    Traceback (most recent call last):
    File “site-packages\calibre\utils\ipc\simple_worker.py”, line 274, in
    main
    File “site-packages\calibre\ebooks\metadata\pdf.py”, line 33, in read_
    info
    WindowsError: [Error 5] Access is denied: u’C:\\Users\\Pablo\\AppData\\L
    ocal\\Temp\\calibre_itnams\\14ywl4_pdf_metadata_read’

    Traceback (most recent call last):
    File “site-packages\calibre\customize\ui.py”, line 347, in get_file_ty
    pe_metadata
    File “site-packages\calibre\customize\builtins.py”, line 326, in get_m
    etadata
    File “site-packages\calibre\ebooks\metadata\pdf.py”, line 94, in get_m
    etadata
    RuntimeError: Failed to run pdfinfo

    Added Non-ASCII text detected. You must set your Console’s font to Lucida Consol
    e or Consolas or some other TrueType font to see this text — Neuromarketing to
    db in: 2.18300008774 seconds

    • You need to go into the plugin’s customisation dialog and add the default ADE key by clicking the green + in the appropriate dialog.

        • Run calibre. Preferences Menu. Change calibre behaviour. Plugins. Show only user installed plugins. File Type Plugins. DeDRM plugin. Customize plugin button. Adobe Digital Editions button. Green + button.

          That should add the default ADE key to the plugin’s preferences. The delete the book in question from calibre and re-import it. If that doesn’t work, post another log.

  51. I am getting this message when trying to import a bbok.

    calibre 1.27 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.5
    Windows: (‘8′, ‘6.2.9200’, ”, ‘Multiprocessor Free’)
    Starting up…
    Started up in 0.69 seconds with 714 books
    Worker Launch took: 0.0880000591278
    Job: 1 Read metadata (0 of 1) finished
    Non-ASCII text detected. You must set your Console’s font to Lucida Console or C
    onsolas or some other TrueType font to see this text — Read metadata (0 of 1)
    DeDRM v6.0.8: Trying to decrypt The Target.epub
    DeDRM v6.0.8: Verifying zip archive integrity
    DeDRM v6.0.8: “The Target.epub” is neither an Adobe Adept nor a Barnes &
    Noble encrypted ePub
    DeDRM v6.0.8: Successfully decrypted book after 0.1 seconds

    Added The Target to db in: 0.0120000839233 seconds
    Worker Launch took: 0.085000038147

  52. I clicked on the download link in the post that said 6.09 Posted — the top post on this blog. That link took me to what looked like a download locations. I don’t believe it had anything about using download manager. But when I clicked on the download button, it took me to register for some game called Wizard 101. I did it twice, thinking I had done something wrong but both times i wound up in the same place. I think the download link needs to be fixed. I eventually found another place to do the download — not sure how I got there but it worked.

    Thanks for the great tools!

  53. Can’t convert AZW3 book downloaded from here:

    http://nyupress.org/books/9781479880782/

    A good test subject, as it only costs $1.99

    Latest plugin is installed in Calibre 2.4.0 (latest), and Kindle serial number has been properly entered in the plug-in’s settings.
    Cannot import from either Kindle device or from saved copy as downloaded from Amazon to PC disk.
    I get the “Cannot Convert” error message from Calibre.

    • Double-check the serial number is right. It must be an E-Ink based Kindle (e.g. Paperwhite). Post a log of the import (see FAQs).

  54. [FIX OSX]
    open file “tools_v6.0.9/DeDRM_Macintosh_Application/DeDRM.app/Contents/Info.plist” with TextEdit and delete the ‘w’ at line 19:
    replace
    w
    with

  55. Have successfully decrypted Barnes and Noble Nook books in the past, but today, seem to be stymied.

    Using Windows 7, Calibre version 2.4 (the latest), DeDRM 6.0.9. Recently updated default credit card number at B&N (old card was compromised), name on account hasn’t changed. Name and CC number in the plug-in are correct; I triple-checked. Downloaded ebook TODAY via Nook for PC. Still will not decrypt. Debug file pasted below. Any enlightenment? Thanks.

    Microsoft Windows [Version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation. All rights reserved.

    C:\Users\Carolyn>calibre-debug -g
    calibre 2.4 isfrozen: True is64bit: False
    Windows-7-6.1.7601-SP1 Windows (’32bit’, ‘WindowsPE’)
    32bit process running on 64bit windows
    (‘Windows’, ‘7’, ‘6.1.7601’)
    Python 2.7.8
    Windows: (‘7′, ‘6.1.7601’, ‘SP1′, ‘Multiprocessor Free’)
    Successfully initialized third party plugins: DeDRM && K4PC, K4Mac, Kindle Mobi
    and Topaz DeDRM && Inept Epub DeDRM && Inept PDF DeDRM && eReader PDB 2 PML && B
    arnes & Noble
    Starting up…
    INFO:cherrypy.error:[28/Sep/2014:13:42:06] ENGINE Bus STARTING
    INFO:cherrypy.error:[28/Sep/2014:13:42:06] ENGINE Started monitor thread ‘_Timeo
    utMonitor’.
    Started up in 6.87 seconds with 0 books
    INFO:cherrypy.error:[28/Sep/2014:13:42:07] ENGINE Serving on 0.0.0.0:8080
    INFO:cherrypy.error:[28/Sep/2014:13:42:09] ENGINE Bus STARTED
    Worker Launch took: 2.10599994659
    Job: 1 Read metadata (0 of 1) finished
    Non-ASCII text detected. You must set your Console’s font to Lucida Console or C
    onsolas or some other TrueType font to see this text — Read metadata (0 of 1)
    DeDRM v6.0.9: Trying to decrypt theharbinger_9781616386115.epub
    DeDRM v6.0.9: Verifying zip archive integrity
    DeDRM v6.0.9: “theharbinger_9781616386115.epub” is a secure Barnes & Nob
    le ePub
    DeDRM v6.0.9: Trying Encryption key Barnes and Noble XX-XX-XX
    Could not decrypt i5zq9k.epub because of an exception:
    Traceback (most recent call last):
    File “calibre_plugins.dedrm.ignobleepub”, line 278, in decryptBook
    File “calibre_plugins.dedrm.ignobleepub”, line 209, in __init__
    File “calibre_plugins.dedrm.ignobleepub”, line 180, in __init__
    File “site-packages\pycrypto-2.6.1-py2.7-win32.egg\Crypto\Cipher\AES.p
    y”, line 95, in new
    File “site-packages\pycrypto-2.6.1-py2.7-win32.egg\Crypto\Cipher\AES.p
    y”, line 59, in __init__
    File “site-packages\pycrypto-2.6.1-py2.7-win32.egg\Crypto\Cipher\block
    algo.py”, line 141, in __init__
    ValueError: Key cannot be the null string

    DeDRM v6.0.9: Failed to decrypt with key Barnes and Noble XX-XX-XX after
    1.0 seconds
    DeDRM v6.0.9: Ultimately failed to decrypt after 1.0 seconds.
    Read the FAQs at Alf’s blog: http://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_filety
    pe_plugins
    File “calibre_plugins.dedrm.__init__”, line 483, in run
    File “calibre_plugins.dedrm.__init__”, line 181, in ePubDecrypt
    DeDRMError: DeDRM v6.0.9: Ultimately failed to decrypt “theharbinger_978
    1616386115.epub” after 1.0 seconds.
    Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/
    IneptEpub: Using pycrypto.
    IneptEpub: Calibre configuration directory = C:\Users\Carolyn\AppData\Ro
    aming\calibre
    IneptEpub: Keyfile calibre-adeptkey.der found in config folder.
    IneptEpub: Encryption key invalid… trying others.
    Running file type plugin Inept Epub DeDRM failed with traceback:
    Traceback (most recent call last):
    File “site-packages\calibre\customize\ui.py”, line 154, in _run_filety
    pe_plugins
    File “calibre_plugins.ineptepub.__init__”, line 475, in run
    ADEPTError: IneptEpub – Ultimately failed to decrypt

    Added The Harbinger to db in: 3.73600006104 seconds
    Worker Launch took: 1.0649998188

    • In addition to the above, I just added back in two different old credit card numbers, as well as three different old gift card numbers, which between them should cover any and all ebook purchases I ever made at Barnes and Noble. Now with a total of 6 B&N key files. After adding them, I hit OK, close, apply and close all in proper sequence. Re-imported the ebook file. STILL will not decrypt.

      Since I downloaded the book to the computer today and the first key file I tried was for the current credit card on file at Barnes & Noble, that would appear to disprove the “credit card on file at time of download” theory.

      Further suggestions?

      • The number will definitely be the default CC# on file at time of download. Use that number, but try variations of your name — all the versions in your account. Just because you only changed the your number, B&N could still have decided to use a different name with the new number.

  56. I haven’t even gotten to the dialogue part. I’m trying to D-DRM my Nook books, without success. I’ve put in my default credit card number, all kinds of variations of my name and nothing is happening. Do you know wheter it is only the default card that needs to be entered, or do I have to enter expired cards from my past BN book purchases?

    • Holly,

      Use the name on your BN account. Exactly. Then you must use the cc # you purchased the book with or the default cc# at the the time of purchase if you used a gift card.

      You name on the credit card is irrelavent. Use the name on the BN account.

    • I had the same issue re decrypting of BN books after I changed cc. The solution is to create a key for the expired credit card you previously had in your BN account when you bought the book that will not decrypt. I’ve had a BN account for quite some time & there have been 3 different cc associated with my account. I created a new BN key each time I changed cards but kept the old ones as well. Neither of the expired cards are in the account anymore but I no longer have problems with decrypting.

    • You need the default CC# at the time of download of the book, along with a name. Th name can be any of your names on your account – the main Account, the shipping address, the billing address or the CC# name. Just try keys with all the different variations present in your account.

  57. Hi gues im trying to dedrm my .pdf

    im running
    Windows 7 x64
    python 2.78
    Pythoncrypto 2.10
    DeDRM 6.0.9

    When i drag my pdf over the .bat file i get FAILED

    heres what it says:

    Processung:…. ****.pdf FAILED
    Complete: Successes: 0, Failures: 1

    • To add my previous post…

      i do not have any adobe reader or whatsoever installed
      The only pdf reader i have on my computer is foxit reader.

      • Then you’ll need to install ADE. The tools get the key from the ADE prefs/settings, so without ADE the tools can’t get the decryption key. You’ll also need to run the key script to get the ADE key and supply that to the decryption script.

        • Thanx for replaying!

          I have now installed ADE, i ran the keyscript and got the ADE key.

          So i tried to dedrm my .pdf again and i got the same error as earlier.

            • Not silly at all :), i never tried opening it with ADE, i just did that and ADE says “Unable to add document” “Errors were encountered in this item”

              When i try to open same document in FOXIT READER it says, “This document is encrypted by an unsupported security handler”

  58. Hi, I’m trying to remove the drm from a .pdf book file downloaded with Adobe Digital Editions using the calibre plugin. File gets imported, but the drm is not removed – I just get a blank pdf. This process worked fine in the past (ie when I installed the most recent calibre and plugin back in July 2014) but doesn’t work today (when I reinstalled OSX on my computer and had to reinstall everything else too). I have no ‘old settings’ to interfere with anything so I’m not sure why it doesn’t work.

    Calibre 2.4.0
    Plugin 6.0.9
    OSX 10.9.4
    Adobe Digital Editions 4.0

    Use of the DeDRM tool removes the DRM just fine (after the already noted “w” removal from info.plist) but I was hoping to have a calibre option.

    I tried to create a calibre log as outlined in the FAQ but calibre 2.4.0 doesn’t have the “command line” checkbox needed? Any help is appreciated, thanks!

    • You need to go to the plugin’s customisation dialog and add the default ADE key to its list of keys by clicking the green + button.

  59. The name on my account at B&N has not changed, but just as an experiment, I went in and retyped my first and last names, no spaces or anything, and clicked “save changes.” I also deleted the default credit card and re-added it as if it were new, being very careful with my typing, and made it the new default. Then I went in and redid my billing address and linked it to the credit card.

    Back over to Nook for PC, where I removed the book from local storage (or whatever they call it) and then hit “download” again. Up pops a message saying to please verify the default payment method in my account. Gaaaaah! Signed out of my account on the web, signed out of the account in Nook for PC, went to sign back in again, and still getting the “verify payment method” message.

    They are not making it easy….

    • Well, you’ll have to work through all that, but I didn’t actually ask you to do any of that, only to try variations of your name in your B&N account – account name, billing address name, shipping address name, CC name, and any other version or copy of your name they might have. Including any honorific like Mr or Miss.

      Once you get it all sorted, things should work again.

      • No, you didn’t ask me to do all that… but since my name has not actually changed, either in real life nor on my online account(s) I thought I’d try re-entering it all, for apparent lack of anything better to do. Unless B&N unilaterally changed something in my name at their end, there is no other version of my name. In an effort to rule out every possibility, I did go through ALL of the possibilities; account name, billing address name and shipping address name, made sure they were all the same, no spaces at the beginning or end of either first or last name, and saved all the changes, and one more time deleted and re-entered the credit card information, again making sure there were no leading or trailing spaces in the name fields, set the card as the default, and linked it to the billing and/or shipping address I had just redone.

        It was then that I went to try to re-download the book in Nook for PC so the latest download would presumably include the “changes” I made in my account. I am still waiting to see if I will be able to get past the “please verify your billing” messages and finally re-download it.

        Meanwhile… is there, perhaps, some common variation on someone’s name that they might be using at their end? For instance, if my name were Mary Smith, what might they do to vary that? Smith Mary? SmithMary? MarySmith? Might they stick a Miss or Ms or Mrs on the front even if I didn’t? Have other folks experienced a unilateral name change or variation at Barnes & Noble’s end, and if so, what form did that take?

        • In all the reports of problems with this, the name has always eventually turned out to be one of the names entered at the B&N site, and the number is the default CC# at time of download.

          I have never heard of B&N changing the form of the name in any way, just that which (account/billing/CC, etc) name they use is unpredictable.

          Have you tried with a book that you’ve had success with previously? (That is, re-downloading it and seeing if you can remove the DRM from the new copy.)

          If all that fails, post another log.

  60. I’m trying to DeDRM a book I just purchased at Barnes & Noble to work on a 3rd Generation Kindle. I am using the most up-to-date Calibre and DeDRM plugin on a 64-bit Windows 7 box. I have also tried on a Vista box but gave up on that one. I entered my Kindle serial number as well as my B&N sign on and CC#. I also created a B&N key with my full name and CC#. I created the 64bit keys from the plug-in set-up page too. Nothing seems to be working. Here is the debug. Someone please help! Thank You!

    C:\Program Files\Calibre2>calibre-debug -g
    calibre 2.4 [64bit] isfrozen: True is64bit: True
    Windows-7-6.1.7601-SP1 Windows (’64bit’, ‘WindowsPE’)
    (‘Windows’, ‘7’, ‘6.1.7601’)
    Python 2.7.8
    Windows: (‘7′, ‘6.1.7601’, ‘SP1′, ‘Multiprocessor Free’)
    Successfully initialized third party plugins: DeDRM
    Starting up…
    Failed to check for calibre update:
    Failed to check for plugin update:
    Started up in 0.70 seconds with 1 books
    Job: 1 Get device information started
    DeviceJob: 1 Get device information done, calling callback
    DeviceJob: 1 Get device information callback returned
    Job: 2 Set library information started
    DeviceJob: 2 Set library information done, calling callback
    DeviceJob: 2 Set library information callback returned
    Job: 3 Get list of books on device started
    DEBUG: 0.0 USBMS: Fetching list of books from device. Device= KINDLE2 oncard= None
    DEBUG: 0.0 USBMS: dirs are: J:\ documents
    DEBUG: 0.1 USBMS: scan from root False J:\documents
    Job: 2 Set library information finished
    No details available.
    Job: 1 Get device information finished
    No details available.
    DEBUG: 0.5 USBMS: count found in cache: 59, count of files in metadata: 59, need_sync: False
    DEBUG: 0.5 USBMS: Finished fetching list of books from device. oncard= None
    DEBUG: 0.5 USBMS: Fetching list of books from device. Device= KINDLE2 oncard= carda
    DEBUG: 0.5 USBMS: Fetching list of books from device. Device= KINDLE2 oncard= cardb
    DeviceJob: 3 Get list of books on device done, calling callback
    DeviceJob: metadata_downloaded: Starting set_books_in_library
    DeviceJob: set_books_in_library: books to process= 59
    DeviceJob: set_books_in_library finished: time= 0.00300002098083
    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.
    Worker Launch took: 0.170000076294
    Job: 4 Read metadata (0 of 1) finished
    Non-ASCII text detected. You must set your Console’s font to Lucida Console or Consolas or some other TrueType font to see this text — Read metadata (0 of 1)
    DeDRM v6.0.9: Trying to decrypt thedeedsofthedisturb_9781780334479.epub
    DeDRM v6.0.9: Verifying zip archive integrity
    DeDRM v6.0.9: “thedeedsofthedisturb_9781780334479.epub” is a secure Barnes & Noble ePub
    DeDRM v6.0.9: Trying Encryption key B&N gmail account XXSEPXX
    Could not decrypt hq1xkf.epub because of an exception:
    Traceback (most recent call last):
    File “calibre_plugins.dedrm.ignobleepub”, line 314, in decryptBook
    File “calibre_plugins.dedrm.ignobleepub”, line 232, in decrypt
    File “calibre_plugins.dedrm.ignobleepub”, line 222, in decompress
    error: Error -3 while decompressing: invalid stored block lengths

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

    DeDRM v6.0.9: Failed to decrypt with key B&N Full Name XXSEPXX after 0.1 seconds
    DeDRM v6.0.9: Ultimately failed to decrypt after 0.1 seconds.
    Read the FAQs at Alf’s blog: http://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 483, in run
    File “calibre_plugins.dedrm.__init__”, line 181, in ePubDecrypt
    DeDRMError: DeDRM v6.0.9: Ultimately failed to decrypt “thedeedsofthedisturb_9781780334479.epub” after 0.1 seconds.
    Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/

    Added The Deeds of the Disturber to db in: 0.288000106812 seconds

    • In addition to first and last name and gmail address I’ve now also tried first name only, last name only, and Mr. Last Name,. I entered the keys and also saved them as “*.b64″ files out of the plug-in customization screen. Although those went to my root user library.

      • You just haven’t found the right combo. The name will be one of the versions of your name in your account at the time of download.

  61. Tried the Calibre DeDRM plugin without success, including in Terminal mode. Message is “Not a zip file.” Here’s the Terminal output:

    calibre, version 0.9.29
    Command line tools installed: Command line tools installed in /usr/binIf you move calibre.app, you have to re-install the command line tools.

    /usr/bin/fetch-ebook-metadata
    /usr/bin/lrf2lrs
    /usr/bin/ebook-convert
    /usr/bin/ebook-meta
    /usr/bin/lrfviewer
    /usr/bin/calibre
    /usr/bin/markdown-calibre
    /usr/bin/calibre-debug
    /usr/bin/calibre-parallel
    /usr/bin/web2disk
    /usr/bin/calibre-server
    /usr/bin/calibre-customize
    /usr/bin/ebook-polish
    /usr/bin/ebook-viewer
    /usr/bin/calibre-smtp
    /usr/bin/lrs2lrf
    /usr/bin/ebook-device
    /usr/bin/calibredb

    I’ve been wrangling this epub for hours. I think I’m ready to give up. :(
    Thanks for the great blog. I’m with you: Down with DRM!

    • I should add that it’s a book given to me by a friend in both pdf and epub format. Neither would open w the password she gave me, and none of the DRM apps I tried worked (reported both formats as broken files). Went through a bunch of them on both Mac (OS 10.6.8) and Windows 7. I’m completely stymied.

      • If it’s a book your friend has made, get a DRM-free copy from your friend. If it’s not, it’s not your copy and you won’t get any help from me in stripping the DRM!

  62. Hi,
    Not sure if this is Calibre or the DeDRM plugin with the issue. I downloaded a graphic novel to my Kindle. It will import, but Calibre shows all blank squares with question marks. I have googled for .azw6 files and calibre, and all topics are flagged as most people use DeDRM. I am not sure what to do to make a graphic novel appear in the library. It will also not convert the azw3 file it creates upon adding to the Library. Is this just something the plugin/Calibre can’t handle yet? The .azw6 is located in the book folder with .sdr, while the .azw3 is in the documents folder.

    Information that might help: Win 7 32bit, DeDRM 6.0.9, Calibre 2.4, using Kindle Paperwhite 2nd gen, via USB. Normal azw3 imports and to .mobi conversion work perfect. Just this 1 book that is a graphic novel is the issue. Only file difference I can find is the .azw6 being the largest file size indicating it contains the images/pages not the actual .azw3.

    Any help making it import / convert is appreciated.

  63. Hi
    I’m not a technical net native at all. Can someone help me by solving my problems.
    I’m aimimg at converting some books from Kindle für PC (.azw) to EBuB.
    As Long as I used my old maschine under OS Windows XP it worked fine using Calibre and the ReDRM Plugin for Calibre

    Now I’m working with Windows 8 and there are several problems
    Having installed the latest Calibre-version 2.4.0 and adding the plugin-version 6.0.8 several books still had DRM when I tried to convert them. I tried removing them from Calibre and re-loading them several times, but no luck.

    Now I thought, this might be due to the older verion of the plugin,. But I cannot succed in installing the latest Version 6.0.9.
    For this – my first – problem the debug is als follows:

    calibre 2.4 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.8
    Windows: (‘8′, ‘6.2.9200’, ”, ‘Multiprocessor Free’)
    Successfully initialized third party plugins: DeDRM
    Starting up…
    Problem creating accessible interface for: Main(0x51205e0, name = “MainWindow”)

    Make sure to deploy Qt with accessibility plugins.
    Started up in 1.10 seconds with 68 books
    QTextCursor::setPosition: Position ’40’ out of range
    QTextCursor::setPosition: Position ‘1’ out of range
    QTextCursor::setPosition: Position ’34’ out of range

    • HI everybody

      the first problem is solved. I obviously just didn’t realise, that the download of Version 6.0.9 had to be actively unzipped.
      Now the integration of the plugin into Calibre went smoothly

    • The second problem will probably be solved by going to the DeDRM prefs and adding in the default ADE key manually (it doesn’t auto-generate it for PDFs)

    • Whoops. Answered the wrong questions. If you’re still having problems importing from Kindle for PC, note that the tools DO NOT work with the Windows 8 Kindle for PC app. You must download and use the “Windows 7″ Kindle for PC application from Amazon’s web site, which works fine on Windows 8.

  64. Tried importing a DRMed PDF, won’t open outside of Adobe Digital Editions even after installing plugins.

    calibre Debug log
    calibre 2.4 [64bit] isfrozen: True is64bit: True
    Windows-Vista-6.0.6002-SP2 Windows (’64bit’, ‘WindowsPE’)
    (‘Windows’, ‘Vista’, ‘6.0.6002’)
    Python 2.7.8
    Windows: (‘Vista’, ‘6.0.6002’, ‘SP2′, ‘Multiprocessor Free’)
    Successfully initialized third party plugins: DeDRM
    Starting up…
    Started up in 27.82 seconds with 2 books
    Worker Launch took: 1.32500004768
    Job: 1 Read metadata (0 of 1) finished
    Read metadata (0 of 1)
    DeDRM v6.0.9: Trying to decrypt A History of Psychologys View of the Good Life.pdf
    DeDRM v6.0.9: A History of Psychologys View of the Good Life.pdf is a PDF ebook
    DeDRM v6.0.9: Ultimately failed to decrypt after 0.2 seconds.
    Read the FAQs at Alf’s blog: http://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 479, in run
    File “calibre_plugins.dedrm.__init__”, line 361, in PDFDecrypt
    DeDRMError: DeDRM v6.0.9: Ultimately failed to decrypt “A History of Psychologys View of the Good Life.pdf” after 0.2 seconds.
    Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/
    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 347, in get_file_type_metadata
    File “site-packages\calibre\customize\builtins.py”, line 326, in get_metadata
    File “site-packages\calibre\ebooks\metadata\pdf.py”, line 101, in get_metadata
    ValueError: Could not read info dict from PDF

    Added A History of Psychologys View of the Good Life to db in: 1.58600020409 seconds

    • The problem will probably be solved by going to the DeDRM prefs and adding in the default ADE key manually (it doesn’t auto-generate it for PDFs)

  65. I am having an issue with the DRM of Adobe PDF just bought from internet. Any comments appreciated. Here is the debug text: (Windows 7 PC running calibre 2.4 with DeDRM v 6.0.9)

    calibre Debug
    calibre 2.4 isfrozen: True is64bit: False
    Windows-7-6.1.7601-SP1 Windows (’32bit’, ‘WindowsPE’)
    32bit process running on 64bit windows
    (‘Windows’, ‘7’, ‘6.1.7601’)
    Python 2.7.8
    Windows: (‘7′, ‘6.1.7601’, ‘SP1′, ‘Multiprocessor Free’)
    Successfully initialized third party plugins: DeDRM
    Starting up…
    Problem creating accessible interface for: Main(0x6a51630, name = “MainWindow”)
    Make sure to deploy Qt with accessibility plugins.
    QTextCursor::setPosition: Position ‘1’ out of range
    QTextCursor::setPosition: Position ‘102’ out of range
    Started up in 6.51 seconds with 1 books
    Worker Launch took: 0.539999961853
    Job: 1 Read metadata (0 of 1) finished
    Read metadata (0 of 1)
    DeDRM v6.0.9: Trying to decrypt ebook.pdf
    DeDRM v6.0.9: ebook.pdf is a PDF ebook
    DeDRM v6.0.9: Ultimately failed to decrypt after 0.1 seconds.
    Read the FAQs at Alf’s blog: http://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 479, in run
    File “calibre_plugins.dedrm.__init__”, line 361, in PDFDecrypt
    DeDRMError: DeDRM v6.0.9: Ultimately failed to decrypt “ebook.pdf” after 0.1 seconds.
    Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/
    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 347, in get_file_type_metadata
    File “site-packages\calibre\customize\builtins.py”, line 326, in get_metadata
    File “site-packages\calibre\ebooks\metadata\pdf.py”, line 101, in get_metadata
    ValueError: Could not read info dict from PDF

    Added ebook to db in: 0.141000032425 seconds

  66. Good morning. Having followed your directions I’ve tried converting a Kindle book (AZW) to an HTMLZ file without success. Here’s my debug file. Any insights? Thank you for your time!
    calibre Debug log
    calibre 2.4 isfrozen: True is64bit: False
    Windows-7-6.1.7601-SP1 Windows (’32bit’, ‘WindowsPE’)
    32bit process running on 64bit windows
    (‘Windows’, ‘7’, ‘6.1.7601’)
    Python 2.7.8
    Windows: (‘7′, ‘6.1.7601’, ‘SP1′, ‘Multiprocessor Free’)
    Successfully initialized third party plugins: DeDRM
    Starting up…
    Problem creating accessible interface for: BooksView(0x8718cf8, name = “library_view”)
    Make sure to deploy Qt with accessibility plugins.
    Started up in 4.62 seconds with 1 books
    QTextCursor::setPosition: Position ‘1’ out of range
    QTextCursor::setPosition: Position ‘451’ out of range
    QTextCursor::setPosition: Position ’62’ out of range
    QTextCursor::setPosition: Position ‘342’ out of range
    QTextCursor::setPosition: Position ‘171’ out of range
    QTextCursor::setPosition: Position ’83’ out of range
    QTextCursor::setPosition: Position ’30’ out of range
    QTextCursor::setPosition: Position ‘1’ out of range
    QTextCursor::setPosition: Position ‘451’ out of range
    QTextCursor::setPosition: Position ’62’ out of range
    QTextCursor::setPosition: Position ‘342’ out of range
    QTextCursor::setPosition: Position ’83’ out of range
    QTextCursor::setPosition: Position ‘134’ out of range
    QTextCursor::setPosition: Position ’46’ out of range
    QTextCursor::setPosition: Position ‘8’ out of range
    Worker Launch took: 0.233999967575
    Job: 1 Convert book 1 of 1 (How to Read the Bible Book by Book: A Guided Tour) finished
    Convert book 1 of 1 (How to Read the Bible Book by Book: A Guided Tour)
    Resolved conversion options
    calibre version: 2.4.0
    {‘asciiize': False,
    ‘author_sort': None,
    ‘authors': None,
    ‘base_font_size': 0.0,
    ‘book_producer': None,
    ‘change_justification': u’original’,
    ‘chapter': u”//*[((name()='h1' or name()='h2') and re:test(., '\\s*((chapter|book|section|part)\\s+)|((prolog|prologue|epilogue)(\\s+|$))', 'i')) or @class = 'chapter']“,
    ‘chapter_mark': u’pagebreak’,
    ‘comments': None,
    ‘cover': u’C:\\Users\\ballietf\\AppData\\Local\\Temp\\calibre_5omgin\\qiwqhn.jpeg’,
    ‘debug_pipeline': None,
    ‘dehyphenate': True,
    ‘delete_blank_paragraphs': True,
    ‘disable_font_rescaling': False,
    ‘duplicate_links_in_toc': False,
    ‘embed_all_fonts': False,
    ‘embed_font_family': None,
    ‘enable_heuristics': False,
    ‘expand_css': False,
    ‘extra_css': None,
    ‘filter_css': u”,
    ‘fix_indents': True,
    ‘font_size_mapping': None,
    ‘format_scene_breaks': True,
    ‘html_unwrap_factor': 0.4,
    ‘htmlz_class_style': u’external’,
    ‘htmlz_css_type': u’class’,
    ‘htmlz_title_filename': False,
    ‘input_encoding': None,
    ‘input_profile': ,
    ‘insert_blank_line': False,
    ‘insert_blank_line_size': 0.5,
    ‘insert_metadata': False,
    ‘isbn': None,
    ‘italicize_common_cases': True,
    ‘keep_ligatures': False,
    ‘language': None,
    ‘level1_toc': None,
    ‘level2_toc': None,
    ‘level3_toc': None,
    ‘line_height': 0.0,
    ‘linearize_tables': False,
    ‘margin_bottom': 5.0,
    ‘margin_left': 5.0,
    ‘margin_right': 5.0,
    ‘margin_top': 5.0,
    ‘markup_chapter_headings': True,
    ‘max_toc_links': 50,
    ‘minimum_line_height': 120.0,
    ‘no_chapters_in_toc': False,
    ‘no_inline_navbars': False,
    ‘output_profile': ,
    ‘page_breaks_before': u”//*[name()='h1' or name()='h2']“,
    ‘prefer_metadata_cover': False,
    ‘pretty_print': False,
    ‘pubdate': None,
    ‘publisher': None,
    ‘rating': None,
    ‘read_metadata_from_opf': u’C:\\Users\\ballietf\\AppData\\Local\\Temp\\calibre_5omgin\\bs4o7d.opf’,
    ‘remove_fake_margins': True,
    ‘remove_first_image': False,
    ‘remove_paragraph_spacing': False,
    ‘remove_paragraph_spacing_indent_size': 1.5,
    ‘renumber_headings': True,
    ‘replace_scene_breaks': u”,
    ‘search_replace': ‘[]’,
    ‘series': None,
    ‘series_index': None,
    ‘smarten_punctuation': False,
    ‘sr1_replace': None,
    ‘sr1_search': None,
    ‘sr2_replace': None,
    ‘sr2_search': None,
    ‘sr3_replace': None,
    ‘sr3_search': None,
    ‘start_reading_at': None,
    ‘subset_embedded_fonts': False,
    ‘tags': None,
    ‘timestamp': None,
    ‘title': None,
    ‘title_sort': None,
    ‘toc_filter': None,
    ‘toc_threshold': 6,
    ‘unsmarten_punctuation': False,
    ‘unwrap_lines': True,
    ‘use_auto_toc': False,
    ‘verbose': 2}
    InputFormatPlugin: MOBI Input running
    on C:\Users\ballietf\AppData\Local\Temp\calibre_5omgin\mpfrab.azw
    Python function terminated unexpectedly
    How to Read the Bible Book by Book: A Guided Tour (Error Code: 1)
    Traceback (most recent call last):
    File “site.py”, line 132, in main
    File “site.py”, line 109, in run_entry_point
    File “site-packages\calibre\utils\ipc\worker.py”, line 195, in main
    File “site-packages\calibre\gui2\convert\gui_conversion.py”, line 31, in gui_convert_override
    File “site-packages\calibre\gui2\convert\gui_conversion.py”, line 25, in gui_convert
    File “site-packages\calibre\ebooks\conversion\plumber.py”, line 1041, in run
    File “site-packages\calibre\customize\conversion.py”, line 241, in __call__
    File “site-packages\calibre\ebooks\conversion\plugins\mobi_input.py”, line 35, in convert
    File “site-packages\calibre\ebooks\mobi\reader\mobi6.py”, line 151, in extract_content
    File “site-packages\calibre\ebooks\mobi\reader\mobi6.py”, line 147, in check_for_drm
    calibre.ebooks.DRMError: How to Read the Bible Book by Book: A Guided Tour

    QTextCursor::setPosition: Position ‘210’ out of range
    QTextCursor::setPosition: Position ‘8’ out of range

    • I reinstalled Kindle following the FAQ process and DRM removal now works. Yay!! Thank you to all those who support this valuable service!

  67. I am trying to open a Kindle AZW3 file downloaded with Kindle for PC (Windows 7 Version) in Calibre 64-bit 2.4 with DeDRM 6.0.9, and the following message disappears. I tried everything – reinstalling Kindle for PC, adding a new default_key for te DeDRM Plugin and trying it also on a newly set up Windows 7 64 Laptop (with freshly installed Calibre, Kindle for PC and DeDRM). I don’t know what to do anymore. Any help?

    calibre 2.4 [64bit] isfrozen: True is64bit: True
    Windows-7-6.1.7600 Windows (’64bit’, ‘WindowsPE’)
    (‘Windows’, ‘7’, ‘6.1.7600’)
    Python 2.7.8
    Windows: (‘7′, ‘6.1.7600’, ”, ‘Multiprocessor Free’)
    Successfully initialized third party plugins: DeDRM
    Starting up…
    Started up in 1.00 seconds with 1 books
    Worker Launch took: 0.301999807358
    C:\Program Files\Calibre2\pylib.zip\dateutil\parser.py:339: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode – interpreting them as being unequal
    Job: 1 Read metadata (0 of 1) finished
    Non-ASCII text detected. You must set your Console’s font to Lucida Console or Consolas or some other TrueType font to see this text — Read metadata (0 of 1)
    DeDRM v6.0.9: Trying to decrypt B00MLDTLNG_EBOK.azw
    Using Library AlfCrypto Python
    MobiDeDrm v0.41.
    Copyright (c) 2008-2012 The Dark Reverser et al.
    MOBI header version 6, header length 232
    Extra Data Flags: 3
    Decrypting Mobipocket 6 ebook: Asunder (Dragon Age)
    Error getting PIDs from database default_key: utf8
    Traceback (most recent call last):
    File “calibre_plugins.dedrm.kgenpids”, line 255, in getPidList
    File “calibre_plugins.dedrm.kgenpids”, line 202, in getK4Pids
    UnicodeDecodeError: ‘utf8′ codec can’t decode byte 0xf6 in position 2: invalid start byte
    Found 0 keys to try after 0.1 seconds
    Crypto Type is: 2
    DeDRM v6.0.9: Failed to decrypt with error: No key found in 0 keys tried.
    DeDRM v6.0.9: Looking for new default Kindle Key after 0.1 seconds
    searching for kinfoFiles in C:\Users\Bjrn\AppData\Local
    Found K4PC 1.9+ kinf2011 file: C:\Users\Bjrn\AppData\Local\Amazon\Kindle\storage\.kinf2011
    Decrypted key file using IDString ‘235941756’ and UserName ‘Bjorn’
    DeDRM v6.0.9: Ultimately failed to decrypt after 0.1 seconds.
    Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/
    Traceback (most recent call last):
    File “calibre_plugins.dedrm.__init__”, line 381, in KindleMobiDecrypt
    File “calibre_plugins.dedrm.k4mobidedrm”, line 216, in GetDecryptedBook
    File “calibre_plugins.dedrm.mobidedrm”, line 469, in processBook
    DrmException: No key found in 0 keys tried.
    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 472, in run
    File “calibre_plugins.dedrm.__init__”, line 423, in KindleMobiDecrypt
    DeDRMError: DeDRM v6.0.9: Ultimately failed to decrypt “B00MLDTLNG_EBOK.azw” after 0.1 seconds with error: No key found in 0 keys tried.
    Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/
    Added Asunder (Dragon Age) to db in: 0.129999876022 seconds

    Any help appreciated!

    • My guess is that your user name has a non-ASCII character in it, and that seems to upset the plugin. Try creating a user account without any non-ASCII characters in it.

  68. I’ve hit a bit of a brick wall, and can’t seem to figure out the solution. I was gifted a few Barnes and Noble gift cards, but primarily like to keep things DRM-free on my kindle paperwhite. I purchased an DRM’d ebook from B&N, loaded the latest DeDRM plugin in calibre, filled in every combination of name, username, first only, last only, etc in the plugin config for Barnes and Noble, but nothing seems to want to let this book deDrm and decompress.

    One thing i’ve noticed, is that really off keys tend to give “Key is Null” errors, while the one I expect to work (First Last, CC#) gives a Error while Decompressing in zlib.

    Help :-(

    C:\Program Files (x86)\Calibre2>calibre-debug.exe -g
    calibre 2.4 isfrozen: True is64bit: False
    Windows-7-6.1.7601-SP1 Windows (’32bit’, ‘WindowsPE’)
    32bit process running on 64bit windows
    (‘Windows’, ‘7’, ‘6.1.7601’)
    Python 2.7.8
    Windows: (‘7′, ‘6.1.7601’, ‘SP1′, ‘Multiprocessor Free’)
    Successfully initialized third party plugins: DeDRM
    Starting up…
    Started up in 0.68 seconds with 1 books
    Worker Launch took: 0.151999950409
    Job: 1 Read metadata (0 of 1) finished
    Non-ASCII text detected. You must set your Console’s font to Lucida Console or Consolas or some other TrueType font to see this text — Read metadata (0 of 1)
    DeDRM v6.0.9: Trying to decrypt number_Revelation_Space_.epub
    DeDRM v6.0.9: Verifying zip archive integrity
    DeDRM v6.0.9: “number_Revelation_Space_.epub” is a secure Barnes & Noble ePub
    DeDRM v6.0.9: Trying Encryption key Visa
    Could not decrypt hyh_vl.epub because of an exception:
    Traceback (most recent call last):
    File “calibre_plugins.dedrm.ignobleepub”, line 314, in decryptBook
    File “calibre_plugins.dedrm.ignobleepub”, line 232, in decrypt
    File “calibre_plugins.dedrm.ignobleepub”, line 222, in decompress
    error: Error -3 while decompressing: invalid block type

    DeDRM v6.0.9: Failed to decrypt with key Visa after 0.1 seconds
    DeDRM v6.0.9: Ultimately failed to decrypt after 0.1 seconds.
    Read the FAQs at Alf’s blog: http://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 483, in run
    File “calibre_plugins.dedrm.__init__”, line 181, in ePubDecrypt
    DeDRMError: DeDRM v6.0.9: Ultimately failed to decrypt “number_Revelation_Space_.epub” after 0.1 seconds.
    Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/

    Added Revelation Space to db in: 0.165999889374 seconds

    • Either error means that the decryption key is not correct. You could try changing ALL the instances of your name in your B&N account to be identical, make sure there’s only one CC# entered in your account, and then re-download the book and try a key using that unique name and number.

      • Talking with B&N’s live chat, apparently they’ve changed the DRM to prevent sideloading. No more First Last, CC to unlock.

        • Well. I was going to say that of course they haven’t changed things, but I’ve just tried myself (downloading through NOOK Study for Mac) and they do indeed seem to have changed things. Books I already have downloaded I can decrypt, but a newly bought and downloaded book won’t.

          But it’s late. Perhaps I’m making an obvious error. I’ll try again tomorrow.

          • I’ve had another go, taking my own advice to make sure all the names in my B&N account are the same, and that I haven’t made a mistake with a number. Still no joy on newly downloaded ebooks. It looks like B&N have indeed done something different. Perhaps that’s why they no longer allow direct downloads.

            Unless someone else has had success with current B&N purchases?

            • I was curious so I just bought a ninety-nine cent book from bn.com. I used Nook Study to download it then found the file with explorer and “opened with” the viewer app. It failed with the message that it was DRM locked. I added it to Calibre and it did get unlocked and I was able to read and convert it.

              The book is from the US B&N store, published by Kensington, title “Mission to Murder”. Looking at my Calibre plugins, my B&N customization shows as
              firstname space lastname underscore last4digitsCC
              which agrees with my account settings on B&N. My actual CC (AMEX) has a middle initial but that doesn’t show in the settings.

              It seems that at some time a plugin update must have changed the customization format (or at least what it shows)? Looking at my old notes from 2012, I see that I actually entered the customization as
              firstname space lastname comma full15digitCC

              • Thanks! So it seems to if you have it set up already then it still works. But setting up with a new name/CC# may not be possible.

                Or, of course, I’ve made a mistake. But I’m pretty used to how these tools work.

                • Concerning the problems with removing the DRM from B&N ebooks. I’m still using the v6.0.8 stand-alone modules on a Windows 8.1 machine.

                  I just purchased a ebook with DRM from B&N, downloaded it via “Nook For PC” (which I found still works) and was able to remove the DRM via the DeDRM_Drop_Target app.

            • I have purchased several books from BN & had no problem removing the DRM, in fact I just did a free one just a few minutes ago as a test. It seems most of the people who are having problems have recently changed a CC or opened a new account (within the past months or so). I did change a CC in August but have not had any problems with either new or old purchases DL through Nook for PC. As to BN keys I have all of my old CC numbers entered. So, the problem may have something to do with the timing of the change made to the account. If they changed the DRM scheme it seems strange old people with recent account changes would be affected, but I guess anything is possible. I am still using a very old set of Tools. (6.01), have not upgraded Calibre beyond 1.48. & still using ADE 2. Even though I have Win 8.1 I still have the older versions of the Kindle & Nook for PC apps. My philosophy is – if it is not broke, don’t fix it. Keeping my fingers crossed!

  69. Hi, I wanted to get rid of the drm of a book I got from amazon. Unfortunately it didn’t work. I’m using Calibre Portable on Windows 7. I got the following message from the debug mode:
    H:\CalibrePortable\Calibre\pylib.zip\dateutil\parser.py:339: UnicodeWarning: Uni
    code equal comparison failed to convert both arguments to Unicode – interpreting
    them as being unequal
    Added Non-ASCII text detected. You must set your Console’s font to Lucida Consol
    e or Consolas or some other TrueType font to see this text — Multi Kulti Deutsc
    h: Wie Migration die deutsche Sprache verandert (Beck’sche Reihe) (German Editio
    n) to db in: 0.330000162125 seconds.
    Thanks for your help :)

  70. I have used these plugins through countless versions of both DDRM and of Calibre without trouble until yesterday. I encountered a book which I could -only- get through Google Books as an Adobe Digital Editions PDF, a combination I had never encountered before.

    I downloaded the acsm file, installed Digital Editions 4.0 on my Windows 8.1 system and opened the book successfully there.
    I update Calibre to 2.4 (and then this morning to 2.5, and updated DDRM to 6.09 to deal with the updated versions issue.

    Then, I attempted to import the PDF from documents\my digital editions and ended up with an encrypted pdf. After running debug I saw in the log “DeDRM v6.0.9: Ultimately failed to decrypt after 0.4 seconds.” as have many others.

    Reading the instructions kindly supplied in these comments, I went into configure the plugin, hit the green plus, accepted default-keys as a name and closed. I then deleted the book and re-imported and all was well.

    This is a compliment to the programmers and the community, and I thank you. However, I offer the following two thoughts.

    The documentation for the plugin at the post http://apprenticealf.wordpress.com/2012/09/10/calibre-plugins-the-simplest-option-for-removing-most-ebook-drm/ says:

    …..On Macintosh and Windows systems no customisation is required for ebooks from Kindle for Mac/PC
    …..or Adobe Digital Editions (ADE), provided that calibre is run on the same computer and user account
    …..as the installation of Kindle for Mac/PC or ADE to which the books were downloaded.
    …..The default key is found and stored in the preferences automatically.

    The thing is, of course, it wasn’t. This seems likely to be because I have an old much-updated calibre installation and an old much-updated ddrm installation. It seems like one of two things ought to change:

    *** Since hitting the green plus -worked- and the system found and saved the decryption keys on its own… it would seem that the most reasonable thing would be that if the system get to the “Ultimately failed to decrypt” stage, it ought to assume that the keys weren’t there because the ADE installation is new and it hadn’t known to go get them before, even tho there is already a set of preferences saved for the plugin.

    or

    *** Modify the instructions on the installation post to say

    …..The default key should be found and stored in the preferences automatically, but if it somehow isn’t, go to plugins, select the DDRM plugin, configure it, select Adobe, and hit the green plus.

    While I found that by searching through these comments (thank you again) I also note that this is a repetitive request. I also note that this answer is NOT in the FAQ document, so I adding it there is option 3. The FAQ has instructions for dealing with B&N and Kindle keys not getting imported, but there is no FAQ for this problem of not automatically getting the default key for ADE.

    — I strongly suspect that this is a meta-effect of having previously used the plugin on many kinds of material but only installing ADE yesterday, and I suspect that it counts as a bug that can be addressed, but if not, modifying the instructions or adding an FAQ should do the job.

    — Finally, I note that the HELP link in the ADE Keys screen (Managing Adobe Digital Editions Keys) does not contain any mention of using the green plus to go get the default key. That would have been nice too. Until I found that answer here (thank you again) I had tried using the “import existing key files” button, but that, of course, accomplished nothing. It never occured to me that hitting + might find the default, I mistakenly thought that if I hit + I would need to know all sorts of specific stuff about ADE keys and i knew I didn’t want to mess with that.

    Anyway, that’s a long comment about an obscure and uncommon problem, but this thing works so well that at this point _alL_ the probems are obscure and uncommon. Thanks again to the community.

    -_ Rick

    • I beleive the plugin does work as described in the ReadMe and FAQs for ePubs. Unfortunately, it seems that the same is not true when importing PDFs. Of course, if you have previously imported an ePub, then PDF decryption will work without manual intervention.

      Perhaps Alf will fix it in 6.1 or 7.0. I have no idea how tricky it would be to add it in.

  71. I’ve used Calibre on two previously owned computers (now long gone) and both had the DeDrm plugins added successfully. I just added Calibre to both my Dell Desktop-2009, which is running Windows 7, and my HP Pavilion Laptop-2011, which is runnning Windows 8. I have tried to install the DeDrm tools on both and have been unsuccessful. In both cases, I follow the same path and it’s hanging up in both cases at the same place. I’m not real techie, so I probably need the kindergarten version of how to fix this. Here is the path I’m taking within Calibre and the error responses I’m getting I’ll highlight in bold.

    Winthing Calibre:
    Preferences>
    Change Calibre Behavior>
    Advanced>
    Plugins>
    Load Plugin From File>

    Here’s where it goes wrong. The Downloads folder comes up and I highlight DeDRM_plugin and then hit Open.
    The window asking: Are you sure? comes up and I hit: Yes.

    This is what I get then:
    BadZipfile:File is not a zip file

    Then I ask for details and this is what I get:

    calibre 1.20 isfrozen: True is64bit: False
    Windows-7-6.1.7601-SP1 Windows (’32bit’, ‘WindowsPE’)
    32bit process running on 64bit windows
    (‘Windows’, ‘7’, ‘6.1.7601’)
    Python 2.7.5
    Windows: (‘7′, ‘6.1.7601’, ‘SP1′, ‘Multiprocessor Free’)
    Traceback (most recent call last):
    File “site-packages\calibre\gui2\preferences\plugins.py”, line 308, in add_plugin
    File “site-packages\calibre\customize\ui.py”, line 375, in add_plugin
    File “site-packages\calibre\customize\ui.py”, line 53, in load_plugin
    File “site-packages\calibre\customize\zipplugin.py”, line 187, in load
    File “zipfile.py”, line 766, in __init__
    File “zipfile.py”, line 807, in _RealGetContents
    BadZipfile: File is not a zip file

    At first I thought maybe it wasn’t compatible with Windows 8, but the same thing happens on the desktop on Windows 7. I turned off my AdBlock just to see if that makes a difference and it doesn’t. The DeDRM zipfile I got was sent to me by a friend after I told her I was having trouble making the one downloaded from this site work. I occasionally got a message that the zipfile was empty. Anyway, nothing is behaving like it did when I did it before on the computers that are now in cyber heaven and I’d love someone to tell me what I’m doing wrong.

    • Sorry, no idea. The log doesn’t give the name of the file that you’re trying to add. Perhaps you’re not expanding the zip file you’ve downloaded? Although that usually gives a different error. Perhaps you haven’t unchecked the download manager checkbox, and you don’t actually have the tools archive at all?

      • Where do I uncheck the download manager? I just tried to redownload the tools from and AVG won’t let me. Should I just tell it to ignor the threat?

        • ADDENDUM: I got it to load! I went into the unzipped file and clicked on the calibre plugin and then it loaded fine. Second time through, AVG didn’t come up. Thanks much.

  72. I have always used these tools with Calibre on a Windows machine. However, I just made the move to a Mac. Now I am having trouble. I have Calibre downloaded and running just fine. I have followed the DRM removal instructions and added the application to my dock. That is where the problems start. When I try to double click it to set me preferences I get the following message:
    “You can’t open the application “DeDRM” becuase it may be damaged or incomplete.”
    I deleted the first file I downloaded and unzipped. I tried it again and still get the same message.

    Any thoughts on what I should do?

    • Just use the plugin in calibre instead. There’s a typo in one of the files of the DeDRM Mac application – see other comments here if you want to have a go at fixing it yourself.

  73. I’m upgrading to a new computer. I don’t have any issues on my old computer (OS X 10.9.5, Calibre 0.9.38 and DeDRM 6.0.7). However, when installed on my new computer (same OS, Calibre and DeDRM), the same epub imports but keeps the DRM. I’ve authorized Adobe on my new computer and de-authorized on the old one. I don’t see any differences that would cause the DRM-removal to not work on the new computer. I ran in debug mode and got this in the log:

    Started up in 13.22 seconds with 26 books
    Worker Launch took: 0.046639919281
    Job: 1 Read metadata (0 of 1) finished
    Read metadata (0 of 1)
    DeDRM v6.0.7: Trying to decrypt Journey to the Center of the Earth.epub
    DeDRM v6.0.7: Verifying zip archive integrity
    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 479, in run
    File “calibre_plugins.dedrm.__init__”, line 151, in ePubDecrypt
    File “site-packages/calibre/customize/zipplugin.py”, line 150, in load_module
    File “calibre_plugins.dedrm.ignobleepub”, line 200, in
    File “calibre_plugins.dedrm.ignobleepub”, line 194, in _load_crypto
    File “calibre_plugins.dedrm.ignobleepub”, line 130, in _load_crypto_libcrypto
    File “lib/python2.7/ctypes/__init__.py”, line 365, in __init__
    OSError: dlopen(/usr/local/lib/libcrypto.dylib, 6): no suitable image found. Did find:
    /usr/local/lib/libcrypto.dylib: mach-o, but wrong architecture

    Added Journey to the Center of the Earth to db in: 0.0281171798706 seconds

    Any help would be much appreciated.

    • How odd. I’d try with a fresh copy of the 6.0.9 plugin first.

      Umm…. you haven’t ever run any “slimming” or “shrinking” software on your old computer, the stuff that strips out the ‘wrong’ architecture from fat binaries have you?

      • I removed 6.0.7 and added 6.0.9 with the same result. I’m not sure what “slimming” or “shrinking” software is, so I’m going to say no (unless by some chance that’s something that my IT group could’ve installed, but I’m guessing not).

        Started up in 5.18 seconds with 25 books
        Worker Launch took: 0.0483870506287
        Job: 1 Read metadata (0 of 1) finished
        Read metadata (0 of 1)
        DeDRM v6.0.9: Trying to decrypt Journey to the Center of the Earth.epub
        DeDRM v6.0.9: Verifying zip archive integrity
        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 483, in run
        File “calibre_plugins.dedrm.__init__”, line 155, in ePubDecrypt
        File “site-packages/calibre/customize/zipplugin.py”, line 150, in load_module
        File “calibre_plugins.dedrm.ignobleepub”, line 200, in
        File “calibre_plugins.dedrm.ignobleepub”, line 194, in _load_crypto
        File “calibre_plugins.dedrm.ignobleepub”, line 130, in _load_crypto_libcrypto
        File “lib/python2.7/ctypes/__init__.py”, line 365, in __init__
        OSError: dlopen(/usr/local/lib/libcrypto.dylib, 6): no suitable image found. Did find:
        /usr/local/lib/libcrypto.dylib: mach-o, but wrong architecture

        Added Journey to the Center of the Earth to db in: 0.0284759998322 seconds

        • I note that the plugin is managing to find libraries in /usr/local/lib. That isn’t where Apple installs libcrypto et al. “Wrong architecture” means they are either PowerPC libraries, or 32-bit Intel libraries. (I think Calibre is 64-bit.)

          Daniel, have you installed Unix software in the /usr/local directory? If so, then somehow it is interfering with Apple’s libraries, and that is *bad* and should be fixed. Their presence in /usr/local is OK, but the fact they are being used accidentally instead of Apple libraries is *not*.

          You should find who installed these things and ask them how to fix it.

          Some good ways to install open source Unix software on Macs are through the MacPorts project and the homebrew project. I prefer MacPorts.

          • Ooohhhhh….. I’m completely wrong. I thought the error was about libalfcrypto.dylib. I didn’t read the question carefully enough.

            In that case it must be an error in the system software. Perhaps the right version isn’t installed or something. I notice someone else having (different problems) with libcrypto on 10.9.4 over here:

            http://community.sophos.com/t5/Sophos-EndUser-Protection/SAV-v-9-1-6-for-Mac-requires-libcrypto-dylib-v-1-0-0/td-p/52707

            But this is outside my experience.

            • One way to get processes to look in /usr/local/lib first would be to mess with the runtime dynamic linker. The dyld man page lists a number of environment variables that could be set, but I don’t know if Daniel’s done that (somehow) or not. Daniel, can you run the “env” command in the terminal and send us the output?

              Of course the other way is to create symlinks from /usr/lib into /usr/local/lib, but that way madness lies.

              Actually both ways madness lies…

            • Another way would be if Calibre or the DeDRM plugin had been built to look for libraries in /usr/local/lib.

              I tested quickly here (setting DYLD_PRINT_LIBRARIES=true before running calibre from the command prompt) and Calibre does *not* look in /usr/local/lib by itself.

              I had a quick look at the plugin using the otool command, and I didn’t notice any uses of /usr/local/lib there either.

      • For what it’s worth, I got the same result using the 6.0.9 app (with that typo fixed).

        There was an error with 1 ebook:

        Journey to the Center of the Earth.epub couldn’t be decoded:
        Traceback (most recent call last):
        File “/Users/149191/Downloads/tools_v6/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/ineptepub.py”, line 340, in
        AES, RSA = _load_crypto()
        File “/Users/149191/Downloads/tools_v6/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/ineptepub.py”, line 334, in _load_crypto
        AES, RSA = loader()
        File “/Users/149191/Downloads/tools_v6/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/ineptepub.py”, line 132, in _load_crypto_libcrypto
        libcrypto = CDLL(libcrypto)
        File “/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py”, line 365, in __init__
        self._handle = _dlopen(self._name, mode)
        OSError: dlopen(/usr/local/lib/libcrypto.dylib, 6): no suitable image found. Did find:
        /usr/local/lib/libcrypto.dylib: mach-o, but wrong architecture

        • I’m mystified. I suspect that it might start working (although more slowly) if you delete the libcrypto.dylib from the contents of the application. The plugin might also work if you remove that file from its zip.

          (It seems that the OS is looking for a specific type of binary that isn’t present in the libcrypto.dylib.) What new Mac do you have? Perhaps it’s using some new processor with a new requirement.

          • I’m not really sure what to make of it either. I checked my old computer, and it doesn’t have “/usr/local/lib/libcrypto.dylib” at all. I removed that file from the new machine, and now the app and plug-in work just fine. I’m not really sure what that file does, so I’ll hand on to it just in case any other apps start acting up. FYI I’m on a MacBook Pro with an Intel i5 processor.

            Thanks for your help.

  74. I am have trouble removing the DRM from my B/N Ebooks. It has been working for years but I recently had to enter a new CC as the default in the B/N account and ever since the DRM removal has not worked. All B/N names are the same for Shipping, Billing and account names. In the plugin I still have the old CC information listed along with the new one. Below is the Log output. I say some similar enters on other comments, Any New Ideas?

    Microsoft Windows [Version 6.0.6002]
    Copyright (c) 2006 Microsoft Corporation. All rights reserved.

    C:\Users\Paul>calibre-debug -g
    calibre 2.1 isfrozen: True is64bit: False
    Windows-Vista-6.0.6002-SP2 Windows (’32bit’, ‘WindowsPE’)
    (‘Windows’, ‘Vista’, ‘6.0.6002’)
    Python 2.7.8
    Windows: (‘Vista’, ‘6.0.6002’, ‘SP2′, ‘Multiprocessor Free’)
    Successfully initialized third party plugins: DeDRM && Barnes & Noble
    Starting up…
    Started up in 1.45 seconds with 64 books
    Worker Launch took: 0.335999965668
    Job: 1 Read metadata (0 of 1) finished
    Read metadata (0 of 1)
    DeDRM v6.0.9: Trying to decrypt harbornocturne_9780802194510.epub
    DeDRM v6.0.9: Verifying zip archive integrity
    DeDRM v6.0.9: “harbornocturne_9780802194510.epub” is a secure Barnes
    & Noble ePub
    DeDRM v6.0.9: Trying Encryption key Paul Vannelli_XXXX
    Could not decrypt ylmwf1.epub because of an exception:
    Traceback (most recent call last):
    File “calibre_plugins.dedrm.ignobleepub”, line 278, in decryptBook
    File “calibre_plugins.dedrm.ignobleepub”, line 209, in __init__
    File “calibre_plugins.dedrm.ignobleepub”, line 180, in __init__
    File “site-packages\pycrypto-2.6.1-py2.7-win32.egg\Crypto\Cipher\AES.p
    y”, line 95, in new
    File “site-packages\pycrypto-2.6.1-py2.7-win32.egg\Crypto\Cipher\AES.p
    y”, line 59, in __init__
    File “site-packages\pycrypto-2.6.1-py2.7-win32.egg\Crypto\Cipher\block
    algo.py”, line 141, in __init__
    ValueError: AES key must be either 16, 24, or 32 bytes long

    DeDRM v6.0.9: Failed to decrypt with key Paul Vannelli_XXXX after 0.1 se
    conds
    DeDRM v6.0.9: Trying Encryption key Paul_XXXX
    Could not decrypt ylmwf1.epub because of an exception:
    Traceback (most recent call last):
    File “calibre_plugins.dedrm.ignobleepub”, line 278, in decryptBook
    File “calibre_plugins.dedrm.ignobleepub”, line 209, in __init__
    File “calibre_plugins.dedrm.ignobleepub”, line 180, in __init__
    File “site-packages\pycrypto-2.6.1-py2.7-win32.egg\Crypto\Cipher\AES.p
    y”, line 95, in new
    File “site-packages\pycrypto-2.6.1-py2.7-win32.egg\Crypto\Cipher\AES.p
    y”, line 59, in __init__
    File “site-packages\pycrypto-2.6.1-py2.7-win32.egg\Crypto\Cipher\block
    algo.py”, line 141, in __init__
    ValueError: Key cannot be the null string

    DeDRM v6.0.9: Failed to decrypt with key Paul_XXXX after 0.1 seconds
    DeDRM v6.0.9: Trying Encryption key Paul Vannelli_XXXX
    Could not decrypt ylmwf1.epub because of an exception:
    Traceback (most recent call last):
    File “calibre_plugins.dedrm.ignobleepub”, line 278, in decryptBook
    File “calibre_plugins.dedrm.ignobleepub”, line 209, in __init__
    File “calibre_plugins.dedrm.ignobleepub”, line 180, in __init__
    File “site-packages\pycrypto-2.6.1-py2.7-win32.egg\Crypto\Cipher\AES.p
    y”, line 95, in new
    File “site-packages\pycrypto-2.6.1-py2.7-win32.egg\Crypto\Cipher\AES.p
    y”, line 59, in __init__
    File “site-packages\pycrypto-2.6.1-py2.7-win32.egg\Crypto\Cipher\block
    algo.py”, line 141, in __init__
    ValueError: Key cannot be the null string

    DeDRM v6.0.9: Failed to decrypt with key Paul Vannelli_XXXX after 0.1 se
    conds
    DeDRM v6.0.9: Ultimately failed to decrypt after 0.1 seconds.
    Read the FAQs at Alf’s blog: http://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_filety
    pe_plugins
    File “calibre_plugins.dedrm.__init__”, line 483, in run
    File “calibre_plugins.dedrm.__init__”, line 181, in ePubDecrypt
    DeDRMError: DeDRM v6.0.9: Ultimately failed to decrypt “harbornocturne
    _9780802194510.epub” after 0.1 seconds.
    Read the FAQs at Alf’s blog: http://apprenticealf.wordpreAdded
    Harbor Nocturne to db in: 0.180000066757 seconds

  75. I finally got everything working a few weeks ago as far as DeDRM’ing my B&N eBooks. Put an ePub Reader on my Windows 8 Phone, and was able to read my books on my phone (which is really all I’m after). Bought a new book today, and B&N no longer has a download button in My Library on their site. So I can’t get a file in order to DeDRM! I hook up my Nook HD to the PC and of course the directory containing books appears empty. How can I get the file of the eBook so I can decrypt it? Someone mentioned they were able to download via Nook Study? Is that something I can download? I can’t believe how many hours I’ve spent on this, only to be foiled by B & N again!

  76. Hello,

    I can’t seem to remove DRM a nook epub through calibre on windows 7. It downloads just fine through Nook for PC. All my name/CC info is correct and it is the same CC I used to buy the book (as well as the default card).

    I’ve removed DRM from nook books in the past just fine (as recently as June 2014) but having no luck with this one. I’m starting to think BN has changed something.

    • I’m wondering the same thing. I just purchased a new Nook book over the weekend. Both name and cc are correct, but the calibre plugin won’t remove the DRM. I’ll try to post my log file tomorrow.

      • Looks like I’m in the same boat! I am having a problem stripping 2 DRM books (6 of 8 were dedrmed just fine). I’m using Windows 7 HP v6.1 (build 7601:sp1), MD5 (tools_v6.0.9.zip), added into Calibre v2.5 from my Nook. I got the “book locked by DRM” msg when I tried to open it. I checked for older versions of the plugin. Any help would be appreciated.

        Microsoft Windows [Version 6.1.7601]
        Copyright (c) 2009 Microsoft Corporation. All rights reserved.

        C:\Users\Karen>calibre-debug -g
        calibre 2.5 isfrozen: True is64bit: False
        Windows-7-6.1.7601-SP1 Windows (’32bit’, ‘WindowsPE’)
        32bit process running on 64bit windows
        (‘Windows’, ‘7’, ‘6.1.7601’)
        Python 2.7.8
        Windows: (‘7′, ‘6.1.7601’, ‘SP1′, ‘Multiprocessor Free’)
        Successfully initialized third party plugins: DeDRM && Fantastic Fiction
        Starting up…
        ======= Plugin Parse Error =======
        Traceback (most recent call last):
        File “site-packages\calibre\gui2\dialogs\plugin_updater.py”, line 73, in read_
        available_plugins
        File “site-packages\calibre\gui2\dialogs\plugin_updater.py”, line 88, in get_i
        nstalled_plugin_status
        AttributeError: ‘IDEVICE’ object has no attribute ‘plugin_path’
        {u’author': u’GRiker’,
        u’deprecated': True,
        u’description': u’Communicate with iDevices’,
        u’donate': u’https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_
        id=UDN8NYNFR2X58′,
        u’file': u’198720-deprecated.zip’,
        u’history': True,
        u’index_name': u’Apple iDevice interface’,
        u’last_modified': u’2013-02-02T23:11:56′,
        u’minimum_calibre_version': [0, 9, 9],
        u’name': u’Apple iDevice interface’,
        u’original_url': u’http://www.mobileread.com/forums/attachment.php?s=a0b023c012
        016a4aaca1a61c8f5bf497&attachmentid=100574&d=1359846716′,
        u’size': 1084,
        u’supported_platforms': [u'osx', u'windows'],
        u’thread_id': u’198720-deprecated’,
        u’thread_url': u’http://www.mobileread.com/forums/showthread.php?t=198720′,
        u’uninstall': None,
        u’version': [0, 0, 6]}
        Started up in 11.47 seconds with 14571 books
        MobileDevice: AMDeviceNotificationSubscribe: USBMuxListenerCreate: No error
        Worker Launch took: 0.75
        Job: 1 Read metadata (0 of 1) finished
        Non-ASCII text detected. You must set your Console’s font to Lucida Console or C
        onsolas or some other TrueType font to see this text — Read metadata (0 of 1)
        DeDRM v6.0.9: Trying to decrypt 2940013604483 – Unknown.epub
        DeDRM v6.0.9: Verifying zip archive integrity
        DeDRM v6.0.9: “2940013604483 – Unknown.epub” is a secure Barnes & Noble
        ePub
        DeDRM v6.0.9: Trying Encryption key BnNXXXX
        Could not decrypt kbdspf.epub because of an exception:
        Traceback (most recent call last):
        File “calibre_plugins.dedrm.ignobleepub”, line 278, in decryptBook
        File “calibre_plugins.dedrm.ignobleepub”, line 209, in __init__
        File “calibre_plugins.dedrm.ignobleepub”, line 180, in __init__
        File “site-packages\pycrypto-2.6.1-py2.7-win32.egg\Crypto\Cipher\AES.p
        y”, line 95, in new
        File “site-packages\pycrypto-2.6.1-py2.7-win32.egg\Crypto\Cipher\AES.p
        y”, line 59, in __init__
        File “site-packages\pycrypto-2.6.1-py2.7-win32.egg\Crypto\Cipher\block
        algo.py”, line 141, in __init__
        ValueError: Key cannot be the null string

        DeDRM v6.0.9: Failed to decrypt with key BnNXXXX after 0.2 seconds
        DeDRM v6.0.9: Trying Encryption key BnNXXXX
        Could not decrypt kbdspf.epub because of an exception:
        Traceback (most recent call last):
        File “calibre_plugins.dedrm.ignobleepub”, line 278, in decryptBook
        File “calibre_plugins.dedrm.ignobleepub”, line 209, in __init__
        File “calibre_plugins.dedrm.ignobleepub”, line 180, in __init__
        File “site-packages\pycrypto-2.6.1-py2.7-win32.egg\Crypto\Cipher\AES.p
        y”, line 95, in new
        File “site-packages\pycrypto-2.6.1-py2.7-win32.egg\Crypto\Cipher\AES.p
        y”, line 59, in __init__
        File “site-packages\pycrypto-2.6.1-py2.7-win32.egg\Crypto\Cipher\block
        algo.py”, line 141, in __init__
        ValueError: Key cannot be the null string

        DeDRM v6.0.9: Failed to decrypt with key BnNXXXX after 0.2 seconds
        DeDRM v6.0.9: Trying Encryption key BnNXXXX
        Could not decrypt kbdspf.epub because of an exception:
        Traceback (most recent call last):
        File “calibre_plugins.dedrm.ignobleepub”, line 278, in decryptBook
        File “calibre_plugins.dedrm.ignobleepub”, line 209, in __init__
        File “calibre_plugins.dedrm.ignobleepub”, line 180, in __init__
        File “site-packages\pycrypto-2.6.1-py2.7-win32.egg\Crypto\Cipher\AES.p
        y”, line 95, in new
        File “site-packages\pycrypto-2.6.1-py2.7-win32.egg\Crypto\Cipher\AES.p
        y”, line 59, in __init__
        File “site-packages\pycrypto-2.6.1-py2.7-win32.egg\Crypto\Cipher\block
        algo.py”, line 141, in __init__
        ValueError: Key cannot be the null string

        DeDRM v6.0.9: Failed to decrypt with key BnNXXXX after 0.2 seconds
        DeDRM v6.0.9: Trying Encryption key TDXXXX
        Could not decrypt kbdspf.epub because of an exception:
        Traceback (most recent call last):
        File “calibre_plugins.dedrm.ignobleepub”, line 278, in decryptBook
        File “calibre_plugins.dedrm.ignobleepub”, line 209, in __init__
        File “calibre_plugins.dedrm.ignobleepub”, line 180, in __init__
        File “site-packages\pycrypto-2.6.1-py2.7-win32.egg\Crypto\Cipher\AES.p
        y”, line 95, in new
        File “site-packages\pycrypto-2.6.1-py2.7-win32.egg\Crypto\Cipher\AES.p
        y”, line 59, in __init__
        File “site-packages\pycrypto-2.6.1-py2.7-win32.egg\Crypto\Cipher\block
        algo.py”, line 141, in __init__
        ValueError: Key cannot be the null string

        DeDRM v6.0.9: Failed to decrypt with key TDXXXX after 0.3 seconds
        DeDRM v6.0.9: Ultimately failed to decrypt after 0.3 seconds.
        Read the FAQs at Alf’s blog: http://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_filety
        pe_plugins
        File “calibre_plugins.dedrm.__init__”, line 483, in run
        File “calibre_plugins.dedrm.__init__”, line 181, in ePubDecrypt
        DeDRMError: DeDRM v6.0.9: Ultimately failed to decrypt “2940013604483 –
        Unknown.epub” after 0.3 seconds.
        Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/

        Added 2940013604483 – Unknown to db in: 0.236999988556 seconds
        Worker Launch took: 0.280999898911

  77. Removing DRM from B&N books is not working for me (ADE books worked just fine!). Name and cc information is definitely correct.

    I tried to get the log information, but the instructions don’t match the menu options:
    “On Macintosh only you must first run calibre, open Preferences, open Miscellaneous, and click on the “Install command line tools” button.” — however, there is no “Install command line tools” under Miscellaneous.

    I’m running Calibre 2.5.0 on Mac OS 10.9.5.

    • It does look like B&N have changed their DRM since they turned off downloads. Existing setups work for now, but new ones don’t.

      I think that calibre now automatically installs the command line tools on Mac.

      • It appears that not all new purchases have a changed DRM. I had 1 pre-order available today work for de-drm, 1 ebook I purchased today worked, but another pre-order was locked. I did my downloads from the website using Greasemonkey script. I was able to download the locked ebook in the Nook desktop and was able to de-drm that file. I’m going to check my 1E nook to see if that file will de-drm. But I don’t expect either of those options to work long-term.

      • I get an error message when I type the command in Terminal on the Mac.
        But I just now did the process using my virtual Windows machine. Here is the log:

        Microsoft Windows [Version 6.3.9600]
        (c) 2013 Microsoft Corporation. Alle Rechte vorbehalten.

        C:\Users\julia>calibre-debug -g
        calibre 2.5 [64bit] isfrozen: True is64bit: True
        Windows-8-6.2.9200 Windows (’64bit’, ‘WindowsPE’)
        (‘Windows’, ‘8’, ‘6.2.9200’)
        Python 2.7.8
        Windows: (‘8′, ‘6.2.9200’, ”, ‘Multiprocessor Free’)
        Successfully initialized third party plugins: DeDRM
        Starting up…
        Started up in 2.17 seconds with 8 books
        Worker Launch took: 0.81600022316
        C:\Program Files\Calibre2\pylib.zip\dateutil\parser.py:339: UnicodeWarning: Unic
        ode equal comparison failed to convert both arguments to Unicode – interpreting
        them as being unequal
        Job: 1 Read metadata (0 of 1) finished
        Non-ASCII text detected. You must set your Console’s font to Lucida Console or C
        onsolas or some other TrueType font to see this text — Read metadata (0 of 1)
        DeDRM v6.0.9: Trying to decrypt theoutlanderseries7b_9780345541109.epub
        DeDRM v6.0.9: Verifying zip archive integrity
        DeDRM v6.0.9: “theoutlanderseries7b_9780345541109.epub” is a secure Barn
        es & Noble ePub
        DeDRM v6.0.9: Ultimately failed to decrypt after 1.0 seconds.
        Read the FAQs at Alf’s blog: http://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_filety
        pe_plugins
        File “calibre_plugins.dedrm.__init__”, line 483, in run
        File “calibre_plugins.dedrm.__init__”, line 181, in ePubDecrypt
        DeDRMError: DeDRM v6.0.9: Ultimately failed to decrypt “theoutlanderseri
        es7b_9780345541109.epub” after 1.0 seconds.
        Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/

        Added The Outlander Series 7-Book Bundle: Outlander, Dragonfly in Amber, Voyager
        , Drums of Autumn, The Fiery Cross, A Breath of Snow and Ashes, An Echo in the B
        one to db in: 6.10400009155 seconds

        • You don’t seem to have entered any of your B&N account details into the plugin’s preferences. It certainly won’t work with your name and CC# being entered. But I should also say that it seems that B&N have changed their DRM scheme for new accounts/accounts with new details.

          • Thanks for your answer, but I don’t quite follow. I did enter the requested information (name & cc) for B&N in the customize dialog just as described in the instructions so a key is created. What other preferences do you mean?

            • The use of the key doesn’t show in your log. When decoding a B&N ePub, the tool outputs a line saying which key is being tried, like this:

              DeDRM v6.0.9: Trying Encryption key Paul_XXXX

              I couldn’t see any such line in your log, so I thought you hadn’t entered any keys. Are you sure you entered them in the B&N ePub section, and not the eReader section? Or perhaps you have more than one copy of calibre installed?

              • Sorry, I don’t know what happened the first time. The key was no longer there so I tried it again with the same information and here is the log file:

                Microsoft Windows [Version 6.3.9600]
                (c) 2013 Microsoft Corporation. Alle Rechte vorbehalten.

                C:\Users\julia>calibre-debug -g
                calibre 2.5 [64bit] isfrozen: True is64bit: True
                Windows-8-6.2.9200 Windows (’64bit’, ‘WindowsPE’)
                (‘Windows’, ‘8’, ‘6.2.9200’)
                Python 2.7.8
                Windows: (‘8′, ‘6.2.9200’, ”, ‘Multiprocessor Free’)
                Successfully initialized third party plugins: DeDRM
                Starting up…
                Started up in 3.39 seconds with 9 books
                Worker Launch took: 1.12999987602
                C:\Program Files\Calibre2\pylib.zip\dateutil\parser.py:339: UnicodeWarning: Unic
                ode equal comparison failed to convert both arguments to Unicode – interpreting
                them as being unequal
                Job: 1 Read metadata (0 of 1) finished
                Non-ASCII text detected. You must set your Console’s font to Lucida Console or C
                onsolas or some other TrueType font to see this text — Read metadata (0 of 1)
                DeDRM v6.0.9: Trying to decrypt happyeverafternoraro_9781101444962.epub
                DeDRM v6.0.9: Verifying zip archive integrity
                DeDRM v6.0.9: “happyeverafternoraro_9781101444962.epub” is a secure Barn
                es & Noble ePub
                DeDRM v6.0.9: Trying Encryption key barnob
                Could not decrypt o1j8vd.epub because of an exception:
                Traceback (most recent call last):
                File “calibre_plugins.dedrm.ignobleepub”, line 278, in decryptBook
                File “calibre_plugins.dedrm.ignobleepub”, line 209, in __init__
                File “calibre_plugins.dedrm.ignobleepub”, line 180, in __init__
                File “site-packages\pycrypto-2.6.1-py2.7-win-amd64.egg\Crypto\Cipher\A
                ES.py”, line 95, in new
                File “site-packages\pycrypto-2.6.1-py2.7-win-amd64.egg\Crypto\Cipher\A
                ES.py”, line 59, in __init__
                File “site-packages\pycrypto-2.6.1-py2.7-win-amd64.egg\Crypto\Cipher\b
                lockalgo.py”, line 141, in __init__
                ValueError: Key cannot be the null string

                DeDRM v6.0.9: Failed to decrypt with key barnob after 1.7 seconds
                DeDRM v6.0.9: Ultimately failed to decrypt after 1.7 seconds.
                Read the FAQs at Alf’s blog: http://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_filety
                pe_plugins
                File “calibre_plugins.dedrm.__init__”, line 483, in run
                File “calibre_plugins.dedrm.__init__”, line 181, in ePubDecrypt
                DeDRMError: DeDRM v6.0.9: Ultimately failed to decrypt “happyeverafterno
                raro_9781101444962.epub” after 1.7 seconds.
                Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/

                Added Happy Ever After to db in: 6.47699999809 seconds

                • Yes, that looks like you have a key in there. Unfortunately, it looks like B&N have changed their DRM scheme for new/changed accounts. You could try any variations on your name in your account, but I don’t hold out much hope. Perhaps someone is working on the new scheme.

                  • As my name is pretty straight forward (no middle name), I also don’t think this will help. It must be due to the change in DRM scheme. Well, no more B&N books for me.

  78. Hello,

    I have several e-books I purchased and downloaded (before Adobe launched Digital Editions), so they are drm protected pdf files that I cannot even open anymore, not even with Digital Editions. The removal software won’t work unless I can at least open the book. Any ideas?

    • These tools won’t help. There may be commercial PDF cracking software available that can help, but I don’t really know anything about that. There were several PDF DRM schemes before Adobe’s Adept DRM that Adobe Digital Editions uses.

    • It’s been out long enough that I would have expected to see reports of problems by now if there were any. So I expect that just entering the Kindle’s serial number will be all that you need to do.

  79. Did Amazon change their encryption? Calibre 2.5, Tools 6.09, e-ink serial’s in the right place, I can open all MOBI and AZW3 books prior to today’s purchases. (Slackware, Linux, book came from a folder, not device.)

    Here’s an output log:

    Convert book 1 of 1 (Bought Book)
    Resolved conversion options
    calibre version: 2.5.0
    {‘asciiize': False,
    ‘author_sort': None,
    ‘authors': None,
    ‘base_font_size': 0.0,
    ‘book_producer': None,
    ‘change_justification': u’original’,
    ‘chapter': u”//*[((name()='h1' or name()='h2') and re:test(., '\\s*((chapter|book|section|part)\\s+)|((prolog|prologue|epilogue)(\\s+|$))', 'i')) or @class = 'chapter']“,
    ‘chapter_mark': u’pagebreak’,
    ‘comments': None,
    ‘cover': u’/tmp/calibre_2.5.0_tmp_WsbdYS/AU9i_m.jpeg’,
    ‘debug_pipeline': None,
    ‘dehyphenate': True,
    ‘delete_blank_paragraphs': True,
    ‘disable_font_rescaling': False,
    ‘dont_split_on_page_breaks': False,
    ‘duplicate_links_in_toc': False,
    ‘embed_all_fonts': False,
    ‘embed_font_family': None,
    ‘enable_heuristics': False,
    ‘epub_flatten': False,
    ‘epub_inline_toc': False,
    ‘epub_toc_at_end': False,
    ‘expand_css': False,
    ‘extra_css': None,
    ‘extract_to': None,
    ‘filter_css': u”,
    ‘fix_indents': True,
    ‘flow_size': 260,
    ‘font_size_mapping': None,
    ‘format_scene_breaks': True,
    ‘html_unwrap_factor': 0.4,
    ‘input_encoding': None,
    ‘input_profile': ,
    ‘insert_blank_line': False,
    ‘insert_blank_line_size': 0.5,
    ‘insert_metadata': False,
    ‘isbn': None,
    ‘italicize_common_cases': True,
    ‘keep_ligatures': False,
    ‘language': None,
    ‘level1_toc': None,
    ‘level2_toc': None,
    ‘level3_toc': None,
    ‘line_height': 0.0,
    ‘linearize_tables': False,
    ‘margin_bottom': 5.0,
    ‘margin_left': 5.0,
    ‘margin_right': 5.0,
    ‘margin_top': 5.0,
    ‘markup_chapter_headings': True,
    ‘max_toc_links': 50,
    ‘minimum_line_height': 120.0,
    ‘no_chapters_in_toc': False,
    ‘no_default_epub_cover': False,
    ‘no_inline_navbars': False,
    ‘no_svg_cover': False,
    ‘output_profile': ,
    ‘page_breaks_before': u”//*[name()='h1' or name()='h2']“,
    ‘prefer_metadata_cover': False,
    ‘preserve_cover_aspect_ratio': False,
    ‘pretty_print': True,
    ‘pubdate': None,
    ‘publisher': None,
    ‘rating': None,
    ‘read_metadata_from_opf': u’/tmp/calibre_2.5.0_tmp_WsbdYS/yohIz7.opf’,
    ‘remove_fake_margins': True,
    ‘remove_first_image': False,
    ‘remove_paragraph_spacing': False,
    ‘remove_paragraph_spacing_indent_size': 1.5,
    ‘renumber_headings': True,
    ‘replace_scene_breaks': u”,
    ‘search_replace': ‘[]’,
    ‘series': None,
    ‘series_index': None,
    ‘smarten_punctuation': False,
    ‘sr1_replace': None,
    ‘sr1_search': None,
    ‘sr2_replace': None,
    ‘sr2_search': None,
    ‘sr3_replace': None,
    ‘sr3_search': None,
    ‘start_reading_at': None,
    ‘subset_embedded_fonts': False,
    ‘tags': None,
    ‘timestamp': None,
    ‘title': None,
    ‘title_sort': None,
    ‘toc_filter': None,
    ‘toc_threshold': 6,
    ‘toc_title': None,
    ‘unsmarten_punctuation': False,
    ‘unwrap_lines': True,
    ‘use_auto_toc': False,
    ‘verbose': 2}
    InputFormatPlugin: MOBI Input running
    on /tmp/calibre_2.5.0_tmp_WsbdYS/BiCPcT.azw3
    Found KF8 MOBI of type ‘standalone’
    Traceback (most recent call last):
    File “site.py”, line 51, in main
    File “site-packages/calibre/utils/ipc/worker.py”, line 195, in main
    File “site-packages/calibre/gui2/convert/gui_conversion.py”, line 31, in gui_convert_override
    File “site-packages/calibre/gui2/convert/gui_conversion.py”, line 25, in gui_convert
    File “site-packages/calibre/ebooks/conversion/plumber.py”, line 1041, in run
    File “site-packages/calibre/customize/conversion.py”, line 241, in __call__
    File “site-packages/calibre/ebooks/conversion/plugins/mobi_input.py”, line 43, in convert
    File “site-packages/calibre/ebooks/mobi/reader/mobi8.py”, line 77, in __call__
    File “site-packages/calibre/ebooks/mobi/reader/mobi6.py”, line 147, in check_for_drm
    DRMError: Bought Book

  80. Hello,

    I installed Calibre V2.5.0, downloaded the latest plugin tools_v6.0.9.zip, and attempted to install the plugin following the directions on this website. I never receive the security warning and do not see the deDRM plugin when I search for user installed plugins. I’m using windows 7.

    Thanks

    • Then it sounds like you didn’t install the plugin. You don’t mention unzipping the tools zip. You do need to unzip the tools zip to get access to the plugin (which is also a zip, but you must not unzip the plugin itself).

        • I got a fault:
          calibre, version 2.5.0
          FEHLER: Nicht abgefangener Fehler: InvalidPlugin:The plugin in u’C:/Users/Papa/Downloads/tools_v6.0.9.zip’ is invalid. It does not contain a top-level __init__.py file

          calibre 2.5 isfrozen: True is64bit: False
          Windows-7-6.1.7601-SP1 Windows (’32bit’, ‘WindowsPE’)
          32bit process running on 64bit windows
          (‘Windows’, ‘7’, ‘6.1.7601’)
          Python 2.7.8
          Windows: (‘7′, ‘6.1.7601’, ‘SP1′, ‘Multiprocessor Free’)
          Successfully initialized third party plugins: K4PC, K4Mac, Kindle Mobi and Topaz DeDRM && Inept Epub DeDRM && eReader PDB 2 PML && Ignoble Epub DeDRM && Inept PDF DeDRM
          Traceback (most recent call last):
          File “site-packages\calibre\gui2\preferences\plugins.py”, line 316, in add_plugin
          File “site-packages\calibre\customize\ui.py”, line 379, in add_plugin
          File “site-packages\calibre\customize\ui.py”, line 53, in load_plugin
          File “site-packages\calibre\customize\zipplugin.py”, line 188, in load
          File “site-packages\calibre\customize\zipplugin.py”, line 286, in _locate_code
          InvalidPlugin: The plugin in u’C:/Users/Papa/Downloads/tools_v6.0.9.zip’ is invalid. It does not contain a top-level __init__.py file

          Can you help me again?

  81. hi sorry to bother you but i was hopping for some advice im using the tools for calibre and it works great i have many LIT files i tryed to use LITconvert that was mentioned but cant due to the fact you need the MS reader to start the conversion however MS reader can only be used upto windows XP. Any way to add a similar tool to calibre ?

    • If you no longer have a machine on which you can read your .lit ebooks, I think you have lost access to them. I beleive that Microsoft stopped support for Microsoft Reader in August 2012. You’re at least two years late in removing the DRM.

      But I’m not an expert on .lit. It may be that you could still a copy of Microsoft Reader and get access back. If you can do that, Convert Lit is what you need to remove the DRM. I very much doubt that any attempt will be made to add .LIT DRM removal to the DeDRM plugin.

    • You should be able to convert your LIT files using ABC Amber Lit converter. This is available from download.cnet.com and does not require an installed copy of reader in order to convert the files. It will do bulk converts. It does not do DRM removal. If you need that, you will need Convert Lit which is available at convertlit dot com. However, it requires a running and activated copy of reader. :-( To use it, you may need to use VirtualBox to set up a virtual xp machine to run and activate reader, and then run convert lit.

      If your docs aren’t DRMed, then the free ABC Amber lit converter will work for you.

      However… be very very careful when installing that, since it comes with a big pile of cr*p ware which you must -carefully- opt out of when installing.

      -_ Rick

  82. Tried to install Calibre and your tools on a new Win8.1 PC. HAd ADE and K4PC istalled before Calibre and the Plugin. Got this output in debug-mode:

    calibre 2.5 [64bit] isfrozen: True is64bit: True
    Windows-8-6.2.9200 Windows (’64bit’, ‘WindowsPE’)
    (‘Windows’, ‘8’, ‘6.2.9200’)
    Python 2.7.8
    Windows: (‘8′, ‘6.2.9200’, ”, ‘Multiprocessor Free’)
    Successfully initialized third party plugins: DeDRM && K4PC, K4Mac, Kindle Mobi
    and Topaz DeDRM
    Starting up…
    Started up in 0.94 seconds with 253 books
    Worker Launch took: 0.216000080109
    C:\Program Files\Calibre2\pylib.zip\dateutil\parser.py:339: UnicodeWarning: Unic
    ode equal comparison failed to convert both arguments to Unicode – interpreting
    them as being unequal
    Added Flowertown to db in: 0.0329999923706 seconds
    Job: 1 Read metadata (0 of 1) finished
    Non-ASCII text detected. You must set your Console’s font to Lucida Console or C
    onsolas or some other TrueType font to see this text — Read metadata (0 of 1)
    DeDRM v6.0.9: Trying to decrypt B006LMNE8G_EBOK.azw
    Using Library AlfCrypto DLL/DYLIB/SO
    MobiDeDrm v0.41.
    Copyright (c) 2008-2012 The Dark Reverser et al.
    MOBI header version 8, header length 248
    Extra Data Flags: 3
    Decrypting Kindle Format 8 ebook: Flowertown
    Keys not found in the database default_key.
    Found 0 keys to try after 0.3 seconds
    Crypto Type is: 2
    DeDRM v6.0.9: Failed to decrypt with error: No key found in 0 keys tried
    .
    DeDRM v6.0.9: Looking for new default Kindle Key after 0.3 seconds
    searching for kinfoFiles in C:\Users\Eric\AppData\Local
    Found K4PC 1.9+ kinf2011 file: C:\Users\Eric\AppData\Local\Amazon\Kindle
    \storage\.kinf2011
    Decrypted key file using IDString ‘4100747001’ and UserName ‘Eric’
    DeDRM v6.0.9: Ultimately failed to decrypt after 0.4 seconds.
    Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/
    Traceback (most recent call last):
    File “calibre_plugins.dedrm.__init__”, line 381, in KindleMobiDecrypt
    File “calibre_plugins.dedrm.k4mobidedrm”, line 216, in GetDecryptedBoo
    k
    File “calibre_plugins.dedrm.mobidedrm”, line 469, in processBook
    DrmException: No key found in 0 keys tried.
    Running file type plugin DeDRM failed with traceback:
    Traceback (most recent call last):
    File “site-packages\calibre\customize\ui.py”, line 154, in _run_filety
    pe_plugins
    File “calibre_plugins.dedrm.__init__”, line 472, in run
    File “calibre_plugins.dedrm.__init__”, line 423, in KindleMobiDecrypt
    DeDRMError: DeDRM v6.0.9: Ultimately failed to decrypt “B006LMNE8G_EBOK.
    azw” after 0.4 seconds with error: No key found in 0 keys tried.
    Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/
    is not a valid Kindle serial number or PID.
    K4MobiDeDRM: Calibre configuration directory = C:\Users\Eric\AppData\Roa
    ming\calibre
    MOBI header version = 8, length = 248
    Extra Data Flags = 3
    No kindle.info files have not been found.
    No K4PC 1.5.X .kinf files have not been found.
    No K4PC 1.6.X .kinf files have not been found.
    Crypto Type is: 2
    Running file type plugin K4PC, K4Mac, Kindle Mobi and Topaz DeDRM failed
    with traceback:
    Traceback (most recent call last):
    File “site-packages\calibre\customize\ui.py”, line 154, in _run_filety
    pe_plugins
    File “calibre_plugins.k4mobidedrm.__init__”, line 89, in run
    ImportError: No module named PyQt4.Qt

    Worker Launch took: 0.233999967575

    • That’s a very odd fresh installation that also has the old k4mobidedrm plugin installed.

      However, there seems to be some problem with finding the K4PC key. I’d try completely uninstalling K4PC (including and prefs and registry) and re-installing and re-registering. Also, note that you must use the K4PC for Win 7, not the version available from the Windows 8 app store. And do delete that old k4mobidedrm plugin.

  83. I installed the calibre dedrm plugin but I cannot convert the kindle books. I’m using windows 8 and I have in the same PC and user the kindlePC app.

    thanks

    • The tools don’t work with the Windows 8 Kindle for PC 8. Download and use the “Windows 7″ Kindle for PC application from Amazon’s web site. It works fine with Windows 8.

      • So amazon is now selling books that wont work with the Windows 7 Kindle PC application, so I thought I would grab the file off of my eink reader but I cant get it to work. I know I have the S/N correct as i cut and paste it from the amazon website and then deleted the spaces. Any ideas?

        Worker Launch took: 0.0889999866486
        Job: 3 Convert book 1 of 1 (The Sandman, Vol. 2: The Doll’s House) finished
        Convert book 1 of 1 (The Sandman, Vol. 2: The Doll’s House)
        Resolved conversion options
        calibre version: 2.5.0
        {‘asciiize': False,
        ‘author_sort': None,
        ‘authors': None,
        ‘base_font_size': 0.0,
        ‘book_producer': None,
        ‘change_justification': u’original’,
        ‘chapter': u”//*[((name()='h1' or name()='h2') and re:test(., '\\s*((ch
        apter|book|section|part)\\s+)|((prolog|prologue|epilogue)(\\s+|$))', 'i')) or @c
        lass = 'chapter']“,
        ‘chapter_mark': u’pagebreak’,
        ‘comments': None,
        ‘cover': u’C:\\Users\\buchanan\\AppData\\Local\\Temp\\calibre_uiwibx\\z
        0iakx.jpeg’,
        ‘debug_pipeline': None,
        ‘dehyphenate': True,
        ‘delete_blank_paragraphs': True,
        ‘disable_font_rescaling': False,
        ‘dont_compress': False,
        ‘duplicate_links_in_toc': False,
        ‘embed_all_fonts': False,
        ‘embed_font_family': None,
        ‘enable_heuristics': False,
        ‘expand_css': False,
        ‘extra_css': None,
        ‘extract_to': None,
        ‘filter_css': u”,
        ‘fix_indents': True,
        ‘font_size_mapping': None,
        ‘format_scene_breaks': True,
        ‘html_unwrap_factor': 0.4,
        ‘input_encoding': None,
        ‘input_profile': ,
        ‘insert_blank_line': False,
        ‘insert_blank_line_size': 0.5,
        ‘insert_metadata': False,
        ‘isbn': None,
        ‘italicize_common_cases': True,
        ‘keep_ligatures': False,
        ‘language': None,
        ‘level1_toc': None,
        ‘level2_toc': None,
        ‘level3_toc': None,
        ‘line_height': 0.0,
        ‘linearize_tables': False,
        ‘margin_bottom': 5.0,
        ‘margin_left': 5.0,
        ‘margin_right': 5.0,
        ‘margin_top': 5.0,
        ‘markup_chapter_headings': True,
        ‘max_toc_links': 50,
        ‘minimum_line_height': 120.0,
        ‘mobi_file_type': u’old’,
        ‘mobi_ignore_margins': False,
        ‘mobi_keep_original_images': False,
        ‘mobi_toc_at_start': False,
        ‘no_chapters_in_toc': False,
        ‘no_inline_navbars': True,
        ‘no_inline_toc': False,
        ‘output_profile': ,
        ‘page_breaks_before': u”//*[name()='h1' or name()='h2']“,
        ‘personal_doc': u’[PDOC]‘,
        ‘prefer_author_sort': False,
        ‘prefer_metadata_cover': False,
        ‘pretty_print': False,
        ‘pubdate': None,
        ‘publisher': None,
        ‘rating': None,
        ‘read_metadata_from_opf': u’C:\\Users\\buchanan\\AppData\\Local\\Temp\\
        calibre_uiwibx\\erhgsp.opf’,
        ‘remove_fake_margins': True,
        ‘remove_first_image': False,
        ‘remove_paragraph_spacing': False,
        ‘remove_paragraph_spacing_indent_size': 1.5,
        ‘renumber_headings': True,
        ‘replace_scene_breaks': u”,
        ‘search_replace': ‘[]’,
        ‘series': None,
        ‘series_index': None,
        ‘share_not_sync': False,
        ‘smarten_punctuation': False,
        ‘sr1_replace': None,
        ‘sr1_search': None,
        ‘sr2_replace': None,
        ‘sr2_search': None,
        ‘sr3_replace': None,
        ‘sr3_search': None,
        ‘start_reading_at': None,
        ‘subset_embedded_fonts': False,
        ‘tags': None,
        ‘timestamp': None,
        ‘title': None,
        ‘title_sort': None,
        ‘toc_filter': None,
        ‘toc_threshold': 6,
        ‘toc_title': None,
        ‘unsmarten_punctuation': False,
        ‘unwrap_lines': True,
        ‘use_auto_toc': False,
        ‘verbose': 2}
        InputFormatPlugin: MOBI Input running
        on C:\Users\buchanan\AppData\Local\Temp\calibre_uiwibx\o6nwkj.azw3
        Found KF8 MOBI of type ‘standalone’
        Python function terminated unexpectedly
        The Sandman Vol. 2: The Doll’s House (New Edition) (Error Code: 1)
        Traceback (most recent call last):
        File “site.py”, line 132, in main
        File “site.py”, line 109, in run_entry_point
        File “site-packages\calibre\utils\ipc\worker.py”, line 195, in main
        File “site-packages\calibre\gui2\convert\gui_conversion.py”, line 31,
        in gui_convert_override
        File “site-packages\calibre\gui2\convert\gui_conversion.py”, line 25,
        in gui_convert
        File “site-packages\calibre\ebooks\conversion\plumber.py”, line 1041,
        in run
        File “site-packages\calibre\customize\conversion.py”, line 241, in __c
        all__
        File “site-packages\calibre\ebooks\conversion\plugins\mobi_input.py”,
        line 43, in convert
        File “site-packages\calibre\ebooks\mobi\reader\mobi8.py”, line 77, in
        __call__
        File “site-packages\calibre\ebooks\mobi\reader\mobi6.py”, line 147, in
        check_for_drm
        calibre.ebooks.DRMError: The Sandman Vol. 2: The Doll’s House (New Editi
        on)

      • Thanks Paul, I have disinstalled the windows 8 kindle PC, installed the windows 7 version, but it is still not working. How can I see the log file of the import process?

  84. Failing to strip DRM from a Barnes and Noble book. Any pointers? Thanks

    D:\>calibre-debug -g
    calibre 2.5 isfrozen: True is64bit: False
    Windows-7-6.1.7601-SP1 Windows (’32bit’, ‘WindowsPE’)
    32bit process running on 64bit windows
    (‘Windows’, ‘7’, ‘6.1.7601’)
    Python 2.7.8
    Windows: (‘7′, ‘6.1.7601’, ‘SP1′, ‘Multiprocessor Free’)
    Successfully initialized third party plugins: DeDRM
    Starting up…
    Started up in 0.88 seconds with 1 books
    Worker Launch took: 0.108999967575
    Job: 1 Read metadata (0 of 1) finished
    Non-ASCII text detected. You must set your Console’s font to Lucida Console or C
    onsolas or some other TrueType font to see this text — Read metadata (0 of 1)
    DeDRM v6.0.9: Trying to decrypt worldorder_9780698165724.epub
    DeDRM v6.0.9: Verifying zip archive integrity
    DeDRM v6.0.9: “worldorder_9780698165724.epub” is a secure Barnes & Noble
    ePub
    DeDRM v6.0.9: Trying Encryption key BNACC
    Could not decrypt fndnja.epub because of an exception:
    Traceback (most recent call last):
    File “calibre_plugins.dedrm.ignobleepub”, line 278, in decryptBook
    File “calibre_plugins.dedrm.ignobleepub”, line 209, in __init__
    File “calibre_plugins.dedrm.ignobleepub”, line 180, in __init__
    File “site-packages\pycrypto-2.6.1-py2.7-win32.egg\Crypto\Cipher\AES.p
    y”, line 95, in new
    File “site-packages\pycrypto-2.6.1-py2.7-win32.egg\Crypto\Cipher\AES.p
    y”, line 59, in __init__
    File “site-packages\pycrypto-2.6.1-py2.7-win32.egg\Crypto\Cipher\block
    algo.py”, line 141, in __init__
    ValueError: Key cannot be the null string

    DeDRM v6.0.9: Failed to decrypt with key BNACC after 0.3 seconds
    DeDRM v6.0.9: Ultimately failed to decrypt after 0.3 seconds.
    Read the FAQs at Alf’s blog: http://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_filety
    pe_plugins
    File “calibre_plugins.dedrm.__init__”, line 483, in run
    File “calibre_plugins.dedrm.__init__”, line 181, in ePubDecrypt
    DeDRMError: DeDRM v6.0.9: Ultimately failed to decrypt “worldorder_97806
    98165724.epub” after 0.3 seconds.
    Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/

    Added World Order to db in: 1.13000011444 seconds

    • If you haven’t changed any details in your B&N account recently, it might just be that you haven’t got the right form of name. But if you have made changes recently (last month or so) then you’re currently out of luck. It looks like B&N changed the key generation algorithm when they stopped allowing downloads from their web site, and the tools don’t work any more.

      • my account is new, so I’d be in the Out Of Luck category. But I read somewhere that when I download the book from them, in the reader, then in order to work offline the reader generates the key and stores it locally in a DB in plain text. That’d be an alternative way to make it work. Any ideas where?

        • Someone mentioned earlier this year that B&N were sometimes omitting the rights.xml file from the ePub, and instead storing it in an sql database. This isn’t the same as the decryption key, more the lock that the key fits.

          But I don’t know what they’ve changed this time. Perhaps if anyone finds out they’ll post a comment here.

      • Given that that’s the case, can some kind of disclaimer be posted about the state of the Barnes and Noble part of the DRM stripping plugin/app? That it could only be use for files downloaded before the change (and give an approximate date of when we think that happened) if you’ve made any changes to your account (added a new card &c)

  85. I tried adding a B&N epub to calibre using the plugin. First I discovered the plugin was old and updated it. Then I deleted keys and made sure everything was in sync with my account. Then I deleted and redownloaded the ebook file. Then I reinstalled Python and pycrypto, remade my keys, deleted and redownloaded the ebooks. I tried adding the epub to calibre at multiple stages of the process, and it always showed a new entry, but with no cover picture, and claiming there was still DRM when I tried opening it in the calibre viewer.

    Here’s the log of my last attempt:

    Job: 1 Read metadata (0 of 1) finished
    Non-ASCII text detected. You must set your Console’s font to Lucida Console or C
    onsolas or some other TrueType font to see this text — Read metadata (0 of 1)
    DeDRM v6.0.9: Trying to decrypt XXXXXXXX.epub
    DeDRM v6.0.9: Verifying zip archive integrity
    DeDRM v6.0.9: “XXXXXXXX.epub” is a secure Barnes & Noble ePub
    DeDRM v6.0.9: Trying Encryption key XXXXXXXX
    Could not decrypt qrfmdj.epub because of an exception:
    Traceback (most recent call last):
    File “calibre_plugins.dedrm.ignobleepub”, line 278, in decryptBook
    File “calibre_plugins.dedrm.ignobleepub”, line 209, in __init__
    File “calibre_plugins.dedrm.ignobleepub”, line 180, in __init__
    File “site-packages\pycrypto-2.6.1-py2.7-win32.egg\Crypto\Cipher\AES.py”, line 95, in new
    File “site-packages\pycrypto-2.6.1-py2.7-win32.egg\Crypto\Cipher\AES.py”, line 59, in __init__
    File “site-packages\pycrypto-2.6.1-py2.7-win32.egg\Crypto\Cipher\blockalgo.py”, line 141, in __init__
    ValueError: Key cannot be the null string

    DeDRM v6.0.9: Failed to decrypt with key XXXXXXXX after 0.4 seconds

    DeDRM v6.0.9: Ultimately failed to decrypt after 0.4 seconds.
    Read the FAQs at Alf’s blog: http://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 483, in run
    File “calibre_plugins.dedrm.__init__”, line 181, in ePubDecrypt
    DeDRMError: DeDRM v6.0.9: Ultimately failed to decrypt “XXXXXXXX.epub” after 0.4 seconds.
    Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/

    • I guess I didn’t look at the comments well enough before posting. Just noticed the previous one about updated B&N DRM. Any news on an updated decrypt for this?

  86. I am still running Win 8 with ADE 2 & Calibre 1.48. I also still use the Kindle PC app for Win 7 & the Nook for PC App for Win 7. I am using an older set of Tools but everything is working fine & my motto is “if it’s not broke, don’t fix it”. Unfortunately, I am now getting a MS nag screen about every 4 hrs about upgrading to Win 8.1. The last one just announced that in 2 days Win 8.1 would download & my computer would restart. So, it looks like Win 8.1 is going to get forced upon me. My question is with Win 8.1 what programs/apps that I currently have can I expect to stop working? More importantly what am I going to have to do to get everything to work again? I foresee this forced upgrade is going o screw things up big time.

  87. Did Barnes & Noble change their encryption? I cannot decrypt any of my recently-purchased books, and if I download a new copy of a book purchased back in 2011 (and decrypted then), I cannot decrypt it now. Instead, I get either “IGNOBLEError: AES improper key used” or “error: Error -3 while decompressing: invalid stored block lengths”

    I’ve tested this on openSUSE 11.3 and 13.1, running ignobleepub.py v1-rc2 (what I’ve been using until now), and version 3.8, the latest from tools 6.0.9. I don’t use Calibre; I run the scripts from a bash shell. I have verified that I can still decrypt older epubs (I always keep the DRM’d original as well as the deDRM’d version)–the version I downloaded 9/29/2011 decrypts fine with either version of ignobleepub.py. A fresh version downloaded today results in “IGNOBLEError: AES improper key used”

    I have tried recreating the key using ignoblekeygen.py; the key is identical to the one I’ve been using all along.

    I have not changed the credit card used, nor my name in my B&N account.

    Two sample outputs:
    Could not decrypt 9780316246637_Ancillary_Justice.epub because of an exception:
    Traceback (most recent call last):
    File “../DeDRM/ignobleepub.py”, line 314, in decryptBook
    outf.writestr(zi, decryptor.decrypt(path, data))
    File “../DeDRM/ignobleepub.py”, line 232, in decrypt
    data = self.decompress(data)
    File “../DeDRM/ignobleepub.py”, line 222, in decompress
    bytes = dc.decompress(bytes)
    error: Error -3 while decompressing: invalid stored block lengths

    Could not decrypt 9780374710774_Annihilation_Sout.epub because of an exception:
    Traceback (most recent call last):
    File “../DeDRM/ignobleepub.py”, line 278, in decryptBook
    decryptor = Decryptor(bookkey[-16:], encryption)
    File “../DeDRM/ignobleepub.py”, line 209, in __init__
    self._aes = AES(bookkey)
    File “../DeDRM/ignobleepub.py”, line 158, in __init__
    raise IGNOBLEError(‘AES improper key used’)
    IGNOBLEError: AES improper key used

    Any ideas?

  88. Hi, I’m having a problem opening the tools v6.0.9 zip file. When I open the zip files and it unpacks to a cpgz. I’ve tried the fix suggested in the comments, but that doesn’t work for me either: when I ctrl-click, there’s no “show contents” option. Thus I can’t remove the “w” with textedit

  89. Sorry i don’t see where to paste the debug info

    Microsoft Windows [Version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation. All rights reserved.

    C:\Users\Mike>calibre-debug -g
    calibre 1.19 [64bit] isfrozen: True is64bit: True
    Windows-7-6.1.7601-SP1 Windows (’64bit’, ‘WindowsPE’)
    (‘Windows’, ‘7’, ‘6.1.7601’)
    Python 2.7.5
    Windows: (‘7′, ‘6.1.7601’, ‘SP1′, ‘Multiprocessor Free’)
    Starting up…
    Started up in 1.44 seconds with 1342 books
    Debugging DND event
    application/x-qt-windows-mime;value=”Shell IDList Array” 300 ‘\x01\x00\x00\x00\x
    0c\x00\x00\x00\x0e\x00\x00\x00\x00\x00\x1c\x012\x00\xc8~:\x00QE\x03\x81 \x00THEC
    OM~1.AZW\x00\x00\x00\x01\x08\x00\x04\x00\xef\xbeQE\x03\x81QE\x03\x81*\x00\x00\x0
    0@\xd1\n\x00\x00\x00\xa7\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00
    \x00T\x00h\x00e\x00 \x00C\x00o\x00m\x00p\x00l\x00e\x00t\x00e\x00 \x00M\x00a\x00g
    \x00n\x00o\x00l\x00i\x00a\x00 \x00B\x00a\x00k\x00e\x00r\x00y\x00 \x00C\x00o\x00o
    \x00k\x00b\x00o\x00o\x00k\x00_\x00 \x00R\x00e\x00c\x00i\x00p\x00e\x00s\x00 \x00f
    \x00r\x00o\x00m\x00 \x00t\x00h\x00e\x00 \x00W\x00o\x00r\x00l\x00d\x00-\x00F\x00a
    \x00m\x00o\x00u\x00s\x00 \x00B\x00a\x00k\x00e\x00r\x00y\x00 \x00a\x00n\x00d\x00
    \x00A\x00l\x00l\x00y\x00s\x00a\x00 \x00T\x00o\x00_\x00B\x000\x000\x008\x00T\x00R
    \x00P\x006\x00Q\x00O\x00.\x00a\x00z\x00w\x003\x00\x00\x00\x1c\x00\x00\x00′

    application/x-qt-windows-mime;value=”DragImageBits” 26176 ‘L\x00\x00\x00V\x00\x0
    0\x00*\x00\x00\x00\x16\x00\x00\x00\xc3\x11\x05J\x00\x00\x00\x00\xff\xff\xff\xff\
    x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
    x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
    x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
    x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
    x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
    x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
    x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0b\x00\x00\x00\x0b\x00\x00\x00\x0b\
    x00\x00\x00\x0b\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
    x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
    x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
    x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
    x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
    x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
    x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00′

    application/x-qt-windows-mime;value=”DragContext” 16 ‘\x00\x00\x00\x00\x01\x00\x
    00\x00\x00\x00\x00\x00\x00\x00\x00\x00′

    application/x-qt-windows-mime;value=”DragSourceHelperFlags” 4 ‘\x01\x00\x00\x00′

    application/x-qt-windows-mime;value=”InShellDragLoop” 4 ‘\x01\x00\x00\x00′

    text/uri-list 161 ‘file:///C:/Users/Mike/Desktop/The%20Complete%20Magnolia%20Bak
    ery%20Cookbook_%20Recipes%20from%20the%20World-Famous%20Bakery%20and%20Allysa%20
    To_B008TRP6QO.azw3\r\n’

    application/x-qt-windows-mime;value=”FileName” 35 ‘C:\\Users\\Mike\\Desktop\\THE
    COM~1.AZW\x00′

    application/x-qt-windows-mime;value=”FileNameW” 256 ‘C\x00:\x00\\\x00U\x00s\x00e
    \x00r\x00s\x00\\\x00M\x00i\x00k\x00e\x00\\\x00D\x00e\x00s\x00k\x00t\x00o\x00p\x0
    0\\\x00T\x00h\x00e\x00 \x00C\x00o\x00m\x00p\x00l\x00e\x00t\x00e\x00 \x00M\x00a\x
    00g\x00n\x00o\x00l\x00i\x00a\x00 \x00B\x00a\x00k\x00e\x00r\x00y\x00 \x00C\x00o\x
    00o\x00k\x00b\x00o\x00o\x00k\x00_\x00 \x00R\x00e\x00c\x00i\x00p\x00e\x00s\x00 \x
    00f\x00r\x00o\x00m\x00 \x00t\x00h\x00e\x00 \x00W\x00o\x00r\x00l\x00d\x00-\x00F\x
    00a\x00m\x00o\x00u\x00s\x00 \x00B\x00a\x00k\x00e\x00r\x00y\x00 \x00a\x00n\x00d\x
    00 \x00A\x00l\x00l\x00y\x00s\x00a\x00 \x00T\x00o\x00_\x00B\x000\x000\x008\x00T\x
    00R\x00P\x006\x00Q\x00O\x00.\x00a\x00z\x00w\x003\x00\x00\x00′

    application/x-qt-windows-mime;value=”IsShowingLayered” 4 ‘\x00\x00\x00\x00′

    application/x-qt-windows-mime;value=”DragWindow” 4 ‘\xd4\x04\x07\x00′

    application/x-qt-windows-mime;value=”DropDescription” 1044 ‘\xff\xff\xff\xff\x00
    \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00
    \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00
    \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00
    \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00
    \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00
    \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00
    \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00
    \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00
    \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00
    \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00
    \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00
    \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00
    \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00
    \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00
    \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00′

    application/x-qt-windows-mime;value=”DisableDragText” 4 ‘\x00\x00\x00\x00′

    application/x-qt-windows-mime;value=”IsShowingText” 4 ‘\x00\x00\x00\x00′

    Firefox rurl: None None
    URLS: [u'file:///C:/Users/Mike/Desktop/The Complete Magnolia Bakery Cookbook_ Re
    cipes from the World-Famous Bakery and Allysa To_B008TRP6QO.azw3']
    Paths: [u'/C:/Users/Mike/Desktop/The Complete Magnolia Bakery Cookbook_ Recipes
    from the World-Famous Bakery and Allysa To_B008TRP6QO.azw3']
    Extensions: frozenset([u'azw3'])
    Worker Launch took: 0.202999830246
    Job: 1 Read metadata (0 of 1) finished
    Read metadata (0 of 1)
    DeDRM v6.0.9: Trying to decrypt The Complete Magnolia Bakery Cookbook_ R
    ecipes from the World-Famous Bakery and Allysa To_B008TRP6QO.azw3
    Using Library AlfCrypto DLL/DYLIB/SO
    MobiDeDrm v0.41.
    Copyright © 2008-2012 The Dark Reverser et al.
    MOBI header version 8, header length 264
    Extra Data Flags: 3
    Decrypting Kindle Format 8 ebook: The Complete Magnolia Bakery Cookbook:
    Recipes from the World-Famous Bakery and Allysa To
    Found 0 keys to try after 0.1 seconds
    Crypto Type is: 2
    DeDRM v6.0.9: Failed to decrypt with error: No key found in 0 keys tried
    .
    DeDRM v6.0.9: Looking for new default Kindle Key after 0.1 seconds
    searching for kinfoFiles in C:\Users\Mike\AppData\Local
    No K4PC kindle.info/kinf/kinf2011 files have been found.
    DeDRM v6.0.9: Ultimately failed to decrypt after 0.1 seconds.
    Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/
    Traceback (most recent call last):
    File “calibre_plugins.dedrm.__init__”, line 381, in KindleMobiDecrypt
    File “calibre_plugins.dedrm.k4mobidedrm”, line 216, in GetDecryptedBoo
    k
    File “calibre_plugins.dedrm.mobidedrm”, line 469, in processBook
    DrmException: No key found in 0 keys tried.
    Running file type plugin DeDRM failed with traceback:
    Traceback (most recent call last):
    File “site-packages\calibre\customize\ui.py”, line 154, in _run_filety
    pe_plugins
    File “calibre_plugins.dedrm.__init__”, line 472, in run
    File “calibre_plugins.dedrm.__init__”, line 423, in KindleMobiDecrypt
    DeDRMError: DeDRM v6.0.9: Ultimately failed to decrypt “The Complete Mag
    nolia Bakery Cookbook_ Recipes from the World-Famous Bakery and Allysa To_B008TR
    P6QO.azw3” after 0.1 seconds with error: No key found in 0 keys tried.
    Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/

    Added The Complete Magnolia Bakery Cookbook: Recipes from the World-Famous Baker
    y and Allysa To to db in: 0.5 seconds

    • You don’t seem to have Kindle for PC installed, nor have you entered an e-ink Kindle serial number into the plugin’s customisation dialog. The tools can’t remove the DRM without the DRM key.

  90. I use Kindle for PC and Calibre on my Win7 desktop PC and conversion from AZW3 to EPUB always worked fine with your plugin. But since I installed the same configuration on my laptop and bought/converted Amazon ebooks there, the conversion is not working anymore on my desktop PC. It just says that the ebook is DRM protected and doesn’t even write any debug log. It’s really strange, because I can still open all books in Kindle for PC on the desktop PC, just conversion in Calibre does not work anymore. Thanks in advance for any helpful hint.

      • Is that the output you get when starting Calibre in debug mode from the command line? I hope that’s what you meant:

        C:\Program Files (x86)\Calibre2>calibre-debug.exe -g
        calibre 2.0 isfrozen: True is64bit: False
        Windows-7-6.1.7601-SP1 Windows (’32bit’, ‘WindowsPE’)
        32bit process running on 64bit windows
        (‘Windows’, ‘7’, ‘6.1.7601’)
        Python 2.7.8
        Windows: (‘7′, ‘6.1.7601’, ‘SP1′, ‘Multiprocessor Free’)
        Successfully initialized third party plugins: Kindle and Mobipocket DeDRM
        Starting up…
        Started up in 0.83 seconds with 24 books
        Worker Launch took: 0.377999782562
        Job: 1 Read metadata (0 of 1) finished
        Read metadata (0 of 1)
        Kindle and Mobipocket DeDRM v0.4.19: Trying to decrypt B00OGPV44G_EBOK.a
        zw.
        Using Library AlfCrypto DLL/DYLIB/SO
        Running file type plugin Kindle and Mobipocket DeDRM failed with traceba
        ck:
        Traceback (most recent call last):
        File “site-packages\calibre\customize\ui.py”, line 154, in _run_filety
        pe_plugins
        File “calibre_plugins.k4mobidedrm.__init__”, line 122, in run
        File “calibre_plugins.k4mobidedrm.__init__”, line 255, in config
        File “site-packages\calibre\customize\zipplugin.py”, line 179, in load
        _module
        File “calibre_plugins.k4mobidedrm.config”, line 4, in
        ImportError: No module named PyQt4.Qt

        • You need to upgrade to Calibre 2.6 and delete DeDRM 0.4.19 and any other old obsolete DRM removal puglins and install the 6.0.9 all-in-one DRM removal plugin.

  91. I have a problem with a book in pdf format.

    When I first bought my Nook, I did not realize that certain books would not open with Nook for PC. It will open with Nook Study but recently B&N turned the Nook Study program over to someone else and I am worried that the day will come when I will no longer be able to open my book.

    Nook Study placed a pdf of the book in my B&N file on my PC. When I try to open it with ADE, I get the message ‘Unlock Code Needed.’ I have authorized my PC several different ways on the Adobe site, including using the id and cc number I used to buy the book.

    I tried importing the book in Calibre with the plug-ins in place. I got the log on screen for ADE again when I tried to open the book.

    The book is able to be opened with Windows 8. I borrowed a friend’s Windows 8 laptop, opened the book with the Nook for Windows 8 App, found the pdf file that was created in the app file, transferred it to an external drive, and then transferred it to my desktop running Windows 7. I then imported this to Calibre, tried to open it, and got the ADE log on screen again. I also tried the Covert Book tool at the top of the Calibre screen.

    I am running Calibre 1.39 with the DeDRM 6.0.8 plug-in installed as well as Inept Epub DeDRM 0.1.7 on a Windows 7 machine. Any help would be appreciated.

    In answer to David about no longer being able to download B&N books, maybe he could find an old copy of Nook for PC. I am able to use that to download books from B&N still.

  92. Hi Al:
    it did not work (worked earlier on a different PC):
    that’s the debug text:
    C:\Users\Marulya>calibre-debug -g
    calibre 2.6 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.8
    Windows: (‘8′, ‘6.2.9200’, ”, ‘Multiprocessor Free’)
    Successfully initialized third party plugins: DeDRM
    Starting up…
    Started up in 0.80 seconds with 14 books
    Worker Launch took: 0.110000133514
    Job: 1 Read metadata (0 of 1) finished
    Non-ASCII text detected. You must set your Console’s font to

    Lucida Console or C
    onsolas or some other TrueType font to see this text — Read

    metadata (0 of 1)
    DeDRM v6.0.9: Trying to decrypt CompTIA ® Linux+

    Certification Stud
    y Guide.pdf
    DeDRM v6.0.9: CompTIA ® Linux+ Certification Study

    Guide.pdf is a P
    DF ebook
    DeDRM v6.0.9: Ultimately failed to decrypt after 0.1

    seconds.
    Read the FAQs at Alf’s blog:

    http://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_filety
    pe_plugins
    File “calibre_plugins.dedrm.__init__”, line 479, in

    run
    File “calibre_plugins.dedrm.__init__”, line 361, in

    PDFDecrypt
    DeDRMError: DeDRM v6.0.9: Ultimately failed to decrypt

    “CompTIA ® L
    inux+ Certification Study Guide.pdf” after 0.1 seconds.
    Read the FAQs at Alf’s blog:

    http://apprenticealf.wordpress.com/

    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

    347, in get_file_ty
    pe_metadata
    File “site-packages\calibre\customize\builtins.py”,

    line 326, in get_m
    etadata
    File “site-packages\calibre\ebooks\metadata\pdf.py”,

    line 101, in get_
    metadata
    ValueError: Could not read info dict from PDF

    Added CompTIA ® Linux+ Certification Study Guide to db in:

    1.23600006104 se
    conds

    • Hi again:
      other books work – something wrong with this specific book.
      so please disregard my previous post.
      thank you very much Alf!

  93. I am trying to deDRM a BN epub. I have tried all possible name combinations with the updated cc info on my bn account.
    This is my log.

    Python 2.7.8
    OSX: (‘10.10′, (”, ”, ”), ‘x86_64′)
    Successfully initialized third party plugins: DeDRM
    Starting up…
    libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
    Started up in 1.44 seconds with 10 books
    Worker Launch took: 0.242465019226
    Job: 1 Read metadata (0 of 1) finished
    Read metadata (0 of 1)
    DeDRM v6.0.9: Trying to decrypt dragonridersofpern_9780345457394.epub
    DeDRM v6.0.9: Verifying zip archive integrity
    DeDRM v6.0.9: “dragonridersofpern_9780345457394.epub” is a secure Barnes & Noble ePub
    DeDRM v6.0.9: Trying Encryption key BNDRMT
    Could not decrypt MrX3J4.epub because of an exception:
    Traceback (most recent call last):
    File “calibre_plugins.dedrm.ignobleepub”, line 278, in decryptBook
    File “calibre_plugins.dedrm.ignobleepub”, line 209, in __init__
    File “calibre_plugins.dedrm.ignobleepub”, line 158, in __init__
    IGNOBLEError: AES improper key used

    DeDRM v6.0.9: Failed to decrypt with key BNDRMT after 0.1 seconds
    DeDRM v6.0.9: Trying Encryption key BNDRMD
    Could not decrypt MrX3J4.epub because of an exception:
    Traceback (most recent call last):
    File “calibre_plugins.dedrm.ignobleepub”, line 278, in decryptBook
    File “calibre_plugins.dedrm.ignobleepub”, line 209, in __init__
    File “calibre_plugins.dedrm.ignobleepub”, line 158, in __init__
    IGNOBLEError: AES improper key used

    DeDRM v6.0.9: Failed to decrypt with key BNDRMD after 0.1 seconds
    DeDRM v6.0.9: Trying Encryption key BNDRMTX
    Could not decrypt MrX3J4.epub because of an exception:
    Traceback (most recent call last):
    File “calibre_plugins.dedrm.ignobleepub”, line 278, in decryptBook
    File “calibre_plugins.dedrm.ignobleepub”, line 209, in __init__
    File “calibre_plugins.dedrm.ignobleepub”, line 158, in __init__
    IGNOBLEError: AES improper key used

    DeDRM v6.0.9: Failed to decrypt with key BNDRMTX after 0.1 seconds
    DeDRM v6.0.9: Trying Encryption key BNDRMX
    Could not decrypt MrX3J4.epub because of an exception:
    Traceback (most recent call last):
    File “calibre_plugins.dedrm.ignobleepub”, line 314, in decryptBook
    File “calibre_plugins.dedrm.ignobleepub”, line 232, in decrypt
    File “calibre_plugins.dedrm.ignobleepub”, line 222, in decompress
    error: Error -3 while decompressing: invalid block type

    DeDRM v6.0.9: Failed to decrypt with key BNDRMX after 0.1 seconds
    DeDRM v6.0.9: Trying Encryption key BNDRMDX
    Could not decrypt MrX3J4.epub because of an exception:
    Traceback (most recent call last):
    File “calibre_plugins.dedrm.ignobleepub”, line 314, in decryptBook
    File “calibre_plugins.dedrm.ignobleepub”, line 232, in decrypt
    File “calibre_plugins.dedrm.ignobleepub”, line 222, in decompress
    error: Error -3 while decompressing: invalid stored block lengths

    DeDRM v6.0.9: Failed to decrypt with key BNDRMDX after 0.1 seconds
    DeDRM v6.0.9: Ultimately failed to decrypt after 0.1 seconds.
    Read the FAQs at Alf’s blog: http://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 483, in run
    File “calibre_plugins.dedrm.__init__”, line 181, in ePubDecrypt
    DeDRMError: DeDRM v6.0.9: Ultimately failed to decrypt “dragonridersofpern_9780345457394.epub” after 0.1 seconds.
    Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/

    Added The Dragonriders of Pern: Dragonflight, Dragonquest, The White Dragon to db in: 0.0386049747467 seconds

  94. I have been using DeDRM with great success on my B&N books for a few years and more lately the Calibre version, also with great success. Then two things happened. My credit card got caught in the Home Depot hacking so the company gave me a new credit card account number. That required a change on my B&N account. And B&N changed their download policy, effectively removing access to *my* purchased books. I have since installed the alternative download button and that has solved the latter problem. But I cannot get Calibre to remove the DRM from my books, either new ones or old ones. I have entered keys with both the new and old CC numbers. I have used multiple possible account names. No luck. Here is the latest debug info. I’m using a MacBook Pro, up to date OS and Calibre.

    libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
    2014-10-20 10:05:39.108 Calibre[1567:505741] deliverNotificationWithTitle()
    * Notification delivered.
    calibre Debug log
    calibre 2.6 isfrozen: True is64bit: True
    Darwin-14.0.0-x86_64-i386-64bit Darwin (’64bit’, ”)
    (‘Darwin’, ‘14.0.0’, ‘Darwin Kernel Version 14.0.0: Fri Sep 19 00:26:44 PDT 2014; root:xnu-2782.1.97~2/RELEASE_X86_64′)
    Python 2.7.8
    OSX: (‘10.10′, (”, ”, ”), ‘x86_64′)
    Successfully initialized third party plugins: DeDRM
    Starting up…
    Started up in 50.36 seconds with 124 books
    Worker Launch took: 0.0958552360535
    Job: 1 Convert book 1 of 1 (Robert B. Parker’s Cheap Shot) finished
    Convert book 1 of 1 (Robert B. Parker’s Cheap Shot)
    Resolved conversion options
    calibre version: 2.6.0
    {‘asciiize': False,
    ‘author_sort': None,
    ‘authors': None,
    ‘base_font_size': 0.0,
    ‘book_producer': None,
    ‘change_justification': u’original’,
    ‘chapter': u”//*[((name()='h1' or name()='h2') and re:test(., '\\s*((chapter|book|section|part)\\s+)|((prolog|prologue|epilogue)(\\s+|$))', 'i')) or @class = 'chapter']“,
    ‘chapter_mark': u’pagebreak’,
    ‘comments': None,
    ‘cover': None,
    ‘debug_pipeline': None,
    ‘dehyphenate': True,
    ‘delete_blank_paragraphs': True,
    ‘disable_font_rescaling': False,
    ‘dont_split_on_page_breaks': False,
    ‘duplicate_links_in_toc': False,
    ‘embed_all_fonts': False,
    ‘embed_font_family': None,
    ‘enable_heuristics': False,
    ‘epub_flatten': False,
    ‘epub_inline_toc': False,
    ‘epub_toc_at_end': False,
    ‘expand_css': False,
    ‘extra_css': None,
    ‘extract_to': None,
    ‘filter_css': u”,
    ‘fix_indents': True,
    ‘flow_size': 260,
    ‘font_size_mapping': None,
    ‘format_scene_breaks': True,
    ‘html_unwrap_factor': 0.4,
    ‘input_encoding': None,
    ‘input_profile': ,
    ‘insert_blank_line': False,
    ‘insert_blank_line_size': 0.5,
    ‘insert_metadata': False,
    ‘isbn': None,
    ‘italicize_common_cases': True,
    ‘keep_ligatures': False,
    ‘language': None,
    ‘level1_toc': None,
    ‘level2_toc': None,
    ‘level3_toc': None,
    ‘line_height': 0.0,
    ‘linearize_tables': False,
    ‘margin_bottom': 5.0,
    ‘margin_left': 5.0,
    ‘margin_right': 5.0,
    ‘margin_top': 5.0,
    ‘markup_chapter_headings': True,
    ‘max_toc_links': 50,
    ‘minimum_line_height': 120.0,
    ‘no_chapters_in_toc': False,
    ‘no_default_epub_cover': False,
    ‘no_inline_navbars': False,
    ‘no_svg_cover': False,
    ‘output_profile': ,
    ‘page_breaks_before': u’/’,
    ‘prefer_metadata_cover': False,
    ‘preserve_cover_aspect_ratio': False,
    ‘pretty_print': True,
    ‘pubdate': None,
    ‘publisher': None,
    ‘rating': None,
    ‘read_metadata_from_opf': u’/var/folders/v4/tkt0z42d7dg1hz0zmw0c8cq40000gn/T/calibre_2.6.0_tmp_NEIMU7/5gkuRy.opf’,
    ‘remove_fake_margins': True,
    ‘remove_first_image': False,
    ‘remove_paragraph_spacing': False,
    ‘remove_paragraph_spacing_indent_size': 1.5,
    ‘renumber_headings': True,
    ‘replace_scene_breaks': u”,
    ‘search_replace': ‘[]’,
    ‘series': None,
    ‘series_index': None,
    ‘smarten_punctuation': False,
    ‘sr1_replace': None,
    ‘sr1_search': None,
    ‘sr2_replace': None,
    ‘sr2_search': None,
    ‘sr3_replace': None,
    ‘sr3_search': None,
    ‘start_reading_at': None,
    ‘subset_embedded_fonts': False,
    ‘tags': None,
    ‘timestamp': None,
    ‘title': None,
    ‘title_sort': None,
    ‘toc_filter': None,
    ‘toc_threshold': 6,
    ‘toc_title': None,
    ‘unsmarten_punctuation': False,
    ‘unwrap_lines': True,
    ‘use_auto_toc': False,
    ‘verbose': 2}
    Python function terminated unexpectedly: k2gK9R.epub
    InputFormatPlugin: EPUB Input running
    on /var/folders/v4/tkt0z42d7dg1hz0zmw0c8cq40000gn/T/calibre_2.6.0_tmp_NEIMU7/k2gK9R.epub
    Traceback (most recent call last):
    File “/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py”, line 208, in main
    return run_entry_point()
    File “/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py”, line 114, in run_entry_point
    return getattr(pmod, func)()
    File “site-packages/calibre/utils/ipc/worker.py”, line 195, in main
    File “site-packages/calibre/gui2/convert/gui_conversion.py”, line 31, in gui_convert_override
    File “site-packages/calibre/gui2/convert/gui_conversion.py”, line 25, in gui_convert
    File “site-packages/calibre/ebooks/conversion/plumber.py”, line 1041, in run
    File “site-packages/calibre/customize/conversion.py”, line 241, in __call__
    File “site-packages/calibre/ebooks/conversion/plugins/epub_input.py”, line 218, in convert
    calibre.ebooks.DRMError: k2gK9R.epub

    Anything there illuminating? Thanks for all your work behalf of consumers who want unfettered access to their digital purchases.

  95. Hello,

    I am new to this discussion. Trying to address a long standing issue with metadata import when adding PDF books into calibre when an ADE key exists in the DeDRM consolidated plugin. What is perplexing about the issue is none of these PDF ebooks have ANY DRM. Note, this issue is only with PDF ebooks, metadata for other formats are handled correctly.

    I have updated to v6.0.9 and the same issue continues. This problem did NOT occur back when I was using the individual plugins. And, it occurs with ALL versions of calibre back to 1.0.9.

    The issue: I have many books which have been saved off from calibre . These books all have their associated metadata.opf & in most cases their associated cover.jpeg . When I add some of those PDF books using the “Add, a single book per directory” option the associated metadata is added correctly into the calibre library. When I add the EXACT same book(s) using the “Add, multiple books per directory” option the associated metadata is NOT added into the calibre library. Instead only whatever metadata internal to the PDF ebook is added. Note: it does not matter if there actually are multiple books – just that you use the “Multiple” option. I initially opened this as a calibre problem with no resolution offered. After extensive testing and research, I narrowed it down to the DeDRM plugin and having the ADE key present when the books are added. Also I have had extended discussions with Kovid and other calibre developers and their response is very consistent – since it is related to an unsupported plugin we will not work to resolve the issue. When I remove the ADE key (leaving the DeDRM plugin still active) then the external metadata is processed correctly.

    Below is a calibre debug log in which I added two dummy PDF eBooks (I created them myself). These two books have their associated metadata & cover. First I added them using the “Multiple” option. You can see the – errors in the log. Then I added them using the “Single” option – no errors and the external metadata was added into the library.

    Thank you in advance for your help,
    RT

    calibre-debug -g
    calibre 1.48 isfrozen: True is64bit: False
    Windows-XP-5.1.2600-SP3 Windows (’32bit’, ‘WindowsPE’)
    (‘Windows’, ‘XP’, ‘5.1.2600’)
    Python 2.7.5
    Windows: (‘XP’, ‘5.1.2600’, ‘SP3′, ‘Uniprocessor Free’)
    Starting up…
    Started up in 4.64 seconds with 1 books

    <<>> =========================================================

    Worker Launch took: 0.296999931335
    Job: 4 Read metadata (0 of 1) finished

    Read metadata (0 of 1)
    DeDRM v6.0.9: Trying to decrypt author, junk1~seriesP 01~test1p.pdf
    DeDRM v6.0.9: author, junk1~seriesP 01~test1p.pdf is a PDF ebook
    DeDRM v6.0.9: Trying Encryption key default_key
    DeDRM v6.0.9: Successfully decrypted book after 0.3 seconds
    Syntax Error: Expected the optional content group list, but wasn’t able to find it, or it isn’t an Array
    Syntax Error: Expected the optional content group list, but wasn’t able to find it, or it isn’t an Array
    Syntax Error: No display font for ‘ArialNarrow’
    Syntax Error: No display font for ‘ArialNarrow,Bold’
    Syntax Error: No display font for ‘ArialNarrow,Italic’
    Syntax Error: No display font for ‘ArialNarrow,BoldItalic’
    Syntax Error: No display font for ‘ArialNarrow-Bold’
    Syntax Error: No display font for ‘ArialNarrow-Italic’
    Syntax Error: No display font for ‘ArialNarrow-BoldItalic’
    Syntax Error: No display font for ‘HelveticaNarrow’
    Syntax Error: No display font for ‘HelveticaNarrow,Bold’
    Syntax Error: No display font for ‘HelveticaNarrow,Italic’
    Syntax Error: No display font for ‘x3isplay font for ‘He’
    Syntax Error: No display font for ‘HelveticaNarrow-Bold’
    Syntax Error: No display font for ‘HelveticaNarrow-Italic’
    Syntax Error: No display font for ‘p3isplay font for ‘He’
    Syntax Error: No display font for ‘BookAntiqua’
    Syntax Error: No display font for ‘BookAntiqua,Bold’
    Syntax Error: No display font for ‘BookAntiqua,Italic’
    Syntax Error: No display font for ‘BookAntiqua,BoldItalic’
    Syntax Error: No display font for ‘BookAntiqua-Bold’
    Syntax Error: No display font for ‘BookAntiqua-Italic’
    Syntax Error: No display font for ‘BookAntiqua-BoldItalic’
    Syntax Error: No display font for ‘ArialUnicode’
    DeDRM v6.0.9: Trying to decrypt author, junk2~seriesP 02~test2p.pdf
    DeDRM v6.0.9: author, junk2~seriesP 02~test2p.pdf is a PDF ebook
    DeDRM v6.0.9: Trying Encryption key default_key
    DeDRM v6.0.9: Successfully decrypted book after 0.4 seconds
    Syntax Error: Expected the optional content group list, but wasn’t able to find it, or it isn’t an Array
    Syntax Error: Expected the optional content group list, but wasn’t able to find it, or it isn’t an Array
    Syntax Error: No display font for ‘ArialNarrow’
    Syntax Error: No display font for ‘ArialNarrow,Bold’
    Syntax Error: No display font for ‘ArialNarrow,Italic’
    Syntax Error: No display font for ‘ArialNarrow,BoldItalic’
    Syntax Error: No display font for ‘ArialNarrow-Bold’
    Syntax Error: No display font for ‘ArialNarrow-Italic’
    Syntax Error: No display font for ‘ArialNarrow-BoldItalic’
    Syntax Error: No display font for ‘HelveticaNarrow’
    Syntax Error: No display font for ‘HelveticaNarrow,Bold’
    Syntax Error: No display font for ‘HelveticaNarrow,Italic’
    Syntax Error: No display font for ‘x3isplay font for ‘He’
    Syntax Error: No display font for ‘HelveticaNarrow-Bold’
    Syntax Error: No display font for ‘HelveticaNarrow-Italic’
    Syntax Error: No display font for ‘p3isplay font for ‘He’
    Syntax Error: No display font for ‘BookAntiqua’
    Syntax Error: No display font for ‘BookAntiqua,Bold’
    Syntax Error: No display font for ‘BookAntiqua,Italic’
    Syntax Error: No display font for ‘BookAntiqua,BoldItalic’
    Syntax Error: No display font for ‘BookAntiqua-Bold’
    Syntax Error: No display font for ‘BookAntiqua-Italic’
    Syntax Error: No display font for ‘BookAntiqua-BoldItalic’
    Syntax Error: No display font for ‘ArialUnicode’

    Added junker 912ruhasncn9o to db in: 2.92199993134 seconds
    Added pdf test 2 to db in: 2.25 seconds

    <<>> =========================================================

    Worker Launch took: 0.296999931335
    Job: 5 Read metadata (0 of 1) finished
    Read metadata (0 of 1)
    DeDRM v6.0.9: Trying to decrypt author, junk1~seriesP 01~test1p.pdf
    DeDRM v6.0.9: author, junk1~seriesP 01~test1p.pdf is a PDF ebook
    DeDRM v6.0.9: Trying Encryption key default_key
    DeDRM v6.0.9: Successfully decrypted book after 0.3 seconds
    DeDRM v6.0.9: Trying to decrypt author, junk2~seriesP 02~test2p.pdf
    DeDRM v6.0.9: author, junk2~seriesP 02~test2p.pdf is a PDF ebook
    DeDRM v6.0.9: Trying Encryption key default_key
    DeDRM v6.0.9: Successfully decrypted book after 0.2 seconds

    Added test1p to db in: 2.31200003624 seconds
    Added test2p to db in: 2.18799996376 seconds

      • I, apparently, did not explain this error fully enough. Yes, the problem occurs because calibre apparently handles add “Single” versus add “Multiple” differently. But, that is NOT where the problem lies because I can successfully add the PDF ebooks metadata using the EXACT same calibre just by removing the ADE key definition from the DeDRM plugin. Also, as I mentioned I had ask in the MobileRead calibre forum – responses are “I cannot reproduce the error”, presumably because they will not test with an unsupported plugin.

        The problem ONLY happens when the DeDRM plugin+ADE key are defined/available in calibre. Calibre without DeDRM+ADE key has NO problem with the PDF ebook metadata. Also, calibre with DeDRM but no ADE key has NO problem with the PDF ebook metadata. And the ADE key is valid because I use it to remove DRM from epub books. So there is something in DeDRM code when an ADE key is defined that changes what is “passed on to” calibre for “add book” processing.

  96. I have the latest version of Calibre (2.6) and the plugin, but I cannot use the internal reader to read AZW3 books I have added. It just says “This book is locked by DRM…” I tried using Kindle for PC (1.10.8), but I cannot download any of those books. They all say “The item is not compatible with this device.” I can download them from the Kindle web page though, using the “Transfer to my PC” option. Is there a way to get the plugin operating with those files? I’m using Windows 7.

    calibre 2.6 isfrozen: True is64bit: False
    Windows-7-6.1.7601-SP1 Windows (’32bit’, ‘WindowsPE’)
    32bit process running on 64bit windows
    (‘Windows’, ‘7’, ‘6.1.7601’)
    Python 2.7.8
    Windows: (‘7′, ‘6.1.7601’, ‘SP1′, ‘Multiprocessor Free’)
    Successfully initialized third party plugins: DeDRM && Inept Epub DeDRM
    Starting up…
    Started up in 1.09 seconds with 365 books
    Worker Launch took: 0.144999980927
    Job: 1 Read metadata (0 of 1) finished
    Non-ASCII text detected. You must set your Console’s font to Lucida Console or C
    onsolas or some other TrueType font to see this text — Read metadata (0 of 1)
    DeDRM v6.0.9: Trying to decrypt Virginia Wolf.azw3
    Using Library AlfCrypto DLL/DYLIB/SO
    MobiDeDrm v0.41.
    Copyright (c) 2008-2012 The Dark Reverser et al.
    MOBI header version 8, header length 264
    Extra Data Flags: 3
    Decrypting Kindle Format 8 ebook: Virginia Wolf
    Keys not found in the database default_key.
    Found 2 keys to try after 0.1 seconds
    Crypto Type is: 2
    DeDRM v6.0.9: Failed to decrypt with error: No key found in 2 keys tried
    .
    DeDRM v6.0.9: Looking for new default Kindle Key after 0.1 seconds
    searching for kinfoFiles in C:\Users\Eric\AppData\Local
    Found K4PC 1.9+ kinf2011 file: C:\Users\Eric\AppData\Local\Amazon\Kindle
    \storage\.kinf2011
    DeDRM v6.0.9: Ultimately failed to decrypt after 0.2 seconds.
    Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/
    Traceback (most recent call last):
    File “calibre_plugins.dedrm.__init__”, line 381, in KindleMobiDecrypt
    File “calibre_plugins.dedrm.k4mobidedrm”, line 216, in GetDecryptedBoo
    k
    File “calibre_plugins.dedrm.mobidedrm”, line 469, in processBook
    DrmException: No key found in 2 keys tried.
    Running file type plugin DeDRM failed with traceback:
    Traceback (most recent call last):
    File “site-packages\calibre\customize\ui.py”, line 154, in _run_filety
    pe_plugins
    File “calibre_plugins.dedrm.__init__”, line 472, in run
    File “calibre_plugins.dedrm.__init__”, line 423, in KindleMobiDecrypt
    DeDRMError: DeDRM v6.0.9: Ultimately failed to decrypt “Virginia Wolf.az
    w3″ after 0.2 seconds with error: No key found in 2 keys tried.
    Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/

    Added Virginia Wolf to db in: 2.07999992371 seconds

    • If you can’t download the books to Kindle for PC, then you’ll need an E-INK based Kindle instead. You need to download to your PC ‘for transfer via USB’ to the e-ink Kindle, and you also need to enter that Kindle’s serial number in the plugin’s customisation dialog.

  97. Hi, first of all, YOU are AWESOME for making this. I’ve been using it for it seems like years. For the last few months, this has stopped working for me. Idk why. I do it the same way I always do, drag and drop the AZW file from My Kindle Content and attempt to convert, but I get an error every time with every book. Any thoughts as to why? Thanks in advance.

  98. Hello,
    Im having some trouble as soon as I try to convert an error pops up saying DRM protected. Here is the log:

    Convert book 1 of 1 (Window on Humanity: A Concise Introduction to General Anthropology)
    Resolved conversion options
    calibre version: 2.6.0
    {‘asciiize': False,
    ‘author_sort': None,
    ‘authors': None,
    ‘base_font_size': 0.0,
    ‘book_producer': None,
    ‘change_justification': u’original’,
    ‘chapter': u”//*[((name()='h1' or name()='h2') and re:test(., '\\s*((chapter|book|section|part)\\s+)|((prolog|prologue|epilogue)(\\s+|$))', 'i')) or @class = 'chapter']“,
    ‘chapter_mark': u’pagebreak’,
    ‘comments': None,
    ‘cover': u’C:\\Users\\Luis\\AppData\\Local\\Temp\\calibre_riyn3a\\3j6nek.jpeg’,
    ‘debug_pipeline': None,
    ‘dehyphenate': True,
    ‘delete_blank_paragraphs': True,
    ‘disable_font_rescaling': False,
    ‘dont_split_on_page_breaks': False,
    ‘duplicate_links_in_toc': False,
    ‘embed_all_fonts': False,
    ‘embed_font_family': None,
    ‘enable_heuristics': False,
    ‘epub_flatten': False,
    ‘epub_inline_toc': False,
    ‘epub_toc_at_end': False,
    ‘expand_css': False,
    ‘extra_css': None,
    ‘extract_to': None,
    ‘filter_css': u”,
    ‘fix_indents': True,
    ‘flow_size': 260,
    ‘font_size_mapping': None,
    ‘format_scene_breaks': True,
    ‘html_unwrap_factor': 0.4,
    ‘input_encoding': None,
    ‘input_profile': ,
    ‘insert_blank_line': False,
    ‘insert_blank_line_size': 0.5,
    ‘insert_metadata': False,
    ‘isbn': None,
    ‘italicize_common_cases': True,
    ‘keep_ligatures': False,
    ‘language': None,
    ‘level1_toc': None,
    ‘level2_toc': None,
    ‘level3_toc': None,
    ‘line_height': 0.0,
    ‘linearize_tables': False,
    ‘margin_bottom': 5.0,
    ‘margin_left': 5.0,
    ‘margin_right': 5.0,
    ‘margin_top': 5.0,
    ‘markup_chapter_headings': True,
    ‘max_toc_links': 50,
    ‘minimum_line_height': 120.0,
    ‘no_chapters_in_toc': False,
    ‘no_default_epub_cover': False,
    ‘no_inline_navbars': False,
    ‘no_svg_cover': False,
    ‘output_profile': ,
    ‘page_breaks_before': u”//*[name()='h1' or name()='h2']“,
    ‘prefer_metadata_cover': False,
    ‘preserve_cover_aspect_ratio': False,
    ‘pretty_print': True,
    ‘pubdate': None,
    ‘publisher': None,
    ‘rating': None,
    ‘read_metadata_from_opf': u’C:\\Users\\Luis\\AppData\\Local\\Temp\\calibre_riyn3a\\__tokn.opf’,
    ‘remove_fake_margins': True,
    ‘remove_first_image': False,
    ‘remove_paragraph_spacing': False,
    ‘remove_paragraph_spacing_indent_size': 1.5,
    ‘renumber_headings': True,
    ‘replace_scene_breaks': u”,
    ‘search_replace': ‘[]’,
    ‘series': None,
    ‘series_index': None,
    ‘smarten_punctuation': False,
    ‘sr1_replace': None,
    ‘sr1_search': None,
    ‘sr2_replace': None,
    ‘sr2_search': None,
    ‘sr3_replace': None,
    ‘sr3_search': None,
    ‘start_reading_at': None,
    ‘subset_embedded_fonts': False,
    ‘tags': None,
    ‘timestamp': None,
    ‘title': None,
    ‘title_sort': None,
    ‘toc_filter': None,
    ‘toc_threshold': 6,
    ‘toc_title': None,
    ‘unsmarten_punctuation': False,
    ‘unwrap_lines': True,
    ‘use_auto_toc': False,
    ‘verbose': 2}
    InputFormatPlugin: AZW4 Input running
    on C:\Users\Luis\AppData\Local\Temp\calibre_riyn3a\jumrjx.azw4
    Extracting PDF from AZW4 Container…
    Converting file to html…
    Python function terminated unexpectedly
    (Error Code: 1)
    Traceback (most recent call last):
    File “site.py”, line 132, in main
    File “site.py”, line 109, in run_entry_point
    File “site-packages\calibre\utils\ipc\worker.py”, line 195, in main
    File “site-packages\calibre\gui2\convert\gui_conversion.py”, line 31, in gui_convert_override
    File “site-packages\calibre\gui2\convert\gui_conversion.py”, line 25, in gui_convert
    File “site-packages\calibre\ebooks\conversion\plumber.py”, line 1041, in run
    File “site-packages\calibre\customize\conversion.py”, line 241, in __call__
    File “site-packages\calibre\ebooks\conversion\plugins\azw4_input.py”, line 25, in convert
    File “site-packages\calibre\ebooks\azw4\reader.py”, line 49, in extract_content
    File “site-packages\calibre\ebooks\conversion\plugins\pdf_input.py”, line 50, in convert
    File “site-packages\calibre\ebooks\pdf\pdftohtml.py”, line 97, in pdftohtml
    calibre.ebooks.DRMError

  99. I failed to DRM removed one of the ebooks that I have been reading under Adoble Digital Editions.

    I use Windows 7 32bit under a Virtualbox to install Adobe Edition and using the V6.0.9 plugin together with the lastest version of Calibre.

    The errors output is as follow:

    calibre 2.6 isfrozen: True is64bit: False
    Windows-7-6.1.7601-SP1 Windows (’32bit’, ‘WindowsPE’)
    (‘Windows’, ‘7’, ‘6.1.7601’)
    Python 2.7.8
    Windows: (‘7′, ‘6.1.7601’, ‘SP1′, ‘Multiprocessor Free’)
    Successfully initialized third party plugins: DeDRM
    Starting up…
    Started up in 5.07 seconds with 3 books
    Worker Launch took: 0.504999876022
    Job: 1 Read metadata (0 of 1) finished
    Read metadata (0 of 1)
    DeDRM v6.0.9: Trying to decrypt A Quick Start to Making Your Business Wonderful .pdf
    DeDRM v6.0.9: A Quick Start to Making Your Business Wonderful .pdf is a PDF ebook
    DeDRM v6.0.9: Ultimately failed to decrypt after 0.7 seconds.
    Read the FAQs at Alf’s blog: http://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 479, in run
    File “calibre_plugins.dedrm.__init__”, line 361, in PDFDecrypt
    DeDRMError: DeDRM v6.0.9: Ultimately failed to decrypt “Agile Pocket Guide A Quick Start to Making Your Business Agile .pdf” after 0.7 seconds.
    Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/
    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 347, in get_file_type_metadata
    File “site-packages\calibre\customize\builtins.py”, line 326, in get_metadata
    File “site-packages\calibre\ebooks\metadata\pdf.py”, line 101, in get_metadata
    ValueError: Could not read info dict from PDF

    Added A Quick Start to Making Your Business Wonderful o db in: 3.40799999237 seconds

    • As a quick fix, you could try going to the plugin’s customisation dialog and trying to add the default Digital Editions key, which is not done automatically if all you’ve tried to decrypt is a PDF.

      But longer term as a Linux user, you probably don’t want to keep running calibre under wine. Run calibre natively, import the ADE key to that, and you’ll find that a lot simpler, just using wine/ADE when you buy another ebook.

  100. The ADE works correctly when completely offline, so I will toss that idea. It does seem related to embedded objects (which I think are pictures, but I have no way to tell)

Leave a Reply

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

WordPress.com Logo

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

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s