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

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

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