DRM Removal Tools for eBooks

Version 6.6.1 released on 2 June, 2018

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 the FAQs at the GitHub repository:
https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md

If you have any problems with the current tools, please ask for help in a comment on this post or open a new issue at the GitHub repository. 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 application)
  • 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 these tools for gaining full access to your own ebooks for archiving/conversion/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.

Advertisements

4,634 thoughts on “DRM Removal Tools for eBooks

  1. Could not remove DRM. Debug info:

    alibre Debug log
    calibre 3.27.1 [64bit] embedded-python: True is64bit: True
    Windows-10-10.0.16299-SP0 Windows (’64bit’, ‘WindowsPE’)
    (‘Windows’, ’10’, ‘10.0.16299’)
    Python 2.7.12+
    Windows: (’10’, ‘10.0.16299’, ‘SP0′, u’Multiprocessor Free’)
    Interface language: None
    Successfully initialized third party plugins: DeDRM (6, 6, 1)
    calibre 3.27.1 [64bit] embedded-python: True is64bit: True
    Windows-10-10.0.16299-SP0 Windows (’64bit’, ‘WindowsPE’)
    (‘Windows’, ’10’, ‘10.0.16299’)
    Python 2.7.12+
    Windows: (’10’, ‘10.0.16299’, ‘SP0′, u’Multiprocessor Free’)
    Interface language: None
    Successfully initialized third party plugins: DeDRM (6, 6, 1)
    Turning on automatic hidpi scaling
    devicePixelRatio: 1.0
    logicalDpi: 120.0 x 120.0
    physicalDpi: 37.8046511628 x 38.1
    Using calibre Qt style: True
    [0.00] Starting up…
    [0.02] Showing splash screen…
    [0.08] splash screen shown
    [0.08] Initializing db…
    [0.09] db initialized
    [0.09] Constructing main UI…
    [1.33] main UI initialized…
    [1.33] Hiding splash screen
    [85.72] splash screen hidden
    [85.72] Started up in 85.72 seconds with 13 books
    stdout+stderr from file dialog helper: [”, ”]
    piped data from file dialog helper: [‘\x89\xe3\x15i\xfew\x9f\xa5\xb0b,\x14\x16U{k8Z,\xe3wl\x88\xa6J\x16\xf9\x15\xf9`w\x9c’, ‘C:\Users\Zur\Downloads\Animal Farm.azw3’]
    DeDRM v6.6.1: Trying to decrypt Animal Farm.azw3
    Using Library AlfCrypto Python
    MobiDeDrm v0.42.
    Copyright © 2008-2017 The Dark Reverser, Apprentice Harper et al.
    Decrypting Kindle Format 8 ebook: Animal Farm
    Found 0 keys to try after 0.1 seconds
    Crypto Type is: 2
    DeDRM v6.6.1: Failed to decrypt with error: No key found in 0 keys tried.
    DeDRM v6.6.1: Looking for new default Kindle Key after 0.1 seconds
    searching for kinfoFiles in C:\Users\Zur\AppData\Local
    No K4PC kindle.info/kinf/kinf2011 files have been found.
    DeDRM v6.6.1: Ultimately failed to decrypt after 0.1 seconds. Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
    Running file type plugin DeDRM failed with traceback:
    Traceback (most recent call last):
    File “site-packages\calibre\customize\ui.py”, line 171, in _run_filetype_plugins
    File “calibre_plugins.dedrm.init“, line 621, in run
    File “calibre_plugins.dedrm.init“, line 571, in KindleMobiDecrypt
    DeDRMError: DeDRM v6.6.1: Ultimately failed to decrypt after 0.1 seconds. Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
    Added Animal Farm to db in: 0.3
    Added 1 books in 1.2 seconds
    Storage number map:
    {(7L, 0L): [(4L, ‘C’)], (7L, 1L): [(1L, ‘D’)], (7L, 2L): [(1L, ‘E’)]}
    Storage number for USBSTOR\DISK&VEN_KINDLE&PROD_INTERNAL_STORAGE&REV_0310\6&34E3743A&0: StorageDeviceNumber(type=7L, number=2L, partition_number=0L)
    Drive letters for USBDevice(vendor_id=0x1949 product_id=0x4 bcd=0x310 devid=usb\vid_1949&pid_0004&rev_0310 devinst=9)
    {u’drive_letters’: [‘E’],
    u’pnp_id_map’: {‘E’: u’\\?\usbstor#disk&ven_kindle&prod_internal_storage&rev_0310#6&34e3743a&0#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}’},
    u’readonly_drives’: set([]),
    u’sort_map’: {‘E’: (2L, 1L)}}
    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
    DEBUG: 0.3 USBMS: scan from root False E:\documents
    DEBUG: 0.3 USBMS: count found in cache: 64, count of files in metadata: 64, need_sync: False
    DEBUG: 0.3 USBMS: Finished fetching list of books from device. oncard= None
    DEBUG: 0.3 USBMS: Fetching list of books from device. Device= KINDLE2 oncard= carda
    DEBUG: 0.3 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= 64
    DeviceJob: set_books_in_library finished: time= 0.00500011444092
    DeviceJob: metadata_downloaded: updating views
    DeviceJob: metadata_downloaded: syncing
    DeviceJob: metadata_downloaded: refreshing ondevice
    DeviceJob: metadata_downloaded: sending metadata_available signal
    DeviceJob: 3 Get list of books on device callback returned
    Job: 1 Get device information finished
    No details available.
    Job: 3 Get list of books on device finished
    No details available.
    Job: 2 Set library information finished
    No details available.
    Job: 4 Upload one book to the device: Animal Farm started
    Device using plugboard azw3 KINDLE2 None
    Setting metadata in: Animal Farm at: C:\Users\Zur\AppData\Local\Temp\calibre_s2p2wx\i5hkw2caltmpfmt.azw3
    DEBUG: 8.5 USBMS: uploading 1 books
    APNX META: guid: 7d99d08e
    APNX META: ASIN: B07DJ9YLG5
    APNX META: CDE: EBOK
    APNX META: format: MOBI_8
    APNX META: Name: CR_J0NPQY0RFH711FPKFE73CM0VS12J
    APNX Content Header: {“contentGuid”:”7d99d08e”,”asin”:”B07DJ9YLG5″,”cdeType”:”EBOK”,”format”:”MOBI_8″,”fileRevisionId”:”1″,”acr”:”CR_J0NPQY0RFH711FPKFE73CM0VS12J”}
    DEBUG: 8.6 USBMS: finished uploading 1 books
    DeviceJob: 4 Upload one book to the device: Animal Farm done, calling callback
    DEBUG: 8.6 USBMS: adding metadata for 1 books
    DEBUG: 8.6 USBMS: finished adding metadata
    DeviceJob: set_books_in_library: books to process= 65
    DeviceJob: set_books_in_library finished: time= 0.00200009346008
    DeviceJob: 4 Upload one book to the device: Animal Farm callback returned
    Job: 5 Send metadata to device started
    DEBUG: 8.6 USBMS: starting sync_booklists
    Job: 4 Upload one book to the device: Animal Farm finished
    No details available.
    DEBUG: 9.2 USBMS: finished sync_booklists
    DeviceJob: 5 Send metadata to device done, calling callback
    DeviceJob: 5 Send metadata to device callback returned
    Job: 5 Send metadata to device finished
    No details available.
    Worker Launch took: 0.116999864578
    Job: 6 Convert book 1 of 1 (Animal Farm) finished
    Convert book 1 of 1 (Animal Farm)
    Conversion options changed from defaults:
    read_metadata_from_opf: u’C:\Users\Zur\AppData\Local\Temp\calibre_s2p2wx\k2przv.opf’
    verbose: 2
    cover: u’C:\Users\Zur\AppData\Local\Temp\calibre_s2p2wx\6sy21i.jpeg’
    Resolved conversion options
    calibre version: 3.27.1
    {‘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\Zur\AppData\Local\Temp\calibre_s2p2wx\6sy21i.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 0x000001C06B8437F0>,
    ‘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’: False,
    ‘no_inline_toc’: False,
    ‘output_profile’: <calibre.customize.profiles.OutputProfile object at 0x000001C06B843B38>,
    ‘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\Zur\AppData\Local\Temp\calibre_s2p2wx\k2przv.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\Zur\AppData\Local\Temp\calibre_s2p2wx\zoffj3.azw3
    Found KF8 MOBI of type ‘standalone’
    Python function terminated unexpectedly
    Animal Farm (Error Code: 1)
    Traceback (most recent call last):
    File “site.py”, line 101, in main
    File “site.py”, line 78, in run_entry_point
    File “site-packages\calibre\utils\ipc\worker.py”, line 195, in main
    File “site-packages\calibre\gui2\convert\gui_conversion.py”, line 33, in gui_convert_override
    File “site-packages\calibre\gui2\convert\gui_conversion.py”, line 26, in gui_convert
    File “site-packages\calibre\ebooks\conversion\plumber.py”, line 1106, in run
    File “site-packages\calibre\customize\conversion.py”, line 246, in call
    File “site-packages\calibre\ebooks\conversion\plugins\mobi_input.py”, line 45, in convert
    File “site-packages\calibre\ebooks\mobi\reader\mobi8.py”, line 86, in call
    File “site-packages\calibre\ebooks\mobi\reader\mobi6.py”, line 157, in check_for_drm
    calibre.ebooks.DRMError: Animal Farm

  2. I would greatly appreciate any help please. I downloaded a bunch of new books on Amazon directly to my Kindle and now want to get them into my Calibre library and switched from AZW3 to Epub format so everything is the same. I’ve updated calibre and downloaded the 6.61 tool pack. I’m doing something wrong, but I’m not sure what. Help please?

    Thank you!

    calibre Debug log
    calibre 3.28 embedded-python: True is64bit: False
    Windows-10-10.0.17134-SP0 Windows (’32bit’, ‘WindowsPE’)
    32bit process running on 64bit windows
    (‘Windows’, ’10’, ‘10.0.17134’)
    Python 2.7.12+
    Windows: (’10’, ‘10.0.17134’, ‘SP0′, u’Multiprocessor Free’)
    Interface language: None
    Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 6, 1) && DeDRM (6, 6, 1) && Package KFX (from KFX Input) (1, 6, 1) && Kindle Collections (1, 7, 19) && KFX metadata reader (from KFX Input) (1, 6, 1) && KFX Input (1, 6, 1)
    calibre 3.28 embedded-python: True is64bit: False
    Windows-10-10.0.17134-SP0 Windows (’32bit’, ‘WindowsPE’)
    32bit process running on 64bit windows
    (‘Windows’, ’10’, ‘10.0.17134’)
    Python 2.7.12+
    Windows: (’10’, ‘10.0.17134’, ‘SP0′, u’Multiprocessor Free’)
    Interface language: None
    Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 6, 1) && DeDRM (6, 6, 1) && Package KFX (from KFX Input) (1, 6, 1) && Kindle Collections (1, 7, 19) && KFX metadata reader (from KFX Input) (1, 6, 1) && KFX Input (1, 6, 1)
    Turning on automatic hidpi scaling
    devicePixelRatio: 1.0
    logicalDpi: 96.0 x 96.0
    physicalDpi: 127.664921466 x 127.590697674
    Using calibre Qt style: True
    [0.00] Starting up…
    [0.00] Showing splash screen…
    [0.08] splash screen shown
    [0.08] Initializing db…
    [0.12] db initialized
    [0.12] Constructing main UI…
    [2.00] main UI initialized…
    [2.00] Hiding splash screen
    [5.42] splash screen hidden
    [5.42] Started up in 5.42 seconds with 870 books
    stdout+stderr from file dialog helper: [”, ”]
    piped data from file dialog helper: [‘H\xb8\n \x93\xb1Gc\x83\xeb\x8e\x19z\xa5\x03Rm\xda\x8f\xa6Q\xca+\xa7\nI\xedk\xf4\x95\x8e’, “C:\Users\Kris\Downloads\A River in Darkness One Man’s Escape from North Korea.azw3″]
    DeDRM v6.6.1: Trying to decrypt A River in Darkness_ One Man’s Escape from North Korea.azw3
    Using Library AlfCrypto Python
    MobiDeDrm v0.42.
    Copyright © 2008-2017 The Dark Reverser, Apprentice Harper et al.
    Decrypting Kindle Format 8 ebook: A River in Darkness: One Man’s Escape from North Korea
    Found 2 keys to try after 0.1 seconds
    Crypto Type is: 2
    DeDRM v6.6.1: Failed to decrypt with error: No key found in 2 keys tried.
    DeDRM v6.6.1: Looking for new default Kindle Key after 0.1 seconds
    searching for kinfoFiles in C:\Users\Kris\AppData\Local
    No K4PC kindle.info/kinf/kinf2011 files have been found.
    DeDRM v6.6.1: Ultimately failed to decrypt after 0.2 seconds. Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
    Running file type plugin DeDRM failed with traceback:
    Traceback (most recent call last):
    File “site-packages\calibre\customize\ui.py”, line 171, in _run_filetype_plugins
    File “calibre_plugins.dedrm.init“, line 621, in run
    File “calibre_plugins.dedrm.init“, line 571, in KindleMobiDecrypt
    DeDRMError: DeDRM v6.6.1: Ultimately failed to decrypt after 0.2 seconds. Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
    Added A River in Darkness: One Man’s Escape from North Korea to db in: 0.3
    Added 1 books in 1.3 seconds
    Worker Launch took: 0.102999925613
    Job: 1 Convert book 1 of 1 (A River in Darkness: One Man’s Escape from North Korea) finished
    Convert book 1 of 1 (A River in Darkness: One Man’s Escape from North Korea)
    Conversion options changed from defaults:
    read_metadata_from_opf: u’C:\Users\Kris\AppData\Local\Temp\calibre_kmqgpr\ewvps3.opf’
    output_profile: ‘kindle_pw’
    cover: u’C:\Users\Kris\AppData\Local\Temp\calibre_kmqgpr\chzwrp.jpeg’
    verbose: 2
    Resolved conversion options
    calibre version: 3.28.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\Kris\AppData\Local\Temp\calibre_kmqgpr\chzwrp.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,
    ‘epub_version’: u’2′,
    ‘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 0x05277A90>,
    ‘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.KindlePaperWhiteOutput object at 0x05277E70>,
    ‘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\Kris\AppData\Local\Temp\calibre_kmqgpr\ewvps3.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\Kris\AppData\Local\Temp\calibre_kmqgpr\y6axbi.azw3
    Found KF8 MOBI of type ‘standalone’
    Python function terminated unexpectedly
    A River in Darkness: One Man’s Escape from North Korea (Error Code: 1)
    Traceback (most recent call last):
    File “site.py”, line 101, in main
    File “site.py”, line 78, in run_entry_point
    File “site-packages\calibre\utils\ipc\worker.py”, line 195, in main
    File “site-packages\calibre\gui2\convert\gui_conversion.py”, line 33, in gui_convert_override
    File “site-packages\calibre\gui2\convert\gui_conversion.py”, line 26, in gui_convert
    File “site-packages\calibre\ebooks\conversion\plumber.py”, line 1106, in run
    File “site-packages\calibre\customize\conversion.py”, line 246, in call
    File “site-packages\calibre\ebooks\conversion\plugins\mobi_input.py”, line 45, in convert
    File “site-packages\calibre\ebooks\mobi\reader\mobi8.py”, line 86, in call
    File “site-packages\calibre\ebooks\mobi\reader\mobi6.py”, line 157, in check_for_drm
    calibre.ebooks.DRMError: A River in Darkness: One Man’s Escape from North Korea

  3. I cannot open the new DeDRM app for Mac. (I am using 10.11.6) I have been using an older version of DeDRM with no problem for at least a year. New app says “cannot open”. I have my system preferences security settings set on “allow apps form anywhere”. I have repeatedly tried right clicking, control clicking and even re-downloading and unzipping using Ziprar, no difference.

  4. Hi Plugin not loading in Calibre on Win10 – following error message received – calibre, version 3.28.0
    ERROR: Unhandled exception: InvalidPlugin:The plugin in u’C:\Users\Darren\Downloads\DeDRM_tools_6.6.1.zip’ is invalid. It does not contain a top-level init.py file

    calibre 3.28 [64bit] embedded-python: True is64bit: True
    Windows-10-10.0.17134-SP0 Windows (’64bit’, ‘WindowsPE’)
    (‘Windows’, ’10’, ‘10.0.17134’)
    Python 2.7.12+
    Windows: (’10’, ‘10.0.17134’, ‘SP0′, u’Multiprocessor Free’)
    Interface language: en_GB
    Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 6, 1) && DeDRM (6, 0, 8) && Package KFX (from KFX Input) (1, 6, 1) && KFX metadata reader (from KFX Input) (1, 6, 1) && KFX Input (1, 6, 1)
    Traceback (most recent call last):
    File “site-packages\calibre\gui2\preferences\plugins.py”, line 317, in add_plugin
    File “site-packages\calibre\customize\ui.py”, line 471, in add_plugin
    File “site-packages\calibre\customize\ui.py”, line 60, in load_plugin
    File “site-packages\calibre\customize\zipplugin.py”, line 192, in load
    File “site-packages\calibre\customize\zipplugin.py”, line 290, in _locate_code
    InvalidPlugin: The plugin in u’C:\Users\Darren\Downloads\DeDRM_tools_6.6.1.zip’ is invalid. It does not contain a top-level init.py file

    Appreciate any help

  5. I am using Calibre 3.28 with DeDRM 6.6.1. on Windows 7/64 Bit. Installation runs like a charm but I am still not able to import ebooks directly from my Kindle Paperwhite to Calibire because Calibre tells me that ebooks in KFX format cannot be imported and I have to use the download option in Amazon.

    But when I remember right DeDRM can handle KFX. Do you maybe know what I have done wrong?

    Many thnaks in advance,
    best regards

    Thomas

  6. I’ve been trying to convert after installing both plugins to no avail. The DRM blocks it every time still. No clue what I could be doing wrong.

    • First test a different file format from the Kindle, AZW, AZW3, Mobi. Start Calibre in Debug mode, and import that fileformat, look in the log wether the book had DRM and was successfully DeDRMed.
      – if the log shows the book to have no DRM, try a different book, until you get one with DRM
      – if even this book cannot be DeDRMed, configure the plugin with the serial number of the Kindle (must be an eInk, NOT Fire), entered without spaces
      – try again with a newly copied book from the Kindle
      – if the import works and DeDRM also, but only on AZW, AZW, Mobi etc., not KFX, you may be currently out of luck, some books still do not work (I think currently my success rate is 9 from 10 KFX books work)
      – the KFX books which do not work for me show up in Calibre as filetype KFX-zip
      – always use the newest Calibre and Plugins for KFX
      As I have tested quite a lot, sometimes it helps (regardless wether Windows or Mac), to configure the OS for a new user and start with fresh installs, logging in with your Amazon Account.

      Also, if you are used to copying the files from the Kindle to your Hardisk before proceeding, you should not copy single files, but simply everything, all directories. Reason I say this, I have to Kindle eInk, one for US-bought books, one for German-bough books, for some reason, from the US Kindle I can simply copy the whole ebook directory and import with Calibre KFX from there, with the German one, I need the other directories (tried to look into the source to check which ones, but could find them), like system etc from the Kindle. If you import directly from the Kindle with Calibre, it should find all needed files, no matter where they are.
      These files are put together with the KFX import plugin into a single file for Calibre. At what point the DeDRM happens if before or after I do not know.

      Hope this helps. Else post a debug log from a fresh import which did not remove the DRM.

  7. Hi, I really love this software for archival purpose from Kindle. But seems i found that conversion from KFX to ePub format didn’t convert the image in highest quality. I have KFX file around 19 MB but converted ePub only 1 MB in size. The images converted to lower quality. Could anyone help me? Did I something wrong? Calibre Portable used, DeDRM and KFX Input plugin installed. I’m pretty sure KFX is DRM free since conversion success.

    Thank You

    • I suspect that the problem lies in your calibre conversion settings. In the “Page setup” tab the “Output profile” should be set to “Tablet” in order to not have calibre downsize images during conversion.

  8. Hi, I bought book from HPE press, and its locked by DRM in ADE. calibre plugin cant remove drm. and I cant open “DeDRM_App for Windows” on Windows 10. I installed ActivePython-2.7.14+pycrypto-2.6.win-amd64-py2.7 but “DeDRM_Drop_Target” didnt open.
    Any options?

      • no I cant open acsm file in ADE 2.0.1. its give me error “Unable to download” error getting licemce, Licence server communocation problem: E_ADEPT_CORE_DECRYPT_LICENCE_KEY. Maybe this error cause I opened first in ADE 3.0

      • but I can open acsm file in ADE 3.0 and 4.5 without problem, but cant delete drm with calibre plugin (i downloaded 6.6.0. plugin loaded it in calibri, then reexport book in calibre and double-clicked to book in calibre, but calibre give me error “the book is locked by DRM”. As I know Calibre plugin should automatically delete DRM and open book doesnt?

          • As you have bought the ebook, I would try to download it with the old DRM, there should be a way to that (using an older Adobe Digital Edt., or Sony Reader).
            If not, complain to the merchant that you cannot read the ebook on your device, it is unusable. If they fail to help by providing a readable copy, raise hell and give it back with demanding your money back, threatening that they lose you as a costumer.

            This (for me) is the main reason why Amazons Kindle format is so popular. It works, DeDRM works, and they take ebooks back (within a reasonable time and if you do not do it too often), give you your money back and value the costumer.
            Having said that, I still buy epubs and use them on a Tolino epos, DeDRM them , store them with Calibre and could convert them to Kindle (Mobi, AZW) to use there. If and when Amazon offers a different eReader, I can switch back, the Voyage is ok, but could should have been updated now (waterproof, more memory etc.).

            • From what I understand, once you download a copy with the newer DRM, you will always get the new DRM on new downloads of that book. The only way to get the older DRM then is to delete the book from your account and buy it again. As Ingo suggested, you might be able to complain and get the bookseller to reset the book at no additional charge. But it’s possible they’re not using the older DRM. In that case, you wouldn’t be able to download any books from them with ADE 2.0.1 at all — or DeDRM them.

              • It all depends how customer-friendly they are. Given that it is a specialty shop for technical manuals and information ebooks, there may be little chance getting the ebook elsewhere, so even getting the money back is no solution, if you cannot buy the ebook in a different shop.
                From their FAQ they do not specify ereader as an eInk device, but they rather think a tablet (Android, Kindle Fire) or an iPad counts as an ereader. Which due to the display difference it is not, for me.

                But that is beside the point. Are there eInk devices to buy which have support for the new Adobe DRM? The few devices I can buy in Germany (Tolino and a few others) do not support it yet – a firmware update could change that, though.

                tl;dr no real solution, sorry for that.

  9. I installed Adobe Digital editions with WINE. I do not see any .der files in the appropriate folders. How do I find the keyfiles/adobe digital editions keys so I can plug them in to the DeDRM plugin for calibre?

    • Post a log and we’ll see what’s going on. With Linux you sometimes (often?) have to run the key script manually. In which case, you can specify where it gets saved.

      • Ok after reading the faq … https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md

        calibre Debug log
        calibre 2.55 embedded-python: False is64bit: True
        Linux-4.15.0-29-generic-x86_64-with-Ubuntu-16.04-xenial Linux (’64bit’, ‘ELF’)
        (‘Linux’, ‘4.15.0-29-generic’, ‘#31~16.04.1-Ubuntu SMP Wed Jul 18 08:54:04 UTC 2018’)
        Python 2.7.12
        Linux: (‘Ubuntu’, ‘16.04’, ‘xenial’)
        Successfully initialized third party plugins: DeDRM
        Starting up…
        DeDRM v6.6.0: Trying to decrypt Theory_of_Garment-Pattern_Making_-A_Textbook_fo.epub
        DeDRM v6.6.0: Verifying zip archive integrity
        Started up in 42.07 seconds with 1 books
        DeDRM v6.6.0: Theory_of_Garment-Pattern_Making
        -_A_Textbook_fo.epub is a secure Adobe Adept ePub
        DeDRM v6.6.0: Looking for new default Adobe Digital Editions Keys after 1.0 seconds
        DeDRM v6.6.0: Running adobekey.py under Wine
        DeDRM v6.6.0: Command line: ‘WINEPREFIX=”/home/ABC” wine python.exe “/home/ABC/.config/calibre/plugins/DeDRM/libraryfiles/adobekey.py” “/home/ABC/.config/calibre/plugins/DeDRM/libraryfiles/winekeysdir”‘
        wine: cannot find L”C:\windows\system32\python.exe”
        DeDRM v6.6.0: Found and decrypted 0 key files
        DeDRM v6.6.0: Exception when getting default Adobe Key after 2.8 seconds
        Traceback (most recent call last):
        File “calibre_plugins.dedrm.init“, line 352, in ePubDecrypt
        IndexError: list index out of range
        DeDRM v6.6.0: Ultimately failed to decrypt after 2.8 seconds. Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
        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 631, in run
        File “calibre_plugins.dedrm.init“, line 402, in ePubDecrypt
        DeDRMError: DeDRM v6.6.0: Ultimately failed to decrypt after 2.8 seconds. Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md

        When I bring up DeDrm 6.6.0 on my Linux box, click Adobe Digital editions and click the green plus sign, I see “The default encryption key for Adobe Digital Editions could not be found.” The list of keys next to the buttons is empty. The book comes from a bookstore chain in continental Europe.

        I am working in parallel on a Windows box, trying to find the keyfile there, but it is not working either. I should never have given someone money for an eBook which did not clearly state ‘no DRM’!

        • As I thought, you’ve got the same problem I’ve seen here with a lot of Linux setups. See this part of the log:

          DeDRM v6.6.0: Command line: ‘WINEPREFIX=”/home/ABC” wine python.exe “/home/ABC/.config/calibre/plugins/DeDRM/libraryfiles/adobekey.py” “/home/ABC/.config/calibre/plugins/DeDRM/libraryfiles/winekeysdir”‘
          wine: cannot find L”C:\windows\system32\python.exe”

          When it tries to run the key script, it can’t find Python. You do need Python and PyCrypto installed under Wine. You should be able to run the script manually and import the retrieved key into the plugin customization.

          But if you’ve got a Windows setup, you should be able to export that key from calibre/DeDRM on the Windows machine and import it to calibre/DeDRM on the Linux setup — as long as both ADE installations are authorized with the same Adobe ID. The Windows setup should automatically retrieve the key if both ADE and calibre are on the same machine and user. It should be ADE 2.0.1 authorized with your Adobe ID and latest calibre with DeDRM. You need to be able to read the DRM book in ADE.

      • I installed both Adobe Digital Editions and Calibre with DeDrm 6.6.1 on a windows box and was able to create a keyfile and open the epub in Calibre. When I copied the keyfile to my Linux box and used “add from file” under Calibre -> Preferences -> Plugins -> DeDrm, I still get the message about DRM when I try to open the same epub in Calibre on the Linux box.

        It also looks like the original file still has DRM, so I can’t just load the new version onto my Tolino and avoid having to give my ADE password again and again.

        • Definitely sounds like you’ve got it working on Windows. Not sure why the key won’t work on Linux. Did you restart calibre after importing the key and before adding a book?

  10. For some reason I have a .AZW file that this can’t decrypt.
    which tool was used – Calibre DeDRM tools 6.6.1 plug-in tool
    which OS you are using – Windows 10 1803 (17134.165)
    where the ebook file came from (device or application) – Amazon Kindle for PC version1.17.0.44170
    any error messages – none
    a log of the DRM-removal attempt (see the FAQs on how to get a log
    calibre Debug log
    calibre 3.29 [64bit] embedded-python: True is64bit: True
    Windows-10-10.0.17134-SP0 Windows (’64bit’, ‘WindowsPE’)
    (‘Windows’, ’10’, ‘10.0.17134’)
    Python 2.7.12+
    Windows: (’10’, ‘10.0.17134’, ‘SP0′, u’Multiprocessor Free’)
    Interface language: None
    Successfully initialized third party plugins: DeDRM (6, 6, 1)
    calibre 3.29 [64bit] embedded-python: True is64bit: True
    Windows-10-10.0.17134-SP0 Windows (’64bit’, ‘WindowsPE’)
    (‘Windows’, ’10’, ‘10.0.17134’)
    Python 2.7.12+
    Windows: (’10’, ‘10.0.17134’, ‘SP0′, u’Multiprocessor Free’)
    Interface language: None
    Successfully initialized third party plugins: DeDRM (6, 6, 1)
    Turning on automatic hidpi scaling
    devicePixelRatio: 1.0
    logicalDpi: 96.0 x 96.0
    physicalDpi: 109.22 x 109.182089552
    Using calibre Qt style: True
    [0.00] Starting up…
    [0.00] Showing splash screen…
    [0.08] splash screen shown
    [0.08] Initializing db…
    [0.08] db initialized
    [0.08] Constructing main UI…
    [1.11] main UI initialized…
    [1.11] Hiding splash screen
    Failed to check for calibre update: https://code.calibre-ebook.com/latest returned an unsupported http response code: 403 (Forbidden)
    Failed to check for plugin update: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (ssl.c:590)
    [7.53] splash screen hidden
    [7.53] Started up in 7.53 seconds with 69 books
    stdout+stderr from file dialog helper: [”, ”]
    piped data from file dialog helper: [‘\x90\x13\xa7@p\xf2
    \xbb\xc0\x8a\xcd1m\xe7\x8aw}>\xa5#7jY\xfe9J\xcf\x0eP|;E’, ‘D:\OneDrive\uploads\B01BXPWGX4_EBOK.azw’]
    DeDRM v6.6.1: Trying to decrypt B01BXPWGX4_EBOK.azw
    Using Library AlfCrypto Python
    MobiDeDrm v0.42.
    Copyright © 2008-2017 The Dark Reverser, Apprentice Harper et al.
    Decrypting Kindle Format 8 ebook: The 5 Love Languages of Children: The Secret to Loving Children Effectively
    Found 0 keys to try after 0.1 seconds
    Crypto Type is: 2
    DeDRM v6.6.1: Failed to decrypt with error: No key found in 0 keys tried.
    DeDRM v6.6.1: Looking for new default Kindle Key after 0.1 seconds
    searching for kinfoFiles in C:\Users\JMHoo\AppData\Local
    No K4PC kindle.info/kinf/kinf2011 files have been found.
    DeDRM v6.6.1: Ultimately failed to decrypt after 0.1 seconds. Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
    Running file type plugin DeDRM failed with traceback:
    Traceback (most recent call last):
    File “site-packages\calibre\customize\ui.py”, line 171, in _run_filetype_plugins
    File “calibre_plugins.dedrm.init“, line 621, in run
    File “calibre_plugins.dedrm.init“, line 571, in KindleMobiDecrypt
    DeDRMError: DeDRM v6.6.1: Ultimately failed to decrypt after 0.1 seconds. Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
    Added The 5 Love Languages of Children: The Secret to Loving Children Effectively to db in: 5.1
    Added 1 books in 5.8 seconds
    Worker Launch took: 0.0859999656677

  11. Used the tool today on my Amazon-purchased e-ink files and it worked like a charm. However, when I try to side-load the new files (mobi) onto my paperwhite they don’t show up. Calibre says they’re in the device library but I can’t see them. Kindle issue or the files?

    • How did you copy the ebooks to your Kindle?
      Maybe manually?
      Calibre automatically puts them in the correct directory, under a folder with the author-name (else “unkown” or something like that is used).
      The directory is :/documents .
      Just tested it with a Kindle, and copied an ebook manually in the main (root) directory of the Kindle.
      It does not show up.
      Also another reason might be the sort order of the books, if you have a lot of books on the Kindle. Take note of the title and search for it, or page through the books lists, but that might take a while.

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 )

Google+ photo

You are commenting using your Google+ 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 )

Connecting to %s