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

257 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 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.

  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?

  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.

    • Thank you so much. I figured this had probably been posted some time in the past and that I had just missed it. I appreciate your help!

    • Thanks a lot for the plugin. Is there a particular reason for not doing any compression in the unencrypted epub zip file? Standalone Obok used to do it and I think it makes sense to make the files smaller if there’s no technical problem with it.

          • You’re right, I was reading the obok.py script’s main code included in the plugin, not spotting the book generation algorithm was mostly copy/pasted into action.py. (And dubiously relicensed as GPLv3, which the previous obok code was *not* under.)

  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.

  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

  64. 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