DRM Removal Tools for eBooks

Version 6.4.3 released on 28 April, 2016

Welcome to Apprentice Alf’s blog

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

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

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

The Tools

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

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

Getting Help with the Tools

If you have any questions about the tools, ebooks and DRM, check 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, Apprentice Alf, and Apprentice Harper. While there are many sites that redistribute these tools, the most up-to-date versions of the tools are currently released here.

Other Sources

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

2,118 thoughts on “DRM Removal Tools for eBooks

  1. Hey guys,
    I followed the instructions as best i could, and it wouldn’t decrypt the drm hopefully you guys can help, the file type is .azw3

    Tool used: DEDRM v6.4.3

    OS: Windows 7 Home Premium

    Location: Folder

    Error message: DRM still present so calibre cant read or modify the file

    Log:
    C:\Users\Matt>calibre-debug -g
    calibre 1.41 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 1.45 seconds with 2313 books
    Worker Launch took: 0.133999824524
    Job: 1 Read metadata (0 of 1) finished
    Non-ASCII text detected. You must set your Console’s font to Lucida Console or C
    onsolas or some other TrueType font to see this text — Read metadata (0 of 1)
    DeDRM v6.4.3: Trying to decrypt Patterdale Terriers.azw3
    Using Library AlfCrypto DLL/DYLIB/SO
    MobiDeDrm v0.41.
    Copyright (c) 2008-2012 The Dark Reverser et al.
    MOBI header version 8, header length 264
    Extra Data Flags: 3
    Decrypting Kindle Format 8 ebook: Patterdale Terriers
    Found 0 keys to try after 0.1 seconds
    Crypto Type is: 2
    DeDRM v6.4.3: Failed to decrypt with error: No key found in 0 keys tried
    .
    DeDRM v6.4.3: Looking for new default Kindle Key after 0.1 seconds
    searching for kinfoFiles in C:\Users\Matt\AppData\Local
    Found K4PC 1.9+ kinf2011 file: C:\Users\Matt\AppData\Local\Amazon\Kindle
    \storage\.kinf2011
    Couldn’t decrypt file.
    DeDRM v6.4.3: Ultimately failed to decrypt after 0.2 seconds.
    Read the FAQs at Alf’s blog: https://apprenticealf.wordpress.com/
    Running file type plugin DeDRM failed with traceback:
    Traceback (most recent call last):
    File “site-packages\calibre\customize\ui.py”, line 154, in _run_filety
    pe_plugins
    File “calibre_plugins.dedrm.__init__”, line 604, in run
    File “calibre_plugins.dedrm.__init__”, line 554, in KindleMobiDecrypt
    DeDRMError: DeDRM v6.4.3: Ultimately failed to decrypt after 0.2 seconds

    Added Patterdale Terriers to db in: 2.3069999218 seconds
    Worker Launch took: 0.15700006485

    • The file isn’t from Kindle for PC, so if it’s from an E-Ink Kindle you’ll need to enter that Kindle’s serial number into the plugins customisation dialog. (Or, if you don’t have an E-Ink Kindle, you’ll need to install Kindle for PC from the Amazon website and download a copy of your book through that.)

      Which instructions were incomplete? Perhaps the PTB can fix them if they know which ones are wrong.

  2. Hi,
    I installed Kindle for PC 1.16.44204 from amazon website, DeDRM 6.4.3, ActivePython 64-bit 2.7Calibre 64-bit 2.59, and installed the plugin 6.4.3 in Calibre. My operating system is Win10 64-bit.
    I downloaded 2 books in Kindle for PC, and could read them without problem.
    I tried to remove the DRM using the DeDRM python app (I used the script kindlekey.pyw and got kindlekey.k4i, and configured the keyfile in , DeDRM_App.pyw), and got the failure message. The log file in my user directory contains the following content:

    =======================
    DeDRM v6.4.3: Processing: B009WMAUFM_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:
    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 “D:\personal\DeDRM_tools_6.4.3\DeDRM_Windows_Application\DeDRM_App\DeDRM_lib\lib\k4mobidedrm.py”, line 248, in decryptBook
    book = GetDecryptedBook(infile, kDatabases, androidFiles, serials, pids, starttime)
    File “D:\personal\DeDRM_tools_6.4.3\DeDRM_Windows_Application\DeDRM_App\DeDRM_lib\lib\k4mobidedrm.py”, line 222, in GetDecryptedBook
    mb.processBook(totalpids)
    File “D:\personal\DeDRM_tools_6.4.3\DeDRM_Windows_Application\DeDRM_App\DeDRM_lib\lib\mobidedrm.py”, line 471, 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.4.3: Failed

    DeDRM v6.4.3: Complete: Successes: 0, Failures: 1
    =======================

    Then I tried to use the Calibre plugin. I used caliber-debug.exe to launch Calibre, and added a book from “my documents\My Kindle Content” directory. Then I got log messages as below:

    =======================
    calibre 2.59 [64bit] embedded-python: True is64bit: True
    Windows-8-6.2.9200 Windows (’64bit’, ‘WindowsPE’)
    (‘Windows’, ‘8’, ‘6.2.9200’)
    Python 2.7.9
    Windows: (‘8’, ‘6.2.9200’, ”, ‘Multiprocessor Free’)
    Qt: Untested Windows version 10.0 detected!
    Successfully initialized third party plugins: DeDRM
    Starting up…
    Ignoring blacklisted device: The \\?\usb#vid_12d1&pid_107e&mi_00#6&2d511f9d&0&0000#{6ac27878-a6fa-4155-ba85-f98f491d4f33} device has been blacklisted by the user
    Started up in 2.23 seconds with 0 books
    stdout+stderr from file dialog helper: [”, ”]
    piped data from file dialog helper: [‘\xfdS\xf3\x1d\xdaO\xbe\xf3\x8e\x8bR\x02\x14a\xf9\xcdoO\x9cU\xb4\xae\xa3\xfdc\xc2\xbe\xf9\r\x94\x81\x90’, ‘C:\\Users\\\xe8\x94\xa1\xe6\xaf\x85\\Documents\\My Kindle Content\\B009WMAUFM_EBOK.azw’]
    DeDRM v6.4.3: Trying to decrypt B009WMAUFM_EBOK.azw
    Using Library AlfCrypto Python
    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: ????????????????????????????????????????????????????????????(???????????????)
    Found 4 keys to try after 0.3 seconds
    Crypto Type is: 2
    DeDRM v6.4.3: Failed to decrypt with error: No key found in 4 keys tried.
    DeDRM v6.4.3: Looking for new default Kindle Key after 0.3 seconds
    searching for kinfoFiles in C:\Users\\AppData\Local
    Found K4PC 1.9+ kinf2011 file: C:\Users\\AppData\Local\Amazon\Kindle\storage\.kinf2011
    Decrypted key file using IDString ‘2556993505’ and UserName ’21c5′
    DeDRM v6.4.3: Found 1 new key
    MobiDeDrm v0.41.
    Copyright ?? 2008-2012 The Dark Reverser et al.
    MOBI header version 8, header length 264
    Extra Data Flags: 3
    Decrypting Kindle Format 8 ebook: ????????????????????????????????????????????????????????????(???????????????)
    Found 4 keys to try after 0.4 seconds
    Crypto Type is: 2
    DeDRM v6.4.3: Ultimately failed to decrypt after 0.4 seconds.
    Read the FAQs at Alf’s blog: https://apprenticealf.wordpress.com/
    Running file type plugin DeDRM failed with traceback:
    Traceback (most recent call last):
    File “site-packages\calibre\customize\ui.py”, line 154, in _run_filetype_plugins
    File “calibre_plugins.dedrm.__init__”, line 604, in run
    File “calibre_plugins.dedrm.__init__”, line 554, in KindleMobiDecrypt
    DeDRMError: DeDRM v6.4.3: Ultimately failed to decrypt after 0.4 seconds

    ================================

    I repeated several times, uninstalling and re-installing Kindle for PC, but every time I got the same result.
    Could any one tell me what was wrong?
    Thanks in advance.

    • Your windows username has several non-ASCII characters in it. I think I remember seeing reports that this messed up the decryption. Try creating a test user account with an ASCII-only username and see if things work in there.

      • Thanks Paul, I created a new Windows account whose username contains only ascii characters, and it works great!!!

  3. Running Windows 10 64bit, Calibre 2.6.3 64bit , DeDRM tools 6.4.3. Tried to remove DRM on new AZW3
    book purchased today for my Kindle PaperWhite and get message that it can’t open due to DRM. I keep
    copies of the original books downloaded so tried a similar book purchased 3 months ago and it worked
    fine and the DRM protection was removed OK.

    Checked the plugin and it still shows my Kindle serial numbers. Tried a couple of other books (azw3)
    from last year and they also worked OK. The problem book works fine on my Kindle, but even though I
    downloaded it again, same problem occurs with Calibre and DeDRM.

    Any ideas on how to fix this?

    See calibre debug log below.

    C:\Users\jnb>calibre-debug -g
    calibre 2.63 [64bit] embedded-python: True is64bit: True
    Windows-8-6.2.9200 Windows (’64bit’, ‘WindowsPE’)
    (‘Windows’, ‘8’, ‘6.2.9200’)
    Python 2.7.9
    Windows: (‘8’, ‘6.2.9200’, ”, ‘Multiprocessor Free’)
    Qt: Untested Windows version 10.0 detected!
    Successfully initialized third party plugins: DeDRM (6, 4, 3) && FictionDB (1, 0, 10) && Fantastic Fiction (1, 1, 6) && Barnes & Noble (1, 2, 13) && Goodreads (1, 1, 11) && Search The Internet (1, 7, 6)
    Starting up…
    Started up in 2.72 seconds with 0 books
    stdout+stderr from file dialog helper: [”, ”]
    piped data from file dialog helper: [‘\r\xcd\xb6\xadW\xd7\xb4\x15\xef\x06p\xf2\xfbQ&8C\xeb`\xe5\xf7\xbd\x1f\xc4\x9b\xb3\x0c\xc8L\xc8\xd62’, ‘D:\\E-Books-Workspace\\Input Files\\Sweet Poison Quit Plan Cookbook.azw3’]
    DeDRM v6.4.3: Trying to decrypt Sweet Poison Quit Plan Cookbook.azw3
    Using Library AlfCrypto DLL/DYLIB/SO
    MobiDeDrm v0.41.
    Copyright �� 2008-2012 The Dark Reverser et al.
    MOBI header version 8, header length 264
    Extra Data Flags: 3
    Decrypting Kindle Format 8 ebook: Sweet Poison Quit Plan Cookbook
    Found 6 keys to try after 0.1 seconds
    Crypto Type is: 2
    DeDRM v6.4.3: Failed to decrypt with error: No key found in 6 keys tried.
    DeDRM v6.4.3: Looking for new default Kindle Key after 0.1 seconds
    searching for kinfoFiles in C:\Users\jnb\AppData\Local
    No K4PC kindle.info/kinf/kinf2011 files have been found.
    DeDRM v6.4.3: Ultimately failed to decrypt after 0.1 seconds.
    Read the FAQs at Alf’s blog: https://apprenticealf.wordpress.com/
    Running file type plugin DeDRM failed with traceback:
    Traceback (most recent call last):
    File “site-packages\calibre\customize\ui.py”, line 154, in _run_filetype_plugins
    File “calibre_plugins.dedrm.__init__”, line 604, in run
    File “calibre_plugins.dedrm.__init__”, line 554, in KindleMobiDecrypt
    DeDRMError: DeDRM v6.4.3: Ultimately failed to decrypt after 0.1 seconds
    Added Sweet Poison Quit Plan Cookbook to db in: 1.1
    Added 1 books in 1.8 seconds
    Worker Launch took: 0.125
    Job: 1 Convert book 1 of 1 (Sweet Poison Quit Plan Cookbook, The – 2013) finished
    Convert book 1 of 1 (Sweet Poison Quit Plan Cookbook, The – 2013)
    Resolved conversion options
    calibre version: 2.63.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\\jnb\\AppData\\Local\\Temp\\calibre_5n0jho\\vtgo9j.jpeg’,
    ‘debug_pipeline’: None,
    ‘dehyphenate’: True,
    ‘delete_blank_paragraphs’: True,
    ‘disable_font_rescaling’: False,
    ‘dont_split_on_page_breaks’: False,
    ‘duplicate_links_in_toc’: False,
    ’embed_all_fonts’: False,
    ’embed_font_family’: None,
    ‘enable_heuristics’: False,
    ‘epub_flatten’: False,
    ‘epub_inline_toc’: False,
    ‘epub_toc_at_end’: False,
    ‘expand_css’: False,
    ‘extra_css’: None,
    ‘extract_to’: None,
    ‘filter_css’: u”,
    ‘fix_indents’: True,
    ‘flow_size’: 260,
    ‘font_size_mapping’: None,
    ‘format_scene_breaks’: True,
    ‘html_unwrap_factor’: 0.4,
    ‘input_encoding’: None,
    ‘input_profile’: ,
    ‘insert_blank_line’: False,
    ‘insert_blank_line_size’: 0.5,
    ‘insert_metadata’: False,
    ‘isbn’: None,
    ‘italicize_common_cases’: True,
    ‘keep_ligatures’: False,
    ‘language’: None,
    ‘level1_toc’: None,
    ‘level2_toc’: None,
    ‘level3_toc’: None,
    ‘line_height’: 0.0,
    ‘linearize_tables’: False,
    ‘margin_bottom’: 5.0,
    ‘margin_left’: 5.0,
    ‘margin_right’: 5.0,
    ‘margin_top’: 5.0,
    ‘markup_chapter_headings’: True,
    ‘max_toc_links’: 50,
    ‘minimum_line_height’: 120.0,
    ‘no_chapters_in_toc’: False,
    ‘no_default_epub_cover’: False,
    ‘no_inline_navbars’: False,
    ‘no_svg_cover’: False,
    ‘output_profile’: ,
    ‘page_breaks_before’: u”//*[name()=’h1′ or name()=’h2′]”,
    ‘prefer_metadata_cover’: False,
    ‘preserve_cover_aspect_ratio’: False,
    ‘pretty_print’: True,
    ‘pubdate’: None,
    ‘publisher’: None,
    ‘rating’: None,
    ‘read_metadata_from_opf’: u’C:\\Users\\jnb\\AppData\\Local\\Temp\\calibre_5n0jho\\bqyvoy.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,
    ‘transform_css_rules’: ‘[]’,
    ‘unsmarten_punctuation’: False,
    ‘unwrap_lines’: True,
    ‘use_auto_toc’: False,
    ‘verbose’: 2}
    InputFormatPlugin: MOBI Input running
    on C:\Users\jnb\AppData\Local\Temp\calibre_5n0jho\8lgxql.azw3
    Found KF8 MOBI of type ‘standalone’
    Python function terminated unexpectedly
    Sweet Poison Quit Plan Cookbook (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 190, 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 1060, 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 81, in __call__
    File “site-packages\calibre\ebooks\mobi\reader\mobi6.py”, line 144, in check_for_drm
    calibre.ebooks.DRMError: Sweet Poison Quit Plan Cookbook

    • Update to my post on 23rd July 2016

      Tried downloading the book using Kindle for PC. Located the downloaded book in My Kindle Content,
      copied it into Calibre and the DRM was successfully removed. My problem is now solved.

  4. This plug-in has worked well with AZW files, and other epub files (not from B&N). I recently purchased a B&N epub file and cannot get it to unlock. Here are the details:

    ***which tool was used
    DeDRM__tools_6.4.3 ; DeDRM_calibre_plugin ; DeDRM_plugin.zip

    ***which OS you are using
    Windows 8.1 Pro

    ***where the ebook file came from (device or folder)
    Desktop folder

    ***any error messages
    none — only knowledge of failure was “locked” info window when attempting to read the book

    ***a log of the DRM-removal attempt (see the FAQs on how to get a log).

    C:\util>calibre-debug -g
    calibre 2.50.1 isfrozen: True is64bit: False
    Windows-8-6.2.9200 Windows (’32bit’, ‘WindowsPE’)
    32bit process running on 64bit windows
    (‘Windows’, ‘8’, ‘6.2.9200’)
    Python 2.7.9
    Windows: (‘8’, ‘6.2.9200’, ”, ‘Multiprocessor Free’)
    Successfully initialized third party plugins: DeDRM
    Starting up…
    Loaded cached store plugin for: Archive.org at version: 2
    Started up in 2.24 seconds with 8 books

    Debugging DND event

    (many lines of \x00\ skipped here)

    Firefox rurl: None None
    URLS: [‘file:///C:/Users/a/Desktop/9780786035281.epub’]
    Paths: [u’C:/Users/a/Desktop/9780786035281.epub’]
    Extensions: frozenset([u’epub’])
    DeDRM v6.4.3: Trying to decrypt 9780786035281.epub
    DeDRM v6.4.3: Verifying zip archive integrity
    DeDRM v6.4.3: “9780786035281.epub” is a secure Barnes & Noble ePub
    DeDRM v6.4.3: Looking for new NOOK Study Keys after 0.1 seconds
    No nook Study log files have been found.
    DeDRM v6.4.3: Ultimately failed to decrypt after 0.1 seconds.
    Read the FAQs at Alf’s blog: https://apprenticealf.wordpress.com/
    Running file type plugin DeDRM failed with traceback:
    Traceback (most recent call last):
    File “site-packages\calibre\customize\ui.py”, line 153, in _run_filetype_plugi
    ns
    File “calibre_plugins.dedrm.__init__”, line 615, in run
    File “calibre_plugins.dedrm.__init__”, line 286, in ePubDecrypt
    DeDRMError: DeDRM v6.4.3: Ultimately failed to decrypt after 0.1 seconds.
    Added Day Zero to db in: 0.2
    Added 1 books in 0.9 seconds

    Thanks in advance

      • Thanks. That works. It helps to know there is a section in the plugin for doing that. Now I know. For anyone else, follow this path from Calibre. 1. Preferences-change calibre behavior 2. Advanced – plugins 3. Filetype -DeDrm – customize plugin 4. Config: Barnes & Noble and follow the instructions.
        Then “Add” your book that you purchased from B&N.

  5. Getting error when installing plugin into Calibre.

    OS: Ubuntu 16.04
    Calibre ver: 2.63
    DeDRM ver: 6.4.3

    calibre, version 2.63.0
    ERROR: Unhandled exception: InvalidPlugin:The plugin in u’/home/glenn/Downloads/DeDRM_tools_6.4.3.zip’ is invalid. It does not contain a top-level __init__.py file

    calibre 2.63 embedded-python: True is64bit: True
    Linux-4.4.0-31-generic-x86_64-with-debian-stretch-sid Linux (’64bit’, ‘ELF’)
    (‘Linux’, ‘4.4.0-31-generic’, ‘#50-Ubuntu SMP Wed Jul 13 00:07:12 UTC 2016’)
    Python 2.7.9
    Linux: (‘debian’, ‘stretch/sid’, ”)
    Successfully initialized third party plugins: Comicvine (0, 10, 7)
    Traceback (most recent call last):
    File “site-packages/calibre/gui2/preferences/plugins.py”, line 316, in add_plugin
    File “site-packages/calibre/customize/ui.py”, line 417, in add_plugin
    File “site-packages/calibre/customize/ui.py”, line 55, in load_plugin
    File “site-packages/calibre/customize/zipplugin.py”, line 188, in load
    File “site-packages/calibre/customize/zipplugin.py”, line 286, in _locate_code
    InvalidPlugin: The plugin in u’/home/glenn/Downloads/DeDRM_tools_6.4.3.zip’ is invalid. It does not contain a top-level __init__.py file

  6. Hi all,
    I followed the instructions as best i could, still no success in removing the DRm from a epub file, below the Debug log
    calibre 2.63 embedded-python: True is64bit: False
    Windows-7-6.1.7601-SP1 Windows (’32bit’, ‘WindowsPE’)
    32bit process running on 64bit windows
    (‘Windows’, ‘7’, ‘6.1.7601’)
    Python 2.7.9
    Windows: (‘7’, ‘6.1.7601’, ‘SP1’, ‘Multiprocessor Free’)
    Successfully initialized third party plugins: DeDRM (6, 4, 3)
    Starting up…
    Started up in 9.59 seconds with 211 books
    DeDRM v6.4.3: Trying to decrypt Il Palazzo degli specchi.epub
    DeDRM v6.4.3: Verifying zip archive integrity
    DeDRM v6.4.3: Il Palazzo degli specchi.epub is a secure Adobe Adept ePub
    DeDRM v6.4.3: Looking for new default Adobe Digital Editions Keys after 0.5 seconds
    DeDRM v6.4.3: Exception when getting default Adobe Key after 0.6 seconds
    Traceback (most recent call last):
    File “calibre_plugins.dedrm.__init__”, line 331, in ePubDecrypt
    File “calibre_plugins.dedrm.adobekey”, line 377, in adeptkeys
    ADEPTError: Adobe Digital Editions not activated
    DeDRM v6.4.3: Ultimately failed to decrypt after 0.6 seconds.
    Read the FAQs at Alf’s blog: https://apprenticealf.wordpress.com/
    Running file type plugin DeDRM failed with traceback:
    Traceback (most recent call last):
    File “site-packages\calibre\customize\ui.py”, line 154, in _run_filetype_plugins
    File “calibre_plugins.dedrm.__init__”, line 615, in run
    File “calibre_plugins.dedrm.__init__”, line 386, in ePubDecrypt
    DeDRMError: DeDRM v6.4.3: Ultimately failed to decrypt after 0.6 seconds.
    Added Il Palazzo degli specchi to db in: 1.9
    Added 1 books in 3.3 seconds

    what did I do wrong?

    thank you in advance

    • Bad news, I’m afraid. You did not register your copy of Adobe Digital Editions with an Adobe ID before you downloaded the book. That means two things

      (1) The tools can’t find the encryption key
      (2) The book is tied to that particular installation of Adobe Digital Editions. You will only be able to access that book so long as you have that particular copy of ADE. If your hard disk fails, or you have to reinstall the operating system, or you chnage computer, you will lose access to the book.

      Sorry. I don’t think you’ll be able to do anything to get around this. Unless someone else has a bright idea.

      • Maybe I am missing something here, but I just checked my Adobe Digital Editions on Mac OS, the Windows version should offer the same.
        The Adobe ID’s (you can have more than one) are listed in the Help Menu under “Autorisierungsinformationen” (German) should be in English “authorization information”. You have the email-adress listed and a codestring. That should be enough to contact Adobe and reset the password. If not, bug the Support politely until they solve this mess. It is their mess, they should clean it up.

  7. Hello, I’ve been using your deDRM plug-in for Calibre on an old PC for many years. Now trying to get Calibre v2.63 plus v6.4.3 of your plug-in working on a laptop running Windows 10 Pro 64-bit. I copied the old library to a home NAS and linked to it the first time I launched the newly installed Calibre. I can read all of the already deDRMed books on the laptop but I get errors trying to import new .azw3 books. I installed Kindle for PC on this laptop and I can see the new books I’ve purchased. I have not yet uninstalled Kindle for PC on the old PC. I am using the same credit card I used on the old PC. I did not bring over any keys from the old PC (if I need to, could you indicate where to find it/them). Thanks for any help!

    Error: Failed to add any books.

    LOG (VIA COMMAND PROMPT):

    Microsoft Windows [Version 10.0.10586]
    (c) 2015 Microsoft Corporation. All rights reserved.

    C:\Users\thoma>calibre-debug -g
    calibre 2.63 embedded-python: True is64bit: False
    Windows-8-6.2.9200 Windows (’32bit’, ‘WindowsPE’)
    32bit process running on 64bit windows
    (‘Windows’, ‘8’, ‘6.2.9200’)
    Python 2.7.9
    Windows: (‘8’, ‘6.2.9200’, ”, ‘Multiprocessor Free’)
    Qt: Untested Windows version 10.0 detected!
    Successfully initialized third party plugins: DeDRM (6, 4, 3)
    Starting up…
    Started up in 2.79 seconds with 276 books
    stdout+stderr from file dialog helper: [”, ”]
    piped data from file dialog helper: [“$\x94\x10\xfb&|U\x0cu\x08\xe7\x82\xf5\x07\xf2\xda\x95\xa6\xf2\x9f=f\x12i’\xb9iGWZ\xc2{“, ‘C:\\Users\\thoma\\Documents\\My Kindle Content\\B0100AXCHC_EBOK.azw’]
    DeDRM v6.4.3: Trying to decrypt B0100AXCHC_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: Lewis and Clark
    Found 4 keys to try after 0.1 seconds
    Crypto Type is: 0
    This book is not encrypted.
    Decryption succeeded after 0.1 seconds
    DeDRM v6.4.3: Finished after 0.1 seconds
    Added 0 books in 11.9 seconds

    ERROR LOG VIA CALIBRE INTERFACE:
    calibre, version 2.63.0
    ERROR: Errors while adding: Failed to add any books, click “Show details” for more information

    ———————————————————————-
    Failed to add the book: Lewis and Clark
    C:\Users\thoma\AppData\Local\Temp\calibre_5kr8ou\e93ssn_add_books\0\B0100AXCHC_EBOK.azw3
    With error:
    Traceback (most recent call last):
    File “site-packages\calibre\gui2\add.py”, line 377, in add_book
    File “site-packages\calibre\db\legacy.py”, line 214, in create_book_entry
    File “site-packages\calibre\db\cache.py”, line 57, in call_func_with_lock
    File “site-packages\calibre\db\cache.py”, line 1530, in create_book_entry
    File “site-packages\calibre\db\cache.py”, line 1252, in set_metadata
    File “site-packages\calibre\db\cache.py”, line 1079, in update_path
    File “site-packages\calibre\db\backend.py”, line 1533, in update_path
    File “site-packages\calibre\db\tables.py”, line 130, in set_path
    File “site-packages\calibre\db\backend.py”, line 809, in execute
    File “c:\cygwin64\home\kovid\sw\build\apsw-3.8.2-r1\src\cursor.c”, line 231, in resetcursor
    CantOpenError: CantOpenError: unable to open database file

    • Follow-up: I booted up the old (Windows 7) PC, launched Calibre 2.63, and successfully deDRMed the 2 books I could not deDRM on the laptop. The name and version of the plugin on the old PC is: K4PC, K4Mac, Kindle Mobi and Topaz DeDRM (0.4.1)

    • That’s clearly not a problem with the DeDRM plugin, but with your calibre installation. I wouldn’t advise trying to use the same library with an old copy of calibre and a new copy of calibre (although moving completely to a new one should be OK). Perhaps you should ask in the calibre forum at mobileread about the best way to transfer your setup.

  8. Hi,

    I just downloaded the latest version from your website. As I usually do with downloads, I scanned it with Webroot before unzipping the file. Webroot said it detected malware–sorry I didn’t write down the specific malware it mentioned. When I told Webroot to remove the malware, the dowloaded version of your software was removed. Not trying to cause a panic here, just relating what happened. Thanks!

  9. Ah, thanks so much. I suspected it might be something like that, because I’ve downloaded from this site previously on other computers without any problems, and was using different antivirus back then.

  10. Hi, I get this error when I try to set up the plugin in Calibre: “Could not retrieve key. Check username, password and internet connectivity and try again” . I am trying to “set up a key” for my Barnes and Noble account. I am 100% sure I have typed everything in correctly… can anyone give any advice on what to do next? I am using Fedora 24 if it makes a difference, and this is my first time using Calibre. Thanks so much!

    • If you have never used Nook for PC, the servers might not like something pretending to be nook for PC. Can you install nook for PC (perhaps under wine, or on another computer) and log into your account using it, and then try the plugin again.

Leave a Reply

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

WordPress.com Logo

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

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s