DRM Removal Tools for eBooks

Version 6.5.1 released on 12 August, 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,516 thoughts on “DRM Removal Tools for eBooks

  1. My solution for Linux: enter the Kindle ID and the Adobe ID into DRM plugin Calibre configuration. Kindle ID can be found in the device (Menu or Home, whatever), and Adobe ID in Windows Calibre configuration, if you’ve get one (export it into your cloud or into a pendrive, then reimport it into your Linux Calibre). I have a 2nd generation Kindle, and I was unable to install Kindle for PC under Wine. Mi Adobe version is 2.01.

  2. Just as an FYI to Obok users:

    The changes to book encryption in Kobo Desktop version 4.0.x appear to be somewhat more involved than the last few times when they just changed the key derivation salt – there’s a separate wholly encrypted database for books now. So, it may take a bit longer than what we’ve recently gotten used to until Obok can support these latest app changes, but I’m sure we’ll get there eventually.

    • Thanks for the clarification, Kobok. And sincere thanks to all the Apprentices, for your efforts and generosity with your time. It’s so very much appreciated.

    • Just so you know: I was able to get the current obok plugin to work by installing an old version of the Kobo desktop app (I found one via Google at http://kobo-desktop.soft32.com/old-version/) and turning off my laptop wireless while the app was launching to prevent it from checking for the app update. After the app was up, I re-enabled wireless and I was able to login with it and sync my Kobo library into it; Calibre could then access that library and de-DRM the test book I’d bought.

      I didn’t really expect that to work, but it did. 😉

      Thanks for the plugin, by the way; adding another vendor I can buy books from without being stuck with a device/app lockin will really expand my reading.

      -robin

  3. Slightly odd partial problem here. I’ve been happily using Calibre for years (Mac) and for some reason the DRM wasn’t removed from Amazon books today. I downloaded the azw3 files via “Manage Your Content… etc” page on Amazon and it won’t play nice. It also wouldn’t work with the standalone DeDRM app.

    However, I was able to get them into Calibre and convert them to epub (so I can use them in Marvin, my preferred e-reader for my iPad) by going via the Kindle for Mac app and digging them out of the container folder. So, I have a workaround – but it used to be a bit easier and I wonder if anyone has any idea of where it is borked.

    Here is the log from when it doesn’t work and won’t convert. I’ve reinstalled Calibre and plug-ins to no avail. Thank you for any advice.

    calibre Debug log
    calibre 2.67 embedded-python: True is64bit: True
    Darwin-15.6.0-x86_64-i386-64bit Darwin (’64bit’, ”)
    (‘Darwin’, ‘15.6.0’, ‘Darwin Kernel Version 15.6.0: Thu Jun 23 18:25:34 PDT 2016; root:xnu-3248.60.10~1/RELEASE_X86_64’)
    Python 2.7.11
    OSX: (‘10.11.6’, (”, ”, ”), ‘x86_64’)
    Successfully initialized third party plugins: DeDRM (6, 5, 1) && KindleUnpack – The Plugin (0, 81, 2) && iOS reader applications (1, 4, 7, 0, 0) && Marvin😄 (1, 2, 4)
    devicePixelRatio: 1.0
    logicalDpi: 72.0 x 72.0
    physicalDpi: 114.000001712 x 114.000001712
    Starting up…
    Started up in 3.55 seconds with 2084 books
    2016-09-10 19:41:05.994 calibre-debug[16601:1640684] Ignoring request from Finder Sync Extension to register for file:///Library/
    2016-09-10 19:41:05.999 calibre-debug[16601:1640684] Ignoring request from Finder Sync Extension to register for file:///System/
    DeDRM v6.5.1: Trying to decrypt Untouchables_ Dirty cops, bent justice and racism in Scotland Yard (Bloomsbury Reader).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: Untouchables: Dirty cops, bent justice and racism in Scotland Yard (Bloomsbury Reader)
    Found 16 keys to try after 0.1 seconds
    Crypto Type is: 2
    DeDRM v6.5.1: Failed to decrypt with error: No key found in 16 keys tried.
    DeDRM v6.5.1: Looking for new default Kindle Key after 0.1 seconds
    Found k4Mac kinf2011 file: /Users/euanlawson/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2011
    Decrypted key file using IDString ‘S1DBNSAF947605H’ and UserName ‘euanlawson’
    DeDRM v6.5.1: 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: Untouchables: Dirty cops, bent justice and racism in Scotland Yard (Bloomsbury Reader)
    Found 4 keys to try after 1.9 seconds
    Crypto Type is: 2
    DeDRM v6.5.1: Ultimately failed to decrypt after 1.9 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 608, in run
    File “calibre_plugins.dedrm.init“, line 558, in KindleMobiDecrypt
    DeDRMError: DeDRM v6.5.1: Ultimately failed to decrypt after 1.9 seconds
    2016-09-10 19:41:33.840 Calibre[16622:1641417] deliverNotificationWithTitle()
    * Notification delivered.
    Added Untouchables: Dirty cops, bent justice and racism in Scotland Yard (Bloomsbury Reader) to db in: 0.1
    Added 1 books in 10.1 seconds
    Worker Launch took: 0.153985023499
    Job: 1 Convert book 1 of 1 (Untouchables: Dirty cops, bent justice and racism in Scotland Yard (Bloomsbury Reader)) finished
    Convert book 1 of 1 (Untouchables: Dirty cops, bent justice and racism in Scotland Yard (Bloomsbury Reader))
    Resolved conversion options
    calibre version: 2.67.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/32/c8lcb32n4ml1b2skdbwbm3qh0000gn/C/calibre_2.67.0_tmp_ICNH1h/vA3FSF.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’: <calibre.customize.profiles.InputProfile object at 0x10bcd0710>,
    ‘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’: <calibre.customize.profiles.KindleOutput object at 0x10bcd0dd0>,
    ‘page_breaks_before’: u”//*[name()=’h1′ or name()=’h2′]”,
    ‘prefer_metadata_cover’: False,
    ‘preserve_cover_aspect_ratio’: False,
    ‘pretty_print’: True,
    ‘pubdate’: None,
    ‘publisher’: None,
    ‘rating’: None,
    ‘read_metadata_from_opf’: u’/var/folders/32/c8lcb32n4ml1b2skdbwbm3qh0000gn/C/calibre_2.67.0_tmp_ICNH1h/JI5bnb.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}
    Python function terminated unexpectedly: Untouchables: Dirty cops, bent justice and racism in Scotland Yard (Bloomsbury Reader)
    InputFormatPlugin: MOBI Input running
    on /var/folders/32/c8lcb32n4ml1b2skdbwbm3qh0000gn/C/calibre_2.67.0_tmp_ICNH1h/ZrsXfA.azw3
    Found KF8 MOBI of type ‘standalone’
    Traceback (most recent call last):
    File “/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py”, line 154, 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 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: Untouchables: Dirty cops, bent justice and racism in Scotland Yard (Bloomsbury Reader)

      • Thanks Paul. And there it is! I feel like a right clown now. There are about half a dozen Kindles in our family and I’ve just discovered there was one that had escaped the plugin preferences. That was the one it was downloaded to in Amazon – problem fixed. Thanks for taking the time and I will go away to put a cold flannel on my red face.

  4. Hi
    I cant get the books to drm in Calibre . Ive tried everything. Heres the log as requested. Can you help??
    calibre Debug log
    calibre 2.67 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’)
    Successfully initialized third party plugins: DeDRM (6, 5, 1)
    devicePixelRatio: 1.0
    logicalDpi: 96.0 x 96.0
    physicalDpi: 100.861627907 x 100.55257732
    Starting up…
    Started up in 56.99 seconds with 25 books
    stdout+stderr from file dialog helper: [”, ”]
    piped data from file dialog helper: [‘\xfaz\xca\xef\xcd\x80Dc\x85\xfd\xcf\t\xa5\xd2)\x0e\xe2\x13\x86Y\xb0\xc0\x84\x17\xafSk\xe6G\xfaIc’, ‘C:\Users\Paul\Downloads\Beholden (The Salvation Series Book 2).azw3’]
    DeDRM v6.5.1: Trying to decrypt Beholden (The Salvation Series Book 2).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: Beholden (The Salvation Series Book 2)
    Found 0 keys to try after 0.9 seconds
    Crypto Type is: 2
    DeDRM v6.5.1: Failed to decrypt with error: No key found in 0 keys tried.
    DeDRM v6.5.1: Looking for new default Kindle Key after 0.9 seconds
    searching for kinfoFiles in C:\Users\Paul\AppData\Local
    No K4PC kindle.info/kinf/kinf2011 files have been found.
    DeDRM v6.5.1: Ultimately failed to decrypt after 0.9 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 608, in run
    File “calibre_plugins.dedrm.init“, line 558, in KindleMobiDecrypt
    DeDRMError: DeDRM v6.5.1: Ultimately failed to decrypt after 0.9 seconds
    Added Beholden (The Salvation Series Book 2) to db in: 2.1
    Added 1 books in 4.2 seconds
    Worker Launch took: 0.322000026703
    Job: 1 Convert book 1 of 1 (Beholden (The Salvation Series Book 2)) finished
    Convert book 1 of 1 (Beholden (The Salvation Series Book 2))
    Resolved conversion options
    calibre version: 2.67.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\Paul\AppData\Local\Temp\calibre_mq6sfl\ovnrnf.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’: <calibre.customize.profiles.InputProfile object at 0x035C6B90>,
    ‘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’: <calibre.customize.profiles.KindlePaperWhiteOutput object at 0x035C6F50>,
    ‘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\Paul\AppData\Local\Temp\calibre_mq6sfl\v4w9ur.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,
    ‘transform_css_rules’: ‘[]’,
    ‘unsmarten_punctuation’: False,
    ‘unwrap_lines’: True,
    ‘use_auto_toc’: False,
    ‘verbose’: 2}
    InputFormatPlugin: MOBI Input running
    on C:\Users\Paul\AppData\Local\Temp\calibre_mq6sfl\2weq3p.azw3
    Found KF8 MOBI of type ‘standalone’
    Python function terminated unexpectedly
    Beholden (The Salvation Series Book 2) (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: Beholden (The Salvation Series Book 2)

    • If the book is from/for an E-ink Kindle, then you need to enter its serial number into the plugin customization. Otherwise, install Kindle for PC and import your book from there.

      • Many thanks. I suddenly realised after reading the other post too that the serial number was missing. Appreciate the help!Working fine now.

  5. The Cricket in Time Square will not unlock. Can you help?
    calibre 2.67 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, 5, 1)
    devicePixelRatio: 1.0
    logicalDpi: 96.0 x 96.0
    physicalDpi: 71.9842323651 x 71.9822878229
    Starting up…
    Started up in 7.17 seconds with 1 books
    stdout+stderr from file dialog helper: [”, ”]
    piped data from file dialog helper: [‘\x9c[\xf6G\x91\x13p\xdco\xa1\xba\xc0u\x89\x9e#\x9f\x7f\x1cn\xda\x889\xa2M@\xaa\xda\x0b\x02\x03\x9b’, ‘C:\Users\usuario\Downloads\The Cricket in Times Square (Chester Cricket and His Friends Book 1).azw3’]
    DeDRM v6.5.1: Trying to decrypt The Cricket in Times Square (Chester Cricket and His Friends Book 1).azw3
    Using Library AlfCrypto DLL/DYLIB/SO
    MobiDeDrm v0.41.
    Copyright © 2008-2012 The Dark Reverser et al.
    MOBI header version 8, header length 264
    Extra Data Flags: 3
    Decrypting Kindle Format 8 ebook: The Cricket in Times Square (Chester Cricket and His Friends Book 1)
    Found 0 keys to try after 0.4 seconds
    Crypto Type is: 2
    DeDRM v6.5.1: Failed to decrypt with error: No key found in 0 keys tried.
    DeDRM v6.5.1: Looking for new default Kindle Key after 0.4 seconds
    searching for kinfoFiles in C:\Users\usuario\AppData\Local
    No K4PC kindle.info/kinf/kinf2011 files have been found.
    DeDRM v6.5.1: 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 608, in run
    File “calibre_plugins.dedrm.init“, line 558, in KindleMobiDecrypt
    DeDRMError: DeDRM v6.5.1: Ultimately failed to decrypt after 0.4 seconds
    C:\Program Files (x86)\Calibre2\pylib.zip\dateutil\parser.py:339: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode – interpreting them as being unequal
    Added The Cricket in Times Square (Chester Cricket and His Friends Book 1) to db in: 1.5
    Added 1 books in 2.7 seconds
    Worker Launch took: 0.234000205994
    Job: 1 Convert book 1 of 1 (The Cricket in Times Square (Chester Cricket and His Friends Book 1)) finished
    Convert book 1 of 1 (The Cricket in Times Square (Chester Cricket and His Friends Book 1))
    C:\Program Files (x86)\Calibre2\pylib.zip\dateutil\parser.py:339: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode – interpreting them as being unequal
    Resolved conversion options
    calibre version: 2.67.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\usuario\AppData\Local\Temp\calibre_uchxlk\0_j7q2.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’: <calibre.customize.profiles.InputProfile object at 0x04432D10>,
    ‘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’: <calibre.customize.profiles.KindleDXOutput object at 0x0443B0B0>,
    ‘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’MS Shell Dlg 2′,
    ‘pdf_serif_family’: u’Times New Roman’,
    ‘pdf_standard_font’: u’serif’,
    ‘prefer_metadata_cover’: False,
    ‘preserve_cover_aspect_ratio’: False,
    ‘pretty_print’: False,
    ‘pubdate’: None,
    ‘publisher’: None,
    ‘rating’: None,
    ‘read_metadata_from_opf’: u’C:\Users\usuario\AppData\Local\Temp\calibre_uchxlk\8c_6hv.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’: ‘[]’,
    ‘uncompressed_pdf’: False,
    ‘unit’: u’inch’,
    ‘unsmarten_punctuation’: False,
    ‘unwrap_lines’: True,
    ‘use_auto_toc’: False,
    ‘verbose’: 2}
    InputFormatPlugin: MOBI Input running
    on C:\Users\usuario\AppData\Local\Temp\calibre_uchxlk\g2efim.azw3
    Found KF8 MOBI of type ‘standalone’
    Python function terminated unexpectedly
    The Cricket in Times Square (Chester Cricket and His Friends Book 1) (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: The Cricket in Times Square (Chester Cricket and His Friends Book 1)

  6. DRM still there with 6.5.1 trying with a specific Kindle book. (Windows 10 64 bits)
    Here is the log :
    calibre Journal de débogage
    calibre 2.67 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’)
    Successfully initialized third party plugins: DeDRM (6, 5, 1)
    devicePixelRatio: 1.0
    logicalDpi: 96.0 x 96.0
    physicalDpi: 128.0 x 128.186915888
    Starting up…
    Started up in 7.61 seconds with 2399 books
    stdout+stderr from file dialog helper: [”, ”]
    piped data from file dialog helper: [‘] \xd7\xb7\x94g\x16\xcfU\x1a\xfa\xe09\xaeTF#\x97,\x9d\x8aN>\x0f9M\x11%|\x9d%\xf6’, ‘C:\Users\Andr\xc3\xa9\Documents\My Kindle Content\B00A5V5MFC_EBOK.azw’]
    DeDRM v6.5.1: Trying to decrypt B00A5V5MFC_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: 55 Contes et Nouvelles d’Anatole France (French Edition)
    Found 4 keys to try after 0.1 seconds
    Crypto Type is: 2
    DeDRM v6.5.1: Failed to decrypt with error: No key found in 4 keys tried.
    DeDRM v6.5.1: Looking for new default Kindle Key after 0.1 seconds
    searching for kinfoFiles in C:\Users\Andr\AppData\Local
    Found K4PC 1.9+ kinf2011 file: C:\Users\Andr\AppData\Local\Amazon\Kindle\storage.kinf2011
    Decrypted key file using IDString ‘2191871387’ and UserName ‘416e6472e9’
    DeDRM v6.5.1: 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: 55 Contes et Nouvelles d’Anatole France (French Edition)
    Found 4 keys to try after 0.1 seconds
    Crypto Type is: 2
    DeDRM v6.5.1: 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 608, in run
    File “calibre_plugins.dedrm.init“, line 558, in KindleMobiDecrypt
    DeDRMError: DeDRM v6.5.1: Ultimately failed to decrypt after 0.1 seconds
    C:\Program Files (x86)\Calibre2\pylib.zip\dateutil\parser.py:339: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode – interpreting them as being unequal
    Added 55 Contes et Nouvelles d’Anatole France (French Edition) to db in: 2.4
    Added 1 books in 3.1 seconds
    Worker Launch took: 0.172000169754
    Worker Launch took: 0.171999931335
    Job: 2 Conversion du livre 1 sur 1 (55 Contes et Nouvelles d’Anatole France (French Edition)) finished
    Conversion du livre 1 sur 1 (55 Contes et Nouvelles d’Anatole France (French Edition))
    C:\Program Files (x86)\Calibre2\pylib.zip\dateutil\parser.py:339: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode – interpreting them as being unequal
    Resolved conversion options
    calibre version: 2.67.0
    {‘asciiize’: False,
    ‘author_sort’: None,
    ‘authors’: None,
    ‘base_font_size’: 0.0,
    ‘book_producer’: None,
    ‘change_justification’: u’justify’,
    ‘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\ANDR~1\AppData\Local\Temp\calibre_dqolxz\wwktfk.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’: <calibre.customize.profiles.InputProfile object at 0x04B66F90>,
    ‘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’: <calibre.customize.profiles.GenericEink object at 0x04B581B0>,
    ‘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\ANDR~1\AppData\Local\Temp\calibre_dqolxz\ylu_qt.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\ANDR~1\AppData\Local\Temp\calibre_dqolxz\fb9p53.azw
    Found KF8 MOBI of type ‘standalone’
    Python function terminated unexpectedly
    55 Contes et Nouvelles d’Anatole France (French Edition) (Error Code: 1)
    Traceback (most recent call last):
    File “site.py”, line 132, in main
    File “site.py”, line 109, in run_entry_point
    File “site-packages\calibre\utils\ipc\worker.py”, line 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: 55 Contes et Nouvelles d’Anatole France (French Edition)

    Thanks for your efforts

    • There’s a known bug that causes DeDRM to fail when there’s a special character in the Windows user name. A work-around would be to create a new Windows user without any special characters and install Kindle for PC and calibre with the plugin there.

      • Thank you for your answer. I tried in the same conditions with my wife’s computer (no special character in the Windows user name) and it worked perfectly.
        Many thanks again

  7. I tried to decrypt books, however it didn’t work. I use Adobe Digital Editions 2.0.1.78765 and Calibre Portable 2.63.0. I also tried Calibre 2.67.0, same result. I think the most significant line in here is >>ADEPTError: Failed to decrypt user key key (sic)<<, but I don’t know how to help myself. Can you help? Thanks

    Jochy

    C:\Program Files (x86)\Calibre2>calibre-debug.exe -g
    calibre 2.67 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, 5, 1) && Obok DeDRM (6, 3, 6)
    devicePixelRatio: 1.0
    logicalDpi: 120.0 x 120.0
    physicalDpi: 176.695652174 x 175.846153846
    Starting up…
    DEBUG: 0.0 obok::utilities.py – loading translations
    DEBUG: 0.0 obok::dialogs.py – loading translations
    DEBUG: 0.0 obok::config.py – loading translations
    DEBUG: 0.0 obok::action_err.py – loading translations
    Started up in 2.90 seconds with 3 books
    DeDRM v6.5.1: Trying to decrypt DuMont Reiseabenteuer Die Suche nach Indien.epub
    DeDRM v6.5.1: Verifying zip archive integrity
    DeDRM v6.5.1: DuMont Reiseabenteuer Die Suche nach Indien.epub is a secure Adobe Adept ePub
    DeDRM v6.5.1: Looking for new default Adobe Digital Editions Keys after 0.4 seconds
    DeDRM v6.5.1: Exception when getting default Adobe Key after 0.4 seconds
    Traceback (most recent call last):
    File “calibre_plugins.dedrm.init“, line 335, in ePubDecrypt
    File “calibre_plugins.dedrm.adobekey”, line 378, in adeptkeys
    File “calibre_plugins.dedrm.adobekey”, line 358, in CryptUnprotectData
    ADEPTError: Failed to decrypt user key key (sic)
    DeDRM v6.5.1: 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 619, in run
    File “calibre_plugins.dedrm.init“, line 390, in ePubDecrypt
    DeDRMError: DeDRM v6.5.1: Ultimately failed to decrypt after 0.4 seconds.
    C:\Program Files (x86)\Calibre2\pylib.zip\dateutil\parser.py:339: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode – interpreting them as being unequal
    C:\Program Files (x86)\Calibre2\pylib.zip\dateutil\parser.py:339: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode – interpreting them as being unequal
    Added DuMont Reiseabenteuer Die Suche nach Indien to db in: 1.2
    Added 1 books in 2.6 seconds
    Worker Launch took: 0.283999919891

    C:\Program Files (x86)\Calibre2>calibre-debug.exe -g
    calibre 2.67 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, 5, 1) && Obok DeDRM (6, 3, 6)
    devicePixelRatio: 1.0
    logicalDpi: 120.0 x 120.0
    physicalDpi: 176.695652174 x 175.846153846
    Starting up…
    DEBUG: 0.0 obok::utilities.py – loading translations
    DEBUG: 0.0 obok::dialogs.py – loading translations
    DEBUG: 0.0 obok::config.py – loading translations
    DEBUG: 0.0 obok::action_err.py – loading translations
    Started up in 2.68 seconds with 0 books
    DeDRM v6.5.1: Trying to decrypt DuMont Reiseabenteuer Die Suche nach Indien.epub
    DeDRM v6.5.1: Verifying zip archive integrity
    DeDRM v6.5.1: DuMont Reiseabenteuer Die Suche nach Indien.epub is a secure Adobe Adept ePub
    DeDRM v6.5.1: Looking for new default Adobe Digital Editions Keys after 0.4 seconds
    DeDRM v6.5.1: Exception when getting default Adobe Key after 0.4 seconds
    Traceback (most recent call last):
    File “calibre_plugins.dedrm.init“, line 335, in ePubDecrypt
    File “calibre_plugins.dedrm.adobekey”, line 378, in adeptkeys
    File “calibre_plugins.dedrm.adobekey”, line 358, in CryptUnprotectData
    ADEPTError: Failed to decrypt user key key (sic)
    DeDRM v6.5.1: 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 619, in run
    File “calibre_plugins.dedrm.init“, line 390, in ePubDecrypt
    DeDRMError: DeDRM v6.5.1: Ultimately failed to decrypt after 0.4 seconds.
    C:\Program Files (x86)\Calibre2\pylib.zip\dateutil\parser.py:339: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode – interpreting them as being unequal
    C:\Program Files (x86)\Calibre2\pylib.zip\dateutil\parser.py:339: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode – interpreting them as being unequal
    Added DuMont Reiseabenteuer Die Suche nach Indien to db in: 1.1
    Added 1 books in 2.5 seconds
    Worker Launch took: 0.308000087738

  8. I’m sorry if this has already been addressed, but I can’t figure out how to search tho comments.

    I’m running ubuntu 14.04lts on my laptop, and have successfully used de drm after downloading my books with adobe digital editions and kindle. Today when I tried to open my kindle app, it wouldn’t open. I uninstalled, downloaded the latest kindle app version, and tried reinstalling with wine. The dialogue box said that it was unpacking for the installation, but then would close the installer, without having installed the app. Does anyone have any suggestions on how to install the kindle app? Alternatively, is there any other way to download the book to open up in calibre?

    Thanks

    • If you have an E-ink Kindle, you can download your books from the Amazon website. These can be DeDRMed when you enter the Kindle’s serial number into the plugin customization.

  9. Does anyone know if DeDRM along with ADE 2.0 will work with EPUB 3 (Adobe DRM) from Kobo.

    I recall (correctly I hope) that a previous post mentioned that the current Obok plugin does not work with the new version of the Kobo PC app. I don’t want to buy the book and have no way of DeDRM it. So, please, anyone?

    Thanks

  10. Hi … I am having a problem with drm on books in my new installation of Kindle for PC in PlayOnLinux on my Xubuntu 16.04 box. Here is the file from my Calibre run in debug mode:
    brashley46@rossdesktop2:~$ calibre-debug –gui
    calibre 2.68 embedded-python: True is64bit: False
    Linux-4.4.0-36-generic-i686-athlon-with-debian-stretch-sid Linux (’32bit’, ‘ELF’)
    (‘Linux’, ‘4.4.0-36-generic’, ‘#55-Ubuntu SMP Thu Aug 11 18:00:59 UTC 2016’)
    Python 2.7.9
    Linux: (‘debian’, ‘stretch/sid’, ”)
    Successfully initialized third party plugins: DeDRM (6, 5, 1) && Webscription (1, 1, 0) && FanFicFare (2, 3, 6) && Goodreads (1, 1, 11) && Fantastic Fiction (1, 1, 6) && Quality Check (1, 9, 11) && Fantastic Fiction Adults (1, 0, 4) && EpubMerge (2, 0, 14) && Goodreads Sync (1, 9, 0) && Modify ePub (1, 3, 13)

    (calibre-debug:27042): Gtk-WARNING **: GModule (/usr/lib/i386-linux-gnu/gtk-2.0/2.10.0/immodules/im-ibus.so) initialization check failed: GLib version too old (micro mismatch)

    (calibre-debug:27042): Gtk-WARNING **: Loading IM context type ‘ibus’ failed

    (calibre-debug:27042): Gtk-WARNING **: GModule (/usr/lib/i386-linux-gnu/gtk-2.0/2.10.0/immodules/im-ibus.so) initialization check failed: GLib version too old (micro mismatch)

    (calibre-debug:27042): Gtk-WARNING **: Loading IM context type ‘ibus’ failed

    (calibre-debug:27042): Gtk-WARNING **: GModule (/usr/lib/i386-linux-gnu/gtk-2.0/2.10.0/immodules/im-ibus.so) initialization check failed: GLib version too old (micro mismatch)

    (calibre-debug:27042): Gtk-WARNING **: Loading IM context type ‘ibus’ failed
    devicePixelRatio: 1.0
    logicalDpi: 96.0 x 96.0
    physicalDpi: 89.6470588235 x 89.6470588235
    Starting up…
    Failed to load recipe from: u’Unknown News Source_1000.recipe’
    Traceback (most recent call last):
    File “site-packages/calibre/web/feeds/recipes/collection.py”, line 110, in get_custom_recipe_collection
    IOError: [Errno 2] No such file or directory: u’/home/brashley46/.config/calibre/custom_recipes/Unknown News Source_1000.recipe’
    FFF: DEBUG: 2016-09-17 12:56:57,945: calibre_plugins.fanficfare_plugin.fff_plugin(208): Plugin FanFicFare macmenuhack file_path:/home/brashley46/.config/calibre/plugins/fanficfare_macmenuhack.txt
    EpubMerge: DEBUG: 2016-09-17 12:56:58,018: calibre_plugins.epubmerge.epubmerge_plugin(152): macmenuhack file_path:/home/brashley46/.config/calibre/plugins/fanficfare_macmenuhack.txt
    HttpHelper::init: proxy=None
    Started up in 12.32 seconds with 4104 books
    DeDRM v6.5.1: Trying to decrypt B018ZZQMQ2_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: Revolution: The Ship Series // Book Two
    Found 16 keys to try after 0.2 seconds
    Crypto Type is: 2
    DeDRM v6.5.1: Failed to decrypt with error: No key found in 16 keys tried.
    DeDRM v6.5.1: Looking for new default Kindle Key after 0.2 seconds
    DeDRM v6.5.1: Running kindlekey.py under Wine
    DeDRM v6.5.1: Command line: ‘WINEPREFIX=”/home/brashley46/.PlayOnLinux/wineprefix/amazonkindle/drive_c/Program Files/Amazon” wine python.exe “/home/brashley46/.config/calibre/plugins/DeDRM/libraryfiles/kindlekey.py” “/home/brashley46/.config/calibre/plugins/DeDRM/libraryfiles/winekeysdir”‘
    wine: cannot find L”C:\windows\system32\python.exe”
    DeDRM v6.5.1: Found and decrypted 0 key files
    DeDRM v6.5.1: Ultimately failed to decrypt after 7.9 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 608, in run
    File “calibre_plugins.dedrm.init“, line 558, in KindleMobiDecrypt
    DeDRMError: DeDRM v6.5.1: Ultimately failed to decrypt after 7.9 seconds
    Added Revolution: The Ship Series // Book Two to db in: 3.7
    Added 1 books in 13.0 seconds
    Could not parse file “/home/brashley46/.local/share/applications/GenJ Homepage-1403397168652.desktop”: Key file contains unsupported encoding ”
    Could not parse file “/home/brashley46/.local/share/applications/Uninstall GenJ-1403397168655.desktop”: Key file contains unsupported encoding ”
    Could not parse file “/home/brashley46/.local/share/applications/Genealogy J-1403397168634.desktop”: Key file contains unsupported encoding ”
    QXcbWindow: Unhandled client message: “_GTK_LOAD_ICONTHEMES”
    brashley46@rossdesktop2:~$

    • The usual problem of Wine not finding the python executable. I think it must be in the FAQs by now.

      You need to execute

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

      somehow.

  11. Hi,

    I’m using Windows 10 64 Bit installed with Kindle Desktop. I’m using the latest plugin 6.5.1. Thanks!

    calibre, version 2.68.0 (win32, embedded-python: True)
    Conversion Error: Failed: Convert book 1 of 1 (Practical Research: Planning and Design)

    Convert book 1 of 1 (Practical Research: Planning and Design)
    Resolved conversion options
    calibre version: 2.68.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\PAULEI~1\AppData\Local\Temp\calibre_byv4lh\ezwpkx.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’: <calibre.customize.profiles.InputProfile object at 0x045890D0>,
    ‘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’: <calibre.customize.profiles.GenericEink object at 0x045892D0>,
    ‘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’MS Shell Dlg 2′,
    ‘pdf_serif_family’: u’Times New Roman’,
    ‘pdf_standard_font’: u’serif’,
    ‘prefer_metadata_cover’: False,
    ‘preserve_cover_aspect_ratio’: False,
    ‘pretty_print’: False,
    ‘pubdate’: None,
    ‘publisher’: None,
    ‘rating’: None,
    ‘read_metadata_from_opf’: u’C:\Users\PAULEI~1\AppData\Local\Temp\calibre_byv4lh\bi6d05.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’: ‘[]’,
    ‘uncompressed_pdf’: False,
    ‘unit’: u’inch’,
    ‘unsmarten_punctuation’: False,
    ‘unwrap_lines’: True,
    ‘use_auto_toc’: False,
    ‘verbose’: 2}
    Python function terminated unexpectedly
    No embedded PDF found in AZW4 file (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 1046, in run
    File “site-packages\calibre\ebooks\azw4\reader.py”, line 23, in unwrap
    ValueError: No embedded PDF found in AZW4 file

  12. Sorry but this is coming from a computer noob. I’ve been trying to load dedrm 6.5.1 plugin into Calibre 2.68 and keep getting the following error message:

    calibre, version 2.68.0
    ERROR: Unhandled exception: InvalidPlugin:The plugin in u’C:\Users\pwrgrl\Downloads\DeDRM_tools-6.5.1.zip’ is invalid. It does not contain a top-level init.py file

    calibre 2.68 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’)
    Successfully initialized third party plugins: K4PC, K4Mac, Kindle Mobi and Topaz DeDRM (0, 3, 7) && Inept Epub DeDRM (0, 1, 7) && Kindle Collections (1, 7, 17) && Find Duplicates (1, 6, 2) && Inept PDF DeDRM (0, 1, 4) && Barnes & Noble (1, 2, 14) && KindleUnpack – The Plugin (0, 81, 2) && Quality Check (1, 9, 11) && Goodreads (1, 1, 11) && Copy Cover To Device (2, 0, 0) && eReader PDB 2 PML (0, 0, 5) && Modify ePub (1, 3, 13)
    Traceback (most recent call last):
    File “site-packages\calibre\gui2\preferences\plugins.py”, line 315, 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’C:\Users\pwrgrl\Downloads\DeDRM_tools-6.5.1.zip’ is invalid. It does not contain a top-level init.py file

    This is the first time I tried to dedrm a book since installing Windows 10 and ran into problems. I followed the readme and updated Python and PyCrypto apps. Any helpful suggestions would be much appreciated.

    • The Readme does not tell you to install Python and PyCrypto if you’re going to be using calibre and the plugin. It won’t hurt to do so, but it won’t help either.

      Reading the FAQs will help: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md

      Especially the very first one about installing the plugin which says:

      “I am trying to install the calibre plugin, but calibre says “ERROR: Unhandled exception: InvalidPlugin: The plugin in u’[path]DeDRM_tools_6.4.3.zip’ is invalid. It does not contain a top-level init.py file”

      You are trying to add the tools archive (e.g. DeDRM_tools_6.4.3.zip) instead of the plugin. The tools archive is not the plugin. It is a collection of DRM removal tools which includes the plugin. You must unzip the archive, and install the calibre plugin (DeDRM_plugin.zip) from a folder called “DeDRM_calibre_plugin” in the unzipped archive.”

      • Thank you! I did read the FAQs but I must have been doing it wrong. Finally did get it to and hopefully will work once I customize. Thanks for the help!

  13. Hi,

    I could not remove the DRM for a recent purchase from Amazon. I had other Kindle for Mac books and could convert them to DRM free books with DeDRM plug-in. I wonder what went wrong for this one. For info: I have recently upgraded to MacOS El Capitan.

    Here’s the log:

    calibre Debug log
    calibre 2.64 embedded-python: True is64bit: True
    Darwin-15.6.0-x86_64-i386-64bit Darwin (’64bit’, ”)
    (‘Darwin’, ‘15.6.0’, ‘Darwin Kernel Version 15.6.0: Mon Aug 29 20:21:34 PDT 2016; root:xnu-3248.60.11~1/RELEASE_X86_64’)
    Python 2.7.11
    OSX: (‘10.11.6’, (”, ”, ”), ‘x86_64’)
    Successfully initialized third party plugins: DeDRM (6, 5, 1)
    Starting up…
    Started up in 2.94 seconds with 131 books
    2016-09-21 02:18:05.501 calibre-debug[29556:5500126] Bad cursor rect event, flags = 256
    DeDRM v6.5.1: Trying to decrypt B00K7ED54M_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: Sapiens: A Brief History of Humankind
    Found 4 keys to try after 0.1 seconds
    Crypto Type is: 2
    DeDRM v6.5.1: Failed to decrypt with error: No key found in 4 keys tried.
    DeDRM v6.5.1: Looking for new default Kindle Key after 0.1 seconds
    Found k4Mac kinf2011 file: /Users/mingyeungcheung/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2011
    Couldn’t decrypt file.
    DeDRM v6.5.1: Ultimately failed to decrypt after 2.9 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 608, in run
    File “calibre_plugins.dedrm.init“, line 558, in KindleMobiDecrypt
    DeDRMError: DeDRM v6.5.1: Ultimately failed to decrypt after 2.9 seconds

    Thanks!

  14. Hi Paul,

    Since I got a new Windows notebook a couple of months ago, I haven’t been able to strip DRM from Kindle books I’ve bought and downloaded via KIndle for PC. No problems if I download via my Paperwhite. I’ve used Calibre for years and have never encountered this. I have the latest Python and PyCrypto installed. This is the latest debug file:

    calibre Debug log
    calibre 2.68 [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’)
    Successfully initialized third party plugins: DeDRM (6, 5, 1)
    devicePixelRatio: 1.0
    logicalDpi: 96.0 x 96.0
    physicalDpi: 100.861627907 x 100.55257732
    Starting up…
    Started up in 18.87 seconds with 2904 books
    stdout+stderr from file dialog helper: [”, ”]
    piped data from file dialog helper: [‘)\xaa\xf2E\xaf\x15dEX\x1f.\xe5c](\xd57\xb5\x10\xd8\x01\x19\x81f;\x92&\x13\xd9&\xb1t’, ‘C:\Users\acero\Documents\My Kindle Content\B00NOPQU2K_EBOK.azw’]
    DeDRM v6.5.1: Trying to decrypt B00NOPQU2K_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: The Girl on the Train
    Found 2 keys to try after 0.3 seconds
    Crypto Type is: 2
    DeDRM v6.5.1: Failed to decrypt with error: No key found in 2 keys tried.
    DeDRM v6.5.1: Looking for new default Kindle Key after 0.3 seconds
    searching for kinfoFiles in C:\Users\acero\AppData\Local
    Found K4PC 1.9+ kinf2011 file: C:\Users\acero\AppData\Local\Amazon\Kindle\storage.kinf2011
    Decrypted key file using IDString ‘2393991717’ and UserName ‘616365726f6e’
    DeDRM v6.5.1: 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: The Girl on the Train
    Found 4 keys to try after 0.3 seconds
    Crypto Type is: 2
    DeDRM v6.5.1: Ultimately failed to decrypt after 0.3 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 608, in run
    File “calibre_plugins.dedrm.init“, line 558, in KindleMobiDecrypt
    DeDRMError: DeDRM v6.5.1: Ultimately failed to decrypt after 0.3 seconds
    Added The Girl on the Train to db in: 1.6
    Added 1 books in 2.7 seconds

    • Does your Windows user name contain any special characters? If so, try creating another user without special characters and installing calibre, the plugin, and Kindle for PC there. If not, then see the FAQs about completely uninstalling Kindle for PC and deleting its associated folders. (You don’t need to have Python or Pycrypto installed if you’re using the plugin on Windows.)

      • Thanks for your reply, Laura.

        The solution hit me in the head when I was following the procedure in the FAQs to deregister Kindle for PC. It turned out I still had the K4PC for my old computer still registered and that’s where newly-purchased books were being sent. /facepalm

        I feel silly but at least the problem’s solved.

        Cheers.

  15. This is a disappointing piece of software to say the least. Most are having no end of problems with this plugin. I am Win 10/Kindle and Calibre all the latest updates. Followed all the directions and nothing. deleted, re-downloaded, etc., etc., etc. There has to be a better tool out there, or learn to live with DRM. I am not taking half a day dismantling my installations and rebuilding them only to see this app FAIL again. Send me a note when you get it ready for prime time. In the meantime I will use my paypal account for a valid solution.

    • I’m sorry you had problems. While it might seem from the comments that lots of people have problems, FAR more have no problems at all.

      And you have clearly not followed the directions to post a log if you have difficulties.

    • Teresa,

      you’re being a bit tough ((way over the top actually) with your comment. I’ve been using this for years and the only problem I’ve had was a silly error this week that was all my fault. Follow the instructions and enjoy. It’s one of the most useful tools available on the Internet in that vast sea of garbage.

    • This is a very odd post. I can see finding the software disappointing, this happens with software frequently. However, your statement that “most are having no end of problems” is curious. Have you polled a representative sample of all the users? If you are basing your evaluation of “most” on the content of a blog string devoted to solving problems I think you are making a considerable leap.

      I hope you have a better day and do locate a solution that is more to your needs. As for me, I will continue to use these tools as I have for the past several years. If I have another problem, which will make a grand total of TWO, I will come back here for the assistance that is freely offered by as gracious and responsive a group of people I have encountered.

    • Teresa dear. . .,
      Could it be you haven’t read the instructions properly? Like many, many others I’ve been using this tool for quite a while now. The first time I thought what the . .. .? It didn’t work. Well, yes it didn’t work because I did not follow the instructions. A couple years or more later, I can say, there is no other tool like this one. Guess what? It’s free and it even works on Linux -but that’s another story.

      Post an output log the the patient and wonderful people who volunteer their time here will help you out.

    • It’s not the DeDRM software; it is Windows 10. People who have never had problems before with earlier versions of Windows are getting them after downgrading to Windows 10.

    • I could not be happier with the tools, had a small problem at first but was helped throughout and the problem was resolved. These are wonderful tools and I’m so thankful that a terrible injustice to all of us who love reading and purchase many ebooks has been dealt with.

  16. Bought ebook on Amazon so I could read on my Kindle. The site warned me that I had no devices that could read it but I did not believe it. I am now able to read the book I bought with the Amazon device I use. Thank you for this work.

  17. Conversion once worked then had to reinstall kindle on wine and the newly downloaded book does not convert anymore for DRM issues, even if it opens using kindle.

    Here is the log on debug mode. Many thanks for the attention. Best

    Unable to open ~/.mtpz-data for reading, MTPZ disabled.
    Traceback (most recent call last):
    File “/usr/lib/calibre/calibre/gui2/notify.py”, line 74, in call
    timeout)
    File “/usr/lib/python2.7/dist-packages/dbus/proxies.py”, line 70, in call
    return self._proxy_method(*args, **keywords)
    File “/usr/lib/python2.7/dist-packages/dbus/proxies.py”, line 145, in __call__
    **keywords)
    File “/usr/lib/python2.7/dist-packages/dbus/connection.py”, line 651, in call_blocking
    message, timeout)
    DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name :1.65 was not provided by any .service files
    calibre Debug log
    calibre 2.5 isfrozen: False is64bit: True
    Linux-4.1.13-6.pvops.qubes.x86_64-x86_64-with-debian-8.6 Linux (’64bit’, ‘ELF’)
    (‘Linux’, ‘4.1.13-6.pvops.qubes.x86_64’, ‘#1 SMP Sun Nov 29 15:08:16 UTC 2015’)
    Python 2.7.9
    Linux: (‘debian’, ‘8.6’, ”)
    Successfully initialized third party plugins: DeDRM
    Starting up…
    Started up in 155.95 seconds with 10 books
    Worker Launch took: 0.155915975571
    Job: 1 Read metadata (0 of 1) finished
    Read metadata (0 of 1)
    DeDRM v6.5.1: Trying to decrypt B009Y92L00_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: Buzzing Communities
    Found 4 keys to try after 0.1 seconds
    Crypto Type is: 2
    DeDRM v6.5.1: Failed to decrypt with error: No key found in 4 keys tried.
    DeDRM v6.5.1: Looking for new default Kindle Key after 0.1 seconds
    DeDRM v6.5.1: Running kindlekey.py under Wine
    DeDRM v6.5.1: Command line: ‘WINEPREFIX=”/home/user” wine python.exe “/home/user/.config/calibre/plugins/DeDRM/libraryfiles/kindlekey.py” “/home/user/.config/calibre/plugins/DeDRM/libraryfiles/winekeysdir”‘
    wine: configuration in ‘/home/user’ has been updated.
    wine: cannot find L”C:\windows\system32\python.exe”
    DeDRM v6.5.1: Found and decrypted 0 key files
    DeDRM v6.5.1: Ultimately failed to decrypt after 4.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 “/usr/lib/calibre/calibre/customize/ui.py”, line 154, in _run_filetype_plugins
    nfp = plugin.run(path_to_file)
    File “calibre_plugins.dedrm.__init__”, line 608, in run
    File “calibre_plugins.dedrm.__init__”, line 558, in KindleMobiDecrypt
    DeDRMError: DeDRM v6.5.1: Ultimately failed to decrypt after 4.2 seconds

    Added B009Y92L00_EBOK.azw to db in: 0.112905979156 seconds
    Worker Launch took: 0.14847111702
    Job: 2 Read metadata (0 of 1) finished
    Read metadata (0 of 1)
    DeDRM v6.5.1: Trying to decrypt B009Y92L00_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: Buzzing Communities
    Found 4 keys to try after 0.1 seconds
    Crypto Type is: 2
    DeDRM v6.5.1: Failed to decrypt with error: No key found in 4 keys tried.
    DeDRM v6.5.1: Looking for new default Kindle Key after 0.1 seconds
    DeDRM v6.5.1: Running kindlekey.py under Wine
    DeDRM v6.5.1: Command line: ‘WINEPREFIX=”/home/user” wine python.exe “/home/user/.config/calibre/plugins/DeDRM/libraryfiles/kindlekey.py” “/home/user/.config/calibre/plugins/DeDRM/libraryfiles/winekeysdir”‘
    wine: cannot find L”C:\windows\system32\python.exe”
    DeDRM v6.5.1: Found and decrypted 0 key files
    DeDRM v6.5.1: Ultimately failed to decrypt after 0.3 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 “/usr/lib/calibre/calibre/customize/ui.py”, line 154, in _run_filetype_plugins
    nfp = plugin.run(path_to_file)
    File “calibre_plugins.dedrm.init“, line 608, in run
    File “calibre_plugins.dedrm.init“, line 558, in KindleMobiDecrypt
    DeDRMError: DeDRM v6.5.1: Ultimately failed to decrypt after 0.3 seconds

    Added Buzzing Communities to db in: 1.69771885872 seconds
    Worker Launch took: 0.191177845001
    Job: 3 Convert book 1 of 1 (Buzzing Communities) finished
    Convert book 1 of 1 (Buzzing Communities)
    Resolved conversion options
    calibre version: 2.5.0
    {‘asciiize’: False,
    ‘author_sort’: None,
    ‘authors’: None,
    ‘base_font_size’: 0.0,
    ‘book_producer’: None,
    ‘change_justification’: u’original’,
    ‘chapter’: u”//[((name()=’h1′ or name()=’h2′) and re:test(., ‘\s((chapter|book|section|part)\s+)|((prolog|prologue|epilogue)(\s+|$))’, ‘i’)) or @class = ‘chapter’]”,
    ‘chapter_mark’: u’pagebreak’,
    ‘comments’: None,
    ‘cover’: u’/tmp/calib

    • Usual problem of wine not finding python.exe. You need to somehow run

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

      on your wine installation, and then import the generated key file into calibre

  18. Hello, I installed the latest version of the DeDRM tools (6.5.1) in Calibre 2.6.8 for Windows 10 (x64). After downgrading my Android Kindle app to version 4.17 I extracted the Android key as explained in the DeDRM help file and installed it. However I can’t remove the protection from a PRC file that I downloaded from the same device. Unfortunately I can’t open the book in the KIndle app for PC because it says that the book is not compatible with it, so I am not stuck. It’s a comics book and frankly reading it on my 7″ tablet is a pain in the ass… I would just like to read it on the PC.

    Any suggestions?

    Thanks!

  19. When I copy my files from windows explorer to my calibre library, the DRM stays (they aren’t unlocked). Here is the log:

    C:\Program Files (x86)\Calibre2>calibredb add “C:\Users\Félix\Documents\kindle books\B00CLUUAOS_EBOK.azw” Qt: Untested Windows version 10.0 detected! Kindle and Mobipocket DeDRM v0.4.19: Trying to decrypt B00CLUUAOS_EBOK.azw. Using Library AlfCrypto Python 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_plugins File “calibre_plugins.k4mobidedrm.init“, line 122, in run File “calibre_plugins.k4mobidedrm.init“, line 255, in config File “site-packages\calibre\customize\zipplugin.py”, line 179, in load_module File “calibre_plugins.k4mobidedrm.config”, line 4, in ImportError: No module named PyQt4.Qt Backing up metadata Ajouter les ids de livre : 109 Notifying calibre of the change C:\Program Files (x86)\Calibre2>

    I’m using v04.19 if it helps.

          • calibre Journal de débogage
            calibre 2.68 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’)
            Successfully initialized third party plugins: DeDRM (6, 5, 1)
            devicePixelRatio: 1.0
            logicalDpi: 120.0 x 120.0
            physicalDpi: 141.76744186 x 141.402061856
            Starting up…
            Started up in 25.30 seconds with 1 books
            DeDRM v6.5.1: Trying to decrypt B000QCS8TW_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: A Game of Thrones: A Song of Ice and Fire: Book One
            Found 0 keys to try after 0.1 seconds
            Crypto Type is: 2
            DeDRM v6.5.1: Failed to decrypt with error: No key found in 0 keys tried.
            DeDRM v6.5.1: Looking for new default Kindle Key after 0.1 seconds
            searching for kinfoFiles in C:\Users\Flix\AppData\Local
            Found K4PC 1.9+ kinf2011 file: C:\Users\Flix\AppData\Local\Amazon\Kindle\storage.kinf2011
            Decrypted key file using IDString ‘906928409’ and UserName ’46e96c6978′
            DeDRM v6.5.1: 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: A Game of Thrones: A Song of Ice and Fire: Book One
            Found 4 keys to try after 0.2 seconds
            Crypto Type is: 2
            DeDRM v6.5.1: 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_filetype_plugins
            File “calibre_plugins.dedrm.init“, line 608, in run
            File “calibre_plugins.dedrm.init“, line 558, in KindleMobiDecrypt
            DeDRMError: DeDRM v6.5.1: Ultimately failed to decrypt after 0.2 seconds
            C:\Program Files (x86)\Calibre2\pylib.zip\dateutil\parser.py:339: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode – interpreting them as being unequal
            Added A Game of Thrones: A Song of Ice and Fire: Book One to db in: 0.3
            Added 1 books in 1.1 seconds

            • Unfortunately, there’s a bug in the tools which means that they don’t work when the Windows user name has a non-ASCII character in it. Your user name seems to have an accented character as the second letter. I suggest you just create a new user account without any non-ASCII characters in the user name, and use that to download and remove the DRM.

              • Created another account with no non-ASCII characters (called “DRM Removal”). This is the log:

                calibre Journal de débogage
                calibre 2.68 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’)
                Successfully initialized third party plugins: DeDRM (6, 5, 1)
                devicePixelRatio: 1.0
                logicalDpi: 120.0 x 120.0
                physicalDpi: 141.76744186 x 141.402061856
                Starting up…
                Started up in 10.35 seconds with 1 books
                DeDRM v6.5.1: Trying to decrypt B000QCS8TW_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: A Game of Thrones: A Song of Ice and Fire: Book One
                Found 0 keys to try after 0.5 seconds
                Crypto Type is: 2
                DeDRM v6.5.1: Failed to decrypt with error: No key found in 0 keys tried.
                DeDRM v6.5.1: Looking for new default Kindle Key after 0.5 seconds
                searching for kinfoFiles in C:\Users\DRM Removal\AppData\Local
                No K4PC kindle.info/kinf/kinf2011 files have been found.
                DeDRM v6.5.1: Ultimately failed to decrypt after 0.5 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 608, in run
                File “calibre_plugins.dedrm.init“, line 558, in KindleMobiDecrypt
                DeDRMError: DeDRM v6.5.1: Ultimately failed to decrypt after 0.5 seconds
                C:\Program Files (x86)\Calibre2\pylib.zip\dateutil\parser.py:339: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode – interpreting them as being unequal
                Added A Game of Thrones: A Song of Ice and Fire: Book One to db in: 2.4
                Added 1 books in 3.6 seconds

                help?

  20. Once I’ve installed the plugin and entered my customizations, is there a way to back up the customizations so that I can use them if I need to move Calibre to a different computer?

    • You can go into each customization, highlight the key you want, and save it by clicking on the button on the lower right (looks like a hard drive). Keep in mind that if you save the Kindle for PC/Mac “default_key”, it will only work for books downloaded with the current installation of Kindle for PC/Mac.

      • Thanks! The button you describe isn’t available for most of my keys. In any case, I found that I could simply re-use a file called dedrm.json and also a file called calibre-adeptkey.der to transfer all of my customizations. Of course, this would not work for Kindle for PC/Mac, which I don’t really use.

  21. Can someone help me? I appreciate this is a highly stupid problem and I’m missing something very obvious…but when I download the DRE, it seems to disappear into my computer. I don’t understand how to “unzip” the file. Can somebody clarify this for me?🙂

    • On Windows it should be downloaded to you “My Downloads” directory, or something named like that. On Mac it will download to your “Downloads” folder in your home folder.

      On Mac, a double-click will unzip it. On Windows, right-click and there’ll be a command something like “Extract All”.

  22. calibre, version 2.58.0
    ERROR: Unhandled exception: InvalidPlugin:The plugin in u’C:\Deepak Data\Old Data\Software\DeDRM\DeDRM_tools-6.5.0.zip’ is invalid. It does not contain a top-level init.py file

    calibre 2.58 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’)
    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 415, 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’C:\Deepak Data\Old Data\Software\DeDRM\DeDRM_tools-6.5.0.zip’ is invalid. It does not contain a top-level init.py file

  23. I want to apologize for somewhat misleading people without having properly investigated the issue. While it’s true that there is an additional sqlcipher database included in the latest version of Kobo Desktop, (for now?) it doesn’t actually change much in how the purchased books are being encrypted, so it was basically just another round of good old changing the salt silliness that made decryption not work. I shouldn’t have made any claims until I had time to look into the actual code changes. In the meanwhile, someone else has already found out the relevant change and implemented the fix for it over at aprenticeharper’s github repo, it’ll probably be announced here very soon. The lesson for me is “first do, then talk”.

  24. calibre Debug log
    calibre 2.50.1 [64bit] isfrozen: 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’)
    Successfully initialized third party plugins: DeDRM
    Starting up…
    Loaded cached store plugin for: Nexto at version: 4
    Loaded cached store plugin for: Smashwords at version: 3
    Loaded cached store plugin for: Woblink at version: 12
    Loaded cached store plugin for: Legimi at version: 7
    Loaded cached store plugin for: Publio at version: 6
    Loaded cached store plugin for: Virtualo at version: 7
    Loaded cached store plugin for: Archive.org at version: 2
    Storage number map:
    {(7L, 0L): [(2L, ‘C’), (3L, ‘D’)], (7L, 1L): [(1L, ‘E’)]}
    Storage number for USBSTOR\DISK&VEN_KINDLE&PROD_INTERNAL_STORAGE&REV_0100\B00E15011407457H&0: StorageDeviceNumber(type=7L, number=1L, partition_number=0L)
    Drive letters for USBDevice(vendor_id=0x1949 product_id=0x4 bcd=0x100 devid=usb\vid_1949&pid_0004&rev_0100 devinst=5)
    {u’drive_letters’: [‘E’],
    u’pnp_id_map’: {‘E’: u’\\?\usbstor#disk&ven_kindle&prod_internal_storage&rev_0100#b00e15011407457h&0#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}’},
    u’readonly_drives’: set([])}
    Started up in 6.45 seconds with 30 books
    Job: 1 Get device information started
    DeviceJob: 1 Get device information done, calling callback
    DeviceJob: 1 Get device information callback returned
    Job: 2 Set library information started
    DeviceJob: 2 Set library information done, calling callback
    DeviceJob: 2 Set library information callback returned
    Job: 3 Get list of books on device started
    DEBUG: 0.0 USBMS: Fetching list of books from device. Device= KINDLE2 oncard= None
    DEBUG: 0.0 USBMS: dirs are: E:\ documents
    C:\Program Files\Calibre2\pylib.zip\dateutil\parser.py:339: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode – interpreting them as being unequal
    DEBUG: 0.2 USBMS: scan from root False E:\documents
    Job: 1 Get device information finished
    No details available.
    Job: 2 Set library information finished
    No details available.
    DEBUG: 1.0 USBMS: count found in cache: 179, count of files in metadata: 179, need_sync: False
    DEBUG: 1.0 USBMS: Finished fetching list of books from device. oncard= None
    DEBUG: 1.0 USBMS: Fetching list of books from device. Device= KINDLE2 oncard= carda
    DEBUG: 1.0 USBMS: Fetching list of books from device. Device= KINDLE2 oncard= cardb
    DeviceJob: 3 Get list of books on device done, calling callback
    DeviceJob: metadata_downloaded: Starting set_books_in_library
    DeviceJob: set_books_in_library: books to process= 179
    DeviceJob: set_books_in_library finished: time= 0.00600004196167
    DeviceJob: metadata_downloaded: updating views
    DeviceJob: metadata_downloaded: syncing
    DeviceJob: metadata_downloaded: refreshing ondevice
    DeviceJob: metadata_downloaded: sending metadata_available signal
    DeviceJob: 3 Get list of books on device callback returned
    Job: 3 Get list of books on device finished
    No details available.
    Job: 4 Prepare files for transfer from device started
    DeviceJob: 4 Prepare files for transfer from device done, calling callback
    DeviceJob: 4 Prepare files for transfer from device callback returned
    Job: 4 Prepare files for transfer from device finished
    No details available.
    DeDRM v6.5.1: Trying to decrypt The_New_Oxford_American_Dictionary.azw
    Using Library AlfCrypto DLL/DYLIB/SO
    MobiDeDrm v0.41.
    Copyright © 2008-2012 The Dark Reverser et al.
    MOBI header version 6, header length 232
    Extra Data Flags: 8
    Decrypting Mobipocket 6 ebook: The New Oxford American Dictionary
    Found 2 keys to try after 0.3 seconds
    Crypto Type is: 2
    DeDRM v6.5.1: Failed to decrypt with error: No key found in 2 keys tried.
    DeDRM v6.5.1: Looking for new default Kindle Key after 0.3 seconds
    searching for kinfoFiles in C:\Users\kozlov_sv\AppData\Local
    No K4PC kindle.info/kinf/kinf2011 files have been found.
    DeDRM v6.5.1: Ultimately failed to decrypt after 0.3 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_plugins
    File “calibre_plugins.dedrm.init“, line 608, in run
    File “calibre_plugins.dedrm.init“, line 558, in KindleMobiDecrypt
    DeDRMError: DeDRM v6.5.1: Ultimately failed to decrypt after 0.3 seconds
    Added The New Oxford American Dictionary to db in: 1.3
    Added 1 books in 2.8 seconds
    DeviceJob: set_books_in_library: books to process= 179
    DeviceJob: set_books_in_library finished: time= 0.00500011444092
    Worker Launch took: 0.171999931335

  25. After going through each and every one of Lauren’s decisions, I’ve decided to seek an alternative. I used a different program to decrypt the DRM and the program converted it to a .mobi file. I then took the mobi file and put into Calibre. I wanted to convert the mobi to PDF but I still can’t make any headway.

    I also downloaded Calibre/DeDrm/Kindle on a completely different PC following the same steps with no success. I cannot get it to strip the DRM.

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