DRM Removal Tools for eBooks

Last updated on 16th October, 2013

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.8.zip can be downloaded from
http://www1.datafilehost.com/d/e9d6f3bc
or https://mega.co.nz/#!1c4R2RCA!exJ5ilNjqfTe6IiXe0-sqR_MQJkpIz8zw167fGh71us

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.8.zip)= 99fcb51e0ab76030f8fe80fba0522f67
MD5(Other_Tools.zip)= 72e0f5357d3740455eb93d87e55ebcf9

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

895 thoughts on “DRM Removal Tools for eBooks

  1. I’ve tried using the the Kindle4Android patches before to try getting the app to cough up it’s serial numbers without much success, but I’ve just been having a look at newly release Cydia Substrate for Android http://www.cydiasubstrate.com/ and it occurs to me that Cydia’s ability to modify running programs on-the-fly could be just what’s needed to make getting Kindle App serial numbers much less problematic.

    Does anyone know if any of the minds behind the Kindle patch are into using Cydia this way ?

  2. I’d like to share the patch for drm removal tools to support android.
    patch: https://piebridge.me/dedrm.patch.txt
    all in one for k4mobidrm: https://piebridge.me/k4mobidedrm.zip
    No need to patch kindle for android, however, will need root phone, or on emulator, or backup kindle settings to get AmazonSecureStorage.xml.

    steps:
    1. get AmazonSecureStorage.xml from /data/data/com.amazon.kindle/shared_prefs/AmazonSecureStorage.xml
    2. run `k4mobidedrm.py -a AmazonSecureStorage.xml ‘

    • there is another way to get serials without AmazonSecureStorage.xml.
      just use andbug: https://github.com/swdunlop/AndBug
      break with “break com.amazon.system.security.Security getPids(Lcom/amazon/system/security/IMessageDigest;Lcom/amazon/system/security/IBase64;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;[B[[B)[Ljava/lang/String;”
      then try to open a book, it will suspend on the break point.
      input “threads main verbose=3″, will show the stack and var data, then can get deviceSerialNumber and accountSecrets.

      the serial will be deviceSerialNumber + one of accountSecrets.

      if everyone know how to debug, my patch is useless.

      • Thanks for that. I don’t suppose you might have the inclination to document that with pictures for the less technical among us? :-) If you did have the time and desire to do so, you could maybe reply with a link to a pdf of instructions with pics. Sorry if you think I am cheeky to be so demanding. If you are too busy, thats understandable. Thanks for the above instructions, anyway.

    • Does it work for you, or not? (I dont know the meaning of “no joy” here.)
      If you cannot get AmazonSecureStorage.xml, from Android 4.0+, please run `adb backup com.amazon.kindle` from pc, it will save the kindle settings as backup.ab. The latest patch or k4mobidedrm.zip can handle it.
      If there is no AmazonSaltKey in AmazonSecureStorage.xml, please update to latest android version. (current 4.0.2.1).

  3. I’d like to share the patches to support kindle for android.
    patch: https://piebridge.me/dedrm.patch.txt
    allinone k4mobidedrm: https://piebridge.me/k4mobidedrm.zip
    Usage:
    1. get AmazonSecureStorage.xml from /data/data/com.amazon.kindle/shared_prefs/AmazonSecureStorage.xml
    2. run `k4mobidedrm.py -a AmazonSecureStorage.xml ‘

    Possible Issue to get AmazonSecureStorage.xml.
    Normally, AmazonSecureStorage.xml cannot be read in android.
    It can be read in rooted phone, emulator, or through backup settings.
    I wont provide a patched version to display the essential content in AmazonSecureStorage.xml.

  4. Dear Apprentice Alf’s,
    I have installed the latest plugin (v6.0.8.zip) and the latest Calibre (1.7). I can remove the DRM from the e-pub files, but NOT from pdf’s. I am using Adobe Digital Edition 2.0. I have tried to search for a previous version of Adobe Digital Edition (1.7) as suggested above, but I could not find any. I have bought both books from the same online book store – I want to remove the DRM so that I can read them on my Kindle DX. Is there something I am doing wrong? It works perfect with epub but not with PDF.

    • PDFs do seem to cause more problems. I doubt that ADE 1.7 will help. You could post a log of a PDF import, but I’m not sure that will give any clues.

      If you’re sure that these are ADE PDFs, and you’re willing to spend some time on this, I suggest that you email Alf directly (apprenticealf@gmail.com) and see if he’d like to see any sample files from you.

  5. Mac user here:

    OX 10.8.5
    Kindle for Mac App: 1.10.3 (40286)
    Calibre 1.7

    Using Library AlfCrypto DLL/DYLIB/SO
    K4MobiDeDrm v5.2.
    Copyright © 2008-2013 The Dark Reverser et al.
    Error getting database from file /Users/xxxxxx/Library/Preferences/com.apprenticealf.dedrm/Local Kindle Key.k4i: [Errno 2] No such file or directory: u’/Users/xxxxx/Library/Preferences/com.apprenticealf.dedrm/Local Kindle Key.k4i’
    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: ebook title
    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.

    I’ve uninstalled and reinstalled the plugin.
    I’ve uninstalled and reinstalled Calibre.
    I’ve uninstalled and reinstalled Kindle for Mac.

    I’ve searched for a k4i file but found none. Help?

      • When I try to create a DeDRM key by clicking on the green + sign, the plugin says “The default encryption key for MAC/PC could not be found.” I am not allowed to create a new key.

      • Getting the same error trying to DeDRM kindle files. KIndle is installed on my mac, registered, and I used it to download the book I pointed Calibre at. And the standalone DeDRM tool. Looked all over (incl “help files”), don’t see how to create a DeDRM key other than for Adobe stuff.

        • I suggest unregistering, uninstalling, deleting the Amazon stuff in Preferences (& possibly in Application Support) and then reinstalling and re-registering. Sometimes the key file that the tools read ends up in a strange state. Usually an uninstall, delete prefs and reinstall fixes it.

    • That looks like a partial log from the DeDRM application, not a full log from a calibre import with the plugin. My guess is that you’ll need to uninstall Kindle for Mac, delete any remaining preferences files, and then reinstall.

      But I’ve no idead why your current installation isn’t being found, as that bit of the log is missing.

    • I’m just looking into this for the 1st time. I’m trying to convert 9 books that I’ve purchased thru Amazon Kindle to my iBooks App. Since Apple has done such a nice jobs with iBooks lately I would like all of my books in one library.
      How far have you gotten with this?
      Thanks in advance for any advice you can share.

      • Read the posts. Download the tools. Free your books. If your Kindle is a Kindle Fire/Fire HD, you’ll need to install Kindle for Mac to get copies of your books which the tools will work on.

  6. I’m trying to import Nook EPUB files, I created a key however I have had the following error message when importing with calibre-debug -g

    “Value Error: Key cannot be the null string”

    I’m using Windows 7 64bit

  7. Hi, I was told that I could find links to Kobo kepub drm removal tools here but I’m not seeing anything. Can anyone please point me in the right direction? I already tried to post this question yesterday but it never appeared.

  8. calibre 1.5 isfrozen: True is64bit: True
    Darwin-12.5.0-x86_64-i386-64bit Darwin (’64bit’, ”)
    (‘Darwin’, ’12.5.0′, ‘Darwin Kernel Version 12.5.0: Sun Sep 29 13:33:47 PDT 2013; root:xnu-2050.48.12~1/RELEASE_X86_64′)
    Python 2.7.5
    OSX: (’10.8.5′, (”, ”, ”), ‘x86_64′)
    unknown-c8-bc-c8-c0-dd-52:~ Emma$

  9. Hi – First of all, thank you for this. I hated that when I wanted to dump my nook for a kindle, I didn’t want to originally because I didn’t want to lose the nook books I had already bought.

    That said, I think Amazon might have gotten wise to the DRM scheme and have changed the way they DRM books. The new Bridget Jones book was released 10/15. I couldn’t convert that. Two more books (Wally Lamb’s We are Water and Allegiant) that were released today 10/22, I can’t convert either. Before these two books, I have never had an issue converting any books. However, I am getting the same error after
    1. I download the .azw file from Kindle for PC
    2. Import it into Calibre.
    3. Attempt to convert from the .azw to either .epub or .mobi

    Here’s the error:
    calibre, version 0.9.6 (win32, isfrozen: True)
    Conversion Error: Failed: Convert book 1 of 1 (We Are Water: A Novel)

    Convert book 1 of 1 (We Are Water: A Novel)
    Resolved conversion options
    calibre version: 0.9.6
    {‘asciiize’: False,
    ‘author_sort’: None,
    ‘authors’: None,
    ‘base_font_size’: 0.0,
    ‘book_producer’: None,
    ‘change_justification’: u’original’,
    ‘chapter’: u”//*[((name()='h1' or name()='h2') and re:test(., '\\s*((chapter|book|section|part)\\s+)|((prolog|prologue|epilogue)(\\s+|$))', 'i')) or @class = 'chapter']“,
    ‘chapter_mark’: u’pagebreak’,
    ‘comments’: None,
    ‘cover’: u’C:\\Users\\Jenn\\AppData\\Local\\Temp\\calibre_0.9.6_tmp_asyz50\\cvwrqc.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_font_family’: None,
    ‘enable_heuristics’: False,
    ‘epub_flatten’: 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\\Jenn\\AppData\\Local\\Temp\\calibre_0.9.6_tmp_asyz50\\qpefwt.opf’,
    ‘remove_fake_margins’: True,
    ‘remove_first_image’: False,
    ‘remove_paragraph_spacing’: False,
    ‘remove_paragraph_spacing_indent_size’: 1.5,
    ‘renumber_headings’: True,
    ‘replace_scene_breaks’: u”,
    ‘search_replace’: ‘[]‘,
    ‘series’: None,
    ‘series_index’: None,
    ‘smarten_punctuation’: False,
    ‘sr1_replace’: None,
    ‘sr1_search’: None,
    ‘sr2_replace’: None,
    ‘sr2_search’: None,
    ‘sr3_replace’: None,
    ‘sr3_search’: None,
    ‘start_reading_at’: None,
    ‘subset_embedded_fonts’: False,
    ‘tags’: None,
    ‘timestamp’: None,
    ‘title’: None,
    ‘title_sort’: None,
    ‘toc_filter’: None,
    ‘toc_threshold’: 6,
    ‘unsmarten_punctuation’: False,
    ‘unwrap_lines’: True,
    ‘use_auto_toc’: False,
    ‘verbose’: 2}
    InputFormatPlugin: MOBI Input running
    on C:\Users\Jenn\AppData\Local\Temp\calibre_0.9.6_tmp_asyz50\qe41lg.azw3
    Found KF8 MOBI of type ‘standalone’
    Extracting text…
    Python function terminated unexpectedly
    ‘utf8′ codec can’t decode byte 0×84 in position 2718: invalid start byte (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 186, 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 1009, in run
    File “site-packages\calibre\customize\conversion.py”, line 239, in __call__
    File “site-packages\calibre\ebooks\conversion\plugins\mobi_input.py”, line 40, in convert
    File “site-packages\calibre\ebooks\mobi\reader\mobi8.py”, line 70, in __call__
    File “site-packages\calibre\ebooks\mobi\reader\mobi8.py”, line 382, in expand_text
    File “site-packages\calibre\ebooks\mobi\reader\markup.py”, line 301, in expand_mobi8_markup
    File “site-packages\calibre\ebooks\mobi\reader\markup.py”, line 46, in update_internal_links
    File “encodings\utf_8.py”, line 16, in decode
    UnicodeDecodeError: ‘utf8′ codec can’t decode byte 0×84 in position 2718: invalid start byte

    Please let me know if this is a new defect/bug or if this is something you are already working on.

    • I haven’t had a problem with any Amazon ebook yet, so my guess is that it’s a change in your system. Post the import log, and that might give a clue as to a solution.

    • I’m sorry to have wasted your time. I realized I didn’t have the most recent version of calibre. Once I installed that, that settled my issue. Thanks again for this wonderful tool!

  10. Hello,
    It seems I’ve just been robbed by Apple from my 26$. Bought my first ebook and tried to open with my iTunes and surprise surprise, i cannot read it on my Macbook, i need to purchase iOS device which i don’t intend neither can afford. I installed calibri and also the DeDRM plugin. Unfortunately it doesn’t work, calibri is stil saying there is DRM. I run DeDRM standalone software and i got a message “is seems the book doesn’t seem to be encrypted”. Any thoughts? Thanks!

    • Answering my own question ;-) – The tools (calibre plugin and standalone app) DO work with OS 10.9 – however, after de-drm’ing with the standalone app the OS shows the following box: ‘xx.com.apprenticealf.dedrm.plist’ is not a property list file.

      • Lo-o-o-ng time DeDrm user and a purist (no Calibre, just the bare program to rip and back up my purchases to an external HD). New computer Hard drive and a clean install of Mavericks as well as Dedrm. I do not get to the point of using the program. I get the p-list error message when I go to ‘Configure’ and want to select the output folder, also, when I try to enter the serial number of my e-ink device. This is the error message: “Macintosh HD: Users::Library: Preferences:com.apprenticealf.dedrm.plist’ is not a property list file”. FWIW, I installed Calibre and was able to backup the new book.

        • You’ll have to use the individual python scripts manually, or use calibre. The DeDRM app doesn’t currently work with Mavericks because of some problem with the preferences.

      • I believe all the scripts are included in the app’s package, if you want to run them by hand from the terminal. Or you could open up the app with AppleScript Editor, and see if you can fix the problem, whatever it is. It might even be that a simple re-save could fix it for you (although that seems unlikely).

      • >Indeed, standalone app is broken on OS Mavericks. Any fix for this? Any scripts I can run manually?
        Are you sure that the version of Python and Pycrypto are not v3.x and are indeed 2.x?

        • Same problem – bad plist file. I believe I have decrypted azw3 files, but they may be Tor books that do not come with DRM. Go Tor!
          $ python –version
          Python 2.7.5
          $ which python
          /usr/bin/python

  11. Hi,
    First, thanks for all the work you do with this. I really appreciate it.

    I have been using the DeDRM.app and Calibre plug-in for a while, without problems. However, tonight I upgraded to Mavericks.
    Shortly thereafter, I purchased 7 Kobo books. 5 of them imported into Calibre just fine. i have a problem with the remaining two. When I drop them on the DeDRM.app, I get the message that they don’t HAVE DRM. However, when I import them into Calibre, I get the message that they DO have DRM.

    In addition, with the DeDRM.app, when I drop a book on it, I get the message that “com.apprenticealf.dedrm.plist is not a property list file”

    I followed your trouble-shooting instructions, and get the following in Terminal:

    calibre 1.8 isfrozen: True is64bit: True
    Darwin-13.0.0-x86_64-i386-64bit Darwin (’64bit’, ”)
    (‘Darwin’, ’13.0.0′, ‘Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu-2422.1.72~6/RELEASE_X86_64′)
    Python 2.7.5
    OSX: (’10.9′, (”, ”, ”), ‘x86_64′)
    DEBUG: 0.0 iOSReaderApp:initialize(v1.2.1)
    DEBUG: 0.0 iOSReaderApp:compile_ui()
    DEBUG: 0.0 iOSReaderApp:_init_prefs(prefs created under v1.0.4)
    DEBUG: 0.0 debug_libimobiledevice: False
    DEBUG: 0.0 debug_plugin: True
    DEBUG: 0.0 development_mode: False
    DEBUG: 0.0 marvin_edit_collections_cb: True
    DEBUG: 0.0 marvin_enabled_collection_fields: [u'Format', u'Pages']
    DEBUG: 0.0 marvin_protect_rb: False
    DEBUG: 0.0 marvin_replace_rb: False
    DEBUG: 0.0 marvin_update_rb: True
    DEBUG: 0.0 preferred_reader_app: u’Marvin’
    DEBUG: 0.0 iOSReaderApp:_get_connected_device_info()
    DEBUG: 1.0 No connected iDevices
    Starting up…
    DEBUG: 3.1 iOSReaderApp:startup()
    INFO:cherrypy.error:[26/Oct/2013:02:51:03] ENGINE Bus STARTING
    INFO:cherrypy.error:[26/Oct/2013:02:51:03] ENGINE Started monitor thread ‘_TimeoutMonitor’.
    FFDL:DEBUG:calibre_plugins.fanfictiondownloader_plugin.ffdl_plugin(149):Plugin FanFictionDownLoader macmenuhack file_path:/Users/readel/Library/Preferences/calibre/plugins/fanfictiondownloader_macmenuhack.txt
    DEBUG:calibre_plugins.fanfictiondownloader_plugin.ffdl_plugin:Plugin FanFictionDownLoader macmenuhack file_path:/Users/readel/Library/Preferences/calibre/plugins/fanfictiondownloader_macmenuhack.txt
    macmenuhack file_path:/Users/readel/Library/Preferences/calibre/plugins/fanfictiondownloader_macmenuhack.txt
    Started up in 2.60 seconds with 1073 books
    INFO:cherrypy.error:[26/Oct/2013:02:51:03] ENGINE Serving on 0.0.0.0:8080
    ======= Plugin Parse Error =======
    Traceback (most recent call last):
    File “site-packages/calibre/gui2/dialogs/plugin_updater.py”, line 72, in read_available_plugins
    File “site-packages/calibre/gui2/dialogs/plugin_updater.py”, line 87, in get_installed_plugin_status
    AttributeError: ‘IDEVICE’ object has no attribute ‘plugin_path’
    {u’author’: u’GRiker’,
    u’deprecated’: True,
    u’description’: u’Communicate with iDevices’,
    u’donate’: u’https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=UDN8NYNFR2X58′,
    u’file’: u’198720-deprecated.zip’,
    u’history’: True,
    u’index_name’: u’Apple iDevice interface’,
    u’last_modified’: u’2013-02-02T23:11:56′,
    u’minimum_calibre_version’: [0, 9, 9],
    u’name’: u’Apple iDevice interface’,
    u’original_url’: u’http://www.mobileread.com/forums/attachment.php?s=a0b023c012016a4aaca1a61c8f5bf497&attachmentid=100574&d=1359846716′,
    u’size’: 1084,
    u’supported_platforms’: [u'osx', u'windows'],
    u’thread_id’: u’198720-deprecated’,
    u’thread_url’: u’http://www.mobileread.com/forums/showthread.php?t=198720′,
    u’uninstall’: None,
    u’version’: [0, 0, 6]}
    SMART_DEV ( 0.00: 0.001) _attach_to_port try ip address “” on port 9090
    SMART_DEV ( 0.93: 0.803) startup_on_demand listening on port 9090
    INFO:cherrypy.error:[26/Oct/2013:02:51:05] ENGINE Bus STARTED
    SMART_DEV ( 0.98: 0.000) _attach_to_port try ip address “” on port 54982
    SMART_DEV ( 1.02: 0.000) startup_on_demand broadcast socket listening on port 54982
    2013-10-26 02:51:05.250 calibre-debug[835:507] CoreText performance note: Client called CTFontCreateWithName() using name “calibre Symbols” and got font with PostScript name “calibreSymbols”. For best performance, only use PostScript names when calling this API.
    2013-10-26 02:51:05.251 calibre-debug[835:507] CoreText performance note: Set a breakpoint on CTFontLogSuboptimalRequest to debug.
    SMART_DEV ( 2.06: 1.002) run All IP addresses {‘en0′: [{'broadcast': '10.0.1.255', 'netmask': '255.255.255.0', 'addr': '10.0.1.10'}], ‘en1′: [{'broadcast': '10.0.1.255', 'netmask': '255.255.255.0', 'addr': '10.0.1.11'}], ‘lo0′: [{'peer': '127.0.0.1', 'netmask': '255.0.0.0', 'addr': '127.0.0.1'}]}
    Debugging DND event
    text/uri-list 65 ‘file:///Users/readel/Documents/Digital%20Editions/Break_In.epub\r\n’

    Firefox rurl: None None
    URLS: [u'file:///Users/readel/Documents/Digital Editions/Break_In.epub']
    Paths: [u'/Users/readel/Documents/Digital Editions/Break_In.epub']
    Extensions: frozenset([u'epub'])
    Worker Launch took: 0.0426700115204
    Job: 1 Read metadata (0 of 1) finished
    Read metadata (0 of 1)
    DeDRM v6.0.8: Trying to decrypt Break_In.epub
    DeDRM v6.0.8: Verifying zip archive integrity
    DeDRM v6.0.8: “Break_In.epub” is neither an Adobe Adept nor a Barnes & Noble encrypted ePub
    DeDRM v6.0.8: Successfully decrypted book after 0.0 seconds
    IneptEpub: Using libcrypto.
    IneptEpub: Calibre configuration directory = /Users/readel/Library/Preferences/calibre
    IneptEpub: Keyfile calibre-adeptkey.der found in config folder.
    IneptEpub: Not an Adobe Adept Epub… punting.
    IgnobleEpub: Using libcrypto.
    IgnobleEpub: Calibre configuration directory = /Users/readel/Library/Preferences/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_filetype_plugins
    File “calibre_plugins.ignobleepub.__init__”, line 319, in run
    IGNOBLEError: IgnobleEpub – No keys found. Plugin not configured.
    2013-10-26 02:51:22.007 calibre-parallel[843:507] CoreText performance note: Client called CTFontCreateWithName() using name “Times New Roman” and got font with PostScript name “TimesNewRomanPSMT”. For best performance, only use PostScript names when calling this API.
    2013-10-26 02:51:22.007 calibre-parallel[843:507] CoreText performance note: Set a breakpoint on CTFontLogSuboptimalRequest to debug.
    2013-10-26 02:51:22.041 calibre-parallel[843:507] CoreText performance note: Client called CTFontCreateWithName() using name “Times New Roman” and got font with PostScript name “TimesNewRomanPSMT”. For best performance, only use PostScript names when calling this API.

    Added Break In to db in: 0.115159988403 seconds
    2013-10-26 02:51:22.683 calibre-debug[835:507] modalSession has been exited prematurely – check for a reentrant call to endModalSession:

    Help please!

    • No matter what other problems you have, keeping the Ignobleepub and Ineptepub plugins installed alongside the DeDRM plugin is not a good idea. I suggest removing the Ignoble/Inept plugins.

          • I’m sorry, I’m not clear what your suggestion is. Do you mean, delete the DRM tools? Or the ebooks? I’ve already tried with the ebooks.

          • Ok, I’ve deleted the app, and the plug-in; restarted Calibre; re-downloaded the tools, and re-installed the plug-in, and everything now appears to be working OK, with one exception… I am still getting the message about the com.apprenticealf.dedrm.plist file.

            It doesn’t really matter that much, since everything appears to be working, but I AM curious…

            Thanks!

            • I meant the books – I assumed that the ones that didn’t work were corrupted in some way.

              The plist error is obviously some Mavericks-related problem. Perhaps Alf will fix it in an update some time.

  12. Hello,
    first, thanks for these great tools.
    Now for my question: I’m using Linux and I’d hate to install ADE via Wine. My Sony Reader is allready registered for Adobe DRM – is there a chance to retieve the needed key file from the Reader ?
    Many thanks & Best Regards,

  13. I keep getting the same error, over and over again. I have uninstalled both the kindle app and wiped it off the drive and its library as well as uninstalling the Calibre (v1.8) app and reinstalled everything.

    Job: 30 Read metadata (29 of 43) finished
    Read metadata (29 of 43)
    Traceback (most recent call last):
    File “calibre_plugins.dedrm.__init__”, line 130, in initialize
    IOError: [Errno 13] Permission denied: u’C:\\Users\\xxxxx\\AppData\\Roaming\\calibre\\plugins\\DeDRM\\libraryfiles\\alfcrypto.dll’
    Failed to initialize plugin: DeDRM (6, 0, 8)
    Failed to initialize plugin: u’C:\\Users\\xxxxx\\AppData\\Roaming\\calibre\\plugins\\DeDRM.zip’
    Failed to read MOBI cover

    • Clearly a Windows permissions problem. About which I know little. I think i’d try deleting C:\\Users\\xxxxx\\AppData\\Roaming\\calibre\\plugins\\DeDRM\\libraryfiles\\alfcrypto.dll and see if that helped.

      • No matter what I tried, I couldn’t get it to work.. even installed it all on a single user XP machine. Finally just went with the windows app version and everything says it was successful. Importing into Calibre now, we’ll see. Thank for your help.

  14. Great. I am getting the same strange message after installing mavericks (about the plist). But other than that everything seems ok.
    i do have a question regarding kindle/amazon if anyone had an answer.
    basically, i like using the kindle app more than ibooks. So I convert my epubs to mobi’s using calibre. Then I send them to my kindle app using the “send to kindle” app provided by amazon, or just by sending it to the amazon email address associated with my device. But, they always end up being categorized as a doc, not a book. It’s really annoying. any way to change that?

    • I suggest asking on MobileRead.com about how to send converted ePubs to the Kindle app and have them appear as books. It’s not relevant that they’ve been de-drmed.

    • forgot to mention that I tried changing the output setting for converting to mobi books to [EBOK] instead of the default [PDOC] (i read that on a website), but it still appears in the docs section of my kindle for iphone app

  15. Today something happened that hasn’t happened before, and I see that it happened to someone else as well. After dragging and dropping a kindle azw file into dedrm, it said that it wasn’t encrypted. However, calibre wouldn’t open it at all. Hmm.

    • They do not work on any of the recently downloaded books from Amazon. I fear that Amazon has somehow changed their DRM as has happened in the past, from what I previously read in the blog…

    • Post an import log of one that works, and an import one of one that hasn’t worked. To the best of my knowledge, nothing has changed at Amazon. (I had no trouble with a book I bought yesterday.)

      • Thanks Paul. You are right. The strange thing about is that I had no problem with some recently purchased ebooks but could not deDRM some ebooks that I bought 2 years ago!
        Where do I find the import log?

          • % ~/Desktop/calibre.app/Contents/MacOS/calibre-debug -g
            calibre 1.15 isfrozen: True is64bit: True
            Darwin-12.5.0-x86_64-i386-64bit Darwin (’64bit’, ”)
            (‘Darwin’, ’12.5.0′, ‘Darwin Kernel Version 12.5.0: Sun Sep 29 13:33:47 PDT 2013; root:xnu-2050.48.12~1/RELEASE_X86_64′)
            Python 2.7.5
            OSX: (’10.8.5′, (”, ”, ”), ‘x86_64′)
            Starting up…
            Started up in 3.73 seconds with 3484 books
            Worker Launch took: 0.066232919693
            Job: 1 Read metadata (0 of 1) finished
            Read metadata (0 of 1)
            DeDRM v6.0.8: Trying to decrypt B003BVJ8WQ_EBOK.azw
            Using Library AlfCrypto DLL/DYLIB/SO
            Decrypting Topaz ebook: Wetware: A Computer in Every Living Cell
            Found 6 keys to try after 0.0 seconds
            Trying: 4YVLLFFT
            Trying: Z6HSqIj3
            Book Key Found! (9f071fb319659949)
            Processing Section: img
            . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
            Processing Section: color
            . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
            Processing Section: other
            . . . .
            Processing Section: dict
            . . . .
            Processing Section: glyphs
            . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
            Processing Section: page
            . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
            Processing Section: metadata
            . . . .
            Successfully Extracted Topaz contents
            Updating to color images if available
            Creating cover.jpg
            Processing Dictionary
            Processing Meta Data and creating OPF
            Processing StyleSheet
            Using font size: 116
            Using page height: 13320
            Using page width: 8822
            Processing Glyphs
            . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
            Processing Pages
            . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
            Extracting Table of Contents from Amazon OCR
            Preface|0009
            ONE Clever Cells|0014
            TWO Simulated Life|0041
            THREE Protein Switches|0071
            FOUR Protein Signals|0091
            FIVE Cell Wiring|0112
            SIX Neural Nets Iog|0133
            SEVEN Cell Awareness|0164
            EIGHT Molecular Molphing|0177
            NINE Cells Together|0201
            TEN Genetic Circuits|0214
            ELEVEN Robots|0232
            TWELVE The Juice|0249
            THIRTEEN Amoeba Redux|0269
            Glossary|0287
            Sources and Further Reading|0295
            Index|0303
            Building svg images of each book page
            . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
            Processing Complete
            Book Successfully generated
            Decryption succeeded after 15.6 seconds
            DeDRM v6.0.8: Successfully decrypted book after 17.4 seconds
            Using Library AlfCrypto DLL/DYLIB/SO
            is not a valid Kindle serial number or PID.
            K4MobiDeDRM v0.4.2: Calibre configuration directory = /Users/mlevin3/Library/Preferences/calibre
            No kindle-info files have been found.
            Running file type plugin K4PC, K4Mac, Kindle Mobi and Topaz DeDRM failed with traceback:
            Traceback (most recent call last):
            File “site-packages/calibre/customize/ui.py”, line 154, in _run_filetype_plugins
            File “calibre_plugins.k4mobidedrm.__init__”, line 136, in run
            Exception: K4MobiDeDRM plugin v0.4.2 Error: Decryption Unsucessful; No valid pid found

            Added Wetware: A Computer in Every Living Cell to db in: 0.0234038829803 seconds

            • You still have one of the old separate plugins installed, as well as DeDRM 6.0.8. Removed that old plugin (Something like K4MobiDeDRM plugin v0.4.2) and all should be well.

              • Much better – it seems to have imported it. But it’s a .htmlz file and when I double-click on it in Calibre, instead of displaying the eBook, like it normally does, it brings up an import dialog. Any idea how to break this cycle and import the actual readable content? Thank you!!

                • If it’s imported as HTMLZ, then it’s a Topaz format book, and it has already done as much as it can on import. You now need to use calibre to convert it to a proper ebook format (ePub or azw3 or mobi). re-opening in calibre is an effect of calibre settings. I suspect that in calibre there’s a preference to open htmlz with the calibre viewer which isn’t checked.

        • Oh – and with older books, it’s always worth trying to re-download them. Perhaps the files you have from that long ago have an encryption key from a previous installation of the Kindle app. (With Amazon, the encryption key is dependent on the device and the book, not your account details.)

          • Thanks again Paul. Re-downloading the files worked perfectly for 38 of the 43 books that threw up “error” yesterday. The remaining 5 files are probably too big – the conversions get stuck at 47%.
            Again thanks.

          • Have to take back my previous comment re: file size. After over an hour, one of the 5 big files had converted successfully! Fingers crossed with the rest!

  16. Hi there,
    thanks for the great tool. Unfortunately I can’t get DeDRM APP on WIN get to undrm any of my books. Independant if they are AZW or AZW3 Format. Here’s the log:

    DeDRM v6.0.8: Processing: Denk dich reich Wohlstand ist Ei-asin_B008UKTZJE-type_EBOK-v_0.azw3…
    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: Denk dich reich!: Wohlstand ist Einstellungssache (German Edition)
    Found 12 keys to try after 0.0 seconds
    Crypto Type is: 2
    Error decrypting book after 0.0 seconds: No key found in 12 keys tried.
    Traceback (most recent call last):
    File “C:\Daten\Daca\Smiles\Produktmanagement\M-Books\DeDRM_App\DeDRM_lib\lib\k4mobidedrm.py”, line 242, in decryptBook
    book = GetDecryptedBook(infile, kDatabases, serials, pids, starttime)
    File “C:\Daten\Daca\Smiles\Produktmanagement\M-Books\DeDRM_App\DeDRM_lib\lib\k4mobidedrm.py”, line 216, in GetDecryptedBook
    mb.processBook(totalpids)
    File “C:\Daten\Daca\Smiles\Produktmanagement\M-Books\DeDRM_App\DeDRM_lib\lib\mobidedrm.py”, line 469, in processBook
    raise DrmException(u”No key found in {0:d} keys tried.”.format(len(goodpids)))
    DrmException: No key found in 12 keys tried.
    DeDRM v6.0.8: Failed

    DeDRM v6.0.8: Complete: Successes: 0, Failures: 1

    What am I doing wrong. Thanks for your help in advance

    Cheers

  17. Thanks. It appears I subscribed to the thread a bit too soon.
    I was able to download Calibre & the DRM stripping tools v6.0.8.zip. I followed the directions of dropping my previously purchased books from Kindle over to the De-DRM stripper tool. It stripped the DRMs. Next I took Calibre and directed it to import my books that had been stripped (which were currently parked on my desktop). I imported into Calibre. Selected the Convert button (in which while setting up Calibre I selected “Apple mobile books”). After 30-45 secs it said it had completed one book. I simply grabbed the book and drug it from Calibre out to my desktop. Then I right clicked and choose to open with iBooks. My book was converted and now in my iBooks App on my Mac.
    That was really easy.

    One last piece of advice to anyone reading this: If you’re Apple owner of any sort, don’t waist your time and efforts with Kindle. Apple uses the .epub format. This format is a universal format with no DRM attached. This format is the most simple and easy way to buy books and keep them organized on iOS & now Mac.

    Good luck to all.

    • It’s not true that there is no DRM attached to ePub files; there are several DRM schemes that can be used with them. Some of them can be removed. As far as I know, Apple still uses their “FairPlay” DRM, and it can be removed with Requiem. Amazon uses several different formats for Kindle books, and all of them can be DRM stripped at this point (I believe).

    • I’m glad to hear you’re sorted. If you install the calibre plugin you won’t need to use the separate tool – the claibre plugin just does the drm removal on import.

      NB Most commercial ePubs sold (by Apple, nook, Kobo or others) have DRM applied. Apple’s DRM is the only one that these tools won’t handle, so if buying ePubs, I wouldn’t recommend the Apple iBooks store.

  18. Hello,
    I’ve been unable to remove DRM from my B&N EPUBs despite following the ReadMe file instructions. I added the name and CC# information for B&N into the plug-in as instructed, but that didn’t change anything. Could you please take a look at the debug log and see if there’s anything obvious I’m missing? Thank you very much in advance!

    Alex

    calibre Debug log
    calibre 1.8 isfrozen: True is64bit: False
    Windows-XP-5.1.2600-SP3 Windows (’32bit’, ‘WindowsPE’)
    (‘Windows’, ‘XP’, ’5.1.2600′)
    Python 2.7.5
    Windows: (‘XP’, ’5.1.2600′, ‘SP3′, ‘Multiprocessor Free’)
    Starting up…
    Started up in 20.45 seconds with 5 books
    Worker Launch took: 0.155999898911
    Job: 1 Read metadata (0 of 1) finished
    Read metadata (0 of 1)
    DeDRM v6.0.8: Trying to decrypt Doc Holliday – The Life and Legend.epub
    DeDRM v6.0.8: Verifying zip archive integrity
    DeDRM v6.0.8: Error ‘File is not a zip file’ when checking zip archive
    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 482, in run
    File “calibre_plugins.dedrm.__init__”, line 147, in ePubDecrypt
    Exception: File is not a zip file
    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 191, in get_metadata
    File “site-packages\calibre\ebooks\metadata\epub.py”, line 230, in get_metadata
    File “site-packages\calibre\ebooks\metadata\epub.py”, line 136, in get_zip_reader
    File “site-packages\calibre\utils\localunzip.py”, line 234, in __init__
    File “site-packages\calibre\utils\localunzip.py”, line 171, in _extractall
    File “site-packages\calibre\utils\localunzip.py”, line 99, in read_local_file_header
    ValueError: This ZIP file uses unsupported features

    Added Doc Holliday to db in: 1.18799996376 seconds
    Worker Launch took: 0.125

    • I haven’t seen that one before. Try downloading again, just in case it’s a corrupt file. If that gives you the same error, unzip the ePub with your favourite zip program and then re-zip it. It looks like B&N is doing something weird with the zip file structure again.

      If that still doesn’t work, but you get a different error, post it here.

  19. I am trying to use the v6.0.8 on a kindle book (.azw3). other files work fine on the dedrm_drop_target.bat program. one of the program fails but the progress bar just gets stuck and doesn’t say anything about any error other than failed: The python windows say:

    Using Library AlfCrypto DLL/DYLIB/SO
    searching for kinfoFiles in C:\Users\skang\AppData\Local
    No K4PC kindle.info/kinf/kinf2011 files have been found.
    Using Library AlfCrypto DLL/DYLIB/SO

    • Where’s the .azw3 from? It doesn’t appear that you have Kindle for PC installed. If from an eInk Kindle you need to specify the serial number. Otherwise, you’ll need to download and install Kindle for PC from the Amazon web site, and download a copy of the book through that.

  20. Hi, I’m using calibre 0.9.26 with your newest plugin version v6.0.8. – but I’m afraid to update my calibre-version to 1.9.0
    Should I do it or better not? Many thx! Bye!

    • The plugin interface is the same, and many people are using it with calibre 1.9. It really depends on whether you want the new features and bug fixes in the new version of calibre.

  21. Thanks for the great plugin for Calibre, so far it’s working well for 99% of the books I’m importing. The only thing it doesn’t seem to want to strip the drm from are magazine subscriptions which come in a .pobi file format rather than .mobi/.azw3. Are there any plans to support that file extension in the future?

      • I have the same problem and I’ve tried what you suggested (changing the extension) but no joy. It just comes up with a ‘This book is locked by DRM’ message in Calibre.

          • Is there any chance my response has got stuck in spam filters or something? I’ve tried posting the log here twice earlier today and it hasn’t appeared.

              • Okay, let’s try this again!

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

                C:\Users\Chris>calibre-debug -g
                calibre 1.5 isfrozen: True is64bit: False
                Windows-7-6.1.7601-SP1 Windows (’32bit’, ‘WindowsPE’)
                (‘Windows’, ’7′, ’6.1.7601′)
                Python 2.7.5
                Windows: (’7′, ’6.1.7601′, ‘SP1′, ‘Multiprocessor Free’)
                Starting up…
                Started up in 0.66 seconds with 2 books
                Worker Launch took: 0.337999820709
                Job: 1 Read metadata (0 of 1) finished
                Read metadata (0 of 1)
                DeDRM v6.0.8: Trying to decrypt Asimov’s Science Fiction_B00AN9JWTS.mobi

                Using Library AlfCrypto DLL/DYLIB/SO
                MobiDeDrm v0.41.
                Copyright © 2008-2012 The Dark Reverser et al.
                MOBI header version 6, header length 248
                Extra Data Flags: 3
                Decrypting Mobipocket 6 ebook: Asimov’s Science Fiction
                Found 0 keys to try after 0.3 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.3 seconds
                searching for kinfoFiles in C:\Users\Chris\AppData\Local
                Found K4PC 1.9+ kinf2011 file: C:\Users\Chris\AppData\Local\Amazon\Kindl
                e\storage\.kinf2011
                Decrypted key file using IDString ’147067770′ and UserName ‘Chris’
                DeDRM v6.0.8: Found 1 new key
                MobiDeDrm v0.41.
                Copyright © 2008-2012 The Dark Reverser et al.
                MOBI header version 6, header length 248
                Extra Data Flags: 3
                Decrypting Mobipocket 6 ebook: Asimov’s Science Fiction
                Found 4 keys to try after 0.4 seconds
                Crypto Type is: 2
                DeDRM v6.0.8: Ultimately failed to decrypt after 0.4 seconds.
                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 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 471, in run
                File “calibre_plugins.dedrm.__init__”, line 422, in KindleMobiDecrypt
                DeDRMError: DeDRM v6.0.8: Ultimately failed to decrypt “Asimov’s Science
                Fiction_B00AN9JWTS.mobi” after 0.4 seconds with error: No key found in 4 keys t
                ried.

                Added Asimov’s Science Fiction to db in: 1.43400001526 seconds

  22. I’m getting the same plist error on OSX Mavericks as others are, but the standalone also keeps asking me for my PID over and over. I know I’ve entered my PID correctly, but the standalone app doesn’t seem to be able to use it. Haven’t been able to dedrm any books yet with the standalone, though the calibre plugin works fine.

    • If the stand-alone asks for a PID, that means whatever info you entered hasn’t been sufficient to decode the book. If you’ve enterd your Kindle serial number into the stand-alone’s preferences, double-check it. (PIDs are really from Mobipocket days.)

    • No. You’ll need to use Kindle for PC or Kindle for Mac to get copies of your books that will work with the tools.

      • Okay thanks, do I need to format it different for the Kindle Fire? Sorry this stuff if to hard for an old woman like me to understand.

  23. Is there anyway to strip the drm from the kepubs that are downloaded to android apps? They are already decompressed into a folder on the device and can be moved to the computer just fine. Would there need to be a change in something like the obok script to insert the user key or something similar for the app?

    • Almost certainly. But finding out where the user key is stored/generated and how to reverse engineer that is the tricky bit. I’m sure Alf would be pleased to add it to the tools archive if someone manages it.

      • I figured out that the user key for the Android app and the desktop app is the same. But since the obok script uses IP or something I am wondering if there is a way to copy the decompressed book from the Android, and then recompress it and name it .kepub and then somehow tell the obok script to use the kepub book instead of getting it from the sql database. May seem a bit difficult.

        • The DEDRM could possibly be modified for this as the mac address of an android device is relatively easy to obtain, and the userID is the same as the Kobo desktop application with a free book in it. I cannot find any sql file from the android though.

  24. I’m trying to run DRM 6.0.8 (the standalone program, not a plug-in) on OS X 10.9.0 (Mavericks). I want to change the default output folder from the desktop to one of my choosing, however the new configuration tool won’t allow me to do this. I can select the new output folder, but when I select ‘Close’ I receive the message: ” ‘Macintosh HD:Users:KieranAPB:Library:Preferences:com.apprenticealf.dedrm.plist’ is not a property list file.” I’m then given the option to select ‘OK’ which exits the program without saving any changes, or I can select ‘Edit’ which opens the AppleScript editor. I receive this error even if I make no changes to the default output folder. Can this be fixed? Is this an issue with the program or OS X 10.9.0? Should I go back to using version 5.4.1 of the software which is confirmed to work on OS X 10.8.3 (I’ve not tested it on 10.9.0 yet). Thanks. -Kieran

    • This is an error specific to Mac OS X 10.9 and the DeDRM AppleScript. I’m guessing, from other reports, that the problem is that is won’t allow opening a blank plist file.

      I suggest that you try creating a plain text file at the location indicated with a dummy plist containing the following text:

      NB This is only a guess on my part.

      • Ah- the contents I posted got edited out. Perhaps this will work

        <?xml version="1.0" encoding="UTF-8"?>
        <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
        <plist version="1.0">
        <dict>
        </dict>
        </plist>
        

        But if it’s still blank, just find an existing plist file on your system, duplicate it, rename it, and trim the contents.

        • Tried both creating the plist with the above code and using tim machine to restore a pre-mavericks plist. Both ended up with a totally empty plist after I run the DeDRM.app.

          • Then we’ll have to wait for someone to take a look at the AppleScript script and work out what’s wrong and fix it.

  25. Inspite of my current issues I would like to thank your team for you wonderful efforts. I’ve used your product for several years quite happily. I believe the current problems steam from changes to the mac os (10.9)
    I am currently unable to use either your calibre plug-in or the mac app. I did download the latest versions of calibre and your tools once I started having problems.
    Error message {
    ‘Mackintosh HD:Users:xxx:Library:Preferences:com.apprenticealf.dedrm.plist’ is not a property list file.
    } Effect the tool can’t load the saved uuids from kindle, etc and thus reports failure each time.
    any help will be greatly appreciated.
    Alyse
    /**********************DeDRM LOG FILE***************************/
    shellcommand: /usr/bin/python ‘/Applications/DeDRM.app/Contents/Resources/adobekey.py’ ‘/Users/nous/Library/Preferences/com.apprenticealf.dedrm/Local Adept Key.der’ > ‘/Users/nous/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
    shellresult: adobekey.py v6.0
    Copyright © 2009-2013 i♥cabbages and Apprentice Alf
    Saved a key to /Users/nous/Library/Preferences/com.apprenticealf.dedrm/Local Adept Key.der

    shellcommand: /usr/bin/python ‘/Applications/DeDRM.app/Contents/Resources/kindlekey.py’ ‘/Users/nous/Library/Preferences/com.apprenticealf.dedrm/Local Kindle Key.k4i’ > ‘/Users/nous/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
    shellresult: kindlekey.py v1.9
    Copyright © 2010-2013 some_updates and Apprentice Alf
    No k4Mac kindle-info/rainier/kinf2011 files have been found.
    Could not retrieve Kindle for Mac/PC key.

    • There doesn’t seem to be a fix for the DeDRM application at the moment, but the calibre plugin should work fine on Mac OS X 10.9. You’ll need to enter your preferences again.

    • My comments usually appear immediately, but sometimes one gets caught by the spam filter, especially if there are links in the post.

  26. Hi there sorry for my inexperience, but I have just try reading through your FAQ but I’m not sure I have found what I was looking for. A friend of mine has downloaded a DRM-locked ebook onto his Kindle. He has then saved the azw3 file to his hard-disk and sent it to me via email as an attached file. Is there a way to get the key to that ebook from another similar device, or shall I have to do it necessarily on my friend’s Kindle device? Forgive me for my probably stupid question and thanks to whoever willbe so kind to answer

  27. Hi,
    I’m having a problem with converting kindle books – failing to get the keys.
    MAC 10.6.8
    just installed kindle for mac today
    calibre failed so I installed the stand alone mac app. dedrm.app

    run dedrm.app, click configure and get an error :
    Can’t get file “Macintosh HD:Users:mas:Library:Preferences:com.apprenticealf.dedrm:Local Kindle Key.k4i” of application “Finder”
    buttons are edit or ok
    click edit and get a window showing:

    shellcommand: /usr/bin/python ‘/Applications/DeDRM.app/Contents/Resources/kindlekey.py’ ‘/Users/mas/Library/Preferences/com.apprenticealf.dedrm/Local Kindle Key.k4i’ > ‘/Users/mas/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
    shellresult: kindlekey.py v1.9
    Copyright © 2010-2013 some_updates and Apprentice Alf
    Found k4Mac kinf2011 file: /Users/mas/Library/Application Support/Kindle/storage/.kinf2011
    Couldn’t decrypt file.
    Could not retrieve Kindle for Mac/PC key.

    file .kinf2011 exists and has size 15225 . also a .pes2011 size 0
    suggestions please?

    • How odd. I can only suggest unregistering and uninstalling Kindle for Mac, deleting the folder containing the .kinf2011 file, and then re-installing and re-registering and see if that fixes things.

    • I’m getting the same error, but when i press edit, the applescript editor opens. Tried uninstalling kindle and dedrm, but still get the same error..

  28. I recently had some troubles with Barnes & Noble – based upon my credit card’s expiration date changing. I ended up changing my password a couple of times, but everything is working now – except DeDRM isn’t working anymore. That may be because I haven’t entered my name correctly when I configure it with my name and password. Surprisingly, Calibre must have the correct setting, as I was able to load and convert the book with no problem. Is there a way to determine my key that Calibre’s add on uses?

    • There’s no way to get from the key that the plugin stores back to the name & CC number used to generate it. You’ll just have to try name and number combinations until you find the right one – you found it before, after all.

      • I tried the my name three different ways, followed by a comma then my 16 digit Visa number that the B&N web site used.
        HowardBrazee, Howard Brazee, & HOWARD J BRAZEE
        Should I try again with only the last 8 digits of my card?

        • The number is the easy part – it’s the 15 (American Express) or 16 digit number that was the default payment method WHEN YOU DOWNLOADED THE BOOK.

          The name is trickier, but you probably won’t find it using random variations. Use the variations stored in your B&N account AT THE TIME YOU DOWNLOADED THE BOOK.

          Three variations isn’t a lot to try Try more. Also, IIRC, capitalisation and spaces in the name don’t count (although it’s possible I’m remembering wrong, as I haven’t checked).

  29. I am not sure what I am doing wrong…

    I have a Nook HD, I downloaded the books into Nook for PC. I generated the key. I double clicked on the batch file and loaded in the book that I wanted to convert. It keeps failing to remove the DRM. I then tried to load it into Calibre with the plug in – same thing. I have recreated the key and that says that the key is successfully generated, but nothing seems to work. I usually buy books for through Kindle and convert them for my Nook Simple. But these books are for my son. I bought them on Nook since the Nook HD is an Xmas present, but he is ready to read them now. Since I don’t want to give him his Xmas present early, I just want to convert the books so he can read them on his old kindle but nothing seems to be working. Am I messing up something obvious?

    • Try variations on your name when generating the key. It might be any of the names in your account – account name, shipping address name or CC name. With the plugin you can easily generate several different variations, and the plugin will try them all. If one works, you’ll be able to tell which one from the log, if you run in debug mode as per the FAQs.

      • I did try all those – nothing worked. So I searched my files and erased ALL previous keys. A bad one must have been somewhere – I think in my Temp files? – that had my CC middle initial. Any way, erased all prior keys, made a new one, and it worked! Thanks! :)

        • How interesting. I thought that the tools just tried all keys. I didn’t think a ‘bad’ key could stop the process.

          • Lol – well, that’s just a guess based on what I did and why it suddenly worked! ;) I deleted all the old keys I found and started fresh and it worked! I’m not one to question… As long as it works! :)

  30. Hi. Thanks for this great, free (!) toolkit. Using your tools I managed to unlock a DRM-locked epub book that I bought and downloaded from B&N. Later I converted the unlocked epub to pdf and mobi. Everything went smooth with no problems. My question is: I want to share the pdf and mobi (those with a Kindle) with a few members of my family, will someone somewhere be able to trace the pdf or mobi to my account on B&N, that is will they be able to trace it to me? And if they do, what’s my potential liability? I’m not paranoid, just being careful. :) Thanks in advance.

      • I know I have the correct 16 digit charge card number.
        I have tried the name on the card (which has my middle initial), & my first and last name as shown in the B&N web page account settings. I’m not seeing any other place to check.

        • Is the name in the default shipping address different? If your name is prefixed with Mr or Mr. in the account settings you must include that. Similarly, if your middle initial has a ‘.’ after it, include that.

          Other than that, I can’t think what you should try. Well, except downloading the troublesome book again, or posting a log here. Perhaps it’s some other probelm.

          • The last 3 days, I have gone to Barnes & Noble’s web page, where it has my name at the top, and knows what I have bought – but when I go to account settings, I get “We are sorry…

            The page you requested cannot be found. Please check the URL and try again or click here to continue shopping. “

  31. When running the DeDRM_app.pyw script under Linux, how do I get the Kindle key file? (I want to try this approach because I can’t get ActivePython 2.7.5 to run in Crossover Linux (wine)).

    • The script that gets the key is also written in Python. If you can’t install python under wine, you can’t use these tools for books from Kindle for PC.

      • Here is what I learned: the Linux steps listed in DeDRM_plugin_ReadMe.txt at the bottom do work, but only for wine (not for Crossover Linux). I find this strange because Crossover uses wine and it is simply the commercial version of wine. It does use a newer version of wine than the one listed in the readme file, but I wouldn’t think that was a problem. So now I have both wine and CrossOver installed on my system, which is not elegant. But I have to use wine to get the DeDRM tools to work, so that’s what I’m doing. It works when following the steps in the DeDRM_plugin_ReadMe.txt exactly.

  32. Thanks Alf Apprentice. You are one AWESOME person. It is great to have someone looking out for the little guy. We paid for it and they try to take it away later. You gave it back to us. This is a no bull website. You totally are a tech hero!

  33. I got to Barnes & Noble’s account settings page this time. I don’t see any place for “Mr.”, only a place for first and last name. I also verified that it is using the credit card I expected. So I went through the following process:
    Open DeDrm, configure, go to the Nook page, delete all previous keys, enter my first name, space, last name, comma, 16 digit charge number (no spaces). Save (get a message telling me it is not a property list file). Open DeDrm, pick the last book I bought (last week), try to convert it, get the “couldn’t be decoded” message.
    Since my charge card has an initial, I repeated the above with my middle initial, with the same result.

    • Oh, you’re on Mac OS X 10.9. You’ll need to wait for an updated. The DeDRM app preferences don’t seem to be working with Mac OS X 10.9.

  34. I got this log:

    Convert book 1 of 1 (XXX)
    Resolved conversion options
    calibre version: 1.8.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’XXX\\AppData\\Local\\Temp\\calibre_ndvrom\\cnsgto.jpeg’,
    ‘debug_pipeline’: None,
    ‘dehyphenate’: True,
    ‘delete_blank_paragraphs’: True,
    ‘disable_font_rescaling’: False,
    ‘dont_compress’: False,
    ‘duplicate_links_in_toc’: False,
    ‘embed_all_fonts’: False,
    ‘embed_font_family’: None,
    ‘enable_heuristics’: False,
    ‘expand_css’: False,
    ‘extra_css’: None,
    ‘extract_to’: None,
    ‘filter_css’: u”,
    ‘fix_indents’: True,
    ‘font_size_mapping’: None,
    ‘format_scene_breaks’: True,
    ‘html_unwrap_factor’: 0.4,
    ‘input_encoding’: None,
    ‘input_profile’: ,
    ‘insert_blank_line’: False,
    ‘insert_blank_line_size’: 0.5,
    ‘insert_metadata’: False,
    ‘isbn’: None,
    ‘italicize_common_cases’: True,
    ‘keep_ligatures’: False,
    ‘language’: None,
    ‘level1_toc’: None,
    ‘level2_toc’: None,
    ‘level3_toc’: None,
    ‘line_height’: 0.0,
    ‘linearize_tables’: False,
    ‘margin_bottom’: 5.0,
    ‘margin_left’: 5.0,
    ‘margin_right’: 5.0,
    ‘margin_top’: 5.0,
    ‘markup_chapter_headings’: True,
    ‘max_toc_links’: 50,
    ‘minimum_line_height’: 120.0,
    ‘mobi_file_type’: u’old’,
    ‘mobi_ignore_margins’: False,
    ‘mobi_keep_original_images’: False,
    ‘mobi_toc_at_start’: False,
    ‘no_chapters_in_toc’: False,
    ‘no_inline_navbars’: True,
    ‘no_inline_toc’: False,
    ‘output_profile’: ,
    ‘page_breaks_before’: u”//*[name()='h1' or name()='h2']“,
    ‘personal_doc’: u’[PDOC]‘,
    ‘prefer_author_sort’: False,
    ‘prefer_metadata_cover’: False,
    ‘pretty_print’: False,
    ‘pubdate’: None,
    ‘publisher’: None,
    ‘rating’: None,
    ‘read_metadata_from_opf’: u’XXX\\AppData\\Local\\Temp\\calibre_ndvrom\\jxzyui.opf’,
    ‘remove_fake_margins’: True,
    ‘remove_first_image’: False,
    ‘remove_paragraph_spacing’: False,
    ‘remove_paragraph_spacing_indent_size’: 1.5,
    ‘renumber_headings’: True,
    ‘replace_scene_breaks’: u”,
    ‘search_replace’: ‘[]‘,
    ‘series’: None,
    ‘series_index’: None,
    ‘share_not_sync’: False,
    ‘smarten_punctuation’: False,
    ‘sr1_replace’: None,
    ‘sr1_search’: None,
    ‘sr2_replace’: None,
    ‘sr2_search’: None,
    ‘sr3_replace’: None,
    ‘sr3_search’: None,
    ‘start_reading_at’: None,
    ‘subset_embedded_fonts’: False,
    ‘tags’: None,
    ‘timestamp’: None,
    ‘title’: None,
    ‘title_sort’: None,
    ‘toc_filter’: None,
    ‘toc_threshold’: 6,
    ‘toc_title’: None,
    ‘unsmarten_punctuation’: False,
    ‘unwrap_lines’: True,
    ‘use_auto_toc’: False,
    ‘verbose’: 2}
    InputFormatPlugin: MOBI Input running
    on XXX\AppData\Local\Temp\calibre_ndvrom\XXX.azw
    Found KF8 MOBI of type ‘standalone’
    Python function terminated unexpectedly
    XXX (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 1035, 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 71, in __call__
    File “site-packages\calibre\ebooks\mobi\reader\mobi6.py”, line 148, in check_for_drm
    calibre.ebooks.DRMError: XXX

    As unable to DeDRM an AZW file. Any help?

          • Quote:
            “Kindle only: It is a Topaz format book and contains some coding that the tools do not understand. You will need to get a log of the deDRM attempt, and then send the book and the PID (shown in the log) for the book to Apprentice Alf, so that the tools can be updated.
            If you are still having problems with particular books, you will need to create a log of the DRM removal attempt for one of the problem books, and post that in a comment.”
            That is what you mean? I am still clueless. It was not much of help. Could you point me to the right direction?

            • You didn’t read far enough through the FAQs:

              I cannot solve my problem the DeDRM plugin, and now I need to ‘post a log’. How do I do that?

              On Macintosh only you must first run calibre, open Preferences, open Miscellaneous, and click on the “Install command line tools” button. (On Windows and Linux the command line tools are installed automatically.)

              On Windows, open a terminal/command window. (Start/Run… and then type ‘cmd’ (without the ‘’) as the program to run).

              On Macintosh, open the Terminal application (in your Utilities folder).

              On Linux open a command window. Hopefully all Linux users know how to do this on their system, as it varies.

              You should now have a text-based command-line window open. Make sure that calibre isn’t running.

              Now type in ‘calibre-debug -g’ (without the ‘’) and press return key. Calibre will launch in debug mode, and various diagnostic information will be written to the terminal window.

              Import the ebook into calibre. More information will be written to the terminal window.

              Now copy the output from the terminal window.

              On Windows, you must use the window menu (little icon at left of window bar) to select all the text and then to copy it.

              On Macintosh and Linux, just use the normal text select and copy commands.

              Paste the information into a comment describing your problem.

              • Thanks! Here’s the log:

                calibre 1.12 isfrozen: True is64bit: False
                Windows-7-6.1.7601-SP1 Windows (’32bit’, ‘WindowsPE’)
                (‘Windows’, ’7′, ’6.1.7601′)
                Python 2.7.5
                Windows: (’7′, ’6.1.7601′, ‘SP1′, ‘Multiprocessor Free’)
                Starting up…
                Started up in 2.06 seconds with 1 books
                Worker Launch took: 0.348999977112
                Job: 1 Read metadata (0 of 1) finished
                Read metadata (0 of 1)

                Added Book to db in: 0.4370
                0003624 seconds
                Worker Launch took: 0.305999994278

  35. Installed your plugins for Calibre a few weeks ago (6.0.7) and they’re doing their job beautifully. Thank you!

    How does one keep the plugins up-to-date? Is there an automatic procedure from within Calibre, or must one check your site regularly for updates and reinstall the plugins each time?

      • Thanks, Paul. Subscribing to the feed is a good idea and I shall do that. However, my question was about whether updating Alf’s plugins for Calibre is done automatically – e.g, through Calibre’s own updates feature – or if we must manually reinstall Alf’s plugins each time he has issued an update.

  36. My wife and I both have a kindle on different accounts and I have downloaded the calibre and al’s plkugin and installed and try to convert my wifes books but with no joy always get the error protedted by DRM do I need other plugins to get passed this

    • My wife and I use different computers. If she buys a book, I need to remove the DRM on her computer.
      I see that Nook DRM removal can accept multiple accounts (at least for DeDRM does it do that with add-ons?). Maybe you should consider buying Nook books, then use Calibre to convert it to be read by your Kindle.

      On my iPad, the Kindle app does something that the Nook app and the native reader app don’t do is return from looking up a word on the Internet back to the reader. So sometimes I will read my converted B&N purchase on my Kindle app.

    • If your wife’s Kindle is E-Ink based, e.g. Kindle Paperwhite, then you just need to enter its serial number into the configuration dialog of the DeDRM plugin.

  37. I’m having a hard time removing drm from my Barnes and Noble ebook. I downloaded the ebook using nookstudy as my nook for pc can’t download it and neither my android. The book can only be opened with nookstudy due to the drm. I’m trying to use the calibre extension (v6.0.8) but to no success. I tried configuring the extension with my B&N name and cc# and then importing the book into Calibre. I tried this multiple times and it’s not working. I tried both names. The book gets added but the drm isn’t removed. Am I doing anything wrong? Is there any other way I can do this?

    • Is this your ONLY B&N book? Is it a nook study book, i.e. a PDF kind of book? Although some people have reported otherwise, I didn’t think the tools worked on them.

      Post an import log. That’s the main thing you haven’t done.

      • Yes, this is my first B&N book. I don’t think it’s a nook study book. However, I can only open it with Nook study for pc. I can’t open it with Nook for pc. I can’t find the book in my nook android app library either. I don’t have a nook tablet or ios device. I think it is a pdf file. When I import it, Calibre says file type as pdf. When I try opening it directly from my documents folder, the adobe reader tries to open it with Adobe Digital Editions which only displays a blank once opened.

        I don’t know how to find an import log since I’m new to this.

        • As far as I know, the tools don’t work with PDFs from Barnes & Noble. Although if you can get it to open in Adobe DIgital Editions, it might then be possible to remove the DRM.

          (I hate PDFs as an ebook format.)

  38. I have been using Calibre and the de-drm plugins on my MacBook for eInk Kindles for about a year, but I have been unable to upload books from my Kindle Paperwhites for about 6 months. I have the most recent version of Calibre and I installed v 6.0.8 this morning. I followed the instructions, input the serial numbers for my kindles, and I still cannot upload the books. I get this error:

    calibre, version 0.9.10
    ERROR: Error: Error communicating with device

    [Errno 2] No such file or directory: ‘/var/folders/dn/tk8s3v6949n141czfp1k63z00000gr/T/calibre_0.9.10_tmp_GZ8V6C/TPOYzT_rm_worker/0.azw3′

    Traceback (most recent call last):
    File “site-packages/calibre/gui2/device.py”, line 85, in run
    File “site-packages/calibre/gui2/device.py”, line 551, in _upload_books
    File “site-packages/calibre/devices/usbms/driver.py”, line 256, in upload_books
    File “site-packages/calibre/devices/usbms/device.py”, line 986, in _sanity_check
    File “site-packages/calibre/devices/utils.py”, line 33, in sanity_check
    File “lib/python2.7/genericpath.py”, line 49, in getsize
    OSError: [Errno 2] No such file or directory: ‘/var/folders/dn/tk8s3v6949n141czfp1k63z00000gr/T/calibre_0.9.10_tmp_GZ8V6C/TPOYzT_rm_worker/0.azw3′

    What am I doing wrong? Thanks!

    • That doesn’t look like anything to do with the DeDRM plugin. Try removing or otherwise disabling the DeDRM plugin and see if it still happens. If it does, ask in the calibre forum at MobileRead.com

  39. Hi,
    I’ve installed DeDRM successfully and according to the debug information in the terminal window the ebook is successfully encrypted (see below). But when I try to open the ebook an error message occurs that tells me that the book is under DRM. I’ve got no idea where I got wrong.

    Thanks a lot,
    Leo

    Microsoft Windows [Version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation. Alle Rechte vorbehalten.

    C:\Users\schulze-Meeáen>calibre-debug -g
    calibre 1.5 isfrozen: True is64bit: False
    Windows-7-6.1.7601-SP1 Windows (’32bit’, ‘WindowsPE’)
    (‘Windows’, ’7′, ’6.1.7601′)
    Python 2.7.5
    Windows: (’7′, ’6.1.7601′, ‘SP1′, ‘Multiprocessor Free’)
    Starting up…
    Key u’P’ for shortcut Einstellungen is already used by Bücher perfektionieren, i
    gnoring
    Started up in 0.53 seconds with 21 books
    Worker Launch took: 0.27999997139
    Job: 1 Read metadata (0 of 1) finished
    Read metadata (0 of 1)
    DeDRM v6.0.8: Trying to decrypt Erwartung – der Marco-Effekt.epub
    DeDRM v6.0.8: Verifying zip archive integrity
    DeDRM v6.0.8: Erwartung – der Marco-Effekt.epub is a secure Adobe Adept
    ePub
    DeDRM v6.0.8: Trying Encryption key calibre-adeptkey
    DeDRM v6.0.8: Successfully decrypted book after 0.4 seconds

    Added Erwartung – der Marco-Effekt to db in: 0.200000047684 seconds
    Worker Launch took: 0.289999961853

    • Did you delete the file from calibre before re-importing it? If not, calibre ignores the newly imported duplicate, leaving the original DRMed file there.

  40. FYI; regarding the Kobo python scripts they no longer seem to work. I think that with a newer version of Kobo Desktop the registry keys that the Windows version uses no longer exists.

      • Not that weird, really. The registry key simply stores your run-of-the-mill HTTP cookies that expire after a while and also may get wiped if you reinstall or upgrade the app.

  41. Thanks, works well. A question, using Mac OSX 10.8.4: When I first used the DeDRM standalone app, it worked well and converted the book to a protection stripped .amz file type — which is what I wanted. I then installed the plugins into Calibre, which also works but creates the books in .htmlz format. NOW, after installing plugins in Calibre, when I use the standalone DeDRM app, it also only outputs to .htmlz format. Seems like the Calibre plugins are messing with the output of DeDRM. How can I get DeDRM to again just strip protection, and save the file as filetype .amz???

    • Both tools work in the same way. You have seen a difference only because you’ve tried different books on the tools. Some Kindle books are in “Topaz” format, not Mobipocket or Kindle Format 8. Topaz books always get converted to htmlz.

  42. Thanks for your effort for writing “DRM Removal Tools for eBooks | Apprentice Alf’s Blog”.
    I personallymay definitely wind up being returning for even more browsing and writing comments shortly.
    Thank you, Vernell

  43. which tool was used – tools 6.0.8 (but same problem w/ 6.0.7) for Mac, standalone app
    which OS you are using 10.5.8
    where the ebook file came from (device or folder) Digital Editions
    any error messages see log
    a log of the DRM-removal attempt (see the FAQs on how to get a log). – logs from 6.08 (fail) and 5.3.1 (success) below
    upgraded from tools 5.3.1 to 6.0.7 and 6.0.8 and am now unable to de-drm epub title

    FAIL
    shellcommand: /usr/bin/python ‘/Users/macuser/Desktop/tools_v6.0.8/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/kindlekey.py’ ‘/Users/macuser/Library/Preferences/com.apprenticealf.dedrm/Local Kindle Key.k4i’ > ‘/Users/macuser/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
    shellresult: Traceback (most recent call last):
    File “/Users/macuser/Desktop/tools_v6.0.8/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/kindlekey.py”, line 34, in
    import json
    ImportError: No module named json
    There is 1 ebook to be decrypted.
    Processing file: book0001.epub
    shellcommand: /usr/bin/python ‘/Users/macuser/Desktop/tools_v6.0.8/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/zipfix.py’ ‘/Users/macuser/Documents/Digital Editions/book0001.epub’ ‘/Users/macuser/Desktop/book0001_fixed.epub’ > ‘/Users/macuser/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
    shellresult: /Users/macuser/Desktop/tools_v6.0.8/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/zipfilerugged.py:151: Warning: ‘with’ will become a reserved keyword in Python 2.6
    Traceback (most recent call last):
    File “/Users/macuser/Desktop/tools_v6.0.8/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/zipfix.py”, line 23, in
    import zipfilerugged
    File “/Users/macuser/Desktop/tools_v6.0.8/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/zipfilerugged.py”, line 151
    with open(filename, “rb”) as fp:
    ^
    SyntaxError: invalid syntax
    There was an error with 1 ebook:
    book0001.epub had a problem with ZipFix:
    /Users/macuser/Desktop/tools_v6.0.8/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/zipfilerugged.py:151: Warning: ‘with’ will become a reserved keyword in Python 2.6
    Traceback (most recent call last):
    File “/Users/macuser/Desktop/tools_v6.0.8/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/zipfix.py”, line 23, in
    import zipfilerugged
    File “/Users/macuser/Desktop/tools_v6.0.8/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/zipfilerugged.py”, line 151
    with open(filename, “rb”) as fp:
    ^
    SyntaxError: invalid syntax

    SUCCESS
    There is 1 ebook to be decrypted.
    Processing file: book0001.epub
    shellcommand: python ‘/Users/macuser/Desktop/DeDRM 5.3.1.app/Contents/Resources/zipfix.py’ ‘/Users/macuser/Documents/Digital Editions/book0001.epub’ ‘/Users/macuser/Desktop/book0001_fixed.epub’ > ‘/Users/macuser/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
    shellresult:
    shellcommand: python ‘/Users/macuser/Desktop/DeDRM 5.3.1.app/Contents/Resources/ineptepub.py’ ‘/Users/macuser/Library/Preferences/com.apprenticealf.dedrm/Local Adept Key.der’ ‘/Users/macuser/Desktop/book0001_fixed.epub’ ‘/Users/macuser/Desktop/book0001_nodrm.epub’ > ‘/Users/macuser/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
    shellresult:
    Successfully de-drmed 1 ebook:
    book0001.epub

    • Well, that is weird. It looks like the version of python under 10.5.8 is older than the python script zipfilerugged.py is expecting.

      For now, then, you should probably keep using 5.3.1! (Although, of course, that doesn’t have some fixes that are in 6.0.8. Still, if you run into any of those, it’ll be obvious. There’s a reason Alf changed the zip file handling – some nook books have weirdly corrupted zip file structures.)

  44. I am getting this error when I try to load the DRM tools 6.0.8 in Calibre … can anyone help me please?

    Traceback (most recent call last):
    File “site-packages\calibres\gui2\preferences\plugins.py”, line 315, in add_plugin
    File “site-packages\calibres\gui2\preferences\plugins.py”, line 403, in check_for_add_to_toolbars
    File “site-py”, line 66, in load_module
    ZipImportError: can’t find module calbre.gui2.preferences.toolbar

  45. Dear Alf,
    This ebook (.tpz) seems to be undrmable :( Any idea? Thank you in advance!

    Microsoft Windows XP [Versione 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.

    C:\Documents and Settings\Patrizia>calibredb add “d:\Documents and Settings\Patr
    izia\Documenti\Dropbox\LMLCC – collaborazione studenti\Glottodidattica\_A me mi_
    . Dubbi, errori, correzioni nell’italiano scritto (Giscel) (Italian Edition).tpz

    Kindle and Mobipocket DeDRM v0.4.13: Trying to decrypt _A me mi_. Dubbi, errori,
    correzioni nell’italiano scritto (Giscel) (Italian Edition).tpz.
    Using Library AlfCrypto DLL/DYLIB/SO
    Kindle and Mobipocket DeDRM v0.4.13: Calibre configuration directory is C:\Docum
    ents and Settings\Patrizia\Dati applicazioni\calibre
    Decrypting Topaz ebook: ?A me mi?. Dubbi, errori, correzioni nell’italiano scrit
    to (Giscel) (Italian Edition)
    searching for kinfoFiles in C:\Documents and Settings\Patrizia\Impostazioni loca
    li\Dati applicazioni
    Found K4PC kinf2011 file: C:\Documents and Settings\Patrizia\Impostazioni locali
    \Dati applicazioni\Amazon\Kindle\storage\.kinf2011
    Using Volume Serial Number for ID: 82779795
    Found 4 keys to try after 0.2 seconds
    Trying: QKI51Q7N
    Trying: AruujRWd
    Trying: WkRLyhUP
    Trying: Q/5hnFMe
    Running file type plugin Kindle and Mobipocket DeDRM failed with traceback:
    Traceback (most recent call last):
    File “site-packages\calibre\customize\ui.py”, line 154, in _run_filetype_plugi
    ns
    File “calibre_plugins.k4mobidedrm.__init__”, line 168, in run
    Exception: Kindle and Mobipocket DeDRM v0.4.13: Error after 12.3 seconds: No key
    found in 4 keys tried. Read the FAQs at Alf’s blog: http://apprenticealf.wordpr
    ess.com/
    Backing up metadata
    ID libri aggiunti: 6
    Notifying calibre of the change

    C:\Documents and Settings\Patrizia>

    • Can you read THAT file in your Kindle for PC installation? I rather doubt it. The tools can only remove DRM from files you can already read.

  46. Hi.

    Thank you for this great tool. Do have a subscription of sorts? I just found out that you released a new version of this tool today and until then I’m still using an older version. I think it would be great if you send us notifications if you have updates. But overall, keep up the good work! :)

  47. I am using Calibre 32bit with your latest plugin, on my Windows 7 64bit system. I also have Kindle for PC and recently purchased a book that has some pages I need to print. Calibre does not see this book, so I can’t remove the DRM for printing. Actually, Calibre only sees about half of my 987 books. Not sure where to go from here…

  48. Hi, I used DeDRM for Mac without issues before. Now I’ve upgraded my mac with a SSD and an HDD: OS and APP are on the SSD while file archives are on the HDD. I’ve also upgraded to OSX Mavericks. After I’ve reinstalled my apps on the new SSD I was not able to make it work: after I try to put my eInk Kindle 16 digit serial number there’s this error:
    ‘SSD:Users:acidburn:Library:Preferences:com.apprenticealf.dedrm.plist’ is not a property list file.
    there are 2 buttons: modify and ok. I don’t know what or how modify and if I click OK the program does not deDRM anything.

    Do you know what can be the problem?

    I’ve also installed the DeDRM plugin on Calibre and configured it with my ID, but I don’t know how to verify if, after importing my Amazon file, it worked or if it was just copied in the Calibre Library.

    • The Mac DeDRM tool seems to have a problem with its preferences on Maverick. You can tell if the calibre import is OK by either checking the file type (instead of azw it will be mobi, azw3 or htmlz), or just trying to view it in the calibre viewer. If you can view the text of the book with calibre, then it’s no longer got DRM.

  49. Alf, thanks for all your hard work on this, I feel a lot safer being able to backup my books and read them in other reading programs.

    I’ve created (and will seed for the forseeable future on a fast link) torrents for the “tools_v6.0.8″ and “Other_Tools”. Feel free to add the links to the initial post for people who get download sites blocked.

    tools_v6.0.8.zip
    magnet:?xt=urn:btih:B4147D5C929926483B8251F1823FB0B4ADECE8AC&dn=tools_v6.0.8&tr=udp%3a%2f%2ftracker.openbittorrent.com%3a80%2fannounce&tr=udp%3a%2f%2ftracker.publicbt.com%3a80%2fannounce&tr=udp%3a%2f%2ftracker.ccc.de%3a80%2fannounce

    Other_Tools.zip
    magnet:?xt=urn:btih:5F10A422736710C1DCCD7D0DF25192DC0840B45D&dn=Other_Tools&tr=udp%3a%2f%2ftracker.openbittorrent.com%3a80%2fannounce&tr=udp%3a%2f%2ftracker.publicbt.com%3a80%2fannounce&tr=udp%3a%2f%2ftracker.ccc.de%3a80%2fannounce

    If you object to this, please delete this comment. It’s meant in good faith.

  50. Tried to DeDRM an AZW book from Amazon. Used tools v6.0.8
    Calibre add-in . Restarted Calibre, Deleted the book, re-added. No luck. Firsts time in a long time that this hasn’t worked.
    Katabasis (The Mogoliad Cycle, Book 4)
    Running Win8.1Pro.
    Tried to find the conversion log, but have no idea what the name of the file (or ext) is, and not sure what you mean by ‘Home folder’ for Windows. I tried Desktop, Documents, and %Temp%

    • Convert book 1 of 1 (Katabasis (The Mongoliad Cycle, Book 4))
      Resolved conversion options
      calibre version: 1.12.0
      {‘asciiize’: False,
      ‘author_sort’: None,
      ‘authors’: None,
      ‘base_font_size’: 0.0,
      ‘book_producer’: None,
      ‘change_justification’: u’original’,
      ‘chapter’: u”//*[((name()='h1' or name()='h2') and re:test(., '\\s*((chapter|book|section|part)\\s+)|((prolog|prologue|epilogue)(\\s+|$))', 'i')) or @class = 'chapter']“,
      ‘chapter_mark’: u’pagebreak’,
      ‘comments’: None,
      ‘cover’: u’C:\\Users\\RICKHA~1.TIR\\AppData\\Local\\Temp\\calibre_lsnhbe\\sj5swr.jpeg’,
      ‘debug_pipeline’: None,
      ‘dehyphenate’: True,
      ‘delete_blank_paragraphs’: True,
      ‘disable_font_rescaling’: False,
      ‘dont_compress’: False,
      ‘duplicate_links_in_toc’: False,
      ‘embed_all_fonts’: False,
      ‘embed_font_family’: None,
      ‘enable_heuristics’: False,
      ‘expand_css’: False,
      ‘extra_css’: None,
      ‘extract_to’: None,
      ‘filter_css’: u”,
      ‘fix_indents’: True,
      ‘font_size_mapping’: None,
      ‘format_scene_breaks’: True,
      ‘html_unwrap_factor’: 0.4,
      ‘input_encoding’: None,
      ‘input_profile’: ,
      ‘insert_blank_line’: False,
      ‘insert_blank_line_size’: 0.5,
      ‘insert_metadata’: False,
      ‘isbn’: None,
      ‘italicize_common_cases’: True,
      ‘keep_ligatures’: False,
      ‘language’: None,
      ‘level1_toc’: None,
      ‘level2_toc’: None,
      ‘level3_toc’: None,
      ‘line_height’: 0.0,
      ‘linearize_tables’: False,
      ‘margin_bottom’: 5.0,
      ‘margin_left’: 5.0,
      ‘margin_right’: 5.0,
      ‘margin_top’: 5.0,
      ‘markup_chapter_headings’: True,
      ‘max_toc_links’: 50,
      ‘minimum_line_height’: 120.0,
      ‘mobi_file_type’: u’old’,
      ‘mobi_ignore_margins’: False,
      ‘mobi_keep_original_images’: False,
      ‘mobi_toc_at_start’: False,
      ‘no_chapters_in_toc’: False,
      ‘no_inline_navbars’: True,
      ‘no_inline_toc’: False,
      ‘output_profile’: ,
      ‘page_breaks_before’: u”//*[name()='h1' or name()='h2']“,
      ‘personal_doc’: u’[PDOC]‘,
      ‘prefer_author_sort’: False,
      ‘prefer_metadata_cover’: False,
      ‘pretty_print’: False,
      ‘pubdate’: None,
      ‘publisher’: None,
      ‘rating’: None,
      ‘read_metadata_from_opf’: u’C:\\Users\\RICKHA~1.TIR\\AppData\\Local\\Temp\\calibre_lsnhbe\\frwjlk.opf’,
      ‘remove_fake_margins’: True,
      ‘remove_first_image’: False,
      ‘remove_paragraph_spacing’: False,
      ‘remove_paragraph_spacing_indent_size’: 1.5,
      ‘renumber_headings’: True,
      ‘replace_scene_breaks’: u”,
      ‘search_replace’: ‘[]‘,
      ‘series’: None,
      ‘series_index’: None,
      ‘share_not_sync’: False,
      ‘smarten_punctuation’: False,
      ‘sr1_replace’: None,
      ‘sr1_search’: None,
      ‘sr2_replace’: None,
      ‘sr2_search’: None,
      ‘sr3_replace’: None,
      ‘sr3_search’: None,
      ‘start_reading_at’: None,
      ‘subset_embedded_fonts’: False,
      ‘tags’: None,
      ‘timestamp’: None,
      ‘title’: None,
      ‘title_sort’: None,
      ‘toc_filter’: None,
      ‘toc_threshold’: 6,
      ‘toc_title’: None,
      ‘unsmarten_punctuation’: False,
      ‘unwrap_lines’: True,
      ‘use_auto_toc’: False,
      ‘verbose’: 2}
      InputFormatPlugin: MOBI Input running
      on C:\Users\RICKHA~1.TIR\AppData\Local\Temp\calibre_lsnhbe\5vpkox.azw
      Found KF8 MOBI of type ‘standalone’
      Python function terminated unexpectedly
      Katabasis (The Mongoliad Cycle, Book 4) (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 1035, 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 71, in __call__
      File “site-packages\calibre\ebooks\mobi\reader\mobi6.py”, line 148, in check_for_drm
      calibre.ebooks.DRMError: Katabasis (The Mongoliad Cycle, Book 4)

      • That’s a conversion log, not an import log. Need the import log. (Home folder is your folder inside the users folder – the folder that’s got the same name as your user name.

        • No logs, or other files other than NTUser*.* files. in the username folder.
          Import log–why? Imports fine, except DRM not removed. And it shows the error in the conversion log.

          • Something got corrupted. Ignore everything I posted earlier. The plugin isn’t working at all. I removed it from Calibre, and reinstalled it.
            Still doesn’t work. Still looking for problems.

            • Calibre plug-in not working. calibre v1.12
              Something may have corrupted when I upgraded to Win 8.1, but I can’t be sure. I know I needed to create a new Windows profile, so I lost all my previous keys,
              No import log created, at least none that I can find,
              I’ve removed the plug-in, re-added it, re-started Calibre. Still not working.
              Any ideas?

  51. OK, it was a corrupt Kindle for PC installation. I uninstalled and deregistered it.
    Re-installed. Downloaded book again. Add books worked, All fine now.
    Please delete and condense all my previous posts.

  52. Hello, I know I am jumping in but I hope you can help me with my current problem. (Also that I am not repeating the same problem you already solved.)
    I just downloaded calibre 1.12.0. I tried to install it and it was progressing fine then this message popped up:
    “The cabinet file ‘calibre.cab’ required for this installation is corrupt and cannot be used. This could indicate a network error, and error reading from the CD-ROM, or a problem with this package.”
    I was given the option to ‘retry’ or cancel. I clicked retry and got the same message. Finally I hit cancelled it the whole processed was stopped.
    Is there something I need to do or download or what am I missing?
    I needed the calibre to dedrm my amazon books on my windows laptop. I am sorry I have no idea if my windows is xp or the other names.
    I would truly appreciate any help you can give me. Thank you.

  53. Thanks for working on these plug-ins, it’s the only way to actually get what you paid for when buying ebooks. I can successfully use the DeDRM plugin with Calibre on Windows 7. But when I try on my Ubuntu Linux 12.04 install it doesn’t work.

    I’m using 0.8.38, tools_v6.0.8 and I’ve followed all the instructions in the README about installing Activestate Python and Pycrypto etc. in Wine. When I try to import a book the bug output shows it should’ve worked but all I get is an azw file in Calibre, which Calibre can’t open or convert:

    FIXME: handle dialog end.
    FIXME: handle dialog start.
    Worker Launch took: 0.146958827972
    Job: 1 Read metadata (0 of 1) finished
    Read metadata (0 of 1)
    DeDRM v6.0.8: Trying to decrypt B00AXPJO4A_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: Killing Us Softly: The Sense and Nonsense of Alternative Medicine
    Found 4 keys to try after 0.0 seconds
    Crypto Type is: 2
    File is encoded with PID pjKEvhXXXX.
    Decrypting. Please wait . . . . done
    Decryption succeeded after 0.1 seconds
    DeDRM v6.0.8: Successfully decrypted book after 0.1 seconds

    Added B00AXPJO4A EBOK to db in: 0.579185962677 seconds
    FIXME: handle dialog end.

    • Strangely my post didn’t go through yesterday/last week. Maybe there is a limit of some sort on posting? One post a day? Or when I mixed up my name and email in the form to fill out I cannot post after that for 24 hours or something?

    • A follow-up to this:
      George @ November 26, 2013 at 4:13 pm
      I cannot post under it. Hopefully I got it now. All info included:

    • 1.
      calibre 1.12 isfrozen: True is64bit: False
      Windows-7-6.1.7601-SP1 Windows (’32bit’, ‘WindowsPE’)
      (‘Windows’, ’7′, ’6.1.7601′)
      Python 2.7.5
      Windows: (’7′, ’6.1.7601′, ‘SP1′, ‘Multiprocessor Free’)
      Starting up…
      Started up in 1.42 seconds with 0 books
      Worker Launch took: 0.31200003624
      Job: 1 Read metadata (0 of 1) finished
      Read metadata (0 of 1)
      DeDRM v6.0.8: Trying to decrypt XXX.azw
      Using Library AlfCrypto DLL/DYLIB/SO
      MobiDeDrm v0.41.
      Copyright © 2008-2012 The Dark Reverser et al.
      MOBI header version 8, header length 256
      Extra Data Flags: 3
      Decrypting Kindle Format 8 ebook: Book
      Found 0 keys to try after 0.1 seconds
      Crypto Type is: 2
      DeDRM v6.0.8: Failed to decrypt with error: No key found in 0 keys tried
      .

  54. Im a Mac (10.9) user trying to deDRM a PDF file from Adobe Digital Edition.
    But this particular book (no problem with other pdf files I tried) have missing pages after deDRM.
    This problem is replicable even when I tried with other DRM removal software (producing a same kind of deDRM file with exactly the same missing pages)

    Do Appreciate if you can help me with this. Thank You!

    Following is the log info:

    There is 1 ebook to be decrypted.
    Processing file: Diagnostic_and_Statistical_Manual_of_Mental_Diso_0001.pdf
    shellcommand: /usr/bin/python ‘/Users/oonlikeat/Desktop/DeDRM.app/Contents/Resources/ineptpdf.py’ ‘/Users/oonlikeat/Library/Preferences/com.apprenticealf.dedrm/Local Adept Key.der’ ‘/Users/oonlikeat/Documents/Digital Editions/Diagnostic_and_Statistical_Manual_of_Mental_Diso_0001.pdf’ ‘/Users/oonlikeat/Desktop/Diagnostic_and_Statistical_Manual_of_Mental_Diso_0001_nodrm.pdf’ > ‘/Users/oonlikeat/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
    shellresult: Successfully decrypted Diagnostic_and_Statistical_Manual_of_Mental_Diso_0001.pdf as Diagnostic_and_Statistical_Manual_of_Mental_Diso_0001_nodrm.pdf

    Successfully de-drmed 1 ebook:
    Diagnostic_and_Statistical_Manual_of_Mental_Diso_0001.pdf

    • I can only think that it has some PDF elements that the tools don’t know about. (It’s not surprising that any other tools had the same problem, since as far as I know, they’re all based on the same scripts as the tools here.)

      I think the problem will only be solved when someone with an interest in PDF and drm removal takes a close look at it.

      • hey, thanks so much for the reply! Do you happen to know anyone of such who can help? Can I email the eBook to you or someone else to have a look?

        Because I’m desperately hoping to get this solved. I have paid quite an amount of money on that eBook just to realise that I can’t really deDRM properly :(

        • You could try emailing Apprentice Alf: apprenticealf@gmail.com but I don’t know if he’ll be able to help. There was someone else looking at DRM and PDFs, but I can’t remember his name just now – and I don’t know if he’s still active. He’s probably mentioned in one of the FAQs about PDFs.

  55. Hey there!
    First of all, I want to say thanks to everyone included for their work!
    Then I’m still a bit confused as a non-PC-person ^^;; I never work with any kind of interface that requires me to write the scripts myself etc so some/most of the explanations above sound like a foreign language to me.. As far as I’ve understood it, it’s not possible to remove the DRM from an Ebook that was downloaded using Kindle for Android, right? If not correct me please. My problem is that I bought some Japanese mangas, that are -surprise, surprise- written in Japanese. As I don’t own a tablet nor kindle or w/e reader, I had it transfered to my smartphone which runs on an Android system. There is an app kindle for PC but appearently this does only work for ebooks downloaded from an amazon.xxxx site that also offers PC apps. amazon.jp only offers downloads of kindle for Android,iPad, iPhone etc but not for PC. So when I try logging onto my amazon.jp account using the amazon.xxxx app it doesn’t recognize my info.So my book’s stuck on my phone. I’d really need it on PC though as I’m still not that good with the Japanese language and need some OCR like Capture2Text which works pretty fine to help me recognize and translate the kanjis written down. Plus I prefer a bigger screen…duhhhhh…. The files are appearently stored in the folder “Phone\Android\data\com.amazon.kindle\files”. There I’ve got both a .PRC and a .EMBP for each book.I’m using a Windows XP and a Windows 7 PC (both already pretty old though). I tried removing the DRM with the DeDRM (trying out several different pycrypto builds etc) and calibe+plug-ing but no avail at all..My mother owns an iPad and a friend of mine an old kindle version which I could maybe borrow for a short while.Would that help me convert it or am I stuck with this DRM forever? I’m annoyed as the books aren’t sold (neither in real paper nor ebook version) on amazon.de or amazon.com and were only ever translated to Italian (no eBook for that).So I could only buy them as an Ebook on amazon.jp so that I don’t have to pay ~60€ shipping fees and an additional of 30€ tolls etc for something worth 4€….There isn’t even some kind of loss to any publisher because it’s already been some years and if it hasn’t been adaptated into an English version yet it won’t ever be. I’m not willing to accept a “You’re not Japanese? So either pay like 100€ in total for a 4€ book to read it hard-cover-style or leave it.”-policy.. I don’t own a money-tree, if you know what I mean..
    I’m really no tech-person so I’d need something like a “guide for the stupid” instead of a “crypt there, type there…” answer, if possible somehow.. Would be great, if you could help me out.

    • Hi Akina,

      It’s just possible to get Kindle books off an Android device and de-drmed, but it requires a lot of technical expertise.

      If you have a friend with an actual E-Ink Kindle device, that’s your simplest route. Unregister the Kindle from your friend’s account, and register it with your Amazon.co.jp account. Download the ebook either to the Kindle (in which case you’ll need to then copy it from the Kindel to your PC) or, if amazon.co.jp has the option, download it directly to your PC from the Amazon web site, but “for USB transfer” to the Kindle now registered on your account.

      Then, in the DeDRM app, or the calibre DeDRM plugin (which is my preferred option), enter the E-Ink Kindle’s serial number in the appropriate preference, and you should have no trouble getting the DRM striped from the ebook file.

      • Hey there again!
        I’ve been pretty busy the last few months so I haven’t had that much time to look into this issue, so that’s why I’m back here again just now,sorry and thanks for your previous answer. :) I tried using the kindle of my friend but somehow it didn’t work. Somewhere in forums etc I read something about older kindle versions not being able to handle amazon.jp accounts..So I guess her’s just too old. So could you please explain to me how I get the books DRMed out of an android phone? I don’t know if it’s any help at all but in the meantime I got a new PC which runs on Win8. Win8 works with Apps..So isn’t there a possibility to somehow use that? Maybe some sort of emulation of Android on Win8 or something to get the job done? I’m pretty frustrated things are so complicated. And there’s no sign of amazon.jp releasing a kindle app for PC.Appearently the big publishers in Japan don’t want that. >.< If there's no possibility to get the file itself out of my phone, is there a possibility to make a phone-screenshot while in the kindle for Andorid app? That'd be like the last possibility as literally making a photo of the screen itself would 1) be ridiculous 2) not worth the time of the day because the quality would suck so bad that you couldn't read anything on the manga.

        • You’ll need to find an older version of the Kindle for Android app and apply a patch to the application. I think the details are in the plugin alternative tools archive lined above.

  56. I have noticed with some pdfs after being run through the DeDRM tool i am unable to modify it using Adobe Acrobat.
    Currently using Acrobat 11.0.5, DeDRM v6.0.8 with Calibre 1.13.

    I have tested this also with other Calibre versions and versions of DeDRM going back as far as 5.1 with the same result.
    You can open the file and it is readable but if you want to modify it (i.e. delete pages, modify document properties you cannot.
    Some times with the plugin loaded and import a file with out DRM it will prevent it from being edited using Acrobat after importing it, however if you disable DeDRM before importing a non-DRM file then there is not issue. However if using BeCyPDFMetaEdit I can modify the document properties and save.

  57. I’ve been using DeDRM for my Amazon books, but using the plug-in for my B&N books (I gave up on Apple books altogether). I’d like to try figuring out why the plug-in doesn’t work with the books I downloaded via my Kindle for Mac without risking my B&N settings. What should I look at?

    • Post a log of an import of one of your Amazon ebooks. (My guess is that you also have an older drm removal plugin installed, as well as the DeDRM plugin.)

      • No key found:

        INFO:cherrypy.error:[01/Dec/2013:11:05:48] ENGINE Bus STARTING
        INFO:cherrypy.error:[01/Dec/2013:11:05:48] ENGINE Started monitor thread ‘_TimeoutMonitor’.
        INFO:cherrypy.error:[01/Dec/2013:11:05:48] ENGINE Serving on 0.0.0.0:8080
        INFO:cherrypy.error:[01/Dec/2013:11:05:50] ENGINE Bus STARTED
        2013-12-01 11:05:51.136 calibre-debug[29398:507] CoreText performance note: Client called CTFontCreateWithName() using name “calibre Symbols” and got font with PostScript name “calibreSymbols”. For best performance, only use PostScript names when calling this API.
        2013-12-01 11:05:51.162 calibre-debug[29398:507] CoreText performance note: Set a breakpoint on CTFontLogSuboptimalRequest to debug.
        calibre Debug log
        calibre 1.13 isfrozen: True is64bit: True
        Darwin-13.0.0-x86_64-i386-64bit Darwin (’64bit’, ”)
        (‘Darwin’, ’13.0.0′, ‘Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu-2422.1.72~6/RELEASE_X86_64′)
        Python 2.7.5
        OSX: (’10.9′, (”, ”, ”), ‘x86_64′)
        DEBUG: 0.0 iOSReaderApp:initialize(v1.2.5)
        DEBUG: 0.0 iOSReaderApp:compile_ui()
        DEBUG: 0.1 iOSReaderApp:_init_prefs(prefs created under v1.2.5)
        DEBUG: 0.1 debug_libimobiledevice: False
        DEBUG: 0.1 debug_plugin: True
        DEBUG: 0.1 development_mode: False
        DEBUG: 0.1 marvin_edit_collections_cb: False
        DEBUG: 0.1 marvin_protect_rb: False
        DEBUG: 0.1 marvin_replace_rb: False
        DEBUG: 0.1 marvin_update_rb: True
        DEBUG: 0.1 preferred_reader_app: u’Marvin’
        DEBUG: 0.2 iOSReaderApp:_get_connected_device_info()
        DEBUG: 3.3 mounting ‘com.appstafarian.Marvin’
        DEBUG: 4.4 iOSReaderApp:_class_reconfigure(‘Marvin’)
        DEBUG: 4.4 iOSReaderApp:_load_reader_app_overlays(‘Marvin’)
        DEBUG: 4.6 loading 39 overlays
        DEBUG: 4.6 adding overlay ‘_cover_to_thumb()’
        DEBUG: 4.6 adding overlay ‘_create_cover_element()’
        DEBUG: 4.6 adding overlay ‘_create_new_book()’
        DEBUG: 4.6 adding overlay ‘_evaluate_original_cover()’
        DEBUG: 4.6 adding overlay ‘_evaluate_replaceable_cover()’
        DEBUG: 4.6 adding overlay ‘_get_field_items()’
        DEBUG: 4.6 adding overlay ‘_get_opf_tree()’
        DEBUG: 4.6 adding overlay ‘_get_opf_xml()’
        DEBUG: 4.6 adding overlay ‘_initialize_overlay()’
        DEBUG: 4.6 adding overlay ‘_localize_database_path()’
        DEBUG: 4.6 adding overlay ‘_parse_xml()’
        DEBUG: 4.6 adding overlay ‘_remove_existing_copy()’
        DEBUG: 4.6 adding overlay ‘_report_upload_results()’
        DEBUG: 4.6 adding overlay ‘_reset_ios_connection()’
        DEBUG: 4.6 adding overlay ‘_schedule_metadata_update()’
        DEBUG: 4.6 adding overlay ‘_stage_command_file()’
        DEBUG: 4.6 adding overlay ‘_update_epub_metadata()’
        DEBUG: 4.6 adding overlay ‘_wait_for_command_completion()’
        DEBUG: 4.6 adding overlay ‘_watchdog_timed_out()’
        DEBUG: 4.6 adding overlay ‘_xform_metadata_via_plugboard()’
        DEBUG: 4.6 adding overlay ‘add_books_to_metadata()’
        DEBUG: 4.6 adding overlay ‘books()’
        DEBUG: 4.6 adding overlay ‘can_handle()’
        DEBUG: 4.6 adding overlay ‘can_handle_windows()’
        DEBUG: 4.6 adding overlay ‘delete_books()’
        DEBUG: 4.6 adding overlay ‘eject()’
        DEBUG: 4.6 adding overlay ‘get_busy_flag()’
        DEBUG: 4.6 adding overlay ‘get_file()’
        DEBUG: 4.6 adding overlay ‘guess_type()’
        DEBUG: 4.6 adding overlay ‘is_usb_connected()’
        DEBUG: 4.6 adding overlay ‘is_usb_connected_windows()’
        DEBUG: 4.6 adding overlay ‘post_yank_cleanup()’
        DEBUG: 4.6 adding overlay ‘prepare_addable_books()’
        DEBUG: 4.6 adding overlay ‘remove_books_from_metadata()’
        DEBUG: 4.6 adding overlay ‘set_busy_flag()’
        DEBUG: 4.6 adding overlay ‘sync_booklists()’
        DEBUG: 4.6 adding overlay ‘thumbnail()’
        DEBUG: 4.6 adding overlay ‘upload_books()’
        DEBUG: 4.6 adding overlay ‘xml_to_unicode()’
        DEBUG: 4.6 iOSReaderApp:_initialize_overlay(Marvin)
        DEBUG: 4.6 existing thumb cache at ‘/Users/HBrazee/Library/Caches/calibre/Marvin/thumbs.zip’
        DEBUG: 4.6 ~~~~~~~~~~~~~~~~~~~~~~~~~ switching to Marvin overlay ~~~~~~~~~~~~~~~~~~~~~~~~~~
        Starting up…
        DEBUG: 8.3 MarvinManagerAction:genesis(v1.0.9)
        DEBUG: 8.3 MarvinManagerAction:init_options()
        DEBUG: 8.4 MarvinManagerAction:inflate_dialog_resources()
        DEBUG: 8.4 MarvinManagerAction:compile_ui()
        DEBUG: 9.5 iOSReaderApp:startup()
        DEBUG: 10.9 MarvinManagerAction:rebuild_menus()
        DEBUG: 10.9 Marvin not connected
        DEBUG: 11.6 libiMobileDevice:_afc_get_file_info( ERROR: Object not found (8) path:u’/Library/calibre/connected.xml’)
        DEBUG: 14.6 libiMobileDevice:_afc_get_file_info( ERROR: Object not found (8) path:u’/Library/calibre/connected.xml’)
        DEBUG: 17.6 libiMobileDevice:_afc_get_file_info( ERROR: Object not found (8) path:u’/Library/calibre/connected.xml’)
        DEBUG: 20.6 libiMobileDevice:_afc_get_file_info( ERROR: Object n2013-12-01 11:06:16.487 calibre-debug[29398:507] modalSession has been exited prematurely – check for a reentrant call to endModalSession:
        ot found (8) path:u’/Library/calibre/connected.xml’)
        DEBUG: 23.6 libiMobileDevice:_afc_get_file_info( ERROR: Object not found (8) path:u’/Library/calibre/connected.xml’)
        DEBUG: 26.6 libiMobileDevice:_afc_get_file_info( ERROR: Object not found (8) path:u’/Library/calibre/connected.xml’)
        DEBUG: 29.6 libiMobileDevice:_afc_get_file_info( ERROR: Object not found (8) path:u’/Library/calibre/connected.xml’)
        DEBUG: 32.6 libiMobileDevice:_afc_get_file_info( ERROR: Object not found (8) path:u’/Library/calibre/connected.xml’)
        DEBUG: 35.6 libiMobileDevice:_afc_get_file_info( ERROR: Object not found (8) path:u’/Library/calibre/connected.xml’)
        Started up in 33.02 seconds with 315 books
        DEBUG: 38.6 libiMobileDevice:_afc_get_file_info( ERROR: Object not found (8) path:u’/Library/calibre/connected.xml’)
        DEBUG: 41.7 libiMobileDevice:_afc_get_file_info( ERROR: Object not found (8) path:u’/Library/calibre/connected.xml’)
        DEBUG: 44.7 libiMobileDevice:_afc_get_file_info( ERROR: Object not found (8) path:u’/Library/calibre/connected.xml’)
        DEBUG: 47.7 libiMobileDevice:_afc_get_file_info( ERROR: Object not found (8) path:u’/Library/calibre/connected.xml’)
        DEBUG: 50.7 libiMobileDevice:_afc_get_file_info( ERROR: Object not found (8) path:u’/Library/calibre/connected.xml’)
        DEBUG: 53.7 libiMobileDevice:_afc_get_file_info( ERROR: Object not found (8) path:u’/Library/calibre/connected.xml’)
        DEBUG: 56.7 libiMobileDevice:_afc_get_file_info( ERROR: Object not found (8) path:u’/Library/calibre/connected.xml’)
        DEBUG: 59.7 libiMobileDevice:_afc_get_file_info( ERROR: Object not found (8) path:u’/Library/calibre/connected.xml’)
        DEBUG: 62.7 libiMobileDevice:_afc_get_file_info( ERROR: Object not found (8) path:u’/Library/calibre/connected.xml’)
        DEBUG: 65.7 libiMobileDevice:_afc_get_file_info( ERROR: Object not found (8) path:u’/Library/calibre/connected.xml’)
        DEBUG: 68.7 libiMobileDevice:_afc_get_file_info( ERROR: Object not found (8) path:u’/Library/calibre/connected.xml’)
        Worker Launch took: 1.04050588608
        DEBUG: 71.7 libiMobileDevice:_afc_get_file_info( ERROR: Object not found (8) path:u’/Library/calibre/connected.xml’)
        DEBUG: 74.8 libiMobileDevice:_afc_get_file_info( ERROR: Object not found (8) path:u’/Library/calibre/connected.xml’)
        DEBUG: 77.8 libiMobileDevice:_afc_get_file_info( ERROR: Object not found (8) path:u’/Library/calibre/connected.xml’)
        DEBUG: 80.8 libiMobileDevice:_afc_get_file_info( ERROR: Object not found (8) path:u’/Library/calibre/connected.xml’)
        DEBUG: 83.8 libiMobileDevice:_afc_get_file_info( ERROR: Object not found (8) path:u’/Library/calibre/connected.xml’)
        DEBUG: 86.8 libiMobileDevice:_afc_get_file_info( ERROR: Object not found (8) path:u’/Library/calibre/connected.xml’)
        DEBUG: 89.8 libiMobileDevice:_afc_get_file_info( ERROR: Object not found (8) path:u’/Library/calibre/connected.xml’)
        DEBUG: 92.8 libiMobileDevice:_afc_get_file_info( ERROR: Object not found (8) path:u’/Library/calibre/connected.xml’)
        DEBUG: 95.8 libiMobileDevice:_afc_get_file_info( ERROR: Object not found (8) path:u’/Library/calibre/connected.xml’)
        DEBUG: 98.8 libiMobileDevice:_afc_get_file_info( ERROR: Object not found (8) path:u’/Library/calibre/connected.xml’)
        DEBUG: 101.8 libiMobileDevice:_afc_get_file_info( ERROR: Object not found (8) path:u’/Library/calibre/connected.xml’)
        DEBUG: 104.8 libiMobileDevice:_afc_get_file_info( ERROR: Object not found (8) path:u’/Library/calibre/connected.xml’)
        Added Simon the Coldheart: A tale of chivalry and adventure to db in: 0.0719180107117 seconds
        Job: 1 Read metadata (0 of 1) finished
        Read metadata (0 of 1)
        Using Library AlfCrypto DLL/DYLIB/SO
        is not a valid Kindle serial number or PID.
        K4MobiDeDRM v0.4.2: Calibre configuration directory = /Users/HBrazee/Library/Preferences/calibre
        MobiDeDrm v0.35. Copyright 2008-2011 The Dark Reverser et al.
        MOBI header version = 8, length = 256
        Extra Data Flags = 3
        No kindle-info files have been found.
        Crypto Type is: 2
        2013-12-01 11:07:23.572 calibre-parallel[29503:507] modalSession has been exited pr2013-12-01 11:07:39.061 calibre-debug[29398:507] modalSession has been exited prematurely – check for a reentrant call to endModalSession:
        2013-12-01 11:07:39.090 calibre-debug[29398:507] -[NSApplication runModalSession:]: Use of freed session detected. Do not call runModalSession: after calling endModalSesion:.
        /Applications/calibre.app/Contents/Resources/Python/site-packages/cherrypy/process/wspbus.py:225: RuntimeWarning: The main thread is exiting, but the Bus is in the states.STARTED state; shutting it down automatically now. You must either call bus.block() after start(), or call bus.exit() before the main thread exits.
        INFO:cherrypy.error:[01/Dec/2013:11:07:43] ENGINE Bus STOPPING
        INFO:cherrypy.error:[01/Dec/2013:11:07:43] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer((’0.0.0.0′, 8080)) shut down
        INFO:cherrypy.error:[01/Dec/2013:11:07:43] ENGINE Stopped thread ‘_TimeoutMonitor’.
        INFO:cherrypy.error:[01/Dec/2013:11:07:43] ENGINE Bus STOPPED
        INFO:cherrypy.error:[01/Dec/2013:11:07:43] ENGINE Bus EXITING
        INFO:cherrypy.error:[01/Dec/2013:11:07:43] ENGINE Bus EXITED
        INFO:cherrypy.error:[01/Dec/2013:11:07:43] ENGINE Waiting for child threads to terminate…
        ematurely – check for a reentrant call to endModalSession:
        Running file type plugin K4PC, K4Mac, Kindle Mobi and Topaz DeDRM failed with traceback:
        Traceback (most recent call last):
        File “site-packages/calibre/customize/ui.py”, line 154, in _run_filetype_plugins
        File “calibre_plugins.k4mobidedrm.__init__”, line 127, in run
        Exception: K4MobiDeDRM plugin v0.4.2 Error: No key found. Please report this failure for help.

        DEBUG: 107.8 libiMobileDevice:_afc_get_file_info( ERROR: Object not found (8) path:u’/Library/calibre/connected.xml’)
        DEBUG: 110.9 libiMobileDevice:_afc_get_file_info( ERROR: Object not found (8) path:u’/Library/calibre/connected.xml’)
        DEBUG: 113.9 libiMobileDevice:_afc_get_file_info( ERROR: Object not found (8) path:u’/Library/calibre/connected.xml’)
        DEBUG: 116.9 libiMobileDevice:_afc_get_file_info( ERROR: Object not found (8) path:u’/Library/calibre/connected.xml’)
        DEBUG: 119.9 libiMobileDevice:_afc_get_file_info( ERROR: Object not found (8) path:u’/Library/calibre/connected.xml’)
        DEBUG: 122.9 libiMobileDevice:_afc_get_file_info( ERROR: Object not found (8) path:u’/Library/calibre/connected.xml’)
        DEBUG: 124.7 MarvinManagerAction:shutting_down()

          • I found a plugin named “K4PC, K4Mac, Kindle Mobi and Topaz DeDRM (0.4.2), I assume that is what I should delete. Is that correct?. I also downloaded the DeDRM 6.0.8 file and installed the Calibre zip file.

              • That did the job! Thanks.
                I can re-load already loaded Kindle books (to test this solution), because Kindle stores names backwards from Calibre (Nook books don’t), so I had a duplicate, but with a different author name from the one with the corrected name. It’s interesting that some of my corrected Kindle titles showed up in Marvin uncorrected.

  58. I bought some pdf books in Digital Editions protection format.
    After installing the DeDRM the books was imported without any error messages.
    But when I try to open them they ask for a password.
    Does that mean they are not decrypted or is it possible to get the password from somewhere?

  59. Okay I tried solving this myself and couldn’t find the plugins that need to be deleted.
    http://stream-recorder.com/forum/calibre-stopped-removing-drm-my-kindle-books-t10256.html
    I’ve downloaded and reinstalled and used the new tools, but I couldn’t remove whatever plugin I was supposed to remove because I can’t find it.
    I’m running a mac with mavericks and mine was working until I deleted my kindle and reinstalled it and now I keep getting the error message.
    Any help I’d be grateful. Thanks.

  60. I can also no longer find my kindle files. the folders they show where the files are kept isn’t there. I tried changing where the files are at and it keeps asking me to register again. when I do this it reverts back to the mystery place where they’re hiding my files.

  61. okay I found where the kindle files are, but I’m still having trouble with the calibre plugins and it not working. help!

  62. I found these files on my mac k4mobiededrm.py (python) and topaz extract.py (python) in the tools file are these the ones I need to delete?

  63. Convert book 1 of 1 (Chain Letter: Chain Letter; The Ancient Evil)
    Resolved conversion options
    calibre version: 1.13.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/2w/wsw796w53l1b22x_5r7hqd000000gp/T/calibre_1.13.0_tmp_tPkkU7/iyLt9L.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,
    ‘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/2w/wsw796w53l1b22x_5r7hqd000000gp/T/calibre_1.13.0_tmp_tPkkU7/crSARB.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: Chain Letter: Chain Letter; The Ancient Evil
    InputFormatPlugin: MOBI Input running
    on /var/folders/2w/wsw796w53l1b22x_5r7hqd000000gp/T/calibre_1.13.0_tmp_tPkkU7/ZVBCs_.azw
    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 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 1035, 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 71, in __call__
    File “site-packages/calibre/ebooks/mobi/reader/mobi6.py”, line 148, in check_for_drm
    calibre.ebooks.DRMError: Chain Letter: Chain Letter; The Ancient Evil

    • Please post an import log, not a conversion log. A conversion log tells me nothing except that the book still has DRM.

  64. Hi, I’m having a real problem getting the DRM stripped off of a Kindle book I’ve purchased. The plugin doesn’t seem to be able to load in the Kindle key properly. This is the debug log…

    calibre Debug log
    calibre 1.13 isfrozen: True is64bit: False
    Windows-Vista-6.0.6002-SP2 Windows (’32bit’, ‘WindowsPE’)
    (‘Windows’, ‘Vista’, ’6.0.6002′)
    Python 2.7.5
    Windows: (‘Vista’, ’6.0.6002′, ‘SP2′, ‘Multiprocessor Free’)
    Starting up…
    Started up in 26.86 seconds with 0 books
    Using Library AlfCrypto Python
    searching for kinfoFiles in C:\Users\gavin\AppData\Local
    Found K4PC 1.9+ kinf2011 file: C:\Users\gavin\AppData\Local\Amazon\Kindle\storage\.kinf2011
    Traceback (most recent call last):
    File “calibre_plugins.dedrm.config”, line 758, in __init__
    IndexError: list index out of range

    I’ve tried he suggested things, yesterday I unregistered the Kindle program, deleted the AppData and My Kindle Books folders, and reinstalled them and re-downloaded a book without luck (the error message was very similar.)

    Today I repeated the process for Kindle, but also cleaned Calibre off of my system too (deleting app data, moving the books folder and for both Kindle and Calibre deleting and folders left in Program Files.) I then rebooted my computer, installed Kindle, downloaded a book, downloaded and installed Calibre (updated from 1.12 to 1.13) and re-downloaded 0.6.0.8 of DeDrm plugin. Then when I try to get the key for KIndle it fails every time.

    I’ve tried it with Kindle running and not running at the same time as Calibre. Each time I start the Kindle program it asks me for my Amazon account details – is this normal? surely once I’ve registered it should remember the details. Maybe there is a problem with the registry or something – perhaps I could create another user account in my computer and see if that works? Or try it on a different computer (yes – I will try that tonight)

    Any help appreciated, this is quite frustrating. I’m happy to pay for books, but as with many others I’d like to have control if it after that. Thank-you.

    • That doesn’t look like a log of the DeDRM 6.0.8 plugin. I suspect you have one or more older versions of the Kindle drm removal scripts installed. You should have any user-installed file-type plugins installed except DeDRM 6.0.8. (Unless you can positively identify the other plugin as something you installed and want.)

      • Hmmm, most peculiar. The Calibre installation is a new one. It comes with a host of plugins but the only one I added is the DeDRM one. I’ve re-run Calibre again in debug mode, and followed these steps…

        1. Start Calibre
        2. Preferences-> Change Calibre Behaviour-> Advanced-> Plug-Ins
        3. Select File Type Plugins-> DeDRM 6.0.8
        4. Press ‘Customise plug-in’
        5. Press ‘Kindle for Mac/PC ebooks’
        6. Press the green ‘+’ for Create new Mac and PC key
        7. Error window with ‘The default encryption key for Mac/PC could not be found

        On pressing the button (6) and getting the error message the latter part of the log gets added…

        searching for kinfoFiles in C:\Users\gavin\AppData\Local
        Found K4PC 1.9+ kinf2011 file: C:\Users\gavin\AppData\Local\Amazon\Kindle\storage\.kinf2011
        Traceback (most recent call last):
        File “calibre_plugins.dedrm.config”, line 758, in __init__
        IndexError: list index out of range

        Looking at this it looks like it has found the file that it needs, but the format of it is in some way incorrect.

        I tried updating Python to 2.7 and installed the PyCrypto 2.1 and using the Windows application – it too fails, having found the same kindle file.

        I’ll try it on my other computer and see if I have any luck there, but that’ll be tomorrow now.

        • Oooohhhhh… it wasn’t an import log. No wonder it looked funny. Sorry I didn’t read more closely, I’ve just noticed this bit:

          “Each time I start the Kindle program it asks me for my Amazon account details – is this normal? surely once I’ve registered it should remember the details. Maybe there is a problem with the registry or something – perhaps I could create another user account in my computer and see if that works?”

          You certainly need to get that sorted out. It should certainly remember your account details, and that it doesn’t probably explains why the DeDRM doesn’t work. (If the Kindle app can’t find what it needs from the preferences files, it’s hardly surprising that DeDRM can’t either.)

          • Thanks for taking the time to reply. I tried creating a new account on the same computer and installed K4PC on it. After an initial hiccup it remembered me, and the key was generated fine in DeDRM in Calibre. I might have got there eventually but your confirmation that K4PCs amnesia isn’t normal helped me go straight to the solution today. Thanks again, I’m happily reading an Amazon purchase on not-a kindle.

  65. Dear Alf,
    i am using Calibre Version 1.13.0
    i have a Surface tablet with Windows 8.1. I got the kindle app from Windows app store.
    Latest plugin DEDRM installed in calibre. then i Imported the .azw file i found in Folder/documenta/my Kindle content. what happend: drm was not removed and could not been removed or converted.
    i went to your faqs about Windows problems. i deinstalled Kindle app, deleted the my Kindle content folder and other stuff as you recommended and went to Amazon website (not Amazon app) to de-register my kindle app.
    then i installed the Kindle app again. Registered it on the Amazon website again and downloaded my Kindle book again. what happend: no my Kindle content folder anymore and no idea where my book has gone????? I found out that there is Amazon stuft in the folder Appdata\Local\packages\amzn……but no .azw file.
    Now i have no idea what to do. Do you know any help?
    Thanks in advance for any help.

      • Using the Windows 7 version of K4PC is NOT AN OPTION for Surface RT or Surface 2 (non-Pro). These can only use apps from the Windows Store (and thus the “Metro” style apps.)

        For Windows Surface Pro or Surface 2 Pro, or for any other Windows 8.x machine, yes, use the Windows 7 app.

        • Win 8/8.1 RT tablets always use the Metro version of the Kindle app, and will probably never work with any deDRM software. Get a cheap machine/laptop/desktop running a non-RT version of Windows 8.1/8/7/Vista (or use a friends) Download and register K4PC from Amazon. I’ve used the Calibre plugins on all the above OS versions. Works fine. I did have a corrupt K4PC – uninstalled/reinstalled, then it was fine.

      • i am using a Surface 2 pro. as Paul mentioned I installed the Windows 7 app from the Amazon website store. and….it worked after I registered my Kindle app and downloaded again. Great! That was all nothing else. Thanks for the help.

    • The Windows 8 Kindle app is worthless. Get the Windows 7 app from Amazon.com. In fact, it seems that most Windows 8 apps are garbage compared to the Windows 7 version.

  66. After it working perfectly fine for me in Windows 7, I was tearing my hair out trying to get DeDRM to work on Calibre in Windows 8.1. What eventually worked for me was disabling UAC entirely. It’s a nuclear option but if you’re at the end of your tether, as I was, try it. Google ‘windows 8 disable administrator prompt’ and if the instructions include ‘secpol.msc’ then you’re on the right lines. No issues in DeDRM for me whatsoever since doing this.

      • I wasn’t say it’s necessary, but I am saying it was simply the only thing that worked for me and that anyone who has exhausted all other possibilites should definitely give it a go. Others elsewhere online have also recommended trying it.

  67. Hi, I’m having problems using the Obok 2.01 script. I’m running it on a Mac in Mavericks, and am getting the following error:

    Traceback (most recent call last):
    File “obok_2.01.py”, line 181, in
    userkeyhex = GetUserHexKey(prefs)
    File “obok_2.01.py”, line 145, in GetUserHexKey
    cookies = readPlist(prefs)
    File “/Library/Python/2.7/site-packages/biplist-0.6-py2.7.egg/biplist/__init__.py”, line 100, in readPlist
    raise InvalidPlistException(e)
    biplist.InvalidPlistException: not well-formed (invalid token): line 22, column 18

    I’m guessing I’ve missed installing one of the prerequisites, but if anyone can shed some light that would be great!

    Many thanks

    • That’s interesting. The DeDRM app also fails in Mavericks because of a plist problem. I wonder if the format of a plist file has been tightened/changed in Mavericks?

      • I did a quick google, and it does appear that handling has been both changed and itghtened up. Unfortunately I don’t have the skill in coding to fix the issue for Mavericks. All I can do is help test, if someone is able to fix it! Many thanks.

  68. After installing as per instructions, I discovered that my Kindle Keyboard serial number wouldn’t work. It does not start with B and it is not 16 character long. Thanks anyway.

    • Then either you don’t have a Kindle Keyboard, or the number you’re looking at isn’t its serial number. Check in your Amazon account.

  69. Hey guys,

    I am trying to remove DRM from some books I got from Kobo but I cannot even run the ineptepub.py file without getting an error. I used to do it with iheartcabbages’ script so I like running the standalone python file rather than downloading calibre and setting up a plugin. However, when I run that file it opens, but whenever I try to set my ADEPT key file or anything else it gives me this error in the cmd prompt:

    Exception in Tkinter callback
    Traceback (most recent call last):
    File “C:\Python26\lib\lib-tk\Tkinter.py”, line 1410, in __call__
    return self.func(*args)
    File “C:\Users\Chris\Downloads\tools_v6.0.8\DeDRM_Windows_Application\DeDRM_Ap
    p\DeDRM_lib\lib\ineptepub.py”, line 524, in get_keypath
    keypath = tkFileDialog.askopenfilename(
    NameError: global name ‘tkFileDialog’ is not defined

    Can someone help me fix this?

    Regards,

    Chris

    • Hmm… Where did you get your Python from? I notice that you have Python 2.6, while Alf recommends ActiveState Python 2.7. I suspect that the python you’ve got doesn’t have all the tkInter library calls that the DeDRM script expects.

      Try installing the recommended python, and see if that fixes things.

      • I did install the one he recommended! I don’t know why I get that error… I just decided to use cabbages old pyw file from his blog and that works fine, though.

      • However on certain books I get errors, like on my Star Wars book I get an error saying:

        Error: File name in directory “OEBPS/BR*bunch of gibberish here*”

        Any idea on how to fix that?

        • Fixed in the latest tools, as far as I know. You may have installed Python 2.7, but your default python is clearly 2.6 from some earlier installation. Get your python sorted out and the new scripts should work, and will probably eliminate that error.

    • I’ve certainly seen reports from people who have had it working. I doubt it would work for books from Kindle for PC though.

  70. I’m using the DeDRM tools with an eBook I bought from Amazon a few days ago (.azw). I’m on an Apple 10.8 system, and the tools worked perfectly to convert all my other eBooks (all from Amazon, copied from Kindle folder on my Mac), but it just won’t do this one book. When I use the Apple DeDRM app directly, it says

    “xxx.azw couldn’t be decrypted” (on v6.0.8 of the tools)

    or

    “Error: list index out of range” (on v5.3.1)

    When I use the Calibre plug-in (the one in 6.0.8), it says

    Error: decryption unsuccessful; no valid pid found

    any ideas?

    • A log of the dedrm attempt would help. As a wild guess, it might be a Topaz ebook with some new coding Alf hasn’t seen before.

      • Here’s the log:

        shellcommand: /usr/local/bin/python ‘/Users/mlevin3/Desktop/tools_v6.0.8/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/kindlekey.py’ ‘/Users/mlevin3/Library/Preferences/com.apprenticealf.dedrm/Local Kindle Key.k4i’ > ‘/Users/mlevin3/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
        shellresult: Traceback (most recent call last):
        File “/Users/mlevin3/Desktop/tools_v6.0.8/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/kindlekey.py”, line 34, in
        import json
        ImportError: No module named json
        There is 1 ebook to be decrypted.
        Processing file: B003BVJ8WQ_EBOK.azw
        shellcommand: /usr/local/bin/python ‘/Users/mlevin3/Desktop/tools_v6.0.8/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/k4mobidedrm.py’ -s ‘B009A1A010550607′ ‘/Users/mlevin3/Desktop/Convert me!/B003BVJ8WQ_EBOK.azw’ ‘/Users/mlevin3/Desktop/’ > ‘/Users/mlevin3/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
        shellresult: Traceback (most recent call last):
        File “/Users/mlevin3/Desktop/tools_v6.0.8/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/k4mobidedrm.py”, line 69, in
        import json
        ImportError: No module named json
        There was an error with 1 ebook:
        B003BVJ8WQ_EBOK.azw couldn’t be decrypted.

        • Well, that is strange. Someone else reported a similar problem very recently, but that was on 10.5.

          In this log the book never got close to being decrypted, as the key wasn’t found. A calibre log might show more.

          • super-weird, because I decrypted a bunch of books the same way and they worked fine. Calibre is not an issue since this didn’t come from Calibre: I dropped the book file directly onto the icon of the DeDRM application on my Apple 10.8 desktop (the same way I did a number of other Amazon books). How to debug? thanks!

              • Ok. Here’s the log from a whole set of books which successfully converted, including the one that did not (using the old code, 5.3.1):

                There are 22 ebooks to be decrypted.
                Processing file: B003ODIZL6_EBOK.azw
                shellcommand: python ‘/Users/mlevin3/Desktop/DeDRM 5.3.1.app/Contents/Resources/k4mobidedrm.py’ -s ‘B009A1A010550607′ ‘/Users/mlevin3/Desktop/Convert me!/B003ODIZL6_EBOK.azw’ ‘/Users/mlevin3/Desktop/’ > ‘/Users/mlevin3/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
                shellresult: Using Library AlfCrypto DLL/DYLIB/SO
                K4MobiDeDrm v4.4 provided by the work of many including DiapDealer, SomeUpdates, IHeartCabbages, CMBDTC, Skindle, DarkReverser, ApprenticeAlf, etc .
                MobiDeDrm v0.37. Copyright 2008-2012 The Dark Reverser et al.
                MOBI header version = 5, length = 232
                Extra Data Flags = 0
                Processing Book: The New Oxford American Dictionary
                Found k4Mac kinf2011 file: /Users/mlevin3/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2011
                No k4Mac kindle-info/kinf/kinf2011 files have been found.
                Using Munged MAC Address for ID: 1d28b72eb7b3
                Using Munged MAC Address for ID: 1d28b72eb7b3
                Crypto Type is: 2
                File is encoded with PID YQfxqcSuL5.
                Decrypting. Please wait . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . done
                Processing file: B00CS4FN1W_EBOK.azw
                shellcommand: python ‘/Users/mlevin3/Desktop/DeDRM 5.3.1.app/Contents/Resources/k4mobidedrm.py’ -s ‘B009A1A010550607′ ‘/Users/mlevin3/Desktop/Convert me!/B00CS4FN1W_EBOK.azw’ ‘/Users/mlevin3/Desktop/’ > ‘/Users/mlevin3/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
                shellresult: Using Library AlfCrypto DLL/DYLIB/SO
                K4MobiDeDrm v4.4 provided by the work of many including DiapDealer, SomeUpdates, IHeartCabbages, CMBDTC, Skindle, DarkReverser, ApprenticeAlf, etc .
                MobiDeDrm v0.37. Copyright 2008-2012 The Dark Reverser et al.
                MOBI header version = 8, length = 248
                Extra Data Flags = 3
                Processing Book: Quantum Models of Cognition and Decision
                Found k4Mac kinf2011 file: /Users/mlevin3/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2011
                No k4Mac kindle-info/kinf/kinf2011 files have been found.
                Using Munged MAC Address for ID: 1d28b72eb7b3
                Using Munged MAC Address for ID: 1d28b72eb7b3
                Crypto Type is: 2
                File is encoded with PID psVbeEB1HP.
                Decrypting. Please wait . . . . . . . done
                Processing file: B009WG4C34_EBOK.azw
                shellcommand: python ‘/Users/mlevin3/Desktop/DeDRM 5.3.1.app/Contents/Resources/k4mobidedrm.py’ -s ‘B009A1A010550607′ ‘/Users/mlevin3/Desktop/Convert me!/B009WG4C34_EBOK.azw’ ‘/Users/mlevin3/Desktop/’ > ‘/Users/mlevin3/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
                shellresult: Using Library AlfCrypto DLL/DYLIB/SO
                K4MobiDeDrm v4.4 provided by the work of many including DiapDealer, SomeUpdates, IHeartCabbages, CMBDTC, Skindle, DarkReverser, ApprenticeAlf, etc .
                MobiDeDrm v0.37. Copyright 2008-2012 The Dark Reverser et al.
                MOBI header version = 8, length = 256
                Extra Data Flags = 3
                Processing Book: A Computable Universe: Understanding and Exploring Nature as Computation
                Found k4Mac kinf2011 file: /Users/mlevin3/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2011
                No k4Mac kindle-info/kinf/kinf2011 files have been found.
                Using Munged MAC Address for ID: 1d28b72eb7b3
                Using Munged MAC Address for ID: 1d28b72eb7b3
                Crypto Type is: 2
                File is encoded with PID P1gOafCf8U.
                Decrypting. Please wait . . . . . . . . . . done
                Processing file: B000VI5AQ0_EBOK.azw
                shellcommand: python ‘/Users/mlevin3/Desktop/DeDRM 5.3.1.app/Contents/Resources/k4mobidedrm.py’ -s ‘B009A1A010550607′ ‘/Users/mlevin3/Desktop/Convert me!/B000VI5AQ0_EBOK.azw’ ‘/Users/mlevin3/Desktop/’ > ‘/Users/mlevin3/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
                shellresult: Using Library AlfCrypto DLL/DYLIB/SO
                K4MobiDeDrm v4.4 provided by the work of many including DiapDealer, SomeUpdates, IHeartCabbages, CMBDTC, Skindle, DarkReverser, ApprenticeAlf, etc .
                Processing Book: Hidden Unity in Nature’s Laws
                Found k4Mac kinf2011 file: /Users/mlevin3/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2011
                No k4Mac kindle-info/kinf/kinf2011 files have been found.
                Using Munged MAC Address for ID: 1d28b72eb7b3
                Using Munged MAC Address for ID: 1d28b72eb7b3

                Trying: 4YVLLFFT

                Trying: IMMjl1/m
                Book Key Found!

                Processing Section: img
                . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
                Processing Section: other
                .
                Processing Section: dict
                .
                Processing Section: glyphs
                . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
                Processing Section: page
                . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
                Processing Section: metadata
                .
                Successfully Extracted Topaz contents
                Updating to color images if available
                Creating cover.jpg
                Processing Dictionary
                Processing Meta Data and creating OPF
                Processing StyleSheet
                Using font size: 120
                Using page height: 12249
                Using page width: 7603
                Processing Glyphs
                . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
                Processing Pages
                . . . . . . . . . Making region type synth_text.left a “graphic” region
                Making region type synth_text.left a “graphic” region
                Making region type synth_text.left a “graphic” region
                Making region type synth_text.left a “graphic” region
                Making region type synth_text.left a “graphic” region
                Making region type synth_text.left a “graphic” region
                Making region type synth_text.left a “graphic” region
                Making region type synth_text.left a “graphic” region
                Making region type synth_text.left a “graphic” region
                Making region type synth_text.left a “graphic” region
                Making region type synth_text.left a “graphic” region
                Making region type synth_text.left a “graphic” region
                Making region type synth_text.left a “graphic” region
                Making region type synth_text.left a “graphic” region
                Making region type synth_text.left a “graphic” region
                Making region type synth_text.left a “graphic” region
                Making region type synth_text.left a “graphic” region
                Making region type synth_text.left a “graphic” region
                Making region type synth_text.left a “graphic” region
                Making region type synth_text.left a “graphic” region
                Making region type synth_text.left a “graphic” region
                Making region type synth_text.left a “graphic” region
                Making region type synth_text.left a “graphic” region
                Making region type synth_text.left a “graphic” region
                Making region type synth_text.left a “graphic” region
                Making region type synth_text.left a “graphic” region
                Making region type synth_text.left a “graphic” region
                Making region type synth_text.left a “graphic” region
                Making region type synth_text.left a “graphic” region
                Making region type synth_text.left a “graphic” region
                Making region type synth_text.left a “graphic” region
                Making region type synth_text.left a “graphic” region
                Making region type synth_text.left a “graphic” region
                Making region type synth_text.left a “graphic” region
                Making region type synth_text.left a “graphic” region
                Making region type synth_text.left a “graphic” region
                . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Making region type mixedmath a “text” region
                . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Making region type mixedmath a “text” region
                . Making region type mixedmath a “text” region
                . Making region type mixedmath a “text” region
                . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Making region type mixedmath a “text” region
                . Making region type mixedmath a “text” region
                . . . . . . . . . . . . . . . Making region type mixedmath a “text” region
                Making region type mixedmath a “text” region
                . Making region type mixedmath a “text” region
                . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Making region type mixedmath a “text” region
                . . Making region type mixedmath a “text” region
                Making region type mixedmath a “text” region
                . . . . . . . . . . . . . Making region type mixedmath a “text” region
                . Making region type mixedmath a “text” region
                . Making region type mixedmath a “text” region
                . . . Making region type mixedmath a “text” region
                . . . . . Making region type mixedmath a “text” region
                Making region type mixedmath a “text” region
                . Making region type mixedmath a “text” region
                . Making region type mixedmath a “text” region
                . . . . . . Making region type mixedmath a “text” region
                . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Making region type mixedmath a “text” region
                . . . . . . . . . . . . . . . . . . . . . . . . . . . . Making region type mixedmath a “text” region
                . Making region type mixedmath a “text” region
                . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Making region type mixedmath a “text” region
                . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
                Extracting Table of Contents from Amazon OCR
                Preface|0015
                1 Motion on Earth and in the Heavens|0019
                1.1 Galileo’s Telescope|0019
                1.2 The Old Astronomy|0021
                1.3 Aristotle and Ptolemy: Models and Mathematics|0027
                1.4 Copernicus: Getting Behind Appearances|0034
                1.5 Galileo|0037
                1.6 Kepler: Beyond Circles|0043
                1.7 Newton|0051
                1.8 Conclusion|0072
                2 Energy, Heat and Chance|0074
                2.1 Introduction|0074
                2.2 Temperature and Thermometers|0075
                2.3 Energy and Its Conservation|0077
                2.4 Heat as Energy|0093
                2.5 Atoms and Molecules|0094
                2.6 Steam Engines and Entropy|0108
                2.7 Entropy and Randomness|0121
                2.8 Chaos|0129
                2.9 Conclusion|0143
                3 Electricity and Magnetism|0144
                3.1 Electric Charges|0144
                3.2 Magnets|0159
                3.3 Electric Currents and Magnetism|0167
                3.4 Faraday and Induction of Electricity by Magnetism|0187
                3.5 Maxwell’s Synthesis: Electromagnetism|0192
                3.6 Conclusion|0203
                4 Light|0207
                4.1 Waves|0207
                4.2 Sound|0212
                4.3 Light|0215
                4.4 The Principle of Least Time|0222
                4.5 What Is Light?|0231
                4.6 Light Waves|0240
                4.7 Waves in What?|0259
                4.8 Light Is Electromagnetism|0262
                4.9 Conclusion|0276
                5 Space and Time|0277
                5.1 Electrons|0277
                5.2 Is the Speed of Light Always the Same?|0281
                5.3 The Unity of Space and Time|0288
                5.4 Space, Time and Motion|0290
                5.5 The Geometry of Spacetime|0296
                5.6 Lorentz Transformations|0305
                5.7 Time Dilation and the “Twin Paradox”|0314
                5.8 Distances and the Lorentz-Fitzgerald Contraction|0319
                5.9 How Can We Believe All This?|0328
                5.10 4-Vectors|0330
                5.11 Momentum and Energy|0330
                5.12 Electricity and Magnetism in Spacetime|0342
                5.13 Conclusion|0348
                6 Least Action|0351
                6.1 What This Chapter Is About|0351
                6.2 Action|0352
                6.3 Minimum or just Stationary?|0355
                6.4 Why Is the Action Least?|0358
                6.5 The Magnetic Action|0360
                6.6 Time-Varying Fields and Relativity|0367
                6.7 Action for the Electromagnetic Field|0369
                6.8 Momentum, Energy and the Uniformity of Spacetime|0372
                6.9 Angular Momentum|0374
                6.10 Conclusion|0376
                7 Gravitation and Curved Spacetime|0378
                7.1 The Problem|0378
                7.2 Curvature|0382
                7.3 Gravity as Curvature of Spacetime|0393
                7.4 Maps and Metrics|0396
                7.5 The Laws of Einstein’s Theory of Gravity|0401
                7.6 Newton and Einstein Compared|0409
                7.7 Weighing Light|0412
                7.8 Physics and Geometry|0415
                7.9 General “Relativity”?|0417
                7.10 Conclusion|0418
                8 The Quantum Revolution|0419
                8.1 The Radiant Heat Crisis|0419
                8.2 Why Are Atoms Simple?|0429
                8.3 Niels Bohr Models the Atom|0431
                8.4 Heisenberg and the Quantum World|0439
                8.5 Schrodinger Takes Another Tack|0443
                8.6 Probability and Uncertainty|0449
                8.7 Spin|0453
                8.8 Feynman’s All Histories Version of Quantum Theory|0462
                8.9 Which Way Did It Go?|0468
                8.10 Einstein’s Revenge: Quantum Entanglement|0472
                8.11 What Has Happened to Determinism?|0479
                8.12 What an Electron Knows About Magnetic Fields|0486
                8.13 Which Electron Is Which?|0491
                8.14 Conclusion|0497
                9 Quantum Theory with Special Relativity|0500
                9.1 Einstein Plus Heisenberg|0500
                9.2 Fields and Oscillators|0502
                9.3 Lasers and the Indistinguishability of Particles|0511
                9.4 A Field for Matter|0514
                9.5 How Can Electrons Be Fermions?|0519
                9.6 Antiparticles|0524
                9.7 QED|0526
                9.8 Feynman’s Wonderful Diagrams|0529
                9.9 The Perils of Point Charges|0542
                9.10 The Busy Vacuum|0551
                9.11 Conclusion|0555
                10 Order Breaks Symmetry|0556
                10.1 Cooling and Freezing|0556
                10.2 Refrigeration|0560
                10.3 Flow without Friction|0564
                10.4 Super-fluid Vortices|0570
                10.5 Metals|0574
                10.6 Conduction without Resistance|0576
                10.7 Conclusion|0588
                11 Quarks and What Holds Them Together|0591
                11.1 Seeing the Very Small|0591
                11.2 Inside the Atomic Nucleus|0592
                11.3 Quantum Chromodynamics|0605
                11.4 Conclusion|0620
                12 Unifying Weak Forces with QED|0621
                12.1 What Are Weak Forces?|0621
                12.2 The Looking-Glass World|0632
                12.3 The Hidden Unity of Weak and Electromagnetic Forces|0649
                12.4 An Imaginary, Long-Range Electroweak Unification|0652
                12.5 The Origin of Mass|0656
                12.6 GUTS|0665
                12.7 Conclusion|0671
                13 Gravitation Plus Quantum Theory – Stars and Black Holes|0672
                13.1 Black Holes|0672
                13.2 Stars, Dwarves and Pulsars|0688
                13.3 Unleashing Gravity’s Power: Black Holes at Large|0698
                13.4 The Crack in Gravity’s Armour|0699
                13.5 Black Hole Entropy: Gravity and Thermodynamics|0706
                13.6 Quantum Gravity: The Big Challenge|0707
                13.7 Something from Nothing|0716
                13.8 Conclusion|0719
                14 Particles, Symmetries and the Universe|0720
                14.1 Cosmology|0722
                14.2 The Hot Big Bang|0736
                14.3 The Shape of the Universe in Spacetime|0741
                14.4 A Simple Recipe for the Universe|0750
                14.5 Why Is There Any Matter Now?|0755
                14.6 How Do We Tell the Future from the Past?|0761
                14.7 Inflation|0768
                14.8 Conclusion|0774
                15 Queries|0775
                15.1 Hidden Dimensions: Charge as Geometry|0775
                15.2 Supersymmetry: Marrying Fermions with Bosons|0780
                15.3 String Theory: Beyond Points|0786
                15.4 Lumps and Hedgehogs|0798
                15.5 Gravity Modified – a Radical Proposal|0806
                APPENDIX A The Inverse-Square Law|0812
                APPENDIX B Vectors and Complex Numbers|0824
                APPENDIX C Brownian Motion|0832
                APPENDIX D Units|0834
                Glossary|0843
                Bibliography|0884
                Index|0888
                Building svg images of each book page
                . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
                Processing Complete

                Book Successfully generated
                Creating NoDRM HTMLZ Archive
                Creating SVG ZIP Archive
                Processing file: B003BVJ8WQ_EBOK.azw
                shellcommand: python ‘/Users/mlevin3/Desktop/DeDRM 5.3.1.app/Contents/Resources/k4mobidedrm.py’ -s ‘B009A1A010550607′ ‘/Users/mlevin3/Desktop/Convert me!/B003BVJ8WQ_EBOK.azw’ ‘/Users/mlevin3/Desktop/’ > ‘/Users/mlevin3/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
                shellresult: Using Library AlfCrypto DLL/DYLIB/SO
                K4MobiDeDrm v4.4 provided by the work of many including DiapDealer, SomeUpdates, IHeartCabbages, CMBDTC, Skindle, DarkReverser, ApprenticeAlf, etc .
                Processing Book: Wetware: A Computer in Every Living Cell
                Found k4Mac kinf2011 file: /Users/mlevin3/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2011
                No k4Mac kindle-info/kinf/kinf2011 files have been found.
                Using Munged MAC Address for ID: 1d28b72eb7b3
                Using Munged MAC Address for ID: 1d28b72eb7b3

                Trying: 4YVLLFFT

                Trying: Z6HSqIj3
                Book Key Found!

                Processing Section: img
                . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
                Processing Section: color
                . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
                Processing Section: other
                .
                Processing Section: dict
                .
                Processing Section: glyphs
                . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
                Processing Section: page
                . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
                Processing Section: metadata
                .
                Successfully Extracted Topaz contents
                Updating to color images if available
                Creating cover.jpg
                Processing Dictionary
                Processing Meta Data and creating OPF
                Processing StyleSheet K4MobiDeDrm v4.4
                Error: list index out of range
                DRM Removal Failed.
                Processing file: B00359FNNW_EBOK.azw
                shellcommand: python ‘/Users/mlevin3/Desktop/DeDRM 5.3.1.app/Contents/Resources/k4mobidedrm.py’ -s ‘B009A1A010550607′ ‘/Users/mlevin3/Desktop/Convert me!/B00359FNNW_EBOK.azw’ ‘/Users/mlevin3/Desktop/’ > ‘/Users/mlevin3/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
                shellresult: Using Library AlfCrypto DLL/DYLIB/SO
                K4MobiDeDrm v4.4 provided by the work of many including DiapDealer, SomeUpdates, IHeartCabbages, CMBDTC, Skindle, DarkReverser, ApprenticeAlf, etc .
                Processing Book: Persons, Souls and Death: A Philosophical Investigation of an Afterlife
                Found k4Mac kinf2011 file: /Users/mlevin3/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2011
                No k4Mac kindle-info/kinf/kinf2011 files have been found.
                Using Munged MAC Address for ID: 1d28b72eb7b3
                Using Munged MAC Address for ID: 1d28b72eb7b3

                Trying: 4YVLLFFT

                Trying: 2VqOb4K/
                Book Key Found!

                Processing Section: img
                . . . . . .
                Processing Section: other
                .
                Processing Section: dict
                .
                Processing Section: glyphs
                . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
                Processing Section: page
                . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
                Processing Section: metadata
                .
                Successfully Extracted Topaz contents
                Updating to color images if available
                Creating cover.jpg
                Processing Dictionary
                Processing Meta Data and creating OPF
                Processing StyleSheet
                Using font size: 106
                Using page height: 12600
                Using page width: 8102
                Processing Glyphs
                . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
                Processing Pages
                . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
                Extracting Table of Contents from Amazon OCR
                Preface|0010
                INTRODUCTION|0013
                The Perennial Question|0013
                A Philosophical Approach|0017
                The Influence and Scope of Science|0020
                The Coherence of the Idea of Post-Mortem Existence|0022
                The Relevance of the Case for Theism|0027
                The Nature of Persons and the Laws of Nature|0030
                Part I: Persons, Bodies, and the Possibility of Post-Mortem Existence|0115
                THE CASE AGAINST POST-MORTEM EXISTENCE|0033
                Antecedent Probability of Extinction|0033
                Empirically-Grounded Support of Extinction|0033
                Theory-Based Arguments for Extinction|0036
                MINDS, SOULS AND PERSONS|0040
                Materialist-Reductionist Accounts of the Mental|0040
                Materialist Theories of Personal Identity|0044
                The Immateriality of the Mental|0047
                Psychological Theories of the Person|0057
                The Person as Subject of Conscious States|0059
                MENTAL-PHYSICAL RELATIONS|0075
                The Causality Problem|0075
                Mind-Brain Interaction|0078
                Causation Conceived as Reducible|0080
                Causation Conceived as Irreducible|0082
                Deep Causation|0083
                The Directionality of Causation|0084
                Intentional Causation|0084
                Dualistic Causation and the Causal Closure Hypothesis|0087
                Mental-Mental Causation|0089
                Paranormal Causation|0091
                The Causal Independence of the Conscious Self|0096
                GENERAL CONSIDERATIONS SUPPORTIVE OF POST-MORTEM EXISTENCE|0103
                Theism and Revelation Accounts|0103
                The Deep Unity of the Self|0106
                Non-Intentional Consciousness and the Self|0110
                Part II. Ostensible Evidence of Post-Mortem Existence|0115
                OUR INVESTIGATION So FAR|0115
                NEAR-DEATH EXPERIENCES|0119
                Death-Bed Visions|0119
                Non-Terminal Near-Death Experiences|0123
                Naturalistic Explanation of NDEs|0127
                Paranormal Theories: ESP and Super-ESP|0133
                APPARITIONS|0144
                Reciprocal Apparitions|0148
                The Naturalistic Interpretation|0151
                Paranormal Interpretations of Apparitions of the Dead|0152
                Collective and Iterative Apparitional Experiences|0153
                The Super-Psi Hypothesis|0158
                The Telepathic Theory|0160
                The Objectivist Theory|0162
                The Survivalist Explanation|0167
                REINCARNATION|0169
                Reincarnation vs. Possession Interpretations|0171
                Cases of Responsive Xenoglossy|0173
                Spontaneous Recall of Ostensible Former Lives|0176
                The Shanti Devi Case|0178
                The Case of Jasbir Jat|0179
                The Case of Swarnlata Mishra|0180
                Naturalistic Explanations|0184
                The Fraud Hypothesis|0184
                Cryptomnesia|0185
                Paramnesia|0186
                Inherited Memory|0187
                Paranormal Explanations|0187
                The Psi Hypothesis|0188
                ESP Plus Impersonation|0190
                Reincarnation and Survival|0194
                Reincarnation and the Subject of Conscious States|0195
                MENTAL MEDIUMSHIP|0198
                The Mediumship of Mrs. Piper|0200
                Mrs. Willett’s Mediumship|0207
                Proxy Sittings|0212
                “Drop-In” Communicators|0213
                The Cross-Correspondences|0217
                CONCLUSION: ASSESSMENT OF THE CASE FOR POST-MORTEM EXISTENCE|0222
                Overview of Our Investigation into the Essence of Persons|0222
                Dispositions and the Self|0226
                Sensory Experience in an Afterworld|0227
                Discarnate Communication|0229
                The Significance of the Ostensible Evidence of Survival|0230
                Super-Psi or Survival?|0231
                The Balance of Probabilities|0234
                Chapter Notes|0238
                Bibliography|0246
                Index|0251
                Building svg images of each book page
                . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
                Processing Complete

                Book Successfully generated
                Creating NoDRM HTMLZ Archive
                Creating SVG ZIP Archive
                Processing file: B0096BCVPG_EBOK.azw
                shellcommand: python ‘/Users/mlevin3/Desktop/DeDRM 5.3.1.app/Contents/Resources/k4mobidedrm.py’ -s ‘B009A1A010550607′ ‘/Users/mlevin3/Desktop/Convert me!/B0096BCVPG_EBOK.azw’ ‘/Users/mlevin3/Desktop/’ > ‘/Users/mlevin3/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
                shellresult: Using Library AlfCrypto DLL/DYLIB/SO
                K4MobiDeDrm v4.4 provided by the work of many including DiapDealer, SomeUpdates, IHeartCabbages, CMBDTC, Skindle, DarkReverser, ApprenticeAlf, etc .
                MobiDeDrm v0.37. Copyright 2008-2012 The Dark Reverser et al.
                MOBI header version = 7, length = 232
                Extra Data Flags = 2
                Processing Book: The Philosophy of Hebrew Scripture
                Found k4Mac kinf2011 file: /Users/mlevin3/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2011
                No k4Mac kindle-info/kinf/kinf2011 files have been found.
                Using Munged MAC Address for ID: 1d28b72eb7b3
                Using Munged MAC Address for ID: 1d28b72eb7b3
                Crypto Type is: 2
                File is encoded with PID 4MRXJU6IVK.
                Decrypting. Please wait . . . . . . . done
                Processing file: B00CECG35S_EBOK.azw
                shellcommand: python ‘/Users/mlevin3/Desktop/DeDRM 5.3.1.app/Contents/Resources/k4mobidedrm.py’ -s ‘B009A1A010550607′ ‘/Users/mlevin3/Desktop/Convert me!/B00CECG35S_EBOK.azw’ ‘/Users/mlevin3/Desktop/’ > ‘/Users/mlevin3/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
                shellresult: Using Library AlfCrypto DLL/DYLIB/SO
                K4MobiDeDrm v4.4 provided by the work of many including DiapDealer, SomeUpdates, IHeartCabbages, CMBDTC, Skindle, DarkReverser, ApprenticeAlf, etc .
                MobiDeDrm v0.37. Copyright 2008-2012 The Dark Reverser et al.
                MOBI header version = 8, length = 256
                Extra Data Flags = 3
                Processing Book: The Neural Basis of Free Will: Criterial Causation
                Found k4Mac kinf2011 file: /Users/mlevin3/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2011
                No k4Mac kindle-info/kinf/kinf2011 files have been found.
                Using Munged MAC Address for ID: 1d28b72eb7b3
                Using Munged MAC Address for ID: 1d28b72eb7b3
                Crypto Type is: 2
                File is encoded with PID KD2VJ1wSBN.
                Decrypting. Please wait . . . . . . done
                Processing file: B008SQL6NS_EBOK.azw
                shellcommand: python ‘/Users/mlevin3/Desktop/DeDRM 5.3.1.app/Contents/Resources/k4mobidedrm.py’ -s ‘B009A1A010550607′ ‘/Users/mlevin3/Desktop/Convert me!/B008SQL6NS_EBOK.azw’ ‘/Users/mlevin3/Desktop/’ > ‘/Users/mlevin3/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
                shellresult: Using Library AlfCrypto DLL/DYLIB/SO
                K4MobiDeDrm v4.4 provided by the work of many including DiapDealer, SomeUpdates, IHeartCabbages, CMBDTC, Skindle, DarkReverser, ApprenticeAlf, etc .
                MobiDeDrm v0.37. Copyright 2008-2012 The Dark Reverser et al.
                MOBI header version = 8, length = 248
                Extra Data Flags = 3
                Processing Book: Mind and Cosmos: Why the Materialist Neo-Darwinian Conception of Nature Is Almost Certainly False
                Found k4Mac kinf2011 file: /Users/mlevin3/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2011
                No k4Mac kindle-info/kinf/kinf2011 files have been found.
                Using Munged MAC Address for ID: 1d28b72eb7b3
                Using Munged MAC Address for ID: 1d28b72eb7b3
                Crypto Type is: 2
                File is encoded with PID bj++QgWwA2.
                Decrypting. Please wait . . . done
                Processing file: B00AZ4S6PM_EBOK.azw
                shellcommand: python ‘/Users/mlevin3/Desktop/DeDRM 5.3.1.app/Contents/Resources/k4mobidedrm.py’ -s ‘B009A1A010550607′ ‘/Users/mlevin3/Desktop/Convert me!/B00AZ4S6PM_EBOK.azw’ ‘/Users/mlevin3/Desktop/’ > ‘/Users/mlevin3/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
                shellresult: Using Library AlfCrypto DLL/DYLIB/SO
                K4MobiDeDrm v4.4 provided by the work of many including DiapDealer, SomeUpdates, IHeartCabbages, CMBDTC, Skindle, DarkReverser, ApprenticeAlf, etc .
                MobiDeDrm v0.37. Copyright 2008-2012 The Dark Reverser et al.
                MOBI header version = 8, length = 248
                Extra Data Flags = 3
                Processing Book: Forgotten Ideas, Neglected Pioneers: Richard Semon and the Story of Memory
                Found k4Mac kinf2011 file: /Users/mlevin3/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2011
                No k4Mac kindle-info/kinf/kinf2011 files have been found.
                Using Munged MAC Address for ID: 1d28b72eb7b3
                Using Munged MAC Address for ID: 1d28b72eb7b3
                Crypto Type is: 2
                File is encoded with PID gZJz2+dX7H.
                Decrypting. Please wait . . . . . . done
                Processing file: B00918JR5Q_EBOK.azw
                shellcommand: python ‘/Users/mlevin3/Desktop/DeDRM 5.3.1.app/Contents/Resources/k4mobidedrm.py’ -s ‘B009A1A010550607′ ‘/Users/mlevin3/Desktop/Convert me!/B00918JR5Q_EBOK.azw’ ‘/Users/mlevin3/Desktop/’ > ‘/Users/mlevin3/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
                shellresult: Using Library AlfCrypto DLL/DYLIB/SO
                K4MobiDeDrm v4.4 provided by the work of many including DiapDealer, SomeUpdates, IHeartCabbages, CMBDTC, Skindle, DarkReverser, ApprenticeAlf, etc .
                MobiDeDrm v0.37. Copyright 2008-2012 The Dark Reverser et al.
                MOBI header version = 8, length = 256
                Extra Data Flags = 3
                Processing Book: Life’s Ratchet: How Molecular Machines Extract Order from Chaos
                Found k4Mac kinf2011 file: /Users/mlevin3/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2011
                No k4Mac kindle-info/kinf/kinf2011 files have been found.
                Using Munged MAC Address for ID: 1d28b72eb7b3
                Using Munged MAC Address for ID: 1d28b72eb7b3
                Crypto Type is: 2
                File is encoded with PID u9tvXc04QQ.
                Decrypting. Please wait . . . . . done
                Processing file: B002IPZDQ6_EBOK.azw
                shellcommand: python ‘/Users/mlevin3/Desktop/DeDRM 5.3.1.app/Contents/Resources/k4mobidedrm.py’ -s ‘B009A1A010550607′ ‘/Users/mlevin3/Desktop/Convert me!/B002IPZDQ6_EBOK.azw’ ‘/Users/mlevin3/Desktop/’ > ‘/Users/mlevin3/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
                shellresult: Using Library AlfCrypto DLL/DYLIB/SO
                K4MobiDeDrm v4.4 provided by the work of many including DiapDealer, SomeUpdates, IHeartCabbages, CMBDTC, Skindle, DarkReverser, ApprenticeAlf, etc .
                MobiDeDrm v0.37. Copyright 2008-2012 The Dark Reverser et al.
                MOBI header version = 6, length = 232
                Extra Data Flags = 2
                Processing Book: The Mind and the Brain
                Found k4Mac kinf2011 file: /Users/mlevin3/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2011
                No k4Mac kindle-info/kinf/kinf2011 files have been found.
                Using Munged MAC Address for ID: 1d28b72eb7b3
                Using Munged MAC Address for ID: 1d28b72eb7b3
                Crypto Type is: 2
                File is encoded with PID ysR1EiW81M.
                Decrypting. Please wait . . . . . done
                Processing file: B00633W4A2_EBOK.azw
                shellcommand: python ‘/Users/mlevin3/Desktop/DeDRM 5.3.1.app/Contents/Resources/k4mobidedrm.py’ -s ‘B009A1A010550607′ ‘/Users/mlevin3/Desktop/Convert me!/B00633W4A2_EBOK.azw’ ‘/Users/mlevin3/Desktop/’ > ‘/Users/mlevin3/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
                shellresult: Using Library AlfCrypto DLL/DYLIB/SO
                K4MobiDeDrm v4.4 provided by the work of many including DiapDealer, SomeUpdates, IHeartCabbages, CMBDTC, Skindle, DarkReverser, ApprenticeAlf, etc .
                MobiDeDrm v0.37. Copyright 2008-2012 The Dark Reverser et al.
                MOBI header version = 6, length = 248
                Extra Data Flags = 3
                Processing Book: The Lady Tasting Tea: How Statistics Revolutionized Science in the Twentieth Century
                Found k4Mac kinf2011 file: /Users/mlevin3/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2011
                No k4Mac kindle-info/kinf/kinf2011 files have been found.
                Using Munged MAC Address for ID: 1d28b72eb7b3
                Using Munged MAC Address for ID: 1d28b72eb7b3
                Crypto Type is: 2
                File is encoded with PID 8G5tKJvQD6.
                Decrypting. Please wait . . . . done
                Processing file: B003M696QS_EBOK.azw
                shellcommand: python ‘/Users/mlevin3/Desktop/DeDRM 5.3.1.app/Contents/Resources/k4mobidedrm.py’ -s ‘B009A1A010550607′ ‘/Users/mlevin3/Desktop/Convert me!/B003M696QS_EBOK.azw’ ‘/Users/mlevin3/Desktop/’ > ‘/Users/mlevin3/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
                shellresult: Using Library AlfCrypto DLL/DYLIB/SO
                K4MobiDeDrm v4.4 provided by the work of many including DiapDealer, SomeUpdates, IHeartCabbages, CMBDTC, Skindle, DarkReverser, ApprenticeAlf, etc .
                MobiDeDrm v0.37. Copyright 2008-2012 The Dark Reverser et al.
                MOBI header version = 6, length = 232
                Extra Data Flags = 2
                Processing Book: Consciousness Beyond Life: The Science of the Near-Death Experience
                Found k4Mac kinf2011 file: /Users/mlevin3/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2011
                No k4Mac kindle-info/kinf/kinf2011 files have been found.
                Using Munged MAC Address for ID: 1d28b72eb7b3
                Using Munged MAC Address for ID: 1d28b72eb7b3
                Crypto Type is: 2
                File is encoded with PID 9/ETo+J6PL.
                Decrypting. Please wait . . . . . . done
                Processing file: B00BATNLHO_EBOK.azw
                shellcommand: python ‘/Users/mlevin3/Desktop/DeDRM 5.3.1.app/Contents/Resources/k4mobidedrm.py’ -s ‘B009A1A010550607′ ‘/Users/mlevin3/Desktop/Convert me!/B00BATNLHO_EBOK.azw’ ‘/Users/mlevin3/Desktop/’ > ‘/Users/mlevin3/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
                shellresult: Using Library AlfCrypto DLL/DYLIB/SO
                K4MobiDeDrm v4.4 provided by the work of many including DiapDealer, SomeUpdates, IHeartCabbages, CMBDTC, Skindle, DarkReverser, ApprenticeAlf, etc .
                MobiDeDrm v0.37. Copyright 2008-2012 The Dark Reverser et al.
                MOBI header version = 8, length = 264
                Extra Data Flags = 3
                Processing Book: Thinking: The New Science of Decision-Making, Problem-Solving, and Prediction in Life and Markets
                Found k4Mac kinf2011 file: /Users/mlevin3/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2011
                No k4Mac kindle-info/kinf/kinf2011 files have been found.
                Using Munged MAC Address for ID: 1d28b72eb7b3
                Using Munged MAC Address for ID: 1d28b72eb7b3
                Crypto Type is: 2
                File is encoded with PID yCgUl8fhDF.
                Decrypting. Please wait . . . . . done
                Processing file: B005LC1OR0_EBOK.azw
                shellcommand: python ‘/Users/mlevin3/Desktop/DeDRM 5.3.1.app/Contents/Resources/k4mobidedrm.py’ -s ‘B009A1A010550607′ ‘/Users/mlevin3/Desktop/Convert me!/B005LC1OR0_EBOK.azw’ ‘/Users/mlevin3/Desktop/’ > ‘/Users/mlevin3/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
                shellresult: Using Library AlfCrypto DLL/DYLIB/SO
                K4MobiDeDrm v4.4 provided by the work of many including DiapDealer, SomeUpdates, IHeartCabbages, CMBDTC, Skindle, DarkReverser, ApprenticeAlf, etc .
                MobiDeDrm v0.37. Copyright 2008-2012 The Dark Reverser et al.
                MOBI header version = 8, length = 256
                Extra Data Flags = 3
                Processing Book: This Will Make You Smarter: 150 New Scientific Concepts to Improve Your Thinking
                Found k4Mac kinf2011 file: /Users/mlevin3/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2011
                No k4Mac kindle-info/kinf/kinf2011 files have been found.
                Using Munged MAC Address for ID: 1d28b72eb7b3
                Using Munged MAC Address for ID: 1d28b72eb7b3
                Crypto Type is: 2
                File is encoded with PID rQQjyBjlP1.
                Decrypting. Please wait . . . . . done
                Processing file: B007ZQ38TM_EBOK.azw
                shellcommand: python ‘/Users/mlevin3/Desktop/DeDRM 5.3.1.app/Contents/Resources/k4mobidedrm.py’ -s ‘B009A1A010550607′ ‘/Users/mlevin3/Desktop/Convert me!/B007ZQ38TM_EBOK.azw’ ‘/Users/mlevin3/Desktop/’ > ‘/Users/mlevin3/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
                shellresult: Using Library AlfCrypto DLL/DYLIB/SO
                K4MobiDeDrm v4.4 provided by the work of many including DiapDealer, SomeUpdates, IHeartCabbages, CMBDTC, Skindle, DarkReverser, ApprenticeAlf, etc .
                MobiDeDrm v0.37. Copyright 2008-2012 The Dark Reverser et al.
                MOBI header version = 8, length = 248
                Extra Data Flags = 3
                Processing Book: A Many-Colored Glass: Reflections on the Place of Life in the Universe (Page-Barbour Lectures)
                Found k4Mac kinf2011 file: /Users/mlevin3/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2011
                No k4Mac kindle-info/kinf/kinf2011 files have been found.
                Using Munged MAC Address for ID: 1d28b72eb7b3
                Using Munged MAC Address for ID: 1d28b72eb7b3
                Crypto Type is: 2
                File is encoded with PID 3mTAaU6WFF.
                Decrypting. Please wait . . . done
                Processing file: B00BEIKEF8_EBOK.azw
                shellcommand: python ‘/Users/mlevin3/Desktop/DeDRM 5.3.1.app/Contents/Resources/k4mobidedrm.py’ -s ‘B009A1A010550607′ ‘/Users/mlevin3/Desktop/Convert me!/B00BEIKEF8_EBOK.azw’ ‘/Users/mlevin3/Desktop/’ > ‘/Users/mlevin3/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
                shellresult: Using Library AlfCrypto DLL/DYLIB/SO
                K4MobiDeDrm v4.4 provided by the work of many including DiapDealer, SomeUpdates, IHeartCabbages, CMBDTC, Skindle, DarkReverser, ApprenticeAlf, etc .
                MobiDeDrm v0.37. Copyright 2008-2012 The Dark Reverser et al.
                MOBI header version = 8, length = 264
                Extra Data Flags = 3
                Processing Book: Readings in Goethean Science
                Found k4Mac kinf2011 file: /Users/mlevin3/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2011
                No k4Mac kindle-info/kinf/kinf2011 files have been found.
                Using Munged MAC Address for ID: 1d28b72eb7b3
                Using Munged MAC Address for ID: 1d28b72eb7b3
                Crypto Type is: 2
                File is encoded with PID iJ1dJdMqAH.
                Decrypting. Please wait . . . done
                Processing file: B004TQH19O_EBOK.azw
                shellcommand: python ‘/Users/mlevin3/Desktop/DeDRM 5.3.1.app/Contents/Resources/k4mobidedrm.py’ -s ‘B009A1A010550607′ ‘/Users/mlevin3/Desktop/Convert me!/B004TQH19O_EBOK.azw’ ‘/Users/mlevin3/Desktop/’ > ‘/Users/mlevin3/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
                shellresult: Using Library AlfCrypto DLL/DYLIB/SO
                K4MobiDeDrm v4.4 provided by the work of many including DiapDealer, SomeUpdates, IHeartCabbages, CMBDTC, Skindle, DarkReverser, ApprenticeAlf, etc .
                MobiDeDrm v0.37. Copyright 2008-2012 The Dark Reverser et al.
                MOBI header version = 6, length = 248
                Extra Data Flags = 3
                Processing Book: Once on a Time
                Found k4Mac kinf2011 file: /Users/mlevin3/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2011
                No k4Mac kindle-info/kinf/kinf2011 files have been found.
                Using Munged MAC Address for ID: 1d28b72eb7b3
                Using Munged MAC Address for ID: 1d28b72eb7b3
                Crypto Type is: 0
                This book is not encrypted.
                Processing file: B00847RI10_EBOK.azw
                shellcommand: python ‘/Users/mlevin3/Desktop/DeDRM 5.3.1.app/Contents/Resources/k4mobidedrm.py’ -s ‘B009A1A010550607′ ‘/Users/mlevin3/Desktop/Convert me!/B00847RI10_EBOK.azw’ ‘/Users/mlevin3/Desktop/’ > ‘/Users/mlevin3/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
                shellresult: Using Library AlfCrypto DLL/DYLIB/SO
                K4MobiDeDrm v4.4 provided by the work of many including DiapDealer, SomeUpdates, IHeartCabbages, CMBDTC, Skindle, DarkReverser, ApprenticeAlf, etc .
                MobiDeDrm v0.37. Copyright 2008-2012 The Dark Reverser et al.
                MOBI header version = 7, length = 248
                Extra Data Flags = 3
                Processing Book: Occult Chemistry Clairvoyant Observations on the Chemical Elements
                Found k4Mac kinf2011 file: /Users/mlevin3/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2011
                No k4Mac kindle-info/kinf/kinf2011 files have been found.
                Using Munged MAC Address for ID: 1d28b72eb7b3
                Using Munged MAC Address for ID: 1d28b72eb7b3
                Crypto Type is: 0
                This book is not encrypted.
                Processing file: B0082PHFVM_EBOK.azw
                shellcommand: python ‘/Users/mlevin3/Desktop/DeDRM 5.3.1.app/Contents/Resources/k4mobidedrm.py’ -s ‘B009A1A010550607′ ‘/Users/mlevin3/Desktop/Convert me!/B0082PHFVM_EBOK.azw’ ‘/Users/mlevin3/Desktop/’ > ‘/Users/mlevin3/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
                shellresult: Using Library AlfCrypto DLL/DYLIB/SO
                K4MobiDeDrm v4.4 provided by the work of many including DiapDealer, SomeUpdates, IHeartCabbages, CMBDTC, Skindle, DarkReverser, ApprenticeAlf, etc .
                MobiDeDrm v0.37. Copyright 2008-2012 The Dark Reverser et al.
                MOBI header version = 7, length = 248
                Extra Data Flags = 3
                Processing Book: Spiritual Life and the Word of God
                Found k4Mac kinf2011 file: /Users/mlevin3/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2011
                No k4Mac kindle-info/kinf/kinf2011 files have been found.
                Using Munged MAC Address for ID: 1d28b72eb7b3
                Using Munged MAC Address for ID: 1d28b72eb7b3
                Crypto Type is: 0
                This book is not encrypted.
                Processing file: B0084A2NGM_EBOK.azw
                shellcommand: python ‘/Users/mlevin3/Desktop/DeDRM 5.3.1.app/Contents/Resources/k4mobidedrm.py’ -s ‘B009A1A010550607′ ‘/Users/mlevin3/Desktop/Convert me!/B0084A2NGM_EBOK.azw’ ‘/Users/mlevin3/Desktop/’ > ‘/Users/mlevin3/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
                shellresult: Using Library AlfCrypto DLL/DYLIB/SO
                K4MobiDeDrm v4.4 provided by the work of many including DiapDealer, SomeUpdates, IHeartCabbages, CMBDTC, Skindle, DarkReverser, ApprenticeAlf, etc .
                MobiDeDrm v0.37. Copyright 2008-2012 The Dark Reverser et al.
                MOBI header version = 7, length = 248
                Extra Data Flags = 3
                Processing Book: The Gist of Swedenborg
                Found k4Mac kinf2011 file: /Users/mlevin3/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2011
                No k4Mac kindle-info/kinf/kinf2011 files have been found.
                Using Munged MAC Address for ID: 1d28b72eb7b3
                Using Munged MAC Address for ID: 1d28b72eb7b3
                Crypto Type is: 0
                This book is not encrypted.
                There were warnings with 4 ebooks:
                B004TQH19O_EBOK.azw is not encrypted.
                B00847RI10_EBOK.azw is not encrypted.
                B0082PHFVM_EBOK.azw is not encrypted.
                B0084A2NGM_EBOK.azw is not encrypted.

                There was an error with 1 ebook:
                B003BVJ8WQ_EBOK.azw couldn’t be decoded:
                K4MobiDeDrm v4.4
                Error: list index out of range
                DRM Removal Failed.

                Successfully de-drmed 17 ebooks:
                B003ODIZL6_EBOK.azw
                B00CS4FN1W_EBOK.azw
                B009WG4C34_EBOK.azw
                B000VI5AQ0_EBOK.azw
                B00359FNNW_EBOK.azw
                B0096BCVPG_EBOK.azw
                B00CECG35S_EBOK.azw
                B008SQL6NS_EBOK.azw
                B00AZ4S6PM_EBOK.azw
                B00918JR5Q_EBOK.azw
                B002IPZDQ6_EBOK.azw
                B00633W4A2_EBOK.azw
                B003M696QS_EBOK.azw
                B00BATNLHO_EBOK.azw
                B005LC1OR0_EBOK.azw
                B007ZQ38TM_EBOK.azw
                B00BEIKEF8_EBOK.azw

                Now, here’s the failure of the same book file, using the new version of the Tools code: 6.0.8:

                shellcommand: /usr/local/bin/python ‘/Users/mlevin3/Desktop/tools_v6.0.8/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/kindlekey.py’ ‘/Users/mlevin3/Library/Preferences/com.apprenticealf.dedrm/Local Kindle Key.k4i’ > ‘/Users/mlevin3/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
                shellresult: Traceback (most recent call last):
                File “/Users/mlevin3/Desktop/tools_v6.0.8/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/kindlekey.py”, line 34, in
                import json
                ImportError: No module named json
                There is 1 ebook to be decrypted.
                Processing file: B007ERJY7C_EBOK.azw
                shellcommand: /usr/local/bin/python ‘/Users/mlevin3/Desktop/tools_v6.0.8/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/k4mobidedrm.py’ -s ‘B009A1A010550607′ ‘/Users/mlevin3/Desktop/B007ERJY7C_EBOK.azw’ ‘/Users/mlevin3/Desktop/’ > ‘/Users/mlevin3/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
                shellresult: Traceback (most recent call last):
                File “/Users/mlevin3/Desktop/tools_v6.0.8/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/k4mobidedrm.py”, line 69, in
                import json
                ImportError: No module named json
                There was an error with 1 ebook:
                B007ERJY7C_EBOK.azw couldn’t be decrypted.

                • We have obviously had a misunderstanding. I believed you to have said that you had successfully decided books with the 6.0.8 DedRM app on Mac OS X 10.8, and that’s what I wanted to see a log of. It seems I was mistaken which is not surprising, because as others have reported, there’s a problem on 10.8 with the DeDRM app’s preferences.

                  However, the calibre plugin should be working fine on 10.8. Try that.

                  • > However, the calibre plugin should be working fine on 10.8. Try that.
                    I tried and it says “Error: decryption unsuccessful; no valid pid found”; I can post the Calibre log but I don’t know where it is – it doesn’t seem to be writing to Console?

                    • Launch calibre from a terminal window and the log will be written to that. (See the instructions in the FAQs post.)

  71. Hi Team,
    I first installed Calibre and the stand-alone about 6 months ago, on an old MacBookPro running OSX 10.5.8). With your help back then I downloaded Python and got up and runnning.
    That laptop died recently (RIP!) and I used a sled to bring over Calibre and the stand-alone from the original hard drive to my new MacBookPro running Mavericks. I ended up replacing my Calibre app to the most recent version today. Also downloaded your latest toolkit with the Calibre plug-ins today.
    After re-entering my Serial # (Kindle Touch) in the configure menu, I am still getting requests for a PID before I can decrypt anything. Exact error message is “Couldn’t decode [book with a number attached to the name]. Do you have another PID to try?” If I say No Extra PID, then the final window says “Macintosh HD:Users:cristina:Library:Preferences:com.apprenticealf.dedrm.plist” is not a property list file.”

    Haven’t been able to remove DRM on anything with this current computer. I cut and pasted the log below; please take a look and let me know what is likely to be the obvious error that I’m unable to translate from here. :-p
    Thanks yet again!

    shellcommand: /usr/bin/python ‘/Users/cristina/Desktop/DeDRM.app/Contents/Resources/adobekey.py’ ‘/Users/cristina/Library/Preferences/com.apprenticealf.dedrm/Local Adept Key.der’ > ‘/Users/cristina/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
    shellresult: adobekey.py v6.0
    Copyright © 2009-2013 i♥cabbages and Apprentice Alf
    Traceback (most recent call last):
    File “/Users/cristina/Desktop/DeDRM.app/Contents/Resources/adobekey.py”, line 602, in
    sys.exit(cli_main())
    File “/Users/cristina/Desktop/DeDRM.app/Contents/Resources/adobekey.py”, line 525, in cli_main
    keys = adeptkeys()
    File “/Users/cristina/Desktop/DeDRM.app/Contents/Resources/adobekey.py”, line 446, in adeptkeys
    raise ADEPTError(“Could not find ADE activation.dat file.”)
    __main__.ADEPTError: Could not find ADE activation.dat file.
    shellcommand: /usr/bin/python ‘/Users/cristina/Desktop/DeDRM.app/Contents/Resources/kindlekey.py’ ‘/Users/cristina/Library/Preferences/com.apprenticealf.dedrm/Local Kindle Key.k4i’ > ‘/Users/cristina/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
    shellresult: kindlekey.py v1.8
    Copyright © 2010-2013 some_updates and Apprentice Alf
    No k4Mac kindle-info/rainier/kinf2011 files have been found.
    Could not retrieve Kindle for Mac/PC key.

    There is 1 ebook to be decrypted.
    Processing file: Champion_ A Legend Novel_B00C5R7IBU.azw3
    shellcommand: /usr/bin/python ‘/Users/cristina/Desktop/DeDRM.app/Contents/Resources/k4mobidedrm.py’ -k ‘/Users/cristina/Library/Preferences/com.apprenticealf.dedrm/Local Kindle Key.k4i’ ‘/Users/cristina/Desktop/Champion_ A Legend Novel_B00C5R7IBU.azw3′ ‘/Users/cristina/Desktop/’ > ‘/Users/cristina/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.
    Error getting database from file /Users/cristina/Library/Preferences/com.apprenticealf.dedrm/Local Kindle Key.k4i: [Errno 2] No such file or directory: u’/Users/cristina/Library/Preferences/com.apprenticealf.dedrm/Local Kindle Key.k4i’
    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: Champion: A Legend Novel
    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.
    Traceback (most recent call last):
    File “/Users/cristina/Desktop/DeDRM.app/Contents/Resources/k4mobidedrm.py”, line 230, in decryptBook
    with open(dbfile, ‘r’) as keyfilein:
    IOError: [Errno 2] No such file or directory: u’/Users/cristina/Library/Preferences/com.apprenticealf.dedrm/Local Kindle Key.k4i’
    Traceback (most recent call last):
    File “/Users/cristina/Desktop/DeDRM.app/Contents/Resources/k4mobidedrm.py”, line 240, in decryptBook
    book = GetDecryptedBook(infile, kDatabases, serials, pids, starttime)
    File “/Users/cristina/Desktop/DeDRM.app/Contents/Resources/k4mobidedrm.py”, line 214, in GetDecryptedBook
    mb.processBook(totalpids)
    File “/Users/cristina/Desktop/DeDRM.app/Contents/Resources/mobidedrm.py”, line 467, in processBook
    raise DrmException(u”No key found in {0:d} keys tried.”.format(len(goodpids)))
    DrmException: No key found in 0 keys tried.

      • Yes, I can’t get DeDRM app to run on 10.9. I can’t get the plugin to work either “Cannot convert. This book is locked with DRM etc.”

        • Then a calibre log would be helpful to see. My guess is you’ve made a typo entering your Kindle’s serial number.

      • HI Paul, I installed the Calibre plug-ins with no success. I followed the ReadMe Troubleshooting; here is the Terminal log below. (Seemed a bit short.) Any chance there’s something else left for me to install? I’m really regretting my Mavericks upgrade now…..

        Last login: Fri Dec 13 09:41:51 on ttys000
        marianombp:~ cristina$ calibre-debug -g
        calibre 1.15 isfrozen: True is64bit: True
        Darwin-13.0.0-x86_64-i386-64bit Darwin (’64bit’, ”)
        (‘Darwin’, ’13.0.0′, ‘Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu-2422.1.72~6/RELEASE_X86_64′)
        Python 2.7.5
        OSX: (’10.9′, (”, ”, ”), ‘x86_64′)
        marianombp:~ cristina$

        • Is that a terminal log while you imported a book? It doesn’t look like calibre is importing a book, just starting up. If you did import a book, then the plugin isn’t installed.

  72. First-time poster here — are comments being moderated? I left a query last night about a problem I’m having with a Barnes & Noble “PagePerfect” PDF, and after posting it, the comment never showed up. I have the calibre log, and will re-post it if I can succeed in posting at all. Meanwhile, “this is a test”, sorry to waste everyone’s time.

    • Ha, OK — I can suddenly post after all. On the theory that something in the log was the problem last night, I will describe my problem, post that, and then try the log separately. Using calibre 1.14 and DeDRM 6.0.8 plug-in, on MacOS X 10.9.0. I have a newly purchased B&N “PagePerfect” book, the first non-epub I have purchased from B&N. I can read it with Nook Study, and I can also read it in Adobe Digital Editions by using my B&N username / credit card as ID and password. (I was surprised to find out that worked!) My calibre with plug-in can import epubs from both Nook Study and ADE, and can import other DRM’d PDFs from ADE, but fails with a “wrong key” error on the B&N PDF. I have run calibre in debug mode, and will try again to post the log.

  73. Copying and pasting the log, I find WordPress doesn’t post it; that was my problem last night, as suspected. I’ll try retyping the meaningful content from the log, hoping that will get through. DeDRM v6.0.8: Trying to decrypt [my book].pdf / DeDRM 6.0.8: [my book].pdf is a PDF ebook. / DeDRM 6.0.8: Trying Encryption key default_key / Error serializing pdf [my book].pdf. Probably wrong key. / DeDRM 6.0.8: Looking for new Adobe Digital Edition Keys after 0.0 seconds / DeDRM 6.0.8: Ultimately failed to decrypt after 0.0 seconds. / Read the FAQS blah blah. Then there is a traceback, which I’ll post in the next reply in case the underscores in it are what WordPress is rejecting. Sorry again for this awkward multiple posting; WordPress is torturing me.

    • There are two tracebacks: first one is “File “site-packages/calibre/customize/ui.py”, line 154, in _run_filetype_plugins / File “calibre_plugins.dedrm.__init__”, line 478, in run / File “calibre_plugins.dedrm.__init__”, line 360, in PDFDecrypt”, second one is “Syntax Error: Couldn’t find the ‘EBX_HANDLER’ security handler / 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 96, in get_metadata / ValueError: Could not read info dict from PDF”. If this posting gets through, I’m done, and will wait hopefully for guidance. Thank you for your time and effort!

        • Oh, well — I was afraid of that. I was hoping that, because ADE can read B&N PDFs, and DeDRM works with (non-B&N) ADE PDFs, that somehow the DeDRM tools could leverage off ADE’s decryption instead of (unsupported?) Nook Study PDF decryption.

          If anyone knows how to do this directly from the python scripts, or has another proven way, please let me know. Otherwise, I’ll wait and hope for better news in a future release, and won’t make the mistake again of buying PagePerfect (PDF) ebooks from B&N. Thanks again.

          • I don’t think this will work, but the only thing I can think to try is this:

            (1) wipe ADE completely, including any preferences folders or files. (Only do this if you’re sure you had ADE registered with an Adobe ID. Otherwise you could lose access to your un-dedrmed ADE ebooks)
            (2) re-install, but do not enter your Adobe ID
            (3) Instead, only enter your B&N decryption details
            (4) check that ADE can read your troublesome PDF book
            (5) try the plugin again.

            (The idea is that we’re getting ADE to only have the B&N key in its preferences, so that if it’s stored in the same way as Adobe ID generated key, the tools might be able to pick it up if it’s the only one there. But as I said, I don’t really expect this to work.)

            • Didn’t work, alas. Thanks for trying. The dialog ADE throws up asking for B&N authorization is actually different from the standard ADE dialog asking for a vendor ID; I think B&N is using some different configuration of Adobe’s DRM (which ADE, being Adobe’s own app, is smart enough to read even though it’s not what DeDRM is looking for). I can still read the book, of course, and since I can read it in both DRM jails I’m okay until both B&N and Adobe go bankrupt and their respective apps fall unsupported.

  74. Hi Paul,

    I was on the old DeDrm v3.1 which worked fine to de-drm Amazon books until 10 mths ago.
    I just d/l Tools v6.0.8. I am on Mac 10.5.8
    I do not use calibre to de-drm, just the de-drm app.
    I tried to de-drm 2 azw files (book from Kindle for Mac … I believe that it is a Topaz book) but was unsuccessful – error message was that the file could not be decrypted.

    The log :
    shellcommand: /usr/bin/python ‘/Users/teri/Desktop/DeDRM.app/Contents/Resources/kindlekey.py’ ‘/Users/teri/Library/Preferences/com.apprenticealf.dedrm/Local Kindle Key.k4i’ > ‘/Users/teri/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
    shellresult: Traceback (most recent call last):
    File “/Users/teri/Desktop/DeDRM.app/Contents/Resources/kindlekey.py”, line 34, in
    import json
    ImportError: No module named json
    There is 1 ebook to be decrypted.
    Processing file: B00EW406FO_EBSP.azw
    shellcommand: /usr/bin/python ‘/Users/teri/Desktop/DeDRM.app/Contents/Resources/k4mobidedrm.py’ -p ‘B001D26821,Yoke Sim,2898613429,D013027004,’ ‘/Users/teri/Documents/My Kindle Content/B00EW406FO_EBSP.azw’ ‘/Users/teri/Documents/My Kindle Content/’ > ‘/Users/teri/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
    shellresult: Traceback (most recent call last):
    File “/Users/teri/Desktop/DeDRM.app/Contents/Resources/k4mobidedrm.py”, line 69, in
    import json
    ImportError: No module named json
    There was an error with 1 ebook:
    B00EW406FO_EBSP.azw couldn’t be decrypted.

    PLEASE,Please help me fix the problem. Thanks.

    • Hi Teri,

      How odd – it seems that something the tools expect to be present in Python isn’t there. I suggest you follow the instructions for installing a newer version of Python, that I think is in the FAQs or the DeDRM ReadMe, for Mac OS X 10.4, even though you’re on 10.5.

      • Hey Paul,

        I installed Phyton 2.7.3 and tried to de-drm the azw file. still doesnt work :(

        this is the log:

        shellcommand: /usr/local/bin/python ‘/Users/teri/Desktop/DeDRM.app/Contents/Resources/kindlekey.py’ ‘/Users/teri/Library/Preferences/com.apprenticealf.dedrm/Local Kindle Key.k4i’ > ‘/Users/teri/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
        shellresult: kindlekey.py v1.9
        Copyright © 2010-2013 some_updates and Apprentice Alf
        Found k4Mac rainier file: /Users/teri/Library/Application Support/Kindle/storage/.rainier-2.1.1-kinf
        Found k4Mac kindle-info file: /Users/teri/Library/Application Support/Amazon/Kindle for Mac/storage/.kindle-info
        Decrypted key file using IDString ‘a5bb6705a8a2′ and UserName ‘teri’
        Decrypted key file using IDString ‘WD-WCARZ0254258′ and UserName ‘teri’
        Saved a key to /Users/teri/Library/Preferences/com.apprenticealf.dedrm/Local Kindle Key.k4i

        There is 1 ebook to be decrypted.
        Processing file: B00EW40LH2_EBSP.azw
        shellcommand: /usr/local/bin/python ‘/Users/teri/Desktop/DeDRM.app/Contents/Resources/k4mobidedrm.py’ -k ‘/Users/teri/Library/Preferences/com.apprenticealf.dedrm/Local Kindle Key.k4i’ -p ‘B001D26821,Yoke Sim,2898613429,D013027004,’ ‘/Users/teri/Documents/My Kindle Content/B00EW40LH2_EBSP.azw’ ‘/Users/teri/Documents/My Kindle Content/’ > ‘/Users/teri/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
        shellresult: Using Library AlfCrypto Python
        K4MobiDeDrm v5.2.
        Copyright © 2008-2013 The Dark Reverser et al.
        Decrypting Topaz ebook: Bayou Bride
        Found 9 keys to try after 0.1 seconds
        Trying: B001D268
        Trying: Yoke Sim
        Trying: 28986134
        Trying: D0130270
        Trying:
        Error decrypting book after 0.1 seconds: local variable ‘ctx2′ referenced before assignment
        Traceback (most recent call last):
        File “/Users/teri/Desktop/DeDRM.app/Contents/Resources/k4mobidedrm.py”, line 242, in decryptBook
        book = GetDecryptedBook(infile, kDatabases, serials, pids, starttime)
        File “/Users/teri/Desktop/DeDRM.app/Contents/Resources/k4mobidedrm.py”, line 216, in GetDecryptedBook
        mb.processBook(totalpids)
        File “/Users/teri/Desktop/DeDRM.app/Contents/Resources/topazextract.py”, line 346, in processBook
        bookKeys+=decryptDkeyRecords(data,pid)
        File “/Users/teri/Desktop/DeDRM.app/Contents/Resources/topazextract.py”, line 186, in decryptDkeyRecords
        key = decryptDkeyRecord(data[1:length+1],PID)
        File “/Users/teri/Desktop/DeDRM.app/Contents/Resources/topazextract.py”, line 168, in decryptDkeyRecord
        record = decryptRecord(data,PID)
        File “/Users/teri/Desktop/DeDRM.app/Contents/Resources/topazextract.py”, line 163, in decryptRecord
        ctx = topazCryptoInit(PID)
        File “/Users/teri/Desktop/DeDRM.app/Contents/Resources/topazextract.py”, line 138, in topazCryptoInit
        return Topaz_Cipher().ctx_init(key)
        File “/Users/teri/Desktop/DeDRM.app/Contents/Resources/alfcrypto.py”, line 214, in ctx_init
        self._ctx = [ctx1, ctx2]
        UnboundLocalError: local variable ‘ctx2′ referenced before assignment
        There was an error with 1 ebook:
        B00EW40LH2_EBSP.azw couldn’t be decrypted.

        There is 1 ebook to be decrypted.
        Processing file: B001E5OW04_EBSP.azw
        shellcommand: /usr/local/bin/python ‘/Users/teri/Desktop/DeDRM.app/Contents/Resources/k4mobidedrm.py’ -k ‘/Users/teri/Library/Preferences/com.apprenticealf.dedrm/Local Kindle Key.k4i’ -p ‘B001D26821,Yoke Sim,2898613429,D013027004,’ ‘/Users/teri/Documents/My Kindle Content/B001E5OW04_EBSP.azw’ ‘/Users/teri/Documents/My Kindle Content/’ > ‘/Users/teri/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
        shellresult: Using Library AlfCrypto Python
        K4MobiDeDrm v5.2.
        Copyright © 2008-2013 The Dark Reverser et al.
        Decrypting Topaz ebook: Forever Yours
        Found 9 keys to try after 0.0 seconds
        Trying: B001D268
        Trying: Yoke Sim
        Trying: 28986134
        Trying: D0130270
        Trying:
        Error decrypting book after 0.0 seconds: local variable ‘ctx2′ referenced before assignment
        Traceback (most recent call last):
        File “/Users/teri/Desktop/DeDRM.app/Contents/Resources/k4mobidedrm.py”, line 242, in decryptBook
        book = GetDecryptedBook(infile, kDatabases, serials, pids, starttime)
        File “/Users/teri/Desktop/DeDRM.app/Contents/Resources/k4mobidedrm.py”, line 216, in GetDecryptedBook
        mb.processBook(totalpids)
        File “/Users/teri/Desktop/DeDRM.app/Contents/Resources/topazextract.py”, line 346, in processBook
        bookKeys+=decryptDkeyRecords(data,pid)
        File “/Users/teri/Desktop/DeDRM.app/Contents/Resources/topazextract.py”, line 186, in decryptDkeyRecords
        key = decryptDkeyRecord(data[1:length+1],PID)
        File “/Users/teri/Desktop/DeDRM.app/Contents/Resources/topazextract.py”, line 168, in decryptDkeyRecord
        record = decryptRecord(data,PID)
        File “/Users/teri/Desktop/DeDRM.app/Contents/Resources/topazextract.py”, line 163, in decryptRecord
        ctx = topazCryptoInit(PID)
        File “/Users/teri/Desktop/DeDRM.app/Contents/Resources/topazextract.py”, line 138, in topazCryptoInit
        return Topaz_Cipher().ctx_init(key)
        File “/Users/teri/Desktop/DeDRM.app/Contents/Resources/alfcrypto.py”, line 214, in ctx_init
        self._ctx = [ctx1, ctx2]
        UnboundLocalError: local variable ‘ctx2′ referenced before assignment
        There was an error with 1 ebook:
        B001E5OW04_EBSP.azw couldn’t be decrypted.

        any clues what I did wrong?
        I bought the book via a new amazon account but on same Mac computer.
        Would that make a difference? I cant de-drm any of the older books that I bot before either, under a differnt a/c.

        • Hi Teri,

          For this particular book you seem to have found a Topaz book that the tools can’t (yet?) decrypt. You’ll need to get in touch with Apprentice Alf directly ( apprenticealf@gmail.com ) and see if he can find out what’s new in this Topaz format ebook.

          Your other books should be possible to decrypt, but having multiple Kindle accounts makes things more tricky. If you can’t get them decrypted after deleting everything to do with Kindle for Mac and then re-installing,registering and re-downloading them, post another log.

  75. Hello…I borrowed two e- books from my library (in Canada). They are not formatted for my kindle. I tried to convert them in Calibre with the drm plug ins. When I try to view them they still show drm protected. Is there anything I can do?

      • Actually, Tammy, the tools work fine on Overdrive Library books.. I live in Canada and have the same problem, Kindle format books aren’t available from our libraries. Only ePub. However, if you can read the book in Adobe Digital Editions, the tools can remove the DRM so that you can convert to Kindle format.

  76. Does anyone know a way to dedrm comic books from kobo that only work on their ios apps? I bought walking dead vol 1-18 and can only read 1 on desktop app (kepub) and 2-18 on ios device (they would work on android but I don’t have an android device). I want to liberate them for use on my nook simple touch, or at least all on the desktop app! Any help would be appreciated.

      • I still haven’t figured out how that would work. For example, though the apps use the same user key (kobo app for android/ios) as the desktop, there is no “sql database” for the python script to look up and get information from. How do you tell the script that you have a folder with 25 magazines and comic books that use the same key as the desktop and to just get some information from the db to decrypt the books?

      • Is it likely that the obok script will be integrated into the DeDRM tools, or is it likely to remain in Other Tools? I currently can’t get the script to work, as mentioned previously I’m running Mavericks, and there seems to be some plist access issues that cause the script to stop. Not knowing enough about Python, I doubt I’ll be able to fix the issue unfortunately. But I certainly appreciate all the work that goes into making these tools!

  77. Recommend you keep version 5.1.3 available for folks using Mac 10.5.8
    Version 6.0.8 produces no decrypted files
    Version 6.0.7 sometimes produces a decrypted file but generates a pack of error messages

    which tool was used – tools 6.0.8 and 6.0.7 for Mac, standalone app
    which OS you are using 10.5.8
    where the ebook file came from (device or folder) Digital Editions
    any error messages see below

    VERSION 6.0.8
    shellcommand: /usr/bin/python ‘/Users/macuser/Desktop/tools_v6.0.8/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/kindlekey.py’ ‘/Users/macuser/Library/Preferences/com.apprenticealf.dedrm/Local Kindle Key.k4i’ > ‘/Users/macuser/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
    shellresult: Traceback (most recent call last):
    File “/Users/macuser/Desktop/tools_v6.0.8/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/kindlekey.py”, line 34, in
    import json
    ImportError: No module named json
    There is 1 ebook to be decrypted.
    Processing file: book.pdf
    shellcommand: /usr/bin/python ‘/Users/macuser/Desktop/tools_v6.0.8/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/ineptpdf.py’ ‘/Users/macuser/Library/Preferences/com.apprenticealf.dedrm/Local Adept Key.der’ ‘/Users/macuser/Documents/Digital Editions/book.pdf’ ‘/Users/macuser/Desktop/book_nodrm.pdf’ > ‘/Users/macuser/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
    shellresult: Traceback (most recent call last):
    File “/Users/macuser/Desktop/tools_v6.0.8/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/ineptpdf.py”, line 2334, in
    sys.exit(cli_main())
    File “/Users/macuser/Desktop/tools_v6.0.8/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/ineptpdf.py”, line 2206, in cli_main
    print u”Successfully decrypted {0:s} as {1:s}”.format(os.path.basename(inpath),os.path.basename(outpath))
    AttributeError: ‘unicode’ object has no attribute ‘format’
    There was an error with 1 ebook:
    book.pdf couldn’t be decoded:
    Traceback (most recent call last):
    File “/Users/macuser/Desktop/tools_v6.0.8/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/ineptpdf.py”, line 2334, in
    sys.exit(cli_main())
    File “/Users/macuser/Desktop/tools_v6.0.8/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/ineptpdf.py”, line 2206, in cli_main
    print u”Successfully decrypted {0:s} as {1:s}”.format(os.path.basename(inpath),os.path.basename(outpath))
    AttributeError: ‘unicode’ object has no attribute ‘format’

    VERSION 6.0.7
    shellcommand: /usr/bin/python ‘/Applications/DeDRM_v6.0.7/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/kindlekey.py’ ‘/Users/macuser/Library/Preferences/com.apprenticealf.dedrm/Local Kindle Key.k4i’ > ‘/Users/macuser/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
    shellresult: Traceback (most recent call last):
    File “/Applications/DeDRM_v6.0.7/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/kindlekey.py”, line 33, in
    import json
    ImportError: No module named json
    There is 1 ebook to be decrypted.
    Processing file: book.pdf
    shellcommand: /usr/bin/python ‘/Applications/DeDRM_v6.0.7/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/ineptpdf.py’ ‘/Users/macuser/Library/Preferences/com.apprenticealf.dedrm/Local Adept Key.der’ ‘/Users/macuser/Documents/Digital Editions/book.pdf’ ‘/Users/macuser/Desktop/book_nodrm.pdf’ > ‘/Users/macuser/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
    shellresult: Traceback (most recent call last):
    File “/Applications/DeDRM_v6.0.7/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/ineptpdf.py”, line 2334, in
    sys.exit(cli_main())
    File “/Applications/DeDRM_v6.0.7/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/ineptpdf.py”, line 2206, in cli_main
    print u”Successfully decrypted {0:s} as {1:s}”.format(os.path.basename(inpath),os.path.basename(outpath))
    AttributeError: ‘unicode’ object has no attribute ‘format’
    There was an error with 1 ebook:
    book.pdf couldn’t be decoded:
    Traceback (most recent call last):
    File “/Applications/DeDRM_v6.0.7/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/ineptpdf.py”, line 2334, in
    sys.exit(cli_main())
    File “/Applications/DeDRM_v6.0.7/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/ineptpdf.py”, line 2206, in cli_main
    print u”Successfully decrypted {0:s} as {1:s}”.format(os.path.basename(inpath),os.path.basename(outpath))
    AttributeError: ‘unicode’ object has no attribute ‘format’

  78. Hello!
    I’m about to move from Kindle to Kobo and started to convert a few books from Amazon to epubs using the Calibre DeDRM plugin to see if it worked and it worked perfectly. Now I’ve started moving my whole library (downloaded with the Kindle Desktop program and dragged into Calibre) and I’ve stumbled upon a large number of books that I couldn’t convert. After some testing I noticed that all were .azw files. The .azw3 and .mobi files were converting without problems altough all my books were bought on Amazon. Does that mean I made a mistake installing the plugin and the books that work are in fact DRM-free, or is there a problem with the azw-format? What can I do to transfer those books to my new reader?
    Thank you for your help, it is greatly appreciated! =)

    • Hi Ina,

      Are you sure
      (a) that those .azw files were downloaded in the same way and at the same time as the files that worked?
      (b) that the decryption has failed?

      If the answer to both is yes, then I suggest you post a log of the import of one of the books that works, and then (in a separate comment) a log of the import of one of the books that didn’t work.

      • Hello,
        thanks for the reply!
        I’m sure they were downloaded the same way, I downloaded all the books from the cloud to my computer via the Kindle for PC program and then dragged and dropped them from the “My Kindle Content” folder into Calibre. But I just did a few more tests and noticed that that problem only exists with the files I downloaded that way a few weeks ago, if I delete them from my computer and download them again they are either azw3 or if they are still azw they show up as mobi when imported into Calibre – and converting them works just fine! I’m not sure what the problem was, maybe Amazon changed something?
        Thank you very much for your time anyway! Just one last question for future reference: where do I find the log files of imports?

  79. I have successfully (hooray!!) installed the Calibre plug-in, and taken all the many other steps, etc. and everything is working to strip drm from my epub files. I can now move drm epub files from my Sony e-reader to my computer using Calibre and they show up stripped of drm. So, no problems, but I do have a question. To avoid jumping through hoops in future (and the time required) I would like to back-up some file (in Calibre?) so that if my computer crashes I can simply use my backup copy of the file in Calibre to again strip drm from my own epub files. I’m using Debian by the way. Please advise the name and location of this important file.

    thank you and Merry Christmas!

    • You can simply copy the files that are in Calibre, or use Calibre’s Save To Disk button, to make a copy of the DRM-free files. No need to remove the DRM again. The DRM is actually removed BEFORE the file is added to Calibre, if everything is working correctly. One of the main reasons for removing DRM is to allow easy and platform independent backups.

      Charlie.

    • If you look in the DeDRM preferences dialog, there’s a button to export the ADE key file that’s needed for stripping ADE DRM. You could export it and keep a copy somewhere else if you want. At present it’s automatically generated from the ADE preferences, but it’s just possible that that process might get broken by an ADE update, while the DRM sustem remained otherwise the same.

  80. Hello

    First off, great plug-in, thanks!

    I have the Calibre plug-in and it successfully removes the DRM from my kindle books. However, it also automatically converts them to either Mobi or azw3 format. I can imagine that for a lot of people that want to read their books in Calibre or use non-Kindle readers that is useful. I personally find it annoying though because I only use Calibre for library management and I want to keep the .azw extension (which was what the original Iheartcabbages script did) so that I can remember the original source.

    I took a look at the script in k4mobidedrm.py but have to admit I’m out of my depth. How can I stop the files from being converted on import please?

    Thanks,
    Ronel

    • The file isn’t converted on import. It’s purely a change of the file name extension which indicates whether it’s an original Mobipocket format file, or a new KF8 format file.

  81. Kindly seeking some help figuring out why the software’s telling me the book isn’t encrypted while I remain completely unable to open it in any device/app. Posting the log here per the readme’s instructions:

    shellcommand: /usr/bin/python ‘/Users/xxxxx/Downloads/tools_v6.0.8/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/adobekey.py’ ‘/Users/xxxxx/Library/Preferences/com.apprenticealf.dedrm/Local Adept Key.der’ > ‘/Users/xxxxx/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
    shellresult: adobekey.py v6.0
    Copyright © 2009-2013 i♥cabbages and Apprentice Alf
    Traceback (most recent call last):
    File “/Users/xxxxx/Downloads/tools_v6.0.8/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/adobekey.py”, line 602, in
    sys.exit(cli_main())
    File “/Users/xxxxx/Downloads/tools_v6.0.8/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/adobekey.py”, line 525, in cli_main
    keys = adeptkeys()
    File “/Users/xxxxx/Downloads/tools_v6.0.8/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/adobekey.py”, line 446, in adeptkeys
    raise ADEPTError(“Could not find ADE activation.dat file.”)
    __main__.ADEPTError: Could not find ADE activation.dat file.
    There is 1 ebook to be decrypted.
    Processing file: Walden on Wheels_ On the Open Road from Debt to Freedom – Ilgunas, Ken.epub
    shellcommand: /usr/bin/python ‘/Users/xxxxx/Downloads/tools_v6.0.8/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/zipfix.py’ ‘/Users/xxxxx/Downloads/Walden on Wheels_ On the Open Road from Debt to Freedom – Ilgunas, Ken.epub’ ‘/Users/xxxxx/Desktop/Walden on Wheels_ On the Open Road from Debt to Freedom – Ilgunas, Ken_fixed.epub’ > ‘/Users/xxxxx/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
    shellresult:
    shellcommand: /usr/bin/python ‘/Users/xxxxx/Downloads/tools_v6.0.8/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/epubtest.py’ ‘/Users/xxxxx/Desktop/Walden on Wheels_ On the Open Road from Debt to Freedom – Ilgunas, Ken_fixed.epub’ > ‘/Users/xxxxx/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
    shellresult: Unencrypted

    There was a warning with 1 ebook:
    Walden on Wheels_ On the Open Road from Debt to Freedom – Ilgunas, Ken doesn’t seem to be encrypted.

    • The ultimate test of whether it’s encrypted or not is to unzip it and open one of the HTML files and see if it contains text or gibberish.

  82. I tried to use your debugging module, but instead of launching CALIBRE, I just received a welcome notice and >>> (see below)
    _____________Begin of My screenshot______________________________________________
    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.

    C:\Dokumente und Einstellungen\Reinhard>calibre-debug g
    Welcome to the interactive calibre shell!
    >>>
    >>>
    ___________End of my screenshot___________________________________________________
    After I started CALIBRE in the regular way, the import still didn’t work and I did’t see anything happen in the command-line window.
    What’s going wrong???
    I assume that the calibre shell is waiting for a command, but your ReadMe.txt doesn’t indicate this nor does it give any information about it.

  83. Does the Kindle AZW3 book need to be downloaded on the same machine that the DRM plugin is used in Calibre?
    I downloaded an AZW3 book on a linux machine, and then tried to open it through Calibre on an XP machine, and it did not work. Is that because I needed to download it on the XP machine if that is where I tried to use Calibre to take the DRM off

  84. Alf I’ve done everything I am supposed to do with Calibre and I can’t remove the DRM. I think Amazon modified it so the only way it is going to work is if you update your plugin.

  85. I’m using the DeDRM application for Mac from the tools v6.0.8 download. I’d previously used earlier versions without a problem, but then it stopped working; I think it worked until I installed OSX Mavericks, but I’m not certain. When version 5.something (not sure) stopped working, I downloaded the new one, but the same problem occurred. I had both .azw3 and epub files, which I put in a file called DRM. The error messages are similar. With the .azw3 files, it’s “Couldn’t decode [name of book]. Do you have another PID to try?” I input the kindle serial number (which was already in the DeDRM preferences), but it doesn’t work. I then get “‘Macintosh HD:Users;jgass:Library;Preferences:com.apprenticealf.dedrm.plist’ is not a property list file.”

    This comes from the log file:
    shellcommand: /usr/bin/python ‘/Applications/DeDRM.app/Contents/Resources/adobekey.py’ ‘/Users/jjgass/Library/Preferences/com.apprenticealf.dedrm/Local Adept Key.der’ > ‘/Users/jjgass/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
    shellresult: adobekey.py v6.0
    Copyright © 2009-2013 i♥cabbages and Apprentice Alf
    Saved a key to /Users/jjgass/Library/Preferences/com.apprenticealf.dedrm/Local Adept Key.der

    shellcommand: /usr/bin/python ‘/Applications/DeDRM.app/Contents/Resources/kindlekey.py’ ‘/Users/jjgass/Library/Preferences/com.apprenticealf.dedrm/Local Kindle Key.k4i’ > ‘/Users/jjgass/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
    shellresult: kindlekey.py v1.9
    Copyright © 2010-2013 some_updates and Apprentice Alf
    Found k4Mac kinf2011 file: /Users/jjgass/Library/Application Support/Kindle/storage/.kinf2011
    Decrypted key file using IDString ’713f85417513′ and UserName ‘jjgass’
    Saved a key to /Users/jjgass/Library/Preferences/com.apprenticealf.dedrm/Local Kindle Key.k4i

    There is 1 ebook to be decrypted.
    Processing file: A Suitable Vengeance (Inspector Lynley).azw3
    shellcommand: /usr/bin/python ‘/Applications/DeDRM.app/Contents/Resources/k4mobidedrm.py’ -k ‘/Users/jjgass/Library/Preferences/com.apprenticealf.dedrm/Local Kindle Key.k4i’ ‘/Users/jjgass/Desktop/DRM/A Suitable Vengeance (Inspector Lynley).azw3′ ‘/Users/jjgass/Desktop/’ > ‘/Users/jjgass/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 264
    Extra Data Flags: 3
    Decrypting Kindle Format 8 ebook: A Suitable Vengeance (Inspector Lynley)
    Found 4 keys to try after 0.0 seconds
    Crypto Type is: 2
    Error decrypting book after 0.0 seconds: No key found in 4 keys tried.
    Traceback (most recent call last):
    File “/Applications/DeDRM.app/Contents/Resources/k4mobidedrm.py”, line 242, in decryptBook
    book = GetDecryptedBook(infile, kDatabases, serials, pids, starttime)
    File “/Applications/DeDRM.app/Contents/Resources/k4mobidedrm.py”, line 216, in GetDecryptedBook
    mb.processBook(totalpids)
    File “/Applications/DeDRM.app/Contents/Resources/mobidedrm.py”, line 469, in processBook
    raise DrmException(u”No key found in {0:d} keys tried.”.format(len(goodpids)))
    DrmException: No key found in 4 keys tried.
    There was an error with 1 ebook:
    A Suitable Vengeance (Inspector Lynley).azw3 couldn’t be decrypted.

  86. (By the way, thanks so much for these tools. Even though I’m having difficulty right now, I’ve used them for quite a while, and I really appreciate the ability to modify metadata, organize collections, and convert formats in calibre)

  87. I did a quick google on Mavericks and plists and Applescript. It seems that Apple have broken plist handling by AppleScripts in Mavericks (Mac OS X 10.9), which explains why the DeDRM app won’t work in Mavericks, since it stores the decryption keys and other preferences in a plist file.

    Perhaps Apple will fix this bug in a later release of Mavericks.

    • There is no more AppleScript as we knew it in Mavericks apparently. There is Automation but it’s not the same and hence the Mac issues.

      • AppleScript does still exist in Mavericks. Unfortunately it seems that there’s a bug in the Mavericks implementation when it comes to handling plist files which stops the DeDRM AppleScript working.

        • If you upgrade from a working computer with Mac OS X < 10.9 to 10.9 the standalone DeDRM continues to work and just throws an error regarding the plist in the end, but the DeDRM part works just fine (for me with Kindle/Barnes&Noble/Adobe Adept). I upgraded from Mac OS X 10.6.8 with working DeDRM.App directly to 10.8 (still working, no errors) and then 2 weeks later to 10.9 beta then to Release Version. Only since the Beta has DeDRM thrown the error message regarding the plist.
          I would suggest to use Calibre and the Plugin, that continues to work, but I had a hard time to configure it for Kindle, I am still investigating the issue.

  88. (sorry if this is old info; I looked around in the FAQ and couldn’t find anything related)
    Apparently, Digital Editions’ PDF implementation is not 100% compatible with that of Acrobat Reader X (latest version). A converted PDF can be loaded back into Digital Editions and all pages render the same as from the encrypted original. However, if that converted PDF is loaded into Acrobat X, some pages won’t display. Other tools (Nitro, Sumatra) seem to be more flexible and are able to render those pages (partially, fully), but Acrobat Reader returns the following error on those particular pages (which show up blank): “There was a problem processing a page. There was a problem reading this document (110).”

    Unfortunately, this also means that the document cannot be annotated via Reader X, as the same error shows up while attempting to save the document. Nitro Reader 3 is able to partially render some of the content (text was present; figures were absent) and save the document “intelligently” (i.e. so the partial content shows up in Reader X). Sumatra renders the entire page, but performs “dumb” saving — leaving the errors in place.

  89. Here is my log Paul.

    calibre Debug log
    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 6.37 seconds with 1 books
    Worker Launch took: 0.457999944687
    Job: 1 Convert book 1 of 1 (Matthew: Presents Yeshua, King Messiah) finished
    Convert book 1 of 1 (Matthew: Presents Yeshua, King Messiah)
    Resolved conversion options
    calibre version: 1.16.0
    {‘asciiize’: False,
    ‘author_sort’: None,
    ‘authors’: None,
    ‘base_font_size’: 0.0,
    ‘book_producer’: None,
    ‘change_justification’: u’original’,
    ‘chapter’: u”//*[((name()='h1' or name()='h2') and re:test(., '\\s*((chapter|book|section|part)\\s+)|((prolog|prologue|epilogue)(\\s+|$))', 'i')) or @class = 'chapter']“,
    ‘chapter_mark’: u’pagebreak’,
    ‘comments’: None,
    ‘cover’: u’C:\\Users\\User\\AppData\\Local\\Temp\\calibre_allqg3\\anfkya.jpeg’,
    ‘debug_pipeline’: None,
    ‘dehyphenate’: True,
    ‘delete_blank_paragraphs’: True,
    ‘disable_font_rescaling’: False,
    ‘dont_compress’: False,
    ‘duplicate_links_in_toc’: False,
    ‘embed_all_fonts’: False,
    ‘embed_font_family’: None,
    ‘enable_heuristics’: False,
    ‘expand_css’: False,
    ‘extra_css’: None,
    ‘extract_to’: None,
    ‘filter_css’: u”,
    ‘fix_indents’: True,
    ‘font_size_mapping’: None,
    ‘format_scene_breaks’: True,
    ‘html_unwrap_factor’: 0.4,
    ‘input_encoding’: None,
    ‘input_profile’: ,
    ‘insert_blank_line’: False,
    ‘insert_blank_line_size’: 0.5,
    ‘insert_metadata’: False,
    ‘isbn’: None,
    ‘italicize_common_cases’: True,
    ‘keep_ligatures’: False,
    ‘language’: None,
    ‘level1_toc’: None,
    ‘level2_toc’: None,
    ‘level3_toc’: None,
    ‘line_height’: 0.0,
    ‘linearize_tables’: False,
    ‘margin_bottom’: 5.0,
    ‘margin_left’: 5.0,
    ‘margin_right’: 5.0,
    ‘margin_top’: 5.0,
    ‘markup_chapter_headings’: True,
    ‘max_toc_links’: 50,
    ‘minimum_line_height’: 120.0,
    ‘mobi_file_type’: u’old’,
    ‘mobi_ignore_margins’: False,
    ‘mobi_keep_original_images’: False,
    ‘mobi_toc_at_start’: False,
    ‘no_chapters_in_toc’: False,
    ‘no_inline_navbars’: True,
    ‘no_inline_toc’: False,
    ‘output_profile’: ,
    ‘page_breaks_before’: u”//*[name()='h1' or name()='h2']“,
    ‘personal_doc’: u’[PDOC]‘,
    ‘prefer_author_sort’: False,
    ‘prefer_metadata_cover’: False,
    ‘pretty_print’: False,
    ‘pubdate’: None,
    ‘publisher’: None,
    ‘rating’: None,
    ‘read_metadata_from_opf’: u’C:\\Users\\User\\AppData\\Local\\Temp\\calibre_allqg3\\zkkqdj.opf’,
    ‘remove_fake_margins’: True,
    ‘remove_first_image’: False,
    ‘remove_paragraph_spacing’: False,
    ‘remove_paragraph_spacing_indent_size’: 1.5,
    ‘renumber_headings’: True,
    ‘replace_scene_breaks’: u”,
    ‘search_replace’: ‘[]‘,
    ‘series’: None,
    ‘series_index’: None,
    ‘share_not_sync’: False,
    ‘smarten_punctuation’: False,
    ‘sr1_replace’: None,
    ‘sr1_search’: None,
    ‘sr2_replace’: None,
    ‘sr2_search’: None,
    ‘sr3_replace’: None,
    ‘sr3_search’: None,
    ‘start_reading_at’: None,
    ‘subset_embedded_fonts’: False,
    ‘tags’: None,
    ‘timestamp’: None,
    ‘title’: None,
    ‘title_sort’: None,
    ‘toc_filter’: None,
    ‘toc_threshold’: 6,
    ‘toc_title’: None,
    ‘unsmarten_punctuation’: False,
    ‘unwrap_lines’: True,
    ‘use_auto_toc’: False,
    ‘verbose’: 2}
    InputFormatPlugin: MOBI Input running
    on C:\Users\User\AppData\Local\Temp\calibre_allqg3\4sngmx.azw
    Python function terminated unexpectedly
    Matthew: Presents Yeshua, King Messiah (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 192, 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 1035, in run
    File “site-packages\calibre\customize\conversion.py”, line 241, in __call__
    File “site-packages\calibre\ebooks\conversion\plugins\mobi_input.py”, line 35, in convert
    File “site-packages\calibre\ebooks\mobi\reader\mobi6.py”, line 152, in extract_content
    File “site-packages\calibre\ebooks\mobi\reader\mobi6.py”, line 148, in check_for_drm
    calibre.ebooks.DRMError: Matthew: Presents Yeshua, King Messiah

  90. Hi

    I’ve been using your tools for ages with no problems. However I tried loading a new book from Amazon for my son and I am getting the following error:
    Error: No key found in 6 keys tried. Read the FAQs at Alf’s blog. Only if none apply, report this failure for help…. /Users/Vicki/Downloads/The Son of Sobek-4.azw
    I have updated versions of Calibre and the add-ins. Any suggestions please?

    • It sounds to me like this book isn’t from your Amazon account but has been sent to you by your son. No wonder it won’t decrypt. Get him to remove DRM from his own books himself.

      • Hi Paul – he doesn’t have an Amazon account – I buy the books de-DRM them and then both my boys can read on their Kindles. I purchased this book from Amazon, downloaded in Calibre and received the above message…..Any suggestions appreciated – Merry Christmas :)

        • In that case, please post an import log for that book. See the FAQs. It might also be helpful to post an import log for a book that works. You should also consider whether you’ve changed anything since you last successfully imported a book.

  91. I did everything as here You explain and it doesn’t work :( Can’t convert epub drm to mobi or normal epub with calibre :( help!

  92. Good morning,

    Updating Calibre and all of the associated tools/plugins.

    when I try to install the DeDRM 6.08 plugin I get an error. See below for the calibre debug log.

    I have removed all of the other user installed plugins.

    …..

    calibre Debug log
    calibre 1.17 isfrozen: True is64bit: False
    Windows-7-6.1.7601-SP1 Windows (’32bit’, ‘WindowsPE’)
    32bit process running on 64bit windows
    (‘Windows’, ’7′, ’6.1.7601′)
    Python 2.7.5
    Windows: (’7′, ’6.1.7601′, ‘SP1′, ‘Multiprocessor Free’)
    Starting up…
    Started up in 10.54 seconds with 225 books
    calibre 1.17 isfrozen: True is64bit: False
    Windows-7-6.1.7601-SP1 Windows (’32bit’, ‘WindowsPE’)
    32bit process running on 64bit windows
    (‘Windows’, ’7′, ’6.1.7601′)
    Python 2.7.5
    Windows: (’7′, ’6.1.7601′, ‘SP1′, ‘Multiprocessor Free’)
    Traceback (most recent call last):
    File “site-packages\calibre\gui2\preferences\plugins.py”, line 308, in add_plugin
    File “site-packages\calibre\customize\ui.py”, line 375, in add_plugin
    File “site-packages\calibre\customize\ui.py”, line 53, in load_plugin
    File “site-packages\calibre\customize\zipplugin.py”, line 188, in load
    File “site-packages\calibre\customize\zipplugin.py”, line 282, in _locate_code
    InvalidPlugin: The plugin in u’H:/DeDRM_plugin/alfcrypto_src.zip’ is invalid. It does not contain a top-level __init__.py file

  93. Read those instructions I don’t know how many different times.

    Walked away from this for a day. Re-read the instructions and it installed just like it should when I RTFM’ed.

  94. Thanks for providing MALWARE! People do NOT run “tools v6.0.8.exe” it contains MALWARE!!! Why do you provide such links when you even know it contains mailware????

  95. Thanks Alf & the other magicians (=coders) for the work on the plugins. Works out very well, as I saw in the debug mode. But one question remains: as the livecylce drm from adobe does not have anything to do with Adobe Digital Editions (pdfs can not be displayed there), it can also not be removed by the DeDRM, right? But it seems like there is no method to view those documents on my reader, isn’t it? Comments on other sites (presenting other methods) say, possible methods have been blocked.
    Have a great sunday everyone.

  96. I’m not positive the place you are getting your information, however good topic.

    I must spend a while finding out much more or
    working out more. Thank you for great information I was in search of
    this info for my mission.

  97. I keep getting the message: “this plugin no longer uses “.b64 keyfiles stored in calibre’s configuration directory. Do you have any existing key files there or anywhere that you’d like to migrate into the new plugin preferince method?” Is there a way to fix this?

  98. Don’t download from the linked site. It is infested. Norton blocked a high risk intrusion when I ran the installer which caused it to stop running. Norton then deleted a suspicious program from my disk that was attempting to alter my system that the program deposited. I just hope Norton got everything. Guess, I should know better then to download something like this..

    • There is no installer. As the instructions say “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”

  99. I don’t know where you got your download link from but I have downloaded the tools and there is no malware, spyware, virus or trojan horse. I have scanned with MS Security Essentials, Stinger, Kaspersky Security Scan, Anti-Malware bytes, & Super Anti-spyware. Nothing was found.

  100. How to extract kindle for PC default key running kindle for PC under wine.
    The plugin needs python installed under wine. Python 2.7 worked for me. But it need to be installed in C:\windows\system32 not in the default path C:\Python27 otherwise the plugin does not find python.exe. Perhaps you can give a hint in the help of the plugin. I needed some time to solve this issue.

  101. On Ubuntu 13.04 with Calibre 0.9.18 and the v6.0.8 tools, Calibre failed to decrypt a Kindle for Android v4.3 ebook. I had to modify the patch for the Kindle apk v4.3 (see revised patch at http://pastie.org/8591825 ) and obtained PIDs which were entered in the DeDRM plugin’s mobipocket PID list.

    I then uninstalled the Ubuntu version of Calibre and installed the latest version 1.17.0 directly. The same issue occured. The debug log shows the book is Crypto Type 2 and 9 keys were tried against it (see http://pastie.org/8591954 ).

    What further steps can I take to investigate and fix this?

    • Work out why your modified patch didn’t return the correct PIDs? Or work out where you made a mistake in copying them?

      But it might be easier to install Kindle for PC under Wine instead, and download through that.

      • The PIDs were checked very carefully to ensure they were copied correctly, to the extend that two variations were entered where it wasn’t clear whether a vertical bar character was a lower-case-L or upper-case-I (eye).

        The only way the PIDs returned could be wrong is if the Kindle 4.3.x application scrambles the PIDs; the patch simply makes a call to AndroidDeviceInformationProvider.pidList(). My modifications were only positional, not content.

        Can anyone else using Kindle for Android v4.3 + my patch (http://pastie.org/8591825 ) confirm the PIDs work with the current Calibre + DeDRM?

        I believe the file type is KF8 (“MOBI header version 8), Crypto Type 2.

  102. Is there are converter for fkb ebooks format. Flipkart, a online store in India has come up with their own proprietary. It will really grateful to have converter of it. as i want to read the books in moon + reader.

  103. I too was getting the same plist issues on Mavericks so I switched over to Calibre.
    I installed the plugin and it won’t remove the DRM. It’s an azw4 file I was able to do it a long time ago.
    I suspect it’s because I’m using a new key from the Kindle app instead of the Kindle app key from the previous computer which I don’t have access to.
    Is this correct?
    Thanks.

    • If the .azw4 file is from your old computer, then yes, that’s the problem. Just re-download using Kindle for Mac on your new computer. For .azw4 you’ll also want to install the KindleUnpack plugin (from the calibre plugins menu in calibre, or from MobileRead), as that will let you extract the PDF from the de-drmed .azw4.

  104. hi there,
    calibre won’t strip off the ddm so i tried debugging it.
    here’s what it says:
    calibre-debug -g
    calibre 1.16 isfrozen: True is64bit: True
    Darwin-13.0.0-x86_64-i386-64bit Darwin (’64bit’, ”)
    (‘Darwin’, ’13.0.0′, ‘Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu-2422.1.72~6/RELEASE_X86_64′)
    Python 2.7.5
    OSX: (’10.9.1′, (”, ”, ”), ‘x86_64′)

    thanks a lot and a happy new year:)

  105. I am having trouble with the calibre plugin. I am running most recent version of both. It will remove DRM on a single file but not when I try to import from a directory. Output from cmd:

    Job: 6 Read metadata (3 of 6) finished
    Read metadata (3 of 6)
    Traceback (most recent call last):
    File “calibre_plugins.dedrm.__init__”, line 130, in initialize
    IOError: [Errno 13] Permission denied: u’C:\\Users\\michael\\AppData\\Roaming\\calibre\\plugins\\DeDRM\\libraryfiles\\alfcrypto.dll’
    Failed to initialize plugin: DeDRM (6, 0, 8)
    Failed to initialize plugin: u’C:\\Users\\michael\\AppData\\Roaming\\calibre\\plugins\\DeDRM.zip’

  106. I’m somewhat lost. Calibre has worked fine in the past on all the books in my Kindle library, but on the one I rented today I can’t get it to open. I get the pop up that says “This book is DRMed.” I upgraded to the latest version of Calibre (1.17) and I’m running “tools_v6.0.8.” I have restarted Calibre, and rebooted the computer. Any help would be greatly appreciated.

  107. Can’t get this to work at all. Installed to Calibre as per instructions. Trying to open and convert an ebook I bought for Kindle. Does the above Comment answer this question? IE: “The tools won’t remove the DRM from rented Kindle ebooks.” I want to put this into another format so that my husband can also read this on his Hip Street device. What am I doing wrong?

  108. Not sure what’s going on.
    This worked perfectly for me two days ago but when downloaded today I can no longer de-drm Kindle books.
    I even deleted the book that worked two days ago and re-downloaded it. It won’t decrypt either.
    Any idea if something has changed?

    • I’ve successfully de-drmed a Kindle book bought and downloaded today. Look at what’s changed your end, and if you’re still puzzled, read the FAQs and post an import log.

      • I’ve made no changes my end. Only deleting the contents of “My Kindle Content” and re-downloading.
        The file that did decrypt and now doesn’t is shown here:
        DeDRM v6.0.8: Processing: B00D1VKZ3M_EBOK.azw…
        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: Bridget Jones: Mad About the Boy
        Found 4 keys to try after 0.0 seconds
        Crypto Type is: 2
        Error decrypting book after 0.0 seconds: No key found in 4 keys tried.
        Traceback (most recent call last):
        File “C:\Users\myusername\Desktop\DeDRM_Windows_Application\DeDRM_App\DeDRM_lib\lib\k4mobidedrm.py”, line 242, in decryptBook
        book = GetDecryptedBook(infile, kDatabases, serials, pids, starttime)
        File “C:\Users\myusername\Desktop\DeDRM_Windows_Application\DeDRM_App\DeDRM_lib\lib\k4mobidedrm.py”, line 216, in GetDecryptedBook
        mb.processBook(totalpids)
        File “C:\Users\myusername\Desktop\DeDRM_Windows_Application\DeDRM_App\DeDRM_lib\lib\mobidedrm.py”, line 469, in processBook
        raise DrmException(u”No key found in {0:d} keys tried.”.format(len(goodpids)))
        DrmException: No key found in 4 keys tried.
        DeDRM v6.0.8: Failed

        DeDRM v6.0.8: Complete: Successes: 0, Failures: 1

        • I suggest following the unregister/wipe/reinstall/reregister route. Do make sure you delete the entire Amazon preferences/application support folder at the wipe stage.

          (It looks like there’s some mis-match between the keys the plugin can find and the actual keys. A wipe/reinstall usually fixes this.)

            • The complete wipe and re-install worked. Thanks.
              It wasn’t till I deleted everything from appdata that I was able to decrypt again. Many thanks for your help.

      • I’m having the exact same issue. I’ve DeDRMed Kindle books just a few days ago with the same version of DeDRM (6.08) and Calibre (1.17) as I tried today, but three new Kindle Books would not decrypt, even when I imported them one at a time. The books were all AZW files.

        • I just updated Calibre to 1.18 and now the 3 books were DeDRMed successfully and I was able to convert them to EPUB as I have with Kindle books in the past. I saw in the Calibre 1.18 Release Notes that they had a bug fix related to AZW3 files and empty HTML pages. I wonder if that was the issue?

  109. Ive got kindle books on kindle for mac and am trying to convert them to epub, however when i try and strip the drm it keeps asking for a kindle serial number which i obviously don’t have. i followed the steps of reinstalling kindle for mac and redownloading the books but i keep getting the same problem, and it wont let me convert without a serial number. any suggestions?

  110. I have been using your tools for a couple of years now and they’re great. Thank you. They have been invaluable as I own both Kindle and Nook devices. I just started having a problem on OS/X 10.9.1. When I run the DeDRM program/script I get an error that says “‘:com.apprenticealf.dedrm.plist’ is not a property list file.” I did a little research and it looks like maybe Apple made the plist files less fault tolerant in the new version and when it sees something it doesn’t like, it just clears out the file which destroys the configuration and means I can’t use the tools anymore :( Can you help? Thanks

  111. As a writer and researcher readings many, many books, I don’t actually need to book … I need the clipping file and my notes on the quotes. (For doctoral dissertation type stuff where there are typically more footnotes on the page than text.)

    Is it possible to create a tool which would –

    1. Reconstruct the clipping file without limits and with my notes? (Best)

    2. Sync my highlights and notes into Calibre? (2nd Best)

    3. Import a book I’ve purchased into Calibre with my highlights and notes intact? (3rd Best)

    4. Allow me to make highlights and notes within Calibre, creating a clipping file? (4th Best)

    • Dear David,

      I think that once DRM is removed, any clipping limits are also removed.

      But for the rest of your questions, I think you’d be better off asking over in the calibre forum at MobileRead. I don’t know if anyone’s done anything to import clippings and notes, but that’s the place where people who do know will be.

      regards,

      Paul

  112. I have some AZW books purchased from Amazon and downloaded to my Mac and iPhone. I do not have a Kindle. I can’t find a way to remove the DRM–DeDRM says it removed the DRM, but Calibre then says it can’t convert the books because they are protected by DRM. What should I try?

    • If you’re not on Mavericks, and the DeDRM says it removed the DRM, then it did so. The copy in calibre must be the old version that still has DRM, or the message might be a bug in an old version of calibre.

      If you get the KindleUnpack app from MobileRead, you should be able to confirm that the output of the DeDRM app has had the DRM removed. Then you just have to work out what you’re doing wrong with calibre.

  113. A problem with Amazon Kindle / Kindle Paperwhite (Version 1)/iPAD iOS 7 Kindle App, Mac OS DeDRM
    Certain Books, all of them Comics, are only send to the Kindle and the iOS-App, it is not possible to download them in the Mac Kindle App (nor in the Windows-Kindle-App). While is is known before buying, by clearly listing the devices the book will work on, it is still a nuisance. Only certain comics are not working, in this case it is “Blau ist eine warme Farbe from Julie Maroh” (in English “Blue is a warm colour”, it is a french Comic which has been made into a film). Connecting my Kindle to the Computer I can get to the file and copy it, but it cannot be unDRMed,
    I have the Serial-Number and the Script for the PID, both are accepted from the Tools 6.0.8, but they do not work with this book.
    The DeDRM asks for another PID to try.
    The serial-number of the iPAD and the resulting PID for that do not work either.
    I have used the tools for a long time and have no problems with other books, if need be I can post the DeDRM.log, but think it will not help.
    IMHO most guides start with “install Kindle for PC/Mac” and how to work from there, but my guess is, books send only to the Kindle / Kindle-iOS-App are encrypted differently. A message wether I guess right is ok, but I really would like to DeDRM this Comic (and probably others).

    • Hello: I am also getting this error. I have only just upgraded to Maverick osx (10.9.1) – which above says is an apple maverick problem.
      HOWEVER i can still use alfs tools.

      I receive the error message with deDRM.app in title of “Macintosh HD:Users:myname:Library:Preferences:com.apprenticealf.dedrm.plist is not a property list file:” in the message popup
      then i say ok
      the dedrm file is not in the normal place, the tool popped it in my desktop directory

      note: in popup you have two options – edit and OK. edit opens the apple script.

      thankyou

      • The DeDRM app is still working presumably because the tool is getting the key every time from your Kindle for Mac files, and not from the DeDRM preferences file, which is broken in Mavericks. The broken DeDRM preferences file also explains why the de-drmed file appears on your desktop – that must be the default location when there’s nothing set in the preferences.

        It won’t work for anyone who needs to enter serial numbers or other preferences.

    • If you can get the book sent to your Kindle Paperwhite (Or downloaded to your computer for transfer to the paperwhite), then you should have no problem removing the DRM. Just enter the paperwhite’s serial number (as shown in your Amazon accont) into the appropriate part of the preferences dialog.

      You must not convert the serial number to a PID with any other tool or script. Just enter the serial number itself (careful of 0/O and 1/I) into the preferences.

    • Just to correct myself and what others below suggested: I was wrong.
      I just tested the DeDRM-Tool on the file of “Blau.azw3″. It does not work and says so. The reason is: it does accept, but does not store nor use my Kindle Paperwhite-Serial Number. The problem is with a change in Mac OS X 10.9 Mavericks (maybe also 10.8 which I did not use).
      The normal Kindle-Key-File is found and used for normal, downloadable books. But this Comic is only on my Computer because I copied the file from the Kindle.
      The Plugins for Calibre show and store my Kindle-Serial-Number and work with this file.
      The Standalone-DeDRM 6.0.8 (and earlier versions) do not work, and even on the files where it works it shows an error on end like some other comment showed ( … .plist is not a valid .plist-file ). For what it’s worth, if it works, the file …nodrm… book gets saved to the desktop as does the DeDRM.Log, which I show below. As I have a work around, I can live with that, but it would be nice if DeDRM worked as it did, before Mavericks ( 10.9 ). If the change in Mavericks is affecting other programs I do not see it, but maybe Apple is wrong here and should change that back. If so, someone should debug that and enter the description in Radar ( Apples Bugtracker ).
      DeDRM.log:
      shellcommand: /usr/local/bin/python ‘/Applications/Macintosh DeDRM 6.0.8/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/adobekey.py’ ‘/Users/ingolembcke/Library/Preferences/com.apprenticealf.dedrm/Local Adept Key.der’ > ‘/Users/ingolembcke/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
      shellresult: adobekey.py v6.0
      Copyright © 2009-2013 i♥cabbages and Apprentice Alf
      Saved a key to /Users/ingolembcke/Library/Preferences/com.apprenticealf.dedrm/Local Adept Key.der

      shellcommand: /usr/local/bin/python ‘/Applications/Macintosh DeDRM 6.0.8/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/kindlekey.py’ ‘/Users/ingolembcke/Library/Preferences/com.apprenticealf.dedrm/Local Kindle Key.k4i’ > ‘/Users/ingolembcke/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
      shellresult: kindlekey.py v1.9
      Copyright © 2010-2013 some_updates and Apprentice Alf
      Found k4Mac kinf2011 file: /Users/ingolembcke/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2011
      Decrypted key file using IDString ‘b57814624fda’ and UserName ‘ingolembcke’
      Saved a key to /Users/ingolembcke/Library/Preferences/com.apprenticealf.dedrm/Local Kindle Key.k4i

      There is 1 ebook to be decrypted.
      Processing file: Blau ist eine warme Farbe_ Das preisgekrönte Werk um ein Coming-Out_B00HB8PZOK.azw3
      shellcommand: /usr/local/bin/python ‘/Applications/Macintosh DeDRM 6.0.8/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/k4mobidedrm.py’ -k ‘/Users/ingolembcke/Library/Preferences/com.apprenticealf.dedrm/Local Kindle Key.k4i’ ‘/Users/ingolembcke/Documents/My Books/xDRM removed/No-Epub/Blau ist eine warme Farbe_ Das preisgekrönte Werk um ein Coming-Out_B00HB8PZOK.azw3′ ‘/Users/ingolembcke/Desktop/’ > ‘/Users/ingolembcke/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 264
      Extra Data Flags: 3
      Decrypting Kindle Format 8 ebook: Blau ist eine warme Farbe: Das preisgekrönte Werk um ein Coming-Out (German Edition)
      Found 4 keys to try after 0.1 seconds
      Crypto Type is: 2
      Error decrypting book after 0.1 seconds: No key found in 4 keys tried.
      Traceback (most recent call last):
      File “/Applications/Macintosh DeDRM 6.0.8/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/k4mobidedrm.py”, line 242, in decryptBook
      book = GetDecryptedBook(infile, kDatabases, serials, pids, starttime)
      File “/Applications/Macintosh DeDRM 6.0.8/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/k4mobidedrm.py”, line 216, in GetDecryptedBook
      mb.processBook(totalpids)
      File “/Applications/Macintosh DeDRM 6.0.8/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/mobidedrm.py”, line 469, in processBook
      raise DrmException(u”No key found in {0:d} keys tried.”.format(len(goodpids)))
      DrmException: No key found in 4 keys tried.
      There was an error with 1 ebook:
      Blau ist eine warme Farbe_ Das preisgekrönte Werk um ein Coming-Out_B00HB8PZOK.azw3 couldn’t be decrypted.

  114. using calibre 1.17 and latest alf tools. removed the book from calibre. imported and when i try to download to ipad using stanza reader app get error stating drm. but debug says it decrypted. debug output below
    C:\Windows\system32>calibre-debug -g
    calibre 1.17 [64bit] isfrozen: True is64bit: True
    Windows-8-6.2.9200 Windows (’64bit’, ‘WindowsPE’)
    (‘Windows’, ’8′, ’6.2.9200′)
    Python 2.7.5
    Windows: (’8′, ’6.2.9200′, ”, ‘Multiprocessor Free’)
    Starting up…
    Started up in 3.53 seconds with 5475 books
    Worker Launch took: 0.31500005722
    Job: 1 Read metadata (0 of 1) finished
    Read metadata (0 of 1)
    DeDRM v6.0.8: Trying to decrypt Xo – Jeffery Deaver.epub
    DeDRM v6.0.8: Verifying zip archive integrity
    DeDRM v6.0.8: “Xo – Jeffery Deaver.epub” is neither an Adobe Adept nor a
    Barnes & Noble encrypted ePub
    DeDRM v6.0.8: Successfully decrypted book after 0.4 seconds

    Added Xo to db in: 1.74900007248 seconds
    Device using plugboard epub content_server None

    • Stanza is ancient and buggy and might be lying. Can you view it in the calibre viewer? If so, it has no DRM.

      However, the plugin hasn’t removed any DRM – that last statement is incorrect. It’s just decided that the ePub isn’t protected by Adobe’s DRM or B&N’s DRM.

      • Bill does not say clearly where he got that Epub. If it is bought at the iTunes Store through Apple, that would explain it. The Tools available here do not work on Apple-DRM as clearly stated in the FAQ. In fact, I know of no tool, which is current and works with the latest books from the Apple-Store. Requiem in an older Version may work on some books, but imho only older ones, not something just bought.
        It would also help to know, wether Bill has some books which are DRM and can be DeDRMed, say from Amazon or Barnes and Noble (which luckily also sells EPubs).

      • Yes it opens without a problem in calbre viewer. do you have any suggestions for a replacement for stanza the can have calibre servers saved for the ipad i use moon reader on my droid devices.

      • i did some further testing and it dowloaded and opened in both moon and ibooks so its a stanza problem. I would just like to find a suitable reader for ios that is like stanza/monn+ with the ability to store library locations. I have some elder parents that are not as tech savvy and it much simpler to keep in contained inside a single app

  115. Hi, out of 200 kindle books I have I was only able to convert 100.
    I’m trying to get a log but not sure what I’m doing wrong

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

    C:\Users\dandelion>

    Thanks

    • Calibre installation problem, by the look of it. Are you using the portable version?

      Anyway, ask at MobileRead in the calibre forum. Just don’t mention WHY you want to get calibre-debug working. :)

  116. I tried clicking all three links above. the download hosts gives me something called “get.php” and the mega thing gave me an error message. I’ve been to at least eight different sites trying to download the calibre drm removal plug in and none of them seem to have a working link. Help, please! I just want to be able to read the books I’ve bought on my sony e reader.

    • datafilehost is the best link IMO. http://www.datafilehost.com/d/e9d6f3bc

      Just uncheck the “Use our download manager” checkbox, if you see one, and then click on the grey download button underneath the text. Don’t try right-clicking or anything fancy, just click on it. I think you have to have cookies enabled for the datafilehost.com site for the download to work.

      It’s been downloaded from there over 120,000 times, so I think the link is working! (I just downloaded it again myself to check.)

  117. Thank you, thank you, thank you! I followed your instructions (I’m already a Calibre user) and my book conversion worked perfectly! I’d been so totally frustrated trying to load my purchased book onto my Nook. I bought it in epub format, and it took me forever to figure out even how to download it from the purchase site to my computer. Then I couldn’t open it at all, and there was nothing I could find to explain why. Some googling (actually I use Bing) eventually revealed that I needed to install Adobe Digital Editions. So now I could read the book on my computer. But I didn’t want to read the book on my computer; I wanted to read it on my Nook, damn it, and I still couldn’t. Oh, I could transfer the FILE, but it wouldn’t OPEN. Well, now, thanks to you I have an actually portable ebook. Plus I don’t need to worry about possibly losing the book again if I buy a new ereader! So, thank you, thank you, thank you again and again and again!

  118. I have successfully removed DRM via this method using Calibre as well as AZWsoft DRM removal also trying ePub software. The failures with all of them is concerned with 193 files from a Nook account which is shared by 6 devices. I have no problem downloading files via Nook for PC and reading those files. The same files utilizing any DRM removal process fails. I have the correct CC information and account user name. The failure says “wrong card number”, yet this card number and name lets me access the account. Anyone with a way around this dilemma I would like to see a comment. I have removed 2 dead CC numbers from this account and downloaded before and after the removal. It is all the same as far as the software(s) are concerned. I have tried a couple of work arounds from my experiences with computing which have failed also. The ONLY differences I can see would be this account has 6 devices in the account versus the files from the other B and N account has 1 device associated with it. This makes zero sense, but it is the only difference I can see other than the older CC removed have muddied the water on these files being able to have the DRM removed. Looking for a solution. Thank you.

    • The details entered need to be one of the names and the card number on the account at the time the file is downloaded. Try any variations of the name that are in the account, or on the card.

      With B&N problems it’s almost always a variation on the name that hasn’t been tried.

  119. Hi,

    I’m having a problem with B&N / nook uk ebooks. I’ve tried several variations of the keys – but keep getting this book is drm protected messages.

    Log file seems to imply a problem with the keys?

    calibre 1.19 isfrozen: True is64bit: True
    Darwin-10.8.0-i386-64bit Darwin (’64bit’, ”)
    (‘Darwin’, ’10.8.0′, ‘Darwin Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386′)
    Python 2.7.5
    OSX: (’10.6.8′, (”, ”, ”), ‘i386′)
    Starting up…
    Started up in 2.85 seconds with 84 books
    Worker Launch took: 0.129636049271
    Job: 1 Read metadata (0 of 1) finished
    Read metadata (0 of 1)
    DeDRM v6.0.8: Trying to decrypt Tatiana – Martin Cruz Smith.epub
    DeDRM v6.0.8: Verifying zip archive integrity
    DeDRM v6.0.8: “Tatiana – Martin Cruz Smith.epub” is a secure Barnes & Noble ePub
    DeDRM v6.0.8: Trying Encryption key X bn
    Could not decrypt aLoTKd.epub because of an exception:
    Traceback (most recent call last):
    File “calibre_plugins.dedrm.ignobleepub”, line 278, in decryptBook
    File “calibre_plugins.dedrm.ignobleepub”, line 209, in __init__
    File “calibre_plugins.dedrm.ignobleepub”, line 158, in __init__
    IGNOBLEError: AES improper key used

    DeDRM v6.0.8: Failed to decrypt with key X bn after 0.1 seconds

    DeDRM v6.0.8: Ultimately failed to decrypt after 0.1 seconds.

    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 482, in run
    File “calibre_plugins.dedrm.__init__”, line 180, in ePubDecrypt
    DeDRMError: DeDRM v6.0.8: Ultimately failed to decrypt “Tatiana – Martin Cruz Smith.epub” after 0.1 seconds.

    Added Tatiana to db in: 0.130816221237 seconds

    • It looks like you haven’t yet managed to find the right combination of name/number that actually decrypts your books.

      • OK, thanks Paul.
        I wasn’t sure if that ‘improper key’ message implied a problem with the structure/format of the key rather than the content.
        I’ll keep trying.
        It is case insensitive isnt it – does whitespace matter or is that stripped?

  120. I downloaded your plug in for Calibre last week and it worked great Tonight when I import books and try to open them, I am told that they have DRM and cannot be opened. I removed the plugin and reinstalled. I removed the book and reimported the book and tried again but it did not work.
    The books I imported into Calibre still open fine. The ones that will not work were downloaded today.
    I am running Windows 7 and Calibre 1.18.0. I have a Nook Simple Touch.
    One of the books that would not open today in Calibre opened on my Nook with no problem. I was also able to open the book in my old copy of Nook for PC.
    Any help will be appreciated.

  121. I ran the log – & it says the book was successfully converted! It also says I have a Nook Color but I have a Simple Touch, and I added the book from the PC, not the nook.

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

    C:\Users\Evan>calibre-debug -g
    calibre 1.19 [64bit] isfrozen: True is64bit: True
    Windows-7-6.1.7601-SP1 Windows (’64bit’, ‘WindowsPE’)
    (‘Windows’, ’7′, ’6.1.7601′)
    Python 2.7.5
    Windows: (’7′, ’6.1.7601′, ‘SP1′, ‘Multiprocessor Free’)
    Starting up…
    Started up in 0.45 seconds with 8 books
    Job: 1 Get device information started
    DeviceJob: 1 Get device information done, calling callback
    DeviceJob: 1 Get device information callback returned
    Job: 2 Get list of books on device started
    DEBUG: 0.0 USBMS: Fetching list of books from device. Device= NOOK_COLOR onca
    rd= None
    DEBUG: 0.0 USBMS: dirs are: J:\ My Files
    DEBUG: 0.0 USBMS: scan from root True J:\
    DEBUG: 0.1 USBMS: count found in cache: 18, count of files in metadata: 18, n
    eed_sync: False
    DEBUG: 0.1 USBMS: Finished fetching list of books from device. oncard= None
    DEBUG: 0.1 USBMS: Fetching list of books from device. Device= NOOK_COLOR onca
    rd= carda
    DEBUG: 0.1 USBMS: Fetching list of books from device. Device= NOOK_COLOR onca
    rd= cardb
    DeviceJob: 2 Get list of books on device done, calling callback
    DeviceJob: 2 Get list of books on device callback returned
    Job: 1 Get device information finished
    No details available.
    Job: 2 Get list of books on device finished
    No details available.
    Worker Launch took: 0.0999999046326
    Job: 3 Read metadata (0 of 1) finished
    Read metadata (0 of 1)
    DeDRM v6.0.8: Trying to decrypt 9781480455023_epub.v4.epub
    DeDRM v6.0.8: Verifying zip archive integrity
    DeDRM v6.0.8: “9781480455023_epub.v4.epub” is neither an Adobe Adept nor
    a Barnes & Noble encrypted ePub
    DeDRM v6.0.8: Successfully decrypted book after 0.6 seconds

    Added With Malice to db in: 0.72000002861 seconds
    Worker Launch took: 0.109999895096

    • Well, that’s peculiar. Was the copy of the book you imported originally downloaded to your physical nook or your copy of nook for PC? Try again with a copy of the book downloaded to the other device. Indeed, try with a fresh download to both devices.

      Something has happened with that copy that means that the tools aren’t recognising it as a B&N DRMed ePub. I suppose you could try emailing it to alf and see what he makes of it.

      • Thanks for the reply. The copy of the book I imported was downloaded separately to the hard drive on my computer in a folder that was apart from where B&N puts things in Documents. Another oddity – I tried opening it from a commercial product and was told it was from iTunes.
        But I do have good news – I tried importing it from the folder where B&N stores the books instead of the folder I created in a separate location, and it opened fine. Then I removed this copy from Calibre, went back to the folder where I stored the downloads and imported from there – and got the DRM message again. I removed that copy, went back to the B&N folder, copied it to my own folder, imported it Calibre, and it opened!!!! I have no idea why one would open but not the other.
        I copied the file from the B&N folder to my own folder, removed it from Calibre and reimported the B&N file, and it opened.
        I tried sideloading it onto the Nook to see if it would open there, but have not gotten additional memory yet and there was not room for the book – it is a big one 326,000 KB.
        I tried to open the ones I downloaded separately in Adobe Digital Editions; they would not open. The one I imported from the B&N folder opened fine. All the other books, even the ones that I knew had DRM, opened fine in ADE.
        I am trying to see what happens on a different computer, but am having trouble getting the book to download this morning.
        Sure would like to know why one downloaded copy works and the other doesn’t

        • “The copy of the book I imported was downloaded separately to the hard drive on my computer in a folder that was apart from where B&N puts things in Documents.”

          I don’t really know what you mean by this. I’m not quite sure why you’re bothering with these experiments when you have a drm removal system that works for you – downloaded through nook for PC.

          If you’re doing it for general interest, then have fun.

          • I did not realize that B&N was putting copies of the books on the hard drive of my PC other than the ones I was downloading to a folder myself from the B&N site. I only discovered that Nook for PC was putting copies of the books on the hard drive itself while I was in the middle of working on this. I had not even installed Nook for PC at the beginning – I had read that B&N was not updating it and that it had been removed from the B&N site completely, with only an app for Windows 8 remaining on the B&N site, so I didn’t bother with it at first. I thought I had to click on ‘download’ for each book if I wanted it on my hard drive in case B&N went under or stopped supporting the nook.

            • Oh, I see. Hmm… the books downloaded directly from the web site should get decrypted just as well. Very mysterious. It would need a careful examination to find what the differences are between the two files downloaded different ways.

  122. I have several problems. I use a tolino shine with epub – obviously with Adobe Digital Editions, but I have no Idea. DeDRM did not generate default keys for Adobe. When looking into the configuration of the plugin there are no keys and trying to add one, I get the error, that no default key was generated.

    When importing DRMed books, I get the following output:
    Firefox rurl: None None
    URLS: [u'file:///C:/Users/User/Downloads/[BOOKNAME].epub’]
    Paths: [u'/C:/Users/User/Downloads/[BOOKNAME].epub’]
    Extensions: frozenset([u'epub'])
    Worker Launch took: 0.218999862671
    Job: 4 Read metadata (0 of 1) finished
    Read metadata (0 of 1)
    DeDRM v6.0.8: Trying to decrypt Schweinskopf al dente – Falk, Rita.epub
    DeDRM v6.0.8: Verifying zip archive integrity
    DeDRM v6.0.8: “[BOOKNAME].epub” is neither an Ad
    obe Adept nor a Barnes & Noble encrypted ePub
    DeDRM v6.0.8: Successfully decrypted book after 0.2 seconds
    C:\Program Files\Calibre2\pylib.zip\dateutil\parser.py:336: UnicodeWarni
    ng: Unicode equal comparison failed to convert both arguments to Unicode – inter
    preting them as being unequal

    [BOOKNAME] to db in: 0.390000104904 seconds
    Worker Launch took: 0.201999902725

    What do I do wrong?

    • If you have Adobe Digital Editions installed and registered with an Adobe ID, the tools should have been able to generate a key. So, provided you *have* registered it with an Adobe ID, I’d suggest clearing it off your computer completely, including preferences and registry items, and reinstalling and re-registering.

      I don’t know anything about tolino shine ePubs, but if they can be downloaded and read in your registered copy of Adobe Digital Editions, the tools should work.

      however, it seems odd that the tools didn’t recognised the book as an Adobe Digital Editions DRMed ePub. There have been reports of some B&N ePubs not being recognised,but not ADE ones.

  123. Hi there, I have been using this for a while now, and all of a sudden the plugin for Calibre stopped working. I imported some books like usual, having downloaded them from Amazon, and the drm message came up. I then tried to use the app for Mac, and it said that the file had no PID, even though it was an azw3 file. I then got an error message saying that the dedrm application was not a property list file. Can anyone help? This has happened to me before but sorted itself out, but I would like to know what to do in case it happens again, but am not good with computers(hence the Mac).

  124. My Kindle Paperwhite WiFi (the original one) has a 19 digit serial number. When I try to add it to the kindle eInk SN manager, it says it needs to be 16 characters. What do I do?

    • Whoops, never mind. Apparently spaces count as characters. I just copy/pasted the serial straight from the manage kindle screen on Amazon. I removed the spaces and it worked.

  125. Hi, I cannot convert an epub book and I post the log
    thank you in advance for your help

    Converti libro 1 di 1 (La mia vita a impatto zero)
    Resolved conversion options
    calibre version: 1.17.0
    {‘asciiize’: False,
    ‘author_sort’: None,
    ‘authors’: None,
    ‘base_font_size’: 0.0,
    ‘book_producer’: None,
    ‘change_justification’: u’original’,
    ‘chapter’: u”//*[((name()='h1' or name()='h2') and re:test(., '\\s*((chapter|book|section|part)\\s+)|((prolog|prologue|epilogue)(\\s+|$))', 'i')) or @class = 'chapter']“,
    ‘chapter_mark’: u’pagebreak’,
    ‘comments’: None,
    ‘cover’: u’/tmp/calibre_1.17.0_tmp_u_V8x2/6JRqY8.jpeg’,
    ‘debug_pipeline’: None,
    ‘dehyphenate’: True,
    ‘delete_blank_paragraphs’: True,
    ‘disable_font_rescaling’: False,
    ‘dont_compress’: False,
    ‘duplicate_links_in_toc’: False,
    ‘embed_all_fonts’: False,
    ‘embed_font_family’: None,
    ‘enable_heuristics’: False,
    ‘expand_css’: False,
    ‘extra_css’: None,
    ‘extract_to’: None,
    ‘filter_css’: u”,
    ‘fix_indents’: True,
    ‘font_size_mapping’: None,
    ‘format_scene_breaks’: True,
    ‘html_unwrap_factor’: 0.4,
    ‘input_encoding’: None,
    ‘input_profile’: ,
    ‘insert_blank_line’: False,
    ‘insert_blank_line_size’: 0.5,
    ‘insert_metadata’: False,
    ‘isbn’: None,
    ‘italicize_common_cases’: True,
    ‘keep_ligatures’: False,
    ‘language’: None,
    ‘level1_toc’: None,
    ‘level2_toc’: None,
    ‘level3_toc’: None,
    ‘line_height’: 0.0,
    ‘linearize_tables’: False,
    ‘margin_bottom’: 5.0,
    ‘margin_left’: 5.0,
    ‘margin_right’: 5.0,
    ‘margin_top’: 5.0,
    ‘markup_chapter_headings’: True,
    ‘max_toc_links’: 50,
    ‘minimum_line_height’: 120.0,
    ‘mobi_toc_at_start’: False,
    ‘no_chapters_in_toc’: False,
    ‘no_inline_navbars’: False,
    ‘no_inline_toc’: False,
    ‘output_profile’: ,
    ‘page_breaks_before’: u’/’,
    ‘prefer_author_sort’: False,
    ‘prefer_metadata_cover’: False,
    ‘pretty_print’: False,
    ‘pubdate’: None,
    ‘publisher’: None,
    ‘rating’: None,
    ‘read_metadata_from_opf’: u’/tmp/calibre_1.17.0_tmp_u_V8x2/PdOG24.opf’,
    ‘remove_fake_margins’: True,
    ‘remove_first_image’: False,
    ‘remove_paragraph_spacing’: False,
    ‘remove_paragraph_spacing_indent_size’: 1.5,
    ‘renumber_headings’: True,
    ‘replace_scene_breaks’: u”,
    ‘search_replace’: ‘[]‘,
    ‘series’: None,
    ‘series_index’: None,
    ‘share_not_sync’: False,
    ‘smarten_punctuation’: False,
    ‘sr1_replace’: None,
    ‘sr1_search’: None,
    ‘sr2_replace’: None,
    ‘sr2_search’: None,
    ‘sr3_replace’: None,
    ‘sr3_search’: None,
    ‘start_reading_at’: None,
    ‘subset_embedded_fonts’: False,
    ‘tags’: None,
    ‘timestamp’: None,
    ‘title’: None,
    ‘title_sort’: None,
    ‘toc_filter’: None,
    ‘toc_threshold’: 6,
    ‘toc_title’: None,
    ‘unsmarten_punctuation’: False,
    ‘unwrap_lines’: True,
    ‘use_auto_toc’: False,
    ‘verbose’: 2}
    InputFormatPlugin: EPUB Input running
    on /tmp/calibre_1.17.0_tmp_u_V8x2/uLGPSP.epub
    Traceback (most recent call last):
    File “site.py”, line 58, in main
    File “site-packages/calibre/utils/ipc/worker.py”, line 192, 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 1035, in run
    File “site-packages/calibre/customize/conversion.py”, line 241, in __call__
    File “site-packages/calibre/ebooks/conversion/plugins/epub_input.py”, line 209, in convert
    DRMError: uLGPSP.epub

  126. Getting this error in obok.py script, anyone know how to fix it?

    Traceback :

    File “F:\myfolderwhereitis\obok.py”, line 198, in print “%d: %s”
    File “C:\Python27\lib\encodings\cp437.py”, line 12, in encode return codecs.charmap_encode
    UnicodeEncodingError: ‘charmap’ codec can’t encode character u’\u2026′ in position 99: character maps to

    • It doesn’t look like that line is vital. Try just deleting it. (It’s trying to write some unicode that can’t be coverted to Windows Latin-1 or whatever 8-bit encoding is being used for standard output.)

      • That line is the line that prints the i, key, title.
        Then you can choose the title you want.

        To me it looks like one of the volume ids or titles can’t print in the windows cmd. I can’t delete the line, and the only other way is to delete the book, but I do not know which of 400 it is.

        There should be a way to replace the characters with ??? where it cannot decode, but I do not know programming or python, so I cannot actually fix it myself.

        • I had the same problem with obok and my solution was to

          1. Use the Kobobooks website to remove titles from “My Library” (you can pluck them back out of the “Purchased” bin later).
          2. Resync Library on desktop system using the Kobo Desktop app. Note smaller library.
          3. Run obok again, get same error.
          4. Lather, rinse, repeat 1-3 until the culprit book which was causing obok to blow up is out of the picture, and obok finally, successfully sends the entire (albeit much shorter now) list of book titles to the DOS screen from which it is my job to pick the title to work on.

          Obviously, if you winnow down the library to your one title of interest and it still fails (step 3), I’m not sure what can be done.

    • Can’t help you with fixing the code but if you’re trying to narrow down the book title causing the problem, it probably has the “horizontal ellipsis”/”three dots” character (…) in it, because that’s the Unicode character u’\u2026′ it complains about in the error message. So if anyone else has this problem, just google Unicode and the character code.

  127. I have a Nook tablet that I haven’t had much luck with removing DRM from Overdrive epub books that I download directly from Overdrive to the Nook. As long as I use my computer to download the ‘ascm’ file which opens in ADE, then Calibre will remove drm without any problems. However, I’ve had no luck at all with books I’ve downloaded directly. When the Nook is connected to my computer I cannot see the Overdrive folder containing the book, so I use a file explorer on the Nook to copy it to my SD card and then I can access it on my computer. Now, though, ADE will not open the epub file, I just get an “errors were encountered” message, and Calibre is unable to remove drm. When I used a command window to add the file to Calibre, is says it is neither adept or B&N encrypted. I haven’t been able to find an explanation for this or a workaround. Thanks for any suggestions or information explaining what is happening.

    • “As long as I use my computer to download the ‘ascm’ file which opens in ADE, then Calibre will remove drm without any problems.”

      Then I suggest you use this method.

      “Now, though, ADE will not open the epub file, I just get an “errors were encountered” message”

      If ADE can’t open the ePub, the tools won’t be able to remove any DRM.

      • Yes, I meant to use the method that worked previously, but I wasn’t home and forgot that downloading directly would prevent me from removing drm – I don’t really need this very often. I did read elsewhere that Overdrive uses adept encryption, but that it is changed in some way – their explanation was over my head, so I can’t even repeat it accurately. So, I just thought I’d ask here to see if someone else had this problem and solved it, or, knew why the ascm file works but not the epub file from my Nook.

  128. I downloaded all the apps and tools as per the instructions, but I ran
    into a couple of problems, the first I could solve, the second I couldn’t.

    My desktop uses Ubuntu 12.04.
    I also have Calibre installed (the stock Ubuntu 0.8.38 version).
    I downloaded the tools v6.0.8.
    I went through the process of installing …
    * vcrun208 using Winetricks.
    * Kindle 1.10.6 (40500).
    * Adobe Digital Editions for Windows 1.7.2.
    * ActiveState Python 2.7.5.6-win32-x86.
    * PyCypto 2.1.0.win32-py2.7.

    No trouble here except the ActiveState Python was an *.msi, which I
    hadn’t installed before but I sorted that out.

    My books were purchased and downloaded using the Kindle software. Now, when I import the book in Calibre it fails to remove the DRM. I ran
    “calibre-debug -g” to get some console output.

    1. Path probem in kindlekey.py.
    See the attached “Calibre debug output 1…..”. Basically the
    kindlekey.py script couldn’t write the key file. I think this was to
    do with relative paths (I’ve had similar issues in TCL before but hey
    I am not a python programmer). So, I patched the cli_main() func to
    not normalise/relativise the path. …..

    def cli_main():
    ……
    # make sure the outpath is the
    # SVP 29DEC2013. This causes path problems while saving the key.
    # outpath = os.path.realpath(os.path.normpath(outpath))

    if not getkey(outpath, files):
    print u”Could not retrieve Kindle for Mac/PC key.”
    return 0

    2. Key decryption problem.
    Now the debug output is “Calibre debug output 2…..”. The script runs
    when I import the book into Calibre, and it obtains the
    “kindlekey1.k4i file, but I don’t think this file contains a serial
    number of key etc. Calibre says the DRM is not removed, and the debug
    output says failed to decrypt.

    I was able to obtain the keyfile with ….

    scotty@officepc:~/Windows drive_c/Temp$ wine python kindlekey.py
    fixme:font:freetype_SelectFont Untranslated charset 255
    searching for kinfoFiles in C:\users\scotty\Local Settings\Application
    Data
    Found K4PC 1.9+ kinf2011 file: C:\users\scotty\Local
    Settings\Application Data\Amazon\Kindle\storage\.kinf2011
    Decrypted key file using IDString ’0′ and UserName ‘scotty’
    fixme:imm:ImmReleaseContext (0×10078, 0x17ce08): stub
    scotty@officepc:~/Windows drive_c/Temp$

    I am guesssing they have changed something here?

    • I can’t really follow what’s going wrong here without the logs. Even then, I’m not sure I can be much help. I would certainly advise updating to a more recent calibre, but I don’t know if that’s a cause of your problems.

      I seem to recall that there are detailed instructions in one of the readmes. Perhaps looking at that will help.

      There hasn’t been any change to the Kindle for PC DRM in the standard WIndows 7 version of Kindle for PC. (The Window 8 app apparently does things differently).

      • Paul, I was unable to post the logs. I tried many times to paste the log contents into the Reply box, however no message is ever posted after I click Post Comment. Regardless, I managed to download and install and earlier version of KindleForPc (1.10.0), and I had success. Now I can load the book into Calibre and it is decrypted …

        Job: 1 Read metadata (0 of 1) finished
        Read metadata (0 of 1)
        DeDRM v6.0.8: Trying to decrypt B0047DVIEI_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 256
        Extra Data Flags: 3
        Decrypting Kindle Format 8 ebook: Against All Things Ending: The Last Chronicles Of Thomas Covenant
        Found 4 keys to try after 0.0 seconds
        Crypto Type is: 2
        File is encoded with PID AaZ/y/jOZ3.
        Decrypting. Please wait . . . . . . . . done
        Decryption succeeded after 0.1 seconds
        DeDRM v6.0.8: Successfully decrypted book after 0.1 seconds

        Added B0047DVIEI EBOK to db in: 0.403375864029 seconds

        … However, Calibre does not appear to recognise the book. The title in the book list is just “B0047DVIEI EBOK”, and when I try to view the book it opens with Okular, which shows an xml file. I had a look at this xml file, and it is indeed the full content of the book, however I can’t seem to get Calibre to recognise it or convert it to epub or do anything with it. I read Alf’s note about a checkbox to open AZW3 (Calibre does at least recognise it as AZW3), however Calibre has options for AZW and AZW4 but no where can I find any options to tell it to open AZW3 books with the internal viewer. I am guessing that the book decrypts correctly (I can see all the book contents in the xml), but the Calibre is having problems recognising it.

        Any suggestions?

        Scotty

      • Oh, here is the original log file (log file #2). I read a message here about quoting causing problems, so removed all the quotes. This log file was obtained with the latests KindleForPC 1.10.6 Build #40500.

        Read metadata (0 of 1)
        DeDRM v6.0.8: Trying to decrypt B0047DVIEI_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 256
        Extra Data Flags: 3
        Decrypting Kindle Format 8 ebook: Against All Things Ending: The Last Chronicles Of Thomas Covenant
        Found 4 keys to try after 0.0 seconds
        Crypto Type is: 2
        DeDRM v6.0.8: Failed to decrypt with error: No key found in 4 keys tried.
        DeDRM v6.0.8: Looking for new default Kindle Key after 0.0 seconds
        DeDRM v6.0.8: Running kindlekey.py under Wine
        DeDRM v6.0.8: Command line: wine python.exe /home/scotty/.config/calibre/plugins/DeDRM/libraryfiles/kindlekey.py /home/scotty/.config/calibre/plugins/DeDRM/libraryfiles/winekeysdir
        kindlekey.py v1.9
        Copyright © 2010-2013 some_updates and Apprentice Alf
        searching for kinfoFiles in C:\users\scotty\Local Settings\Application Data
        Found K4PC 1.9+ kinf2011 file: C:\users\scotty\Local Settings\Application Data\Amazon\Kindle\storage\.kinf2011

        • Decrypted key file using IDString 0 and UserName scotty
          Saved a key to /home/scotty/.config/calibre/plugins/DeDRM/libraryfiles/winekeysdir\kindlekey1.k4i
          DeDRM v6.0.8: Found and decrypted 1 key file
          DeDRM v6.0.8: Found 1 new key
          MobiDeDrm v0.41.
          Copyright © 2008-2012 The Dark Reverser et al.
          MOBI header version 8, header length 256
          Extra Data Flags: 3
          Decrypting Kindle Format 8 ebook: Against All Things Ending: The Last Chronicles Of Thomas Covenant
          Found 4 keys to try after 7.7 seconds
          Crypto Type is: 2
          DeDRM v6.0.8: Ultimately failed to decrypt after 7.7 seconds.

          • Read the FAQs at Alfs blog …
            Traceback (most recent call last):
            File calibre_plugins.dedrm.__init__, line 409, 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 /usr/lib/calibre/calibre/customize/ui.py, line 148, 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 B0047DVIEI_EBOK.azw after 7.7 seconds with error: No key found in 4 keys tried.
              Read the FAQs at Alfs blog …

              Added Against All Things Ending: The Last Chronicles Of Thomas Covenant to db in: 1.06317186356 seconds

              • Phew, took many cut and pastes before I could post that. It didn’t like the FAQ URL. I had to delete both occurances. That calibre debug output was from calibre-debug -g with the KindleForPC 1.10.6. I couldn’t open the book at all with that. As I mentioned, reverting to KindleForPc 1.10.0 allows me to open the book, but all Calibre shows me is xml.

                • Here is sample I cut from Okular. Okular claims 895 pages long, and as I skip down I find the text of the book. So I am getting the book but Calibre is not recognising it as a book.

                  Against All Things Ending

                  Also by Stephen Donaldson:
                  The
                  Chronicles of Thomas Covenant the Unbeliever

                  BOOK ONE: LORD
                  FOUL’S BANE
                  BOOK TWO: THE
                  ILLEARTH WAR
                  BOOK THREE: THE
                  POWER THAT PRESERVES
                  The Second Chronicles of Thomas
                  Covenant

                  • I don’t know why the latest Kindle for PC isn’t working for you, but if that’s an .azw3 and your calibre doesn’t know about .azw3, you need to update your copy of calibre.

                    • I removed the stock Ubuntu version of Calibre which is 0.8.38, and I installed the new 1.20 and now …. it works. I was able to convert all 3 books to epub, and now I can read them on my pad with Cool Reader! Very happy. I’ll buy the rest of the series from Amazon now that I am able to read them :)

                      Thanks very much for the help Paul :)

  129. Dear Alf,

    Thank you so much for your tools!

    I’m running ubuntu 12.04, and followed the instructions in the txt for the calibre plugin exactly. It did not work – my books were still under DRM.
    I completely uninstalled everything, and then uninstalled wine, then reinstalled, following the instructions again. Still no luck.
    Then i found this:
    http://askubuntu.com/questions/144463/how-can-i-get-kindle-for-pc-working-on-ubuntu-12-04

    Those people had to use an old version of Kindle for PC. So i got that, installed it under wine, and now the books i download via this old beta kindle4pc, i can add to calibre, and your plugin works!

    So i found a fix, but had to use an old version of the kindle4pc software.

    (it was the .prc files in “my kindle content” which turned out to be the books, btw).

  130. Why I cannot post my log? I’ve tried 5 times… I click post and receive no error, but I can’t see my comment with my log…

    • I try in two parts..
      calibre-debug -g
      calibre 1.17 isfrozen: True is64bit: True
      Linux-3.2.0-58-generic-x86_64-with-debian-wheezy-sid Linux (’64bit’, ‘ELF’)
      (‘Linux’, ’3.2.0-58-generic’, ‘#88-Ubuntu SMP Tue Dec 3 17:37:58 UTC 2013′)
      Python 2.7.5
      Linux: (‘debian’, ‘wheezy/sid’, ”)
      Starting up…
      Key u’A’ for shortcut Apri la cartella contenente is already used by Aggiungi libri, ignoring
      Started up in 1.88 seconds with 58 books
      Worker Launch took: 0.46248292923
      Job: 1 Read metadata (0 of 1) finished
      Read metadata (0 of 1)
      DeDRM v6.0.8: Trying to decrypt La mia vita a impatto zero.epub
      DeDRM v6.0.8: Verifying zip archive integrity
      DeDRM v6.0.8: La mia vita a impatto zero.epub is a secure Adobe Adept ePub
      DeDRM v6.0.8: Trying Encryption key default_key
      Could not decrypt s4lc6u.epub. Wrong key
      DeDRM v6.0.8: Failed to decrypt with key default_key after 0.1 seconds
      DeDRM v6.0.8: Looking for new default Adobe Digital Editions Keys after 0.1 seconds
      DeDRM v6.0.8: Running adobekey.py under Wine
      DeDRM v6.0.8: Command line: “wine python.exe “/home/meri/.config/calibre/plugins/DeDRM/libraryfiles/adobekey.py” “/home/meri/.config/calibre/plugins/DeDRM/libraryfiles/winekeysdir””
      adobekey.py v6.0

  131. Copyright © 2009-2013 i♥cabbages and Apprentice Alf
    Found 1 keys
    Saved a key to Z:\home\meri\.config\calibre\plugins\DeDRM\libraryfiles\winekeysdir\adobekey_1.der

  132. 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 482, in run
    File “calibre_plugins.dedrm.__init__”, line 268, in ePubDecrypt
    DeDRMError: DeDRM v6.0.8: Ultimately failed to decrypt “La mia vita a impatto zero.epub” after 2.4 seconds.
    Inept Epub DeDRM v0.2.0: Trying to decrypt La mia vita a impatto zero.epub.
    Inept Epub DeDRM v0.2.0: Verifying zip archive integrity.
    Inept Epub DeDRM v0.2.0: Calibre configuration directory = /home/meri/.config/calibre
    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_filetype_plugins
    File “calibre_plugins.ineptepub.__init__”, line 179, in run
    ADEPTError: Inept Epub DeDRM v0.2.0: No keys found. Check keyfile(s)/ADE install

    • The ePub does open in your copy of ADE running under wine?

      If so, it should be possible to decrypt it using the key file saved to
      Z:\home\meri\.config\calibre\plugins\DeDRM\libraryfiles\winekeysdir\adobekey_1.der

  133. Hello, Apprentice Alf. I’m having trouble to purge a book from Amazon and I believe it’s because of the name I put in Amazon’s account, which has a Spanish accent (Joaquín) since I’m seeing Unicode decoding issues.

    which tool was used: version 6.0.8
    which OS you are using: Windows 8
    where the ebook file came from (device or folder): folder C:\Users\Joaquín Padilla\My Documents\My Kindle Content
    any error messages: It seems that it doesn’t find a key due to a Unicode decoding error.
    a log of the DRM-removal attempt (see the FAQs on how to get a log): I’ve pasted it in http://pastebin.com/ea4qpS41

    Thanks for your great work and of everyone who frees our books for us to use them,

  134. I’ve confused. Am I supposed to just install the “de drm plugs in” only? Because in the tools zip file, there are three folders: “de drm plug ins”, “de drm Macintosh application” and “de drm windows application”. If I have windows, am I supposed to install what’s in the “de drm window application” , too? Thanks for your help.

    • I recommend using calibre with the plugin. If using calibre and the plugin you don’t need anything else.

      If you don’t want to use calibre, on the Mac (but not 10.9/Maverick) you can use the DeDRM Mac application, or on windows you can use the Windows application after installing Python.

  135. Hello I have a Kindle Reader prc-file book from my Android phone (rooted), I have the AmazonSecureStorage.xml but with my MacBook OS 10.6.8 I am not able to run the script “k4mobidedrm.py” on it.
    Above “thom” says on May 25, 2013 at 1:13 pm: run `k4mobidedrm.py -a AmazonSecureStorage.xml ‘, but this command is at least incomplete. I think it should say: run k4mobidedrm.py -a AmazonSecureStorage.xml MyDRMBook.mobi outdir
    I get many errors when I use the actual Python 3.3 with the actual k4mobidedrm.py script (not for Python 3 I guess) and I get an error with Python 2.6:

    File “k4mobidedrm.py”, line 332, in
    sys.exit(cli_main())
    File “k4mobidedrm.py”, line 320, in cli_main
    serials.extend(android.get_serials(a))
    AttributeError: ‘module’ object has no attribute ‘get_serials’

    I put all files from tools_v6.0.8.zip into the same folder as the k4mobidedrm.py but first there was “android” library missing:

    File “k4mobidedrm.py”, line 88, in
    import android
    ImportError: No module named android

    So I found a small python-file (only 4 KB) this name, maybe this is wrong, where to get the right one?
    What do I need exactly?
    Is it possible anyway to DeDRM these files?

    Thank you.

    FF.

    • The scripts are certainly for Python 2.x. I’d recommend that latest 2.7.

      For the rest, I can’t help. Good luck!

      (It might be a lot easier to install Kindle for Mac and work from files downloaded to that.)

  136. I’m trying to convert some books I bought on Google Play to ‘normal PDF or EPUB’. When I download them I receive them in title-epub.acsm format. I understood the DeDRM tools should be able to remove the DRM-part right? What am I missing?

    I installed full calibre (1.21) on my windows machine, installed the tools (6.0.8), imported my ADE-key (3.0.86137). Python is NOT installed on my system (yet).

    • Oke, obviously I didn’t read it good enough. Need to download the books with ADE, then DeDRM the files with Calibre and the plugin.

      Any suggestions of getting a portable ADE (alternative)?

      Thanks

  137. I purchased a graphic novel (prc file) which will work for Android (Nexus 7 using Kindle for Android app) but cant be read with Kindle for PC. So I tried Calibre with the DeDRM plugins installed. Keeps telling me the file has DRM and cant be converted.
    Any suggestions ?

    • I forgot to add that I have copied the file from my Nexus 7 to my PC. Also should add that the reason I want to remove the DRM is that Kindle for Android is completely hopeless when it comes to graphic novels – text is tiny, no rotation options and no zoom options.

      • I had the same problem with some books I purchased from Amazon. I didn’t like Kindle for Android, and I also tried to copy the prc files to the pc. This didn’t work. I then installed Kindle for PC on my desktop, and downloaded my purchases to this machine. I installed Calibre and the DRM tools, and after some work (I had some problems with diffferent versions of Kindle and Calibre) I was able to read the books (the *.azw3 versions which Kindle for PC downloaded not the *.prc versions which Kindle for Android downloaded) and copy them to epub files without DRM.

        • OK, then I think I might be stuck. The graphic novel I purchased is not compatible for PC. At least I know what I am dealing with specifically now.

      • The Tools currently can’t remove DRM from the Kindle for Android app, and you can’t ever remove the DRM from a file downloaded to a Kindle app but copied to another machine. DRM is machine specific. You need to download the file directly from Amazon into Kindle for PC and then import into Calibre on that PC. (This is all covered in the FAQs.)

      • If they won’t download to Kindle for PC/Mac, then you have a problem. Some people have worked out how to either patch a version of Kindle for Android to get the PID for each book, or to generate the PID from some configuration info from the Android device. But I don’t know a lot about either.

        I suggest searching the comments here, and also downloaded the extras and reading any read-mes.

        • Thank, this worked on PC. Very easy with the Calibre Plugin.
          I thought I could import the androids machine key to the DeDRM script and do this on the PC.
          Anyway, like this it is really easy, thank.

          • Why don’t any of my posts show up on the blog? I’ve tried logging in with google, providing an alternate email address without loggin in, and now I’m trying a new browser… What gives?

            • I don’t know what’s going on… whenever I post a reply with information about my problem that contains logs from calibre, etc., my post disappears and doesn’t show up on the blog. I don’t know WTF is going on here…

  138. Hello,

    I just wanted to offer a massive thank you. The readme’s were brilliant. The FAQs fantastic. The program, super. Thank you so much. I’m really very grateful.

  139. OK… I’m pretty sure the problem I’m having posting comes from all the special chars in my output.

    I’ve followed the example of a previous poster and created a url at pastebin with my debug output. This output is located at:

    http://pastebin.com/TAF2YcyF

    Thanks a ton for providing these DeDRM tools…

    Unfortunately, I’ve been unable to remove DRM from my B&N epubs using either the calibre plugin or the stand-alone Windows DeDRM app.

    Output from running calibre in debug mode is located at the pastebin url above. The problem seems to be that the value of the key generated is actually null.

    Below that is output from running ignoblekeygen.py from the command line. (Actually, I ran ignoblekeygen_copy.py from the command line with some test arguments. ignoblekeygen_copy.py differs from the original ignoblekeygen.py only in that I have added print statements to the generate_key() function in ignoblekeygen_copy.py to show what values different variables take as the key is being generated.)

    Both the calibre plug-in version of the tools and the Windows stand-alone version of the tools generate the same key, so I think the problem is the same for both versions.

    (I read above in this blog that someone else had this same problem and fixed it by using books downloaded with the Nook for PC app with your tools. Unfortunately, I tried that, and it did not help. The calibre debug output at the pastebin url above was generated when I tried to import a B&N epub downloaded with my Nook for PC app into calibre.)

    I think you can get this from the debug output above, but I am running Windows 7 Professional, 74-bit. The tools version I’m using is v6.0.8.

    This last returnVal in the output on the pastebin site is the value of the key generated. It seems to be null if the key value is supposed to follow the equal sign. I dunno…

    Any help in getting the DRM removed from my B&N epubs using your tools is greatly appreciated. Thanks in advance for any help with this.

    • The problem with B&N ePubs is almost invariably that you haven’t entered the right combination of name and number to generate the key. It can be any of the names entered in your B&N account – account, shipping, default CC, and possibly others I can’t remember just now. It also must be the default card number that was there at the time you downloaded the book.

      I’ve had success with books either downloaded directly from the web site, or via their nook Study program.

      The ‘Key cannot be the null string’ is probably just a side effect of having the wrong decryption key.

      • You are correct!! Duh… I thought I had the correct name entered, but I didn’t. Once I got my name right, everything worked perfectly!! Awesome!!

        Thanks again for the great tools and for the quick reply!!

  140. A quick question: there is a new version of ADE, with a more secure DRM scheme (according to the FAQ on the Adobe website). Are the tools able to handle ebooks with this new DRM scheme already? Because if they are not, I’ll wait a bit before installing the new version.
    I really love the software, I have lost some books before when Fictionwise couldnot offer them anymore in the original format, and not all could be recovered. So I now DeDRM any ebooks I buy at once, before I lose any more.

    • There’s been some discussion of this at Mobileread. It seems that for the new DRM system to be used, the retailer must also update their end, so at the moment books obtained using ADE 3.0 still get encrypted using the current DRM scheme, and the DRM can be removed by the current tools.

      However, the current tools almost certainly will not work with any books using the new DRM scheme, when it eventually starts to be used.

      If you want to be able to remove DRM from your ADE ePubs, I’d recommend continuing to use ADE 2.0 when first opening your ePubs.

        • When/if retailers switch over to Content Server 5 and turn off support for ADE 2.0, you will no longer (unless the tools get updated) be able to remove DRM from newly bought ePubs.

          Exactly when you’ll no longer be able to register ADE 2.0 with your Adobe ID, and so remove DRM from ePubs using the ADE 2.0 style encryption is anyone’s guess.

          Personally, I always remove DRM from my purchases as soon as I have downloaded them. That way future changes to DRM schemes can’t affect the books I have. That’s rather the point of removing DRM.

  141. Thanks for continuing to provide assistance for so long but I have a question, when I have tried to decrypt B & N comic epubs it spits out an epub with only two pages but same size as the original file. So I just get the cover and then the next page It doesn’t matter if I use the dedrm plugin for calibre or the dedrm app. Could it be i’m doing something wrong or is the problem an upgraded encryption?

    • That sounds like it might be a problem with the program displaying the ePub. Unzip the decrypted version and look at what’s in there. You should be able to find out if it’s all decrypted successfully.

      I expect that the tools will just not work with ADE 3.0 encryption. (NB that’s the new encryption, not just ADE 3.0. They seem to work find with ADE 3.0 if it’s still the old encryption.)

  142. I’ve just downloaded a Kindle book via kindle for PC, in the same way that I’ve been doing it for months and added it into Calibre as usual. When I try to convert to any format it reports DRM. The format is AZW, but ones that have been working for ages on an old version of the plugins were AZW3 or MOBI. I’ve updated to the latest versions of Calibre and the plugin but this has had no effect. Have Amazon just moved the goalposts?

    • Since I’ve downloaded and removed DRMed Amazon Kindle books today, goalpost moving is unlikely. Post an import log, or consider what’s changed at your end.

  143. I’ve downloaded & (Calibre says successfully installed) the DeDRM_plugin. I’ve added it to Calibre, but when I try to convert the DRM’d files in Calibre I am still getting the popup telling my that the file has DRM. I tried the debugging in the command field, but I’m not a computer person and it just kept giving me Name Errors (I typed it several times, cmd-calibre-debu, cmd-calibre2-debu, calibre-debu, calibre2-debu)

  144. Ever since the last November, anything I’ve downloaded from BN hasn’t been able to be deDRMed. I’m updated tools to 6.08 and have the latest version of calibre. Here is the message I get from the cmd laine:
    calibre 1.21 isfrozen: True is64bit: False
    Windows-7-6.1.7601-SP1 Windows (’32bit’, ‘WindowsPE’)
    32bit process running on 64bit windows
    (‘Windows’, ’7′, ’6.1.7601′)
    Python 2.7.5
    Windows: (’7′, ’6.1.7601′, ‘SP1′, ‘Multiprocessor Free’)
    Any help would be greatly appreciated

    • B&N problems are almost always wrong name and/or number. Did you change anything in your B&N account last november? A new CC perhaps?

  145. Didn’t work. :( So I tried the instructions to go to cmd prompt (windows) and enter calibre-debug -g. Got message: ‘calibre-debug -g’ is not recognized as an internal or external command, operable program or batch file. Any suggestions?

    • Have you actually installed calibre? With calibre installed on windows the command should be available. If calibre is installed and you still have this problem, ask about it in the calibre forum at mobileread. They can’t help with the DRM, but they will cetrianly help you sort out why you can’t run the command line command.

  146. Just bought a book which has just been released, and can’t convert it. Saying ‘no format found – format available AZW3F. Have uploaded latest tools and still won’t work. Any ideas?

    • Does it really say “AZW3F” or does it just say “AZW3″? If the latter, then you just need to update your copy of calibre to one that knows about azw3.

      • Yes, once uploaded to Calibre it says AZW3F, but the book on the desktop says (PS)B0089LODXW. The book was bought from Amazon and downloaded directly to Kindle. The actual book is “The House Girl”, author Tara Conklin, and once put on my desktop says the following: (PS)B0089LODXW

        • I’m mystified. I’ve never heard of any book having file extension AZW3F. Perhaps those parentheses are confusing things. Try renaming the file to something innocuous before importing. And do make sure that your copy of claibre is new enough to know about .azw3.

  147. I’ve tried:
    Jane Doe
    jane doe
    JaneDoe
    Jane
    Doe
    Ms Jane Doe
    Ms. Jane Doe
    Miss Jane Doe
    Mrs Jane Doe
    Jane S Doe
    Jane Susan Doe
    MS J S DOE (as written on my card)
    And yet every bloody time… IGNOBLEError: AES improper key used
    I know I’ve entered the card number correctly (just the 16 digit code, right?), and obviously I used my real name rather than Jane Doe, but it just will not work. Any suggestions?

    • I have the same issue.
      Could I ask if you are using the US or UK version of nook? I’m in the UK and I know that much of the nook software doesnt work for the UK site.
      I do wonder if the UK uses different info for the key generation.

        • I’ve successfully removed DRM from my UK Nook purchases, so the tools should work. Is the card number the same card it was originally bought with? As I know if you change to different card it’s still the original unless you’ve redownloaded since changing.

          • As with Nook for PC, it doesn’t show any items purchased by a British person. This is a well known limitation of Nook PC software.

            • Have you tried? I’m a British Person and I use nook Study (for Mac – haven’t tried the PC version) to access my books in my nook.com/gb/ account. Indeed, it’s the only thing I’ve found that actually gives me access to all the items in my account. (My nook only shows a few hundred. Nook Study shows all 1417.)

              • Really? That’s weird. I tried both Nook for PC and Nook Study, and much like the american website, they refused to show books I’d bought, they weren’t “archived” either. Nook for Android and, well, my Nook are the only things to show them.

              • Anyway, it’s not getting the epub files that’s a problem, I can get them from my Nook or from Nook for Android, I just can’t de-DRM them.

    • The number must be the default card number at time of download, not purchase.
      The name is almost certainly one of the ones visible in your B&N account pages.

      I suggest triple-checking the number. Yes, it’s just the main 16 digits (15 for American Express, I think).

      • I only have one card that’s been used with Barnes and Noble (I’ve not had a Nook long so none have expired or anything), so I’m definitely entering the correct card number.

        • Entered my card number slowly and carefully, and DeDRM told me it’s the same as another key that it already had, so I didn’t make any mistakes with the card number either.

  148. Hi There,
    I’m on Mac OS X Mavericks, knowing from previous posts that the standalone DeDRM tool doesn’t work so i go with Calibre + plugin solution.

    The latest Caliber is installed and Other_Tools.zip is downloaded and unzipped. However, i’m NOT able to find a folder called “DeDRM_calibre_plugin” in it so not able to install the plugin.
    The folders in it are “B_and_N_Download_Helper” “DRM_Key_Scripts” “Kindle_for_Android_Patches” “Kobo” “Rocket_ebooks” and “Scuolabook_DRM”.
    Is this the correct file for plugin? I’m able to find out other download link so pls point it out to me, appreciate your help!!!

    –Sugie

    • That’s because the calibre plugin is in the main archive. Other_Tools really only contains stuff needed for strange cases.

  149. I have exactly the same problem as Jane Doe regarding “IGNOBLEError: AES improper key used” on a B&N book (bought in the UK). I have only ever purchased one book from B&N, so I know I have the correct credit card number (as only one has ever been registered to the account). My name is only shown in the form “Fred Bloggs” in my account, but neither this nor any other possible combination of title, initials, forenames and/or surname works.
    I wonder if B&N (UK) have changed the DRM scheme recently, or at least the information used to generate the keys. There were certainly some issues at the time I purchased the book, with the message “Unable To Download: MediaDrmPriority list was empty” being shown on my Nook originally; it was several days before this was rectified and I was finally able to download it to the Nook (or android app).
    It would be interesting if someone who has previously been successful with B&N could re-download a book and check they can still decrypt them.

    • I’ve recently purchased a book and downloaded it to Nook, and DeDRM’d it fine. My successful combination was “Firstname Surname” followed by my CC number and it worked ok, I’m sure that it was originally the name as appeared on my CC but the tool still works, I’m also in UK, and use the UK Nook store. ePubs were copied off the reader.

  150. Hi,
    I am a Ubuntu (13.04) user. I have purchased in the past a couple of ebooks from Amazon and used the Cloud Reader, but now I have a Kobo reader and I would like to read my books on my new (and more eye-friendly) device. I installed “Kindle for PC” using Play on Linux (4.2.2) and got the awz file, then I installed the latest version of Calibre (1.22) and of the DeDRM plugin (6.0.8, from the Github repo). I have followed the instruction and installed (always with PoL) ActiveState Python 2.7 (ActivePython-2.7.5.6-win32-x86.msi) and PyCrypto (pycrypto-2.6.win32-py2.7.exe) and finally added the default key, but I still can not obtain a DRM free file.

    When I import the book the decrypt fails, here’s the log I obtain when launching calibre in debug mode:
    http://pastebin.com/G4kKjD6R

    I don’t get why I finds a key but (seemingly) then do not use it to decrypt the file.

    Thank you for all the hard word so that we can read our books :-).

    Cristian
    p.s.: a documentation suggestion. It maybe worth pointing out the the Other Tools directory is avaiable if downloaded from git or as a separate zip file ^_^

    • It looks like you’ve done everything right. I don’t understand it either. You could try manually adding the key file to the plugin through the plugin’s preferences, and see what difference that makes to the log.

      And, of course, you could try the uninstall/wipe preferences/registry entires/reinstall/reregister Kindle for PC, and re-download of the book. Sometimes it seems that Kindlle for PC creates preferences files that the tools have trouble with.

      • Thanks, I tried again (uninstall everything, reinstall everything) with no luck. I ended up using a Windows system (meh!), installed Kindle for PC, Calibre for Windows and the plugin and everything worked.

  151. Hi, not going well for me, the plugin is showing in Calibre, I’ve installed both Calibre and DeDRM 2X, rebooted my system after install, and I’ve imported the book from both my Kindle and as a download from Amazon, but I still get the DRM locked message. I also tried using the Windows DeDRM_App. I got a couple of c prompt screens and a lot of activity, but the file, assuming I’m trying to open the correct one as I didn’t see any changes to the date stamp, is still DRM locked. I also tried inactivating and reactivating the plugin. After two + hours I gave up. What else to try?

    TIA

    Ron

    • If your Kindle is an E-Ink kindle, did you enter the serial number in the plugin preferences? When using the stand-alone, you will need to have installed ActiveState Python, and note that the original file is never changed. A new, DRM-free version is created.

      • Sorry, Kindle HD, and ActiveState Python installed. Where is the new file placed please? If the same directory, then it was’t created. Windows 7 machine.
        R

        • Can’t decrypt books from a non-EInk kindle, so the Kindle HD tablet won’t help you. There should be an option in the stand-alone’s user interface to choose a destination folder. You need to install TkInter if ActiveState python doesn’t install it (I can’t remember if it does or not.)

  152. (Disclaimer: I’ve read this thread, the FAQ, installed Kindle PC, Calibre and DeDRM from scratch, and I’m adding to an empty Calibre library. I’ve verified that DeDRM plugin is successfully installed.)

    I am trying to load a library of around 300 Kindle books into Calibre with DeDRM, and I get some success, some errors, in the debug log:

    calibre 1.22 [64bit] isfrozen: True is64bit: True
    Windows-7-6.1.7601-SP1 Windows (’64bit’, ‘WindowsPE’)
    (‘Windows’, ’7′, ’6.1.7601′)
    Python 2.7.5
    Windows: (’7′, ’6.1.7601′, ‘SP1′, ‘Multiprocessor Free’)
    Starting up…
    Started up in 0.52 seconds with 284 books
    Worker Launch took: 0.132999897003
    Job: 1 Read metadata (0 of 1) finished
    Read metadata (0 of 1)
    DeDRM v6.0.8: Trying to decrypt B000OIZSVY _ E B O K . a z w
    U s i n g L i b r a r y A l f C r y p t o D L L / DYLIB/SO
    MobiDeDrm v0.41.
    Copyl.
    MOBI header version 8, header length 256
    Extra Data Flags: 3
    Decrypting Kindle Format 8 ebook: Eats, Shoots & Leaves: The Zero Tolerance Approach to Punctuation
    Found 4 keys to try after 0.0 seconds
    Crypto Type is: 2
    File is encoded with PID vaRr7+nw15.
    Decrypting. Please wait . . . done
    Decryption succeeded after 0.0 seconds
    DeDRM v6.0.8: Successfully decrypted book after 0.0 seconds

    Added Eats, Shoots & Leaves: The Zero Tolerance Approach to Punctuation to db in
    : 0.171000003815 seconds

    The problem seems to occur when more than one worker is adding books:

    Read metadata (4 of 6)
    Traceback (most recent call last):
    File “calibre_plugins.dedrm.__init__”, line 130, in initialize
    IOError: [Errno 13] Permission denied: u’C:\\Users\\leek\AppData\\Roaming\\calibre\\plugins\\DeDRM\\libraryfiles\\alfcrypto64.dll’
    Failed to initialize plugin: DeDRM (6, 0, 8)
    Failed to initialize plugin: u’C:\\Users\\leek\\AppData\\Roaming\\calibre\\plugins\\DeDRM.zip’
    Failed to read MOBI cover

    If I add each book individually, it seems to work. But if I try to add multiple books at once, it fails for about 2/3rds of the books, and they get added to the library, but they remain DRM’ed.

    I tried setting “Max simultaneous conversion/news download jobs” to 1, but that does not stop Calibre from creating multiple workers for imports. Is there another option to force Calibre to be single-threaded during imports?

    This is on Windows 7 64-bit.

    The permission error was mentioned in a thread above, but I don’t think it’s as simple as a Windows permission problem. I have tried running Calibre with Administrator privileges and nothing changes. The error above only happens when trying to import more than one book at a time, and then it happens over 2/3rds of the time.

    It seems like a race condition — a shared resource which needs to be coordinated between threads. if another worker is already in the process of decrypting another book, then it gets the permission error. It then just falls back on copying the original DRM file into the library, with no decryption performed. The error message seems to indicate that it is happening when the metadata is being read.

    Cygwin (cygwin.com) and Perl to the rescue (Powershell might work too)!!! This tiny script serializes the adds using the CLI, and everything works!!!

    perl -e ‘for(){system qw(calibredb add), $_}’

    (First cd to the directory containing all of the books you want to add. Change to another wildcard pattern in brackets if you want to restrict file types.)

    Adding books one command at a time fixes the problem. All of the books are added successfully, with no permission errors, and no DRM books remaining.

    Methinks we have a thread-safety bug in DeDRM or Calibre.

    • Note: The above script needs to be:
      perl -e ‘for(<*>){system qw(calibredb add), $_}’
      (A left corner bracket, an asterisk, and a right corner bracket in the for() parentheses.)

  153. I am getting an error that DeDRM on osx mavericks with the latest DeDRM, when saving output location or other config info states “~/Library/Preferances/com.apprenticealf.dedrm.plist” is not a .plist file.. and actually i cannot find it at all, only a folder there called com.apprenticealf.dedrm which has DeDRM_temp.log and Local Kindle Key.k4i – but DeDRM never writes a .plist file. i tried to create an empty plist but no change.

  154. Hi there,
    I am using DeDRM Tools v6.0.8 plugin for Calibre under Arch Linux. And I tried to follow the steps carefully. Trying to DeDRM an ePub book and a PDF document, I am getting errors that are shown here: http://pastebin.com/bWdnrReA
    In case of epub book, I confirmed that the folder “/home/rez/.config/calibre/plugins/DeDRM/libraryfiles/winekeysdir” exists though so I’m not sure why it said no folder found!

    I’d appreciate if you can help me.
    Thanks

    • Sorry, no idea. You could try running the key generation script manually and importing the generated key into the plugin through its preferences.

      • Thanks for your reply. I managed to deDRM it using the manual method I describe in the comment below to help “George Slenkovich” too.