DRM Removal Tools for eBooks

Version 7.2.1 released on 11 April, 2021

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 in the Discussions area of Apprentice Harper’s GitHub repository.  If you would like to report a bug, please 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.

7,341 thoughts on “DRM Removal Tools for eBooks

  1. Hi,
    I keep on getting an error trying to install the 6.8.0 plugin (I’m not on Big Sur, so am not dealing w 6.8.1) on calibre 4.23.0. Here’s what I get:

    calibre, version 4.23.0
    ERROR: Unhandled exception: InvalidPlugin:The plugin in u’/Users/catsy83/Downloads/DeDRM_tools_6.8.0.zip’ is invalid. It does not contain a top-level init.py file

    calibre 4.23 embedded-python: True is64bit: True
    Darwin-18.7.0-x86_64-i386-64bit Darwin (’64bit’, ”)
    (‘Darwin’, ‘18.7.0’, ‘Darwin Kernel Version 18.7.0: Tue Nov 10 00:07:31 PST 2020; root:xnu-4903.278.51~1/RELEASE_X86_64’)
    Python 2.7.16
    OSX: (‘10.14.6’, (”, ”, ”), ‘x86_64′)
    Interface language: None
    Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 36, 0) && DeDRM (6, 7, 0) && Package KFX (from KFX Input) (1, 36, 0) && KFX metadata reader (from KFX Input) (1, 36, 0) && KFX Input (1, 36, 0)
    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 472, in add_plugin
    File “site-packages/calibre/customize/ui.py”, line 61, in load_plugin
    File “site-packages/calibre/customize/zipplugin.py”, line 194, in load
    File “site-packages/calibre/customize/zipplugin.py”, line 292, in _locate_code
    InvalidPlugin: The plugin in u’/Users/catsy83/Downloads/DeDRM_tools_6.8.0.zip’ is invalid. It does not contain a top-level init.py file

    The key seems to be this missing ‘init.py file’. From the posts on here and on GitHub, I haven’t been able to figure out what I’m doing wrong…anyone can help?

    • Sorry, the init file name has underscores before and after the word, but the thing here seems to render that instead as bold text…the thing looks like this ‘__ init __.py file’ (minus the spaces).

      • No, the error occurs for the internal archive:
        calibre, version 5.11.0
        FEHLER: Unbehandelter Ausnahmefehler: SyntaxError:invalid syntax (calibre_plugins.dedrm.init, line 169)

        calibre 5.11 embedded-python: True is64bit: True
        macOS-10.16-x86_64-i386-64bit Darwin (’64bit’, ”)
        (‘Darwin’, ‘20.3.0’, ‘Darwin Kernel Version 20.3.0: Thu Jan 21 00:07:06 PST 2021; root:xnu-7195.81.3~1/RELEASE_X86_64’)
        Python 3.8.5
        OSX: (‘10.16’, (”, ”, ”), ‘x86_64’)
        Interface language: de
        Traceback (most recent call last):
        File “calibre/gui2/preferences/plugins.py”, line 316, in add_plugin
        File “calibre/customize/ui.py”, line 472, in add_plugin
        File “calibre/customize/ui.py”, line 61, in load_plugin
        File “calibre/customize/zipplugin.py”, line 293, in load
        File “importlib/init.py”, line 127, in import_module
        File “”, line 1014, in _gcd_import
        File “”, line 991, in _find_and_load
        File “”, line 975, in _find_and_load_unlocked
        File “”, line 671, in _load_unlocked
        File “calibre/customize/zipplugin.py”, line 185, in exec_module
        File “calibre/customize/zipplugin.py”, line 181, in get_code
        File “calibre_plugins.dedrm.init“, line 169
        print u”{0} v{1}: Copying needed library files from plugin’s zip”.format(PLUGIN_NAME, PLUGIN_VERSION)
        ^
        SyntaxError: invalid syntax

  2. I can’t get it to work. Every time I try to load a kindle book and convert it it says it’s protected by DRM. I’ve loaded all the plugins correctly and restarted calibre, no idea what’s going wrong.

          • Gah, I bet I spent a solid hour trying to figure out how to make this work before reading your post. Thanks so much for your help, Laura. It worked like a charm. And thanks to everyone who makes these tools available. It’s sad that they are needed, but such is life.

          • Hi Laura! I had the new Kindle software on my PC but changed it to 1.17 so that I can convert a book (bought on Amazon), in Calibre. I have Calibre 5.8.1 and I’ve downloaded the KFX input plugin, but there is no DeDRM plug-in in the list. When I had the new Kindle (yesterday), the folder contained 2 files, now with having changed to Kindle 1.17, I have only one file in the folder, but Calibre still says “This book is locked by DRM.” so it can’t convert it to epub. What can I do more? May it solve the problem if I DL Calibre 4.23? If yes, how to get that old version without losing my books in calibre 5.8.1?
            I hope you can help me. Thanks in advance,
            Angie

  3. Um, here’s what I’m getting — halp!! I’m using the 6.8.1 toolz….

    calibre, version 5.9.0
    ERROR: Unhandled exception: SyntaxError:invalid syntax (calibre_plugins.dedrm.init, line 169)

    calibre 5.9 [64bit] embedded-python: True is64bit: True
    Windows-10-10.0.18362 Windows (’64bit’, ‘WindowsPE’)
    (‘Windows’, ’10’, ‘10.0.18362’)
    Python 3.8.5
    Windows: (’10’, ‘10.0.18362’, ”, ‘Multiprocessor Free’)
    Interface language: None
    Traceback (most recent call last):
    File “calibre\gui2\preferences\plugins.py”, line 316, in add_plugin
    File “calibre\customize\ui.py”, line 472, in add_plugin
    File “calibre\customize\ui.py”, line 61, in load_plugin
    File “calibre\customize\zipplugin.py”, line 293, in load
    File “importlib__init__.py”, line 127, in import_module
    File “”, line 1014, in _gcd_import
    File “”, line 991, in _find_and_load
    File “”, line 975, in _find_and_load_unlocked
    File “”, line 671, in _load_unlocked
    File “calibre\customize\zipplugin.py”, line 185, in exec_module
    File “calibre\customize\zipplugin.py”, line 181, in get_code
    File “calibre_plugins.dedrm.init“, line 169
    print u”{0} v{1}: Copying needed library files from plugin’s zip”.format(PLUGIN_NAME, PLUGIN_VERSION)
    ^
    SyntaxError: invalid syntax

      • I’m getting a similar error under Solus. I’m attempting with version 6.8.1:

        calibre, version 4.23.0
        ERROR: Unhandled exception: SyntaxError:invalid syntax (calibre_plugins.dedrm.init, line 169)

        calibre 4.23 embedded-python: False is64bit: True
        Linux-5.10.7-168.current-x86_64-with-glibc2.2.5 Linux (’64bit’, ‘ELF’)
        (‘Linux’, ‘5.10.7-168.current’, ‘#1 SMP PREEMPT Wed Jan 13 20:05:02 UTC 2021’)
        Python 3.7.9
        Linux: (”, ”, ”)
        Interface language: None
        Traceback (most recent call last):
        File “/usr/lib/calibre/calibre/gui2/preferences/plugins.py”, line 317, in add_plugin
        plugin = add_plugin(path)
        File “/usr/lib/calibre/calibre/customize/ui.py”, line 472, in add_plugin
        plugin = load_plugin(path_to_zip_file)
        File “/usr/lib/calibre/calibre/customize/ui.py”, line 61, in load_plugin
        return loader.load(path_to_zip_file)
        File “/usr/lib/calibre/calibre/customize/zipplugin.py”, line 203, in load
        m = importlib.import_module(plugin_module)
        File “/usr/lib/python3.7/importlib/init.py”, line 127, in import_module
        return _bootstrap._gcd_import(name[level:], package, level)
        File “”, line 1006, in _gcd_import
        File “”, line 983, in _find_and_load
        File “”, line 967, in _find_and_load_unlocked
        File “”, line 668, in _load_unlocked
        File “”, line 638, in _load_backward_compatible
        File “/usr/lib/calibre/calibre/customize/zipplugin.py”, line 181, in load_module
        import_name), ‘exec’, dont_inherit=True)
        File “calibre_plugins.dedrm.init“, line 169
        print u”{0} v{1}: Copying needed library files from plugin’s zip”.format(PLUGIN_NAME, PLUGIN_VERSION)
        ^
        SyntaxError: invalid syntax

        • That version of calibre (included with your Linux distro?) has Python 3 in spite of having the same version number of the last official release of calibre with Python 2. So it will need DeDRM 7.0.3.

  4. Hello,

    I opened an acsm file in Adobe Digital Editions and it created a PDF file. I tried to open the PDF in Calibre 5.9 but it’s just blank.
    DeDRM plugin only (v7.0.3) is installed on Calibre.
    Also the pdf opens fine in Adobe, so it’s not empty. Anybody know how I could open the PDF in Calibre? Thanks

  5. Hello,

    I am having trouble removing the DRM from an amazon kindle ebook for Mac (OS X 10.16, Calibre 5.9, KFX Input 1.36.0, deDRM 7.0.3). See below the debug log. Any thoughts?

    calibre Debug log
    calibre 5.9 embedded-python: True is64bit: True
    macOS-10.16-x86_64-i386-64bit Darwin (’64bit’, ”)
    (‘Darwin’, ‘20.2.0’, ‘Darwin Kernel Version 20.2.0: Wed Dec 2 20:39:59 PST 2020; root:xnu-7195.60.75~1/RELEASE_X86_64’)
    Python 3.8.5
    OSX: (‘10.16’, (”, ”, ”), ‘x86_64′)
    Interface language: None
    Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 36, 0) && DeDRM (7, 0, 3) && Package KFX (from KFX Input) (1, 36, 0) && KFX metadata reader (from KFX Input) (1, 36, 0) && KFX Input (1, 36, 0)
    calibre 5.9 embedded-python: True is64bit: True
    macOS-10.16-x86_64-i386-64bit Darwin (’64bit’, ”)
    (‘Darwin’, ‘20.2.0’, ‘Darwin Kernel Version 20.2.0: Wed Dec 2 20:39:59 PST 2020; root:xnu-7195.60.75~1/RELEASE_X86_64’)
    Python 3.8.5
    OSX: (‘10.16’, (”, ”, ”), ‘x86_64′)
    Interface language: None
    Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 36, 0) && DeDRM (7, 0, 3) && Package KFX (from KFX Input) (1, 36, 0) && KFX metadata reader (from KFX Input) (1, 36, 0) && KFX Input (1, 36, 0)
    devicePixelRatio: 2.0
    logicalDpi: 72.0 x 72.0
    physicalDpi: 110.50000165954353 x 110.50000165954353
    Using calibre Qt style: True
    [0.00] Starting up…
    [0.04] Showing splash screen…
    [0.32] splash screen shown
    [0.32] Initializing db…
    [0.33] db initialized
    [0.33] Constructing main UI…
    [1.09] main UI initialized…
    [1.09] Hiding splash screen
    Starting QuickView
    Gather KFX-ZIP (from KFX Input) 1.36.0: Importing /Users/kevin_clack/Library/Application Support/Kindle/My Kindle Content/B00I51KMZE_EBOK/B00I51KMZE_EBOK.azw
    Gather KFX-ZIP (from KFX Input): File is not KFX format
    DeDRM v7.0.3: Trying to decrypt B00I51KMZE_EBOK.azw
    Using Library AlfCrypto Python
    Using Library AlfCrypto Python
    MobiDeDrm v1.0.
    Copyright © 2008-2020 The Dark Reverser, Apprentice Harper et al.
    Decrypting Mobipocket 4 ebook: Wastewater Engineering: Treatment and Reuse
    Found 0 keys to try after 0.2 seconds
    Crypto Type is: 2
    DeDRM v7.0.3: Failed to decrypt with error: No key found in 0 PIDs tried.
    DeDRM v7.0.3: Looking for new default Kindle Key after 0.2 seconds
    Found k4Mac kinf2018 file: /Users/kevin_clack/Library/Application Support/Kindle/storage/.kinf2018
    trying username b’kevin_clack’ on file /Users/kevin_clack/Library/Application Support/Kindle/storage/.kinf2018
    trying IDString: b’ddeae6973554′
    [17.11] splash screen hidden
    [17.11] Started up in 17.11 seconds with 0 books
    Decrypted key file using IDString ‘ddeae6973554’ and UserName ‘kevin_clack’
    DeDRM v7.0.3: Found 1 new key
    MobiDeDrm v1.0.
    Copyright © 2008-2020 The Dark Reverser, Apprentice Harper et al.
    Decrypting Mobipocket 4 ebook: Wastewater Engineering: Treatment and Reuse
    Got SerialNumber from database default_key_1
    Got UsernameHash from database default_key_1
    Found 4 keys to try after 0.8 seconds
    Crypto Type is: 2
    DeDRM v7.0.3: Ultimately failed to decrypt after 0.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 “calibre_plugins.dedrm.init“, line 537, in KindleMobiDecrypt
    book = k4mobidedrm.GetDecryptedBook(path_to_ebook,kindleDatabases,androidFiles,serials,pids,self.starttime)
    File “calibre_plugins.dedrm.k4mobidedrm”, line 238, in GetDecryptedBook
    mb.processBook(totalpids)
    File “calibre_plugins.dedrm.mobidedrm”, line 484, in processBook
    raise DrmException(“No key found in {0:d} PIDs tried.”.format(len(goodpids)))
    calibre_plugins.dedrm.mobidedrm.DrmException: No key found in 0 PIDs tried.

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
    File “calibre/customize/ui.py”, line 172, in _run_filetype_plugins
    File “calibre_plugins.dedrm.init“, line 630, in run
    decrypted_ebook = self.KindleMobiDecrypt(path_to_ebook)
    File “calibre_plugins.dedrm.init“, line 580, in KindleMobiDecrypt
    raise DeDRMError(“{0} v{1}: Ultimately failed to decrypt after {2:.1f} seconds. Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md“.format(PLUGIN_NAME, PLUGIN_VERSION,time.time()-self.starttime))
    calibre_plugins.dedrm.DeDRMError: DeDRM v7.0.3: Ultimately failed to decrypt after 0.8 seconds. Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
    Added Wastewater Engineering: Treatment and Reuse to db in: 0.1
    Added 1 books in 1.6 seconds

  6. I get a ‘syntax error’ when trying to load the plugin – the correct zipped file
    Its says
    calibre, version 5.10.1
    ERROR: Unhandled exception: SyntaxError:invalid syntax (calibre_plugins.dedrm.init, line 168)

    calibre 5.10.1 embedded-python: True is64bit: False
    Windows-10-10.0.19041 Windows (’32bit’, ‘WindowsPE’)
    32bit process running on 64bit windows
    (‘Windows’, ’10’, ‘10.0.19041’)
    Python 3.8.5
    Windows: (’10’, ‘10.0.19041’, ”, ‘Multiprocessor Free’)
    Interface language: None
    Traceback (most recent call last):
    File “calibre\gui2\preferences\plugins.py”, line 316, in add_plugin
    File “calibre\customize\ui.py”, line 472, in add_plugin
    File “calibre\customize\ui.py”, line 61, in load_plugin
    File “calibre\customize\zipplugin.py”, line 293, in load
    File “importlib__init__.py”, line 127, in import_module
    File “”, line 1014, in _gcd_import
    File “”, line 991, in _find_and_load
    File “”, line 975, in _find_and_load_unlocked
    File “”, line 671, in _load_unlocked
    File “calibre\customize\zipplugin.py”, line 185, in exec_module
    File “calibre\customize\zipplugin.py”, line 181, in get_code
    File “calibre_plugins.dedrm.init“, line 168
    print u”{0} v{1}: Copying needed library files from plugin’s zip”.format(PLUGIN_NAME, PLUGIN_VERSION)
    ^
    SyntaxError: invalid syntax

  7. Here’s an ADE PDF decryption failure. PDF works fine in ADE, can’t open in other viewers, even after putting the PDF into Calibre and trying to convert it: Decryption seems to work with ePubs though.

    Running Calibre 5.3 on Windows 10, with DeDRM v7.0.3

    Convert book 1 of 1 (Gunsmith Cats Revised Edition)
    DeDRM v7.0.3: Trying to decrypt huc_ul4g.pdf
    DeDRM v7.0.3: huc_ul4g.pdf is a PDF ebook
    DeDRM v7.0.3: Trying Encryption key default_key
    DeDRM v7.0.3: Exception when decrypting after 1.2 seconds
    Traceback (most recent call last):
    File “calibre_plugins.dedrm.init“, line 433, in PDFDecrypt
    File “calibre_plugins.dedrm.ineptpdf”, line 2179, in decryptBook
    File “calibre_plugins.dedrm.ineptpdf”, line 1985, in init
    File “calibre_plugins.dedrm.ineptpdf”, line 1469, in initialize
    File “calibre_plugins.dedrm.ineptpdf”, line 1603, in initialize_ebx
    AttributeError: ‘int’ object has no attribute ‘index’
    DeDRM v7.0.3: Failed to decrypt with key default_key after 1.2 seconds
    DeDRM v7.0.3: Trying Encryption key default_key_2
    error writing pdf: max() arg is an empty sequence
    DeDRM v7.0.3: Failed to decrypt with key default_key_2 after 1.4 seconds
    DeDRM v7.0.3: Looking for new default Adobe Digital Editions Keys after 1.4 seconds
    Found 1 keys
    DeDRM v7.0.3: Trying a new default key
    error writing pdf: max() arg is an empty sequence
    DeDRM v7.0.3: Failed to decrypt with new default key after 1.7 seconds
    DeDRM v7.0.3: Ultimately failed to decrypt after 1.7 seconds. Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
    Conversion options changed from defaults:
    cover: ‘C:\Users\ USER\AppData\Local\Temp\calibre_uixngo35\zq5kci9u.jpeg’
    read_metadata_from_opf: ‘C:\Users\ USER\AppData\Local\Temp\calibre_uixngo35\sykfhgar.opf’
    verbose: 2
    Resolved conversion options
    calibre version: 5.3.0
    {‘asciiize’: False,
    ‘author_sort’: None,
    ‘authors’: None,
    ‘base_font_size’: 0.0,
    ‘book_producer’: None,
    ‘change_justification’: ‘original’,
    ‘chapter’: “//[((name()=’h1′ or name()=’h2′) and re:test(., ”
    “‘\s
    ((chapter|book|section|part)\s+)|((prolog|prologue|epilogue)(\s+|$))’, ”
    “‘i’)) or @class = ‘chapter’]”,
    ‘chapter_mark’: ‘pagebreak’,
    ‘comments’: None,
    ‘cover’: ‘C:\Users\ USER\AppData\Local\Temp\calibre_uixngo35\zq5kci9u.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’: ‘2’,
    ‘expand_css’: False,
    ‘extra_css’: None,
    ‘extract_to’: None,
    ‘filter_css’: ”,
    ‘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 0x00000221CBA3CBE0>,
    ‘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,
    ‘new_pdf_engine’: False,
    ‘no_chapters_in_toc’: False,
    ‘no_default_epub_cover’: False,
    ‘no_images’: False,
    ‘no_inline_navbars’: False,
    ‘no_svg_cover’: False,
    ‘output_profile’: <calibre.customize.profiles.OutputProfile object at 0x00000221CBA3CE80>,
    ‘page_breaks_before’: “//*[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’: ‘C:\Users\ USER\AppData\Local\Temp\calibre_uixngo35\sykfhgar.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’: ”,
    ‘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_factor’: 0.45,
    ‘unwrap_lines’: True,
    ‘use_auto_toc’: False,
    ‘verbose’: 2}
    Running file type plugin DeDRM failed with traceback:
    Traceback (most recent call last):
    File “calibre\customize\ui.py”, line 172, in _run_filetype_plugins
    File “calibre_plugins.dedrm.init“, line 637, in run
    File “calibre_plugins.dedrm.init“, line 512, in PDFDecrypt
    calibre_plugins.dedrm.DeDRMError: DeDRM v7.0.3: Ultimately failed to decrypt after 1.7 seconds. Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
    DeDRM v7.0.3: Trying to decrypt huc_ul4g.pdf
    DeDRM v7.0.3: huc_ul4g.pdf is a PDF ebook
    DeDRM v7.0.3: Trying Encryption key default_key
    DeDRM v7.0.3: Exception when decrypting after 0.1 seconds
    Traceback (most recent call last):
    File “calibre_plugins.dedrm.init“, line 433, in PDFDecrypt
    File “calibre_plugins.dedrm.ineptpdf”, line 2179, in decryptBook
    File “calibre_plugins.dedrm.ineptpdf”, line 1985, in init
    File “calibre_plugins.dedrm.ineptpdf”, line 1469, in initialize
    File “calibre_plugins.dedrm.ineptpdf”, line 1603, in initialize_ebx
    AttributeError: ‘int’ object has no attribute ‘index’
    DeDRM v7.0.3: Failed to decrypt with key default_key after 0.1 seconds
    DeDRM v7.0.3: Trying Encryption key default_key_2
    error writing pdf: max() arg is an empty sequence
    DeDRM v7.0.3: Failed to decrypt with key default_key_2 after 0.4 seconds
    DeDRM v7.0.3: Looking for new default Adobe Digital Editions Keys after 0.4 seconds
    Found 1 keys
    DeDRM v7.0.3: Trying a new default key
    error writing pdf: max() arg is an empty sequence
    DeDRM v7.0.3: Failed to decrypt with new default key after 0.5 seconds
    DeDRM v7.0.3: Ultimately failed to decrypt after 0.5 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 “calibre\customize\ui.py”, line 172, in _run_filetype_plugins
    File “calibre_plugins.dedrm.init“, line 637, in run
    File “calibre_plugins.dedrm.init“, line 512, in PDFDecrypt
    calibre_plugins.dedrm.DeDRMError: DeDRM v7.0.3: Ultimately failed to decrypt after 0.5 seconds. Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
    InputFormatPlugin: PDF Input running
    on C:\Users\ USER\AppData\Local\Temp\calibre_uixngo35\huc_ul4g.pdf
    Converting file to html…
    Traceback (most recent call last):
    File “runpy.py”, line 194, in _run_module_as_main
    File “runpy.py”, line 87, in _run_code
    File “site.py”, line 82, in
    File “site.py”, line 77, in main
    File “site.py”, line 49, in run_entry_point
    File “calibre\utils\ipc\worker.py”, line 215, in main
    File “calibre\gui2\convert\gui_conversion.py”, line 41, in gui_convert_override
    File “calibre\gui2\convert\gui_conversion.py”, line 28, in gui_convert
    File “calibre\ebooks\conversion\plumber.py”, line 1108, in run
    File “calibre\customize\conversion.py”, line 245, in call
    File “calibre\ebooks\conversion\plugins\pdf_input.py”, line 54, in convert
    File “calibre\ebooks\pdf\pdftohtml.py”, line 83, in pdftohtml
    calibre.ebooks.ConversionError: pdftohtml failed with return code: 1
    Syntax Error: Couldn’t find the ‘EBX_HANDLER’ security handler
    Exception ignored in:
    Traceback (most recent call last):
    File “calibre_plugins.dedrm.adobekey”, line 266, in del
    TypeError: ‘NoneType’ object is not callable
    Exception ignored in:
    Traceback (most recent call last):
    File “calibre_plugins.dedrm.adobekey”, line 266, in del
    TypeError: ‘NoneType’ object is not callable

  8. I’ve got an M1 MacBook Air running Big Sur, Calibre 5.10.1, deDRM 7.0.3 with the chmod modification made (and then the Kindle app restarted before downloading anything), and when I import a newly downloaded AZW file into Calibre, I get the “it’s still protected by DRM” error.

    Here’s my log:

    FFF: DEBUG: 2021-01-30 21:25:39,129: calibre_plugins.fanficfare_plugin.fff_plugin(221): Plugin FanFicFare macmenuhack file_path:/Users/*****/Library/Preferences/calibre/plugins/fanficfare_macmenuhack.txt
    QLayout::addChildLayout: layout “” already has a parent
    calibre Debug log
    calibre 5.10.1 embedded-python: True is64bit: True
    macOS-10.16-x86_64-i386-64bit Darwin (’64bit’, ”)
    (‘Darwin’, ‘20.2.0’, ‘Darwin Kernel Version 20.2.0: Wed Dec 2 20:40:21 PST 2020; root:xnu-7195.60.75~1/RELEASE_ARM64_T8101’)
    Python 3.8.5
    OSX: (‘10.16’, (”, ”, ”), ‘x86_64′)
    Interface language: None
    Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 36, 0) && DeDRM (7, 0, 3) && Package KFX (from KFX Input) (1, 36, 0) && BookFusion Plugin (0, 5, 3) && FanFicFare (3, 29, 0) && Goodreads Sync (1, 15, 0) && KFX metadata reader (from KFX Input) (1, 36, 0) && KFX Input (1, 36, 0) && Set KFX metadata (from KFX Output) (1, 48, 0) && KFX Output (1, 48, 0)
    calibre 5.10.1 embedded-python: True is64bit: True
    macOS-10.16-x86_64-i386-64bit Darwin (’64bit’, ”)
    (‘Darwin’, ‘20.2.0’, ‘Darwin Kernel Version 20.2.0: Wed Dec 2 20:40:21 PST 2020; root:xnu-7195.60.75~1/RELEASE_ARM64_T8101’)
    Python 3.8.5
    OSX: (‘10.16’, (”, ”, ”), ‘x86_64’)
    Interface language: None
    Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 36, 0) && DeDRM (7, 0, 3) && Package KFX (from KFX Input) (1, 36, 0) && BookFusion Plugin (0, 5, 3) && FanFicFare (3, 29, 0) && Goodreads Sync (1, 15, 0) && KFX metadata reader (from KFX Input) (1, 36, 0) && KFX Input (1, 36, 0) && Set KFX metadata (from KFX Output) (1, 48, 0) && KFX Output (1, 48, 0)
    devicePixelRatio: 2.0
    logicalDpi: 72.0 x 72.0
    physicalDpi: 127.50000191485789 x 127.50000191485789
    Using calibre Qt style: True
    [0.00] Starting up…
    [0.02] Showing splash screen…
    [0.23] splash screen shown
    [0.23] Initializing db…
    [0.25] db initialized
    [0.25] Constructing main UI…
    DEBUG: 0.0 Goodreads Sync::dialogs.py – loading translations
    DEBUG: 0.0 GoodreadsSync::action.py – loading translations
    DEBUG: 0.8 HttpHelper::init: proxy=None
    [1.75] main UI initialized…
    [1.75] Hiding splash screen
    [1.75] splash screen hidden
    [1.75] Started up in 1.75 seconds with 439 books
    Starting QuickView
    Gather KFX-ZIP (from KFX Input) 1.36.0: Importing /Users/*****/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/My Kindle Content/B07D69Z6C2_EBOK/B07D69Z6C2_EBOK.azw
    Gather KFX-ZIP (from KFX Input): File is not KFX format
    DeDRM v7.0.3: Trying to decrypt B07D69Z6C2_EBOK.azw
    Using Library AlfCrypto Python
    Using Library AlfCrypto Python
    MobiDeDrm v1.0.
    Copyright © 2008-2020 The Dark Reverser, Apprentice Harper et al.
    Decrypting Kindle Format 8 ebook: Chillpreneur
    Found 0 keys to try after 0.1 seconds
    Crypto Type is: 2
    DeDRM v7.0.3: Failed to decrypt with error: No key found in 0 PIDs tried.
    DeDRM v7.0.3: Looking for new default Kindle Key after 0.1 seconds
    Found k4Mac kinf2018 file: /Users/*****/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2018
    trying username b’*****’ on file /Users/*****/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2018
    trying IDString: b’61e4bb9fcd39′
    trying IDString: b’bba5776d83e5′
    trying IDString: b’bba5776d83e4′
    trying IDString: b’bd9b4a0a7932′
    Decrypted key file using IDString ‘bd9b4a0a7932’ and UserName ‘*****’
    DeDRM v7.0.3: Found 1 new key
    MobiDeDrm v1.0.
    Copyright © 2008-2020 The Dark Reverser, Apprentice Harper et al.
    Decrypting Kindle Format 8 ebook: Chillpreneur
    Got SerialNumber from database default_key_1
    Got UsernameHash from database default_key_1
    Found 4 keys to try after 1.6 seconds
    Crypto Type is: 2
    DeDRM v7.0.3: Ultimately failed to decrypt after 1.6 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 “calibre_plugins.dedrm.init“, line 537, in KindleMobiDecrypt
    book = k4mobidedrm.GetDecryptedBook(path_to_ebook,kindleDatabases,androidFiles,serials,pids,self.starttime)
    File “calibre_plugins.dedrm.k4mobidedrm”, line 238, in GetDecryptedBook
    mb.processBook(totalpids)
    File “calibre_plugins.dedrm.mobidedrm”, line 484, in processBook
    raise DrmException(“No key found in {0:d} PIDs tried.”.format(len(goodpids)))
    calibre_plugins.dedrm.mobidedrm.DrmException: No key found in 0 PIDs tried.

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
    File “calibre/customize/ui.py”, line 172, in _run_filetype_plugins
    File “calibre_plugins.dedrm.init“, line 630, in run
    decrypted_ebook = self.KindleMobiDecrypt(path_to_ebook)
    File “calibre_plugins.dedrm.init“, line 580, in KindleMobiDecrypt
    raise DeDRMError(“{0} v{1}: Ultimately failed to decrypt after {2:.1f} seconds. Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md“.format(PLUGIN_NAME, PLUGIN_VERSION,time.time()-self.starttime))
    calibre_plugins.dedrm.DeDRMError: DeDRM v7.0.3: Ultimately failed to decrypt after 1.6 seconds. Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
    Added Chillpreneur to db in: 0.0
    Added 1 books in 2.1 seconds
    Worker Launch took: 0.03 seconds

      • I’m glad I’m waiting for DeDRM to get out of native. My wife has Big Sur. My old iMac is stuck on Catalina, and I’m waiting to replace it until I no longer need to boot to Mojave to run a program that is being converted to 64-bit. When that happens, I’ll have to decide between a Mac-Mini or wait for the M1 iMac.

        • Wait for the 2nd gen M1 chip. The current one has too many limitations and the rule is never ever buy a first generation product from Apple as it usually is lousy. iPad was awful. Apple Watch was terrible. Air Pods had terrible battery life. So wait for the 2nd gen M1 chip before you buy. Also, if you buy an Intel based Mac, you’ll not be able to run anything written natively for the M1 while you will be able to run most Intel code.

  9. I’m having a similar issue. When I try to add the zipped DeDRM file, I get the following error –
    calibre, version 4.23.0
    ERROR: Unhandled exception: InvalidPlugin:The plugin in u’/Users/marygwenalston/Downloads/DeDRM_tools_6.8.1.zip’ is invalid. It does not contain a top-level init.py file

    calibre 4.23 embedded-python: True is64bit: True
    Darwin-20.1.0-x86_64-i386-64bit Darwin (’64bit’, ”)
    (‘Darwin’, ‘20.1.0’, ‘Darwin Kernel Version 20.1.0: Sat Oct 31 00:07:11 PDT 2020; root:xnu-7195.50.7~2/RELEASE_X86_64’)
    Python 2.7.16
    OSX: (‘10.16’, (”, ”, ”), ‘x86_64′)
    Interface language: None
    Successfully initialized third party plugins: DeDRM (6, 6, 3)
    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 472, in add_plugin
    File “site-packages/calibre/customize/ui.py”, line 61, in load_plugin
    File “site-packages/calibre/customize/zipplugin.py”, line 194, in load
    File “site-packages/calibre/customize/zipplugin.py”, line 292, in _locate_code
    InvalidPlugin: The plugin in u’/Users/marygwenalston/Downloads/DeDRM_tools_6.8.1.zip’ is invalid. It does not contain a top-level init.py file

    I am trying to remove the DRM from a borrowed library ebook. Any thoughts?

  10. Hello.
    I need your help.
    I downloaded DeDRM_plugin_7.0.0b4 folder, and unzipped it.
    When I’m in Calibre, I opened “add plug in from file”, but when I chose the unzipped folder DeDRM_plugin_7.0.0b4 folder, I couldn’t locate and select the DeDRM_Plugin.zip … How do I do this?

  11. Hello,

    I’m suddenly having issues with calibre and kindle. I am using MAC OS Catalina10.15.7. I downgraded calibre to v 4.23 and downloaded DeDRM 6.8.1. This is the first time I am running into issues. Books are not opening. It says to remove from library and try again. I’m getting the same message on my paperwhite and kindle for android on my tablet. The books open fine directly into the kindle app or apple book. The book is an active library rental, within its rental period. Not trying any funny business. Besides this current issue, I can’t go back and open any of the books that were already on my kindle. No idea what happened.

    calibre Debug log
    calibre 4.23 embedded-python: True is64bit: True
    Darwin-19.6.0-x86_64-i386-64bit Darwin (’64bit’, ”)
    (‘Darwin’, ‘19.6.0’, ‘Darwin Kernel Version 19.6.0: Tue Nov 10 00:10:30 PST 2020; root:xnu-6153.141.10~1/RELEASE_X86_64’)
    Python 2.7.16
    OSX: (‘10.15.7’, (”, ”, ”), ‘x86_64′)
    Interface language: None
    Successfully initialized third party plugins: DeDRM (6, 8, 0)
    calibre 4.23 embedded-python: True is64bit: True
    Darwin-19.6.0-x86_64-i386-64bit Darwin (’64bit’, ”)
    (‘Darwin’, ‘19.6.0’, ‘Darwin Kernel Version 19.6.0: Tue Nov 10 00:10:30 PST 2020; root:xnu-6153.141.10~1/RELEASE_X86_64’)
    Python 2.7.16
    OSX: (‘10.15.7’, (”, ”, ”), ‘x86_64’)
    Interface language: None
    Successfully initialized third party plugins: DeDRM (6, 8, 0)
    devicePixelRatio: 1.0
    logicalDpi: 72.0 x 72.0
    physicalDpi: 114.000001712 x 114.000001712
    Using calibre Qt style: True
    [0.00] Starting up…
    [0.04] Showing splash screen…
    [0.37] splash screen shown
    [0.37] Initializing db…
    [0.39] db initialized
    [0.39] Constructing main UI…
    [1.60] main UI initialized…
    [1.60] Hiding splash screen
    DeDRM v6.8.0: Trying to decrypt Leaving Atlanta.azw3
    Using Library AlfCrypto Python
    MobiDeDrm v0.42.
    Copyright © 2008-2017 The Dark Reverser, Apprentice Harper et al.
    Decrypting Kindle Format 8 ebook: Leaving Atlanta
    Found 2 keys to try after 0.6 seconds
    Crypto Type is: 2
    DeDRM v6.8.0: Failed to decrypt with error: No key found in 2 keys tried.
    DeDRM v6.8.0: Looking for new default Kindle Key after 0.6 seconds
    Found k4Mac kinf2018 file: /Users/akuaasare/Library/Application Support/Kindle/storage/.kinf2018
    [11.93] splash screen hidden
    [11.93] Started up in 11.93 seconds with 58 books
    Decrypted key file using IDString ‘b57814867fd0’ and UserName ‘akuaasare’
    DeDRM v6.8.0: Found 1 new key
    MobiDeDrm v0.42.
    Copyright © 2008-2017 The Dark Reverser, Apprentice Harper et al.
    Decrypting Kindle Format 8 ebook: Leaving Atlanta
    Got DSN key from database default_key_1
    Found 4 keys to try after 1.4 seconds
    Crypto Type is: 2
    DeDRM v6.8.0: Ultimately failed to decrypt after 1.4 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 172, in _run_filetype_plugins
    File “calibre_plugins.dedrm.init“, line 626, in run
    File “calibre_plugins.dedrm.init“, line 576, in KindleMobiDecrypt
    DeDRMError: DeDRM v6.8.0: Ultimately failed to decrypt after 1.4 seconds. Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md

  12. Hello, With calibre 5.10.1 and DeDRM 7.0.3 I loaded in calibre an epub file got from an acsm link. I am not sure it supposed to succeed to remove the DRM , but I get the following error:

    calibre, version 5.10.1
    ERREUR : Le chargement du livre a échoué: Impossible d’ouvrir le livre à la position C:\Users\sylma\Documents\eBook\calibre\Harari Yuval Noah\Sapiens (236)\Sapiens – Harari Yuval Noah.epub. Cliquez sur “Afficher les détails” pour plus d’informations.

    Failed to convert book: C:\Users\sylma\Documents\eBook\calibre\Harari Yuval Noah\Sapiens (236)\Sapiens – Harari Yuval Noah.epub with error:
    DeDRM v7.0.3: Trying to decrypt Sapiens – Harari Yuval Noah.epub
    DeDRM v7.0.3: Verifying zip archive integrity
    DeDRM v7.0.3: Sapiens – Harari Yuval Noah.epub is a secure Adobe Adept ePub
    DeDRM v7.0.3: Trying Encryption key default_key
    Could not decrypt raptupe9.epub because of an exception:
    Traceback (most recent call last):
    File “calibre_plugins.dedrm.ineptepub”, line 418, in decryptBook
    TypeError: object of type ‘int’ has no len()

    DeDRM v7.0.3: Failed to decrypt with key default_key after 0.2 seconds
    DeDRM v7.0.3: Looking for new default Adobe Digital Editions Keys after 0.2 seconds
    Found 1 keys
    DeDRM v7.0.3: 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
    InputFormatPlugin: EPUB Input running
    on C:\Users\sylma\Documents\eBook\calibre\Harari Yuval Noah\Sapiens (236)\Sapiens – Harari Yuval Noah.epub
    Failed to run pipe worker with command: from calibre.srv.render_book import viewer_main; viewer_main()
    Running file type plugin DeDRM failed with traceback:
    Traceback (most recent call last):
    File “calibre\customize\ui.py”, line 172, in _run_filetype_plugins
    File “calibre_plugins.dedrm.init“, line 641, in run
    File “calibre_plugins.dedrm.init“, line 412, in ePubDecrypt
    calibre_plugins.dedrm.DeDRMError: DeDRM v7.0.3: 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
    Traceback (most recent call last):
    File “runpy.py”, line 194, in _run_module_as_main
    File “runpy.py”, line 87, in _run_code
    File “site.py”, line 82, in
    File “site.py”, line 77, in main
    File “site.py”, line 49, in run_entry_point
    File “calibre\utils\ipc\worker.py”, line 197, in main
    File “”, line 1, in
    File “calibre\srv\render_book.py”, line 865, in viewer_main
    File “calibre\srv\render_book.py”, line 856, in render_for_viewer
    File “calibre\srv\render_book.py”, line 833, in render
    File “calibre\ebooks\oeb\iterator\book.py”, line 63, in extract_book
    File “calibre\customize\conversion.py”, line 245, in call
    File “calibre\ebooks\conversion\plugins\epub_input.py”, line 290, in convert
    calibre.ebooks.DRMError: Sapiens – Harari Yuval Noah.epub
    Exception ignored in:
    Traceback (most recent call last):
    File “calibre_plugins.dedrm.adobekey”, line 266, in del
    TypeError: ‘NoneType’ object is not callable
    Exception ignored in:
    Traceback (most recent call last):
    File “calibre_plugins.dedrm.adobekey”, line 266, in del
    TypeError: ‘NoneType’ object is not callable

    Thanks .

    • Is ADE on the same machine and user as calibre with DeDRM? Is ADE authorized with your Adobe ID? Are you using ADE 2.0.1? If not, can you open the book with ADE 2.0.1 authorized with the same Adobe ID?

      • Is ADE on the same machine and user as calibre with DeDRM? YES
        Is ADE authorized with your Adobe ID? YES
        Are you using ADE 2.0.1? NO, ADE 3.0
        If not, can you open the book with ADE 2.0.1 authorized with the same Adobe ID? I got some issues when I tried to install ADE 2.0.1 on windows 10. It should be possible ?

        Thanks

        • Yes, I use ADE 2.0.1 on Windows 10. I’m still using calibre 4.23 and DeDRM 6.8, but I’ve seen other reports of success with DeDRM 7.0.3 and Adobe epubs. It mainly seems to be pdfs that are still giving problems with the beta DeDRM.

          • I’m using Calibre 5.x (latest version) along with DeDRM 7.0.3 and it does work for Mobi, KF8, and ePub.

            What I did was export the keys from DeDRM 6.8.0 and Calibre 4.23. I then deleted the jason file for DeDRM and imported the keys using one of the beta versions and it’s worked. When I installed one of the beta versions, it didn’t work with the jason file from 6.8.0. I don’t know it’s that has been fixed with 7.0.3.

  13. Thanks for your help, I found the reason of my issue, I have two urn:uuid: associated to the same email address. I can’t access anymore to the ebook dowloaded with the initial urn:uuid. ADE2.0.1 doesn’t help in my case.

  14. calibre Debug log
    calibre 5.10.1 embedded-python: True is64bit: False
    Windows-10-10.0.18362 Windows (’32bit’, ‘WindowsPE’)
    32bit process running on 64bit windows
    (‘Windows’, ’10’, ‘10.0.18362’)
    Python 3.8.5
    Windows: (’10’, ‘10.0.18362’, ”, ‘Multiprocessor Free’)
    Interface language: None
    Successfully initialized third party plugins: Obok DeDRM (6, 7, 0)
    calibre 5.10.1 embedded-python: True is64bit: False
    Windows-10-10.0.18362 Windows (’32bit’, ‘WindowsPE’)
    32bit process running on 64bit windows
    (‘Windows’, ’10’, ‘10.0.18362’)
    Python 3.8.5
    Windows: (’10’, ‘10.0.18362’, ”, ‘Multiprocessor Free’)
    Interface language: None
    Successfully initialized third party plugins: Obok DeDRM (6, 7, 0)
    Turning on automatic hidpi scaling
    devicePixelRatio: 2.0
    logicalDpi: 96.0 x 96.0
    physicalDpi: 82.93877551020408 x 83.12727272727273
    Using calibre Qt style: True
    [0.00] Starting up…
    [0.02] Showing splash screen…
    [0.39] splash screen shown
    [0.39] Initializing db…
    [0.39] db initialized
    [0.39] Constructing main UI…
    [0.88] main UI initialized…
    [0.88] Hiding splash screen
    Starting QuickView
    [21.20] splash screen hidden
    [21.20] Started up in 21.20 seconds with 0 books
    stdout+stderr from file dialog helper: [b”, b”]
    piped data from file dialog helper: [b’\x95\xfd\x1am\xfb\x1e\x08\xa9S\xe6gA\x99\xc9\xc7\xae\xf8.iGx\xa0w\xea\xc3\x8dZD\x9a\xdb\xf0\xc5′, b’C:\Users\frane\OneDrive\Documents\My Digital Editions\The Whole Foods Diet.epub’]
    Added The Whole Foods Diet to db in: 0.1
    Added 1 books in 0.4 seconds
    Traceback (most recent call last):
    File “calibre\gui2\ui.py”, line 134, in init
    File “calibre\gui2\ui.py”, line 152, in init_iaction
    File “calibre\customize__init__.py”, line 616, in load_actual_plugin
    File “importlib__init__.py”, line 127, in import_module
    File “”, line 1014, in _gcd_import
    File “”, line 991, in _find_and_load
    File “”, line 975, in _find_and_load_unlocked
    File “”, line 671, in _load_unlocked
    File “calibre\customize\zipplugin.py”, line 192, in exec_module
    File “calibre_plugins.obok_dedrm.action”, line 24, in
    File “calibre\customize\zipplugin.py”, line 192, in exec_module
    File “calibre_plugins.obok_dedrm.dialogs”, line 30, in
    File “calibre\customize\zipplugin.py”, line 192, in exec_module
    File “calibre_plugins.obok_dedrm.utilities”, line 10, in
    ModuleNotFoundError: No module named ‘StringIO’

  15. I’m not sure if I’m doing something wrong, but everytime I try to save a purchased book from my Kindle paperwhite to the PC through Calibre 5.10.1, and then add it to the library, I still cannot open the book because it’s DRM protected…
    I’ve installed the deDRM 7.0.3 and the “KFX Input 1.36.0”
    My Kindle firware version is 5.12.2

    Any help would be great 😛

  16. I’m awaiting the fix going out of beta. But something off-topic happened to me. On my Catalina Mac, I can no longer download books I bought using Chrome. So I go to Firefox to download books and open them on Calibre. I have no idea how that happened.

  17. Hello. I downloaded calibre 4.23, DeDRM 6.8.1 and disabled KFX using the command line method. When I try to convert, I still get a DRM error. Cant figure out why. macOS Big Sur. Any help is appreciated.

  18. A few months ago I had downloaded the beta tools and the new Calibre for my iMac with BigSur OS and it had all broken with nothing but failures. At the time someone here (and I thank them) told me to back off and downgrade to Calibre 4.23 and Tools 6.8.1 which I did. It has all been 100% fine since that awful few days. But I am always upgrading stuff to the newest software and I always feel bad when Calibre shows a new update. But I do NOT want to experiment again. I see the tools are still beta? So, not time to download as yet? Or am I missing where the debugged tools might be found? Thanks.

  19. Hello, I’ve been struggling to remove the DRM for some ebooks, mainly AZW format and varieties thereof…
    I’m on a Windows machine, using both the latest Calibre and deDRM plugins, and it will not remove the DRM. I’ve checked other comments, the FAQ, the readme, and I’m sure I’m missing something, but struggling to figure out what it is. I appreciate the help!

    Here’s the log…. I’m not sure how much of it you needed:

    calibre Debug log
    calibre 5.10.1 [64bit] embedded-python: True is64bit: True
    Windows-10-10.0.18362 Windows (’64bit’, ‘WindowsPE’)
    (‘Windows’, ’10’, ‘10.0.18362’)
    Python 3.8.5
    Windows: (’10’, ‘10.0.18362’, ”, ‘Multiprocessor Free’)
    Interface language: en_GB
    Successfully initialized third party plugins: DeDRM (7, 0, 3)
    calibre 5.10.1 [64bit] embedded-python: True is64bit: True
    Windows-10-10.0.18362 Windows (’64bit’, ‘WindowsPE’)
    (‘Windows’, ’10’, ‘10.0.18362’)
    Python 3.8.5
    Windows: (’10’, ‘10.0.18362’, ”, ‘Multiprocessor Free’)
    Interface language: en_GB
    Successfully initialized third party plugins: DeDRM (7, 0, 3)
    Turning on automatic hidpi scaling
    devicePixelRatio: 1.0
    logicalDpi: 96.0 x 96.0
    physicalDpi: 128.33684210526314 x 130.62857142857143
    Using calibre Qt style: True
    [0.00] Starting up…
    [0.00] Showing splash screen…
    Failed to read metadata from font file: c:\windows\fonts\mashydsh.ttf tuple index out of range
    [0.66] splash screen shown
    [0.66] Initializing db…
    [0.66] db initialized
    [0.66] Constructing main UI…
    [1.17] main UI initialized…
    [1.17] Hiding splash screen
    Starting QuickView
    DeDRM v7.0.3: Trying to decrypt Bartol, Amy A. – Secondborn (Secondborn Series #1).azw3
    Using Library AlfCrypto DLL/DYLIB/SO
    Using Library AlfCrypto DLL/DYLIB/SO
    MobiDeDrm v1.0.
    Copyright © 2008-2020 The Dark Reverser, Apprentice Harper et al.
    Decrypting Kindle Format 8 ebook: Secondborn (Secondborn Series Book 1)
    Found 0 keys to try after 0.1 seconds
    Crypto Type is: 2
    DeDRM v7.0.3: Failed to decrypt with error: No key found in 0 PIDs tried.
    DeDRM v7.0.3: Looking for new default Kindle Key after 0.1 seconds
    searching for kinfoFiles in C:\Users\jennm\AppData\Local
    No K4PC kindle.info/kinf/kinf2011 files have been found.
    DeDRM v7.0.3: 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
    [6.62] splash screen hidden
    [6.62] Started up in 6.62 seconds with 1 books
    stdout+stderr from file dialog helper: [b”, b”]
    piped data from file dialog helper: [b’%\x18\xec \x01\xc12\xc8<6%\x9c\x0b\xc2\xcf=\x10h\x9e\xb4\x98\xf2\xf9G\xe4\xf8\xaf}\x82\xc5\xaf.’, b’F:\01 Digital Library – files to be converted – 210104\AZW3\Bartol, Amy A. – Secondborn (Secondborn Series #1).azw3′]
    Added Secondborn (Secondborn Series Book 1) to db in: 1.5
    Running file type plugin DeDRM failed with traceback:
    Traceback (most recent call last):
    File “calibre_plugins.dedrm.init“, line 537, in KindleMobiDecrypt
    File “calibre_plugins.dedrm.k4mobidedrm”, line 238, in GetDecryptedBook
    File “calibre_plugins.dedrm.mobidedrm”, line 484, in processBook
    calibre_plugins.dedrm.mobidedrm.DrmException: No key found in 0 PIDs tried.

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
    File “calibre\customize\ui.py”, line 172, in _run_filetype_plugins
    File “calibre_plugins.dedrm.init“, line 630, in run
    File “calibre_plugins.dedrm.init“, line 580, in KindleMobiDecrypt
    calibre_plugins.dedrm.DeDRMError: DeDRM v7.0.3: Ultimately failed to decrypt after 0.1 seconds. Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/masAdded 1 books in 1.9 seconds
    Worker Launch took: 0.03 seconds
    Job: 0 Convert book 1 of 1 (Secondborn (Secondborn Series Book 1)) finished
    Convert book 1 of 1 (Secondborn (Secondborn Series Book 1))

    DeDRM v7.0.3: Trying to decrypt 2bgev10n.azw3
    Using Library AlfCrypto DLL/DYLIB/SO
    Using Library AlfCrypto DLL/DYLIB/SO
    MobiDeDrm v1.0.
    Copyright © 2008-2020 The Dark Reverser, Apprentice Harper et al.
    Decrypting Kindle Format 8 ebook: Secondborn (Secondborn Series Book 1)
    Found 0 keys to try after 0.1 seconds
    Crypto Type is: 2
    DeDRM v7.0.3: Failed to decrypt with error: No key found in 0 PIDs tried.
    DeDRM v7.0.3: Looking for new default Kindle Key after 0.1 seconds
    searching for kinfoFiles in C:\Users\jennm\AppData\Local
    No K4PC kindle.info/kinf/kinf2011 files have been found.
    DeDRM v7.0.3: 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
    Conversion options changed from defaults:

    cover: ‘C:\Users\jennm\AppData\Local\Temp\calibre_4xc501f9\tt6f7d_4.jpeg’

    verbose: 2

    output_profile: ‘kindle_pw3’

    read_metadata_from_opf: ‘C:\Users\jennm\AppData\Local\Temp\calibre_4xc501f9\83bwur37.opf’

    Resolved conversion options

    calibre version: 5.10.1

    • Retrieved from the website for d”ownload & transfer via USB”? You need to choose an E-ink Kindle for the device (not a Fire) and you need to enter its serial number into DeDRM’s customization.

      • Thanks! I am pretty sure I set my device as a Paperwhite. Are you meaning the file needs to be downloaded differently? I’m not sure how to find the DeDRM’s customization.

        • If you selected your Paperwhite during the download, you should be good. In calibre go to Preferences > Plugins. Then highlight the DeDRM plugin in the list and click the Customize plugin button > eInk Kindle ebooks > green plus sign. Easiest way to get the serial number in there correctly is to copy and paste it from your Content & Devices page at Amazon. Then click ok and apply out of the dialog boxes and restart calibre before re-adding the book.

          • I really appreciate your help! I have done that! I entered the serial number, and I’ve got a second Kindle serial number for the household that I added too.
            I am still experiencing Calibre not removing the DRM.

            Here’s a new log, if that helps:

            calibre Debug log
            calibre 5.10.1 [64bit] embedded-python: True is64bit: True
            Windows-10-10.0.18362 Windows (’64bit’, ‘WindowsPE’)
            (‘Windows’, ’10’, ‘10.0.18362’)
            Python 3.8.5
            Windows: (’10’, ‘10.0.18362’, ”, ‘Multiprocessor Free’)
            Interface language: en_GB
            Successfully initialized third party plugins: DeDRM (7, 0, 3)
            calibre 5.10.1 [64bit] embedded-python: True is64bit: True
            Windows-10-10.0.18362 Windows (’64bit’, ‘WindowsPE’)
            (‘Windows’, ’10’, ‘10.0.18362’)
            Python 3.8.5
            Windows: (’10’, ‘10.0.18362’, ”, ‘Multiprocessor Free’)
            Interface language: en_GB
            Successfully initialized third party plugins: DeDRM (7, 0, 3)
            Turning on automatic hidpi scaling
            devicePixelRatio: 1.0
            logicalDpi: 96.0 x 96.0
            physicalDpi: 128.33684210526314 x 130.62857142857143
            Using calibre Qt style: True
            [0.00] Starting up…
            [0.00] Showing splash screen…
            Failed to read metadata from font file: c:\windows\fonts\mashydsh.ttf tuple index out of range
            [0.69] splash screen shown
            [0.69] Initializing db…
            [0.69] db initialized
            [0.69] Constructing main UI…
            [1.22] main UI initialized…
            [1.22] Hiding splash screen
            Starting QuickView
            [4.03] splash screen hidden
            [4.03] Started up in 4.03 seconds with 1 books
            stdout+stderr from file dialog helper: [b”, b”]
            piped data from file dialog helper: [b’M\xa92\x871\x15\x85\G(\x87t\xd8\xb9!\xab\x86\x84\x91\x1f\x94\x90{\xde+\r\xbd5p\xa0\x0f\x15′, b’F:\01 Digital Library – files to be converted – 210104\AZW3\Alexander, T. Desmond – From Paradise to the Promised Land – An Introduction to the Pentateuch.azw3′, b’F:\01 Digital Library – files to be converted – 210104\AZW3\Bartol, Amy A. – Secondborn (Secondborn Series #1).azw3′]
            DeDRM v7.0.3: Trying to decrypt Alexander, T. Desmond – From Paradise to the Promised Land – An Introduction to the Pentateuch.azw3
            Using Library AlfCrypto DLL/DYLIB/SO
            Using Library AlfCrypto DLL/DYLIB/SO
            MobiDeDrm v1.0.
            Copyright © 2008-2020 The Dark Reverser, Apprentice Harper et al.
            Decrypting Kindle Format 8 ebook: From Paradise to the Promised Land: An Introduction to the Pentateuch
            Found 4 keys to try after 0.1 seconds
            Crypto Type is: 2
            DeDRM v7.0.3: Failed to decrypt with error: No key found in 4 PIDs tried.
            DeDRM v7.0.3: Looking for new default Kindle Key after 0.1 seconds
            searching for kinfoFiles in C:\Users\jennm\AppData\Local
            No K4PC kindle.info/kinf/kinf2011 files have been found.
            DeDRM v7.0.3: 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
            DeDRM v7.0.3: Trying to decrypt Bartol, Amy A. – Secondborn (Secondborn Series #1).azw3
            Using Library AlfCrypto DLL/DYLIB/SO
            Using Library AlfCrypto DLL/DYLIB/SO
            MobiDeDrm v1.0.
            Copyright © 2008-2020 The Dark Reverser, Apprentice Harper et al.
            Decrypting Kindle Format 8 ebook: Secondborn (Secondborn Series Book 1)
            Found 4 keys to try after 0.1 seconds
            Crypto Type is: 2
            DeDRM v7.0.3: Failed to decrypt with error: No key found in 4 PIDs tried.
            DeDRM v7.0.3: Looking for new default Kindle Key after 0.1 seconds
            searching for kinfoFiles in C:\Users\jennm\AppData\Local
            No K4PC kindle.info/kinf/kinf2011 files have been found.
            DeDRM v7.0.3: 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 From Paradise to the Promised Land: An Introduction to the Pentateuch to db in: 3.0
            Running file type plugin DeDRM failed with traceback:
            Traceback (most recent call last):
            File “calibre_plugins.dedrm.init“, line 537, in KindleMobiDecrypt
            File “calibre_plugins.dedrm.k4mobidedrm”, line 238, in GetDecryptedBook
            File “calibre_plugins.dedrm.mobidedrm”, line 484, in processBook
            calibre_plugins.dedrm.mobidedrm.DrmException: No key found in 4 PIDs tried.

            During handling of the above exception, another exception occurred:

            Traceback (most recent call last):
            File “calibre\customize\ui.py”, line 172, in _run_filetype_plugins
            File “calibre_plugins.dedrm.init“, line 630, in run
            File “calibre_plugins.dedrm.init“, line 580, in KindleMobiDecrypt
            calibre_plugins.dedrm.DeDRMError: DeDRM v7.0.3: 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 “calibre_plugins.dedrm.init“, line 537, in KindleMobiDecrypt
            File “calibre_plugins.dedrm.k4mobidedrm”, line 238, in GetDecryptedBook
            File “calibre_plugins.dedrm.mobidedrm”, line 484, in processBook
            calibre_plugins.dedrm.mobidedrm.DrmException: No key found in 4 PIDs tried.

            During handling of the above exception, another exception occurred:

            Traceback (most recent call last):
            File “calibre\customize\ui.py”, line 172, in _run_filetype_plugins
            File “calibre_plugins.dedrm.init“, line 630, in run
            File “calibre_plugins.dedrm.init“, line 580, in KindleMobiDecrypt
            calibre_plugins.dedrm.DeDRMError: DeDRM v7.0.3: 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 Secondborn (Secondborn Series Book 1) to db in: 2.9
            Added 2 books in 6.7 seconds
            Worker Launch took: 0.05 seconds
            Job: 0 Convert book 1 of 1 (Secondborn (Secondborn Series Book 1)) finished
            Convert book 1 of 1 (Secondborn (Secondborn Series Book 1))

            DeDRM v7.0.3: Trying to decrypt 63yo7otj.azw3
            Using Library AlfCrypto DLL/DYLIB/SO
            Using Library AlfCrypto DLL/DYLIB/SO
            MobiDeDrm v1.0.
            Copyright © 2008-2020 The Dark Reverser, Apprentice Harper et al.
            Decrypting Kindle Format 8 ebook: Secondborn (Secondborn Series Book 1)
            Found 4 keys to try after 0.1 seconds
            Crypto Type is: 2
            DeDRM v7.0.3: Failed to decrypt with error: No key found in 4 PIDs tried.
            DeDRM v7.0.3: Looking for new default Kindle Key after 0.1 seconds
            searching for kinfoFiles in C:\Users\jennm\AppData\Local
            No K4PC kindle.info/kinf/kinf2011 files have been found.
            DeDRM v7.0.3: 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
            Conversion options changed from defaults:
            
              cover: 'C:\\Users\\jennm\\AppData\\Local\\Temp\\calibre_7daqg6xw\\v9uko2rv.jpeg'
            
              verbose: 2
            
              read_metadata_from_opf: 'C:\\Users\\jennm\\AppData\\Local\\Temp\\calibre_7daqg6xw\\9kug82mj.opf'
            
              output_profile: 'kindle_pw3'
            
            Resolved conversion options
            
            calibre version: 5.10.1
            
  20. Have downloaded your latest DRM removal plugin and it has been working fine. I have now downloaded a KFX ZIP file ebook to my kindle on my pc and when trying to convert to epub through calibre is it not removing the DMR. KFX files are still being converted. Do you have any solution. Thanks in advance.

      • calibre Debug log
        calibre 5.10.1 embedded-python: True is64bit: False
        Windows-10-10.0.19041 Windows (’32bit’, ‘WindowsPE’)
        32bit process running on 64bit windows
        (‘Windows’, ’10’, ‘10.0.19041’)
        Python 3.8.5
        Windows: (’10’, ‘10.0.19041’, ”, ‘Multiprocessor Free’)
        Interface language: en_GB
        Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 36, 0) && DeDRM (7, 0, 3) && Package KFX (from KFX Input) (1, 36, 0) && KFX metadata reader (from KFX Input) (1, 36, 0) && KFX Input (1, 36, 0) && KePub Input (3, 4, 3) && KePub Metadata Reader (3, 4, 3) && KePub Metadata Writer (3, 4, 3) && KePub Output (3, 4, 4) && Kobo Utilities (2, 12, 3) && KoboTouchExtended (3, 4, 4) && Obok DeDRM (6, 5, 4)
        calibre 5.10.1 embedded-python: True is64bit: False
        Windows-10-10.0.19041 Windows (’32bit’, ‘WindowsPE’)
        32bit process running on 64bit windows
        (‘Windows’, ’10’, ‘10.0.19041’)
        Python 3.8.5
        Windows: (’10’, ‘10.0.19041’, ”, ‘Multiprocessor Free’)
        Interface language: en_GB
        Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 36, 0) && DeDRM (7, 0, 3) && Package KFX (from KFX Input) (1, 36, 0) && KFX metadata reader (from KFX Input) (1, 36, 0) && KFX Input (1, 36, 0) && KePub Input (3, 4, 3) && KePub Metadata Reader (3, 4, 3) && KePub Metadata Writer (3, 4, 3) && KePub Output (3, 4, 4) && Kobo Utilities (2, 12, 3) && KoboTouchExtended (3, 4, 4) && Obok DeDRM (6, 5, 4)
        Turning on automatic hidpi scaling
        devicePixelRatio: 2.0
        logicalDpi: 96.0 x 96.0
        physicalDpi: 82.93877551020408 x 83.12727272727273
        Using calibre Qt style: True
        [0.00] Starting up…
        [0.02] Showing splash screen…
        [0.62] splash screen shown
        [0.62] Initializing db…
        [0.62] db initialized
        [0.62] Constructing main UI…
        DEBUG: 0.0 KoboUtilites::action.py – loading translations
        DEBUG: 0.0 KoboUtilites::dialogs.py – loading translations
        DEBUG: 0.0 KoboUtilites::action.py – loading translations
        DEBUG: 0.7 No Kobo Touch, Glo or Mini appears to be connected
        DEBUG: 0.7 rebuild_menus – self.supports_ratings=None, self.supports_tiles=None
        DEBUG: 0.7 KoboUtilities:set_toolbar_button_tooltip – start: text=’None’
        DEBUG: 0.7 KoboUtilities:set_toolbar_button_tooltip – setting to text=’Utilities to use with Kobo ereaders

        Driver: KoboTouchExtended’
        [1.52] main UI initialized…
        [1.52] Hiding splash screen
        Starting QuickView
        Gather KFX-ZIP (from KFX Input) 1.36.0: Importing C:\Users\Brian J\Documents\My Kindle Content\B083YZKSZL_EBOK\B083YZKSZL_EBOK.azw
        Gather KFX-ZIP (from KFX Input): Gathered 4 file(s) as C:\Users\BRIANJ~1\AppData\Local\Temp\calibre_ag5eo417\7xu0ev8u.kfx-zip
        DeDRM v7.0.3: Trying to decrypt 7xu0ev8u.kfx-zip
        Using Library AlfCrypto DLL/DYLIB/SO
        Using Library AlfCrypto DLL/DYLIB/SO
        Decrypting KFX-ZIP ebook: 7xu0ev8u
        Got DSN key from database default_key
        Found 1 keys to try after 0.1 seconds
        Decrypting KFX DRM voucher: amzn1.drm-voucher.v1.f34b6fb0-68cd-4105-b546-9038b4220fce.voucher
        DeDRM v7.0.3: Failed to decrypt with error: Failed to decrypt KFX DRM voucher with any key
        DeDRM v7.0.3: Looking for new default Kindle Key after 0.1 seconds
        searching for kinfoFiles in C:\Users\Brian J\AppData\Local
        Found K4PC 1.9+ kinf2011 file: C:\Users\Brian J\AppData\Local\Amazon\Kindle\storage.kinf2011
        Decrypted key file using IDString ‘1040304279’ and UserName ‘Brian J’
        DeDRM v7.0.3: Found 1 new key
        Decrypting KFX-ZIP ebook: 7xu0ev8u
        Got DSN key from database default_key_1
        Found 1 keys to try after 0.2 seconds
        Decrypting KFX DRM voucher: amzn1.drm-voucher.v1.f34b6fb0-68cd-4105-b546-9038b4220fce.voucher
        DeDRM v7.0.3: 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
        Package KFX (from KFX Input) 1.36.0: Packaging C:\Users\BRIANJ~1\AppData\Local\Temp\calibre_ag5eo417\7xu0ev8u.kfx-zip
        Processing container: B083YZKSZL_EBOK.azw
        KFX metadata reader (from KFX Input) activated for C:\Users\BRIANJ~1\AppData\Local\Temp\calibre_ag5eo417\w5nscsz__add_books\0\B083YZKSZL_EBOK.kfx-zip
        [4.84] splash screen hidden
        [4.84] Started up in 4.84 seconds with 0 books
        stdout+stderr from file dialog helper: [b”, b”]
        piped data from file dialog helper: [b’\x89_\xa97\x96\x14\x9b0\xa5\x13\x06\n\x9e\xc7\xf0\xec\x17\x0b\xeaOY\xd0\xb1\x89\xa6n$;\x1f\x9b@8′, b’C:\Users\Brian J\Documents\My Kindle Content\B083YZKSZL_EBOK\B083YZKSZL_EBOK.azw’]
        Running file type plugin DeDRM failed with traceback:
        Traceback (most recent call last):
        File “calibre_plugins.dedrm.init“, line 537, in KindleMobiDecrypt
        File “calibre_plugins.dedrm.k4mobidedrm”, line 238, in GetDecryptedBook
        File “calibre_plugins.dedrm.kfxdedrm”, line 42, in processBook
        File “calibre_plugins.dedrm.kfxdedrm”, line 82, in decrypt_voucher
        Exception: Failed to decrypt KFX DRM voucher with any key

        During handling of the above exception, another exception occurred:

        Traceback (most recent call last):
        File “calibre\customize\ui.py”, line 172, in _run_filetype_plugins
        File “calibre_plugins.dedrm.init“, line 630, in run
        File “calibre_plugins.dedrm.init“, line 580, in KindleMobiDecrypt
        calibre_plugins.dedrm.DeDRMError: DeDRM v7.0.3: 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 Package KFX (from KFX Input) failed with traceback:
        Traceback (most recent call last):
        File “calibre\customize\ui.py”, line 172, in _run_filetype_plugins
        File “calibre_plugins.kfx_input.package_filetype”, line 21, in run
        File “calibre_plugins.kfx_input.package_filetype”, line 32, in run_kfx
        File “calibre_plugins.kfx_input.kfxlib.yj_book”, line 83, in convert_to_single_kfx
        File “calibre_plugins.kfx_input.kfxlib.yj_book”, line 208, in decode_book
        File “calibre_plugins.kfx_input.kfxlib.yj_book”, line 315, in get_container
        calibre_plugins.kfx_input.kfxlib.utilities.KFXDRMError: Book container B083YZKSZL_EBOK.azw has DRM and canTraceback (most recent call last):
        File “calibre\gui2\ui.py”, line 134, in init
        File “calibre\gui2\ui.py”, line 152, in init_iaction
        File “calibre\customize__init__.py”, line 616, in load_actual_plugin
        File “importlib__init__.py”, line 127, in import_module
        File “”, line 1014, in _gcd_import
        File “”, line 991, in _find_and_load
        File “”, line 975, in _find_and_load_unlocked
        File “”, line 671, in _load_unlocked
        File “calibre\customize\zipplugin.py”, line 192, in exec_module
        File “calibre_plugins.obok_dedrm.action”, line 24, in
        File “calibre\customize\zipplugin.py”, line 192, in exec_module
        File “calibre_plugins.obok_dedrm.dialogs”, line 30, in
        File “calibre\customize\zipplugin.py”, line 192, in exec_module
        File “calibre_plugins.obok_dedrm.utilities”, line 10, in
        ModuleNotFoundError: No module named ‘StringIO’
        Added The Emperor’s Exile (Eagles of the Empire 19): A thrilling new Roman epic from the Sunday Times bestseller to db in: 0.2
        Added 1 books in 1.4 seconds

        My Kindle has not been updated and book was downloaded in the normal way.

        Many thanks

  21. I’m making a post here because I accidentally unsubscribed to this whole site, where I only wanted to unsubscribe was to one thread. And I want to be notified when the DRM is updated so that I can update my Calibre.

  22. I am not able to remove DRM using the plugin.

    Using DDRM v 6.8.1, Calibre 4.20 64 bit
    Windows 10 Home
    After adding the plugin to Calibre, I added the default key of the Kindle for PC instance and saved.

    Attempting to add a book from Kindle for PC content folder
    There are five files in the book folder, so I copied all of them to Calibre (voucher, azw, mbpV2,phl, azw.md)

    using Calibre in debug mode, the cmd output is:
    DeDRM v6.8.0: Trying to decrypt B002DPUJB0_EBOK.azw
    Using Library AlfCrypto DLL/DYLIB/SO
    DeDRM v6.8.0: Failed to decrypt with error: The .kfx DRMION file cannot be decrypted by itself. A .kfx-zip archive containing a DRM voucher is required.
    DeDRM v6.8.0: Looking for new default Kindle Key after 0.1 seconds
    searching for kinfoFiles in C:\Users\samha\AppData\Local
    Found K4PC 1.25+ kinf2018 file: C:\Users\samha\AppData\Local\Amazon\Kindle\storage.kinf2018
    Added B002DPUJB0 EBOK to db in: 0.9
    Added amzn1.drm-voucher.v1.f8318f42-9ea5-4435-ae0b-2a6f1eadcc69 to db in: 1.0
    Added CR!0FQDZB31X91WVC05450ZMVNBEJ5S.azw to db in: 1.1
    Decrypted key file using IDString ‘3158273247’ and UserName ‘70726f6d6163686f73’
    DeDRM v6.8.0: Ultimately failed to decrypt after 7.6 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 172, in _run_filetype_plugins
    File “calibre_plugins.dedrm.init“, line 626, in run
    File “calibre_plugins.dedrm.init“, line 576, in KindleMobiDecrypt
    DeDRMError: DeDRM v6.8.0: Ultimately failed to decrypt after 7.6 seconds. Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
    Traceback (most recent call last):
    File “site-packages\calibre\customize\ui.py”, line 428, in get_file_type_metadata
    File “site-packages\calibre\customize\builtins.py”, line 285, in get_metadata
    File “site-packages\calibre\ebooks\metadata\mobi.py”, line 498, in get_metadata
    File “site-packages\calibre\ebooks\mobi\reader\headers.py”, line 295, in init
    File “site-packages\calibre\ebooks\mobi\reader\headers.py”, line 323, in identity
    UnicodeDecodeError: ‘utf8’ codec can’t decode byte 0x81 in position 0: invalid start byte
    Added 3 books in 14.2 seconds
    Worker Launch took: 0.115000009537

  23. I downgraded Kindle for Mac to version 1.23.1 and using Calibre 3.48 with DeDRM 6.6.3 and KFX Input 1.36.0. I’m running Mac OS High Sierra 10.13.6. After downgrading my Kindle for Mac I unregistered it and then re-registered it so that I would have the Kindle books re-downloaded in the older format.

    I try and import the .azw book into Calibre and I can see the title, author and cover page of the book in Calibre but I still can’t open the book. The format listed is “KFX-ZIP”

    I have started Calibre in debug mode so I can get the debug messages. Here it is:

    Gather KFX-ZIP (from KFX Input) 1.36.0: Importing /Users/john_smith/Documents/Kindle/My Kindle Content/B0836LLK9H_EBOK/B0836LLK9H_EBOK.azw
    Gather KFX-ZIP (from KFX Input): Gathered 4 file(s) as /var/folders/1h/nxmqmhm56gl1_b6d2_f4wdyr62qpky/C/calibre_3.48.0_tmp_mc8yW1/2zkER_.kfx-zip
    DeDRM v6.6.3: Trying to decrypt 2zkER_.kfx-zip
    Using Library AlfCrypto DLL/DYLIB/SO
    Decrypting KFX-ZIP ebook: 2zkER_
    Found 0 keys to try after 0.1 seconds
    Decrypting KFX DRM voucher: amzn1.drm-voucher.v1.4495108c-3b1b-4ce2-993f-314d5c5ab076.voucher
    DeDRM v6.6.3: Failed to decrypt with error: Failed to decrypt KFX DRM voucher with any key
    DeDRM v6.6.3: Looking for new default Kindle Key after 0.1 seconds
    Found k4Mac kinf2011 file: /Users/john_smith/Library/Application Support/Kindle/storage/.kinf2011
    Decrypted key file using IDString ’55bd3d8cad31′ and UserName ‘john_smith’
    DeDRM v6.6.3: Found 1 new key
    Decrypting KFX-ZIP ebook: 2zkER_
    Got DSN key from database default_key_1
    Found 1 keys to try after 0.6 seconds
    Decrypting KFX DRM voucher: amzn1.drm-voucher.v1.4495108c-3b1b-4ce2-993f-314d5c5ab076.voucher
    DeDRM v6.6.3: Ultimately failed to decrypt after 0.6 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 172, in run_filetype_plugins
    File “calibre_plugins.dedrm.init“, line 624, in run
    File “calibre_plugins.dedrm.init“, line 574, in KindleMobiDecrypt
    DeDRMError: DeDRM v6.6.3: Ultimately failed to decrypt after 0.6 seconds. Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
    Package KFX (from KFX Input) 1.36.0: Packaging /var/folders/1h/nxmqmhm56gl1_b6d2_f4wdyr62qpky/C/calibre_3.48.0_tmp_mc8yW1/2zkER
    .kfx-zip
    Processing container: B0836LLK9H_EBOK.azw
    Running file type plugin Package KFX (from KFX Input) failed with traceback:
    Traceback (most recent call last):
    File “site-packages/calibre/customize/ui.py”, line 172, in _run_filetype_plugins
    File “calibre_plugins.kfx_input.package_filetype”, line 21, in run
    File “calibre_plugins.kfx_input.package_filetype”, line 32, in run_kfx
    File “calibre_plugins.kfx_input.kfxlib.yj_book”, line 83, in convert_to_single_kfx
    File “calibre_plugins.kfx_input.kfxlib.yj_book”, line 208, in decode_book
    File “calibre_plugins.kfx_input.kfxlib.yj_book”, line 315, in get_container
    KFXDRMError: Book container B0836LLK9H_EBOK.azw has DRM and cannot be converted
    KFX metadata reader (from KFX Input) activated for /var/folders/1h/nxmqmhm56gl1_b6d2_f4wdyr62qpky/C/calibre_3.48.0_tmp_mc8yW1/LwiM0y_add_books/0/B0836LLK9H_EBOK.kfx-zip

      • I don’t have the option to download a later version of DeDRM – maybe it’s because I’m forced to use an older Calibre (3.48) because I’m on Mac OS High Sierra 10.13.6? I just see an empty list when I request to update DeDRM plugin. Do you recommend I update to a later version of Mac OS to install the latest Calibre or try method 2 (disable KFX) as written in https://www.mobileread.com/forums/showthread.php?t=283371?

              • Not sure what you mean. I’m using an older Calibre (3.48) because I have an older Mac OS (10.13.6 High Sierra) that isn’t compatible with the newest Calibre.

                • I have a late 2013 iMac that won’t run Big Sur. I expect that to change when the M1 iMacs are out, if one program that I need finishes being converted to 64-bit. But I won’t be able to boot to my Mojave SSD with a M1 computer. At any rate I had to downgrade to Calibre 4.2.3 after I upgraded it because I couldn’t convert my Kindle books. So I’m waiting until DeDRM is upgraded to be compatible with the current Calibre.

                • I’ve been using the latest Calibre 5 and DeDRM 7.0.3 and it works for ePub, Mobi, and KF8. I do have a 64-bit portable Calibre 4.23 with DeDRM 6.8.1 installed just in case. As I don’t download DRM infected PDF, the fact that PDF does not work does not matter to me. I’ve not tried Obok to see if that works as I download ePub from Kobo.

                  So (IMHO) if you don’t need Obok or PDF then Calibre 5 and DeDRM 7.0.3 works no bother.

                  • Hi Jon,
                    I still have a Mojave VM that I use with Adobe Digital Editions 1 for all my Kobo books because I thought newer versions of ADE didn’t work with DeDRM. How do you get your ePubs from Kobo? It would be grand if I didn’t need the VM anymore!
                    Thanks
                    Christopher

  24. You don’t update the DeDRM plugin using calibre’s updater. You will need to download the update and install it manually. Disabling KFX is a good idea since KFX is a lousy format to convert from. Unlike AZW3 and epub which are very similar making it easy to convert, converting KFX is more like having to decompile a program to recover the source code.

  25. Convert book 1 of 1 (Check Point Certified Security Expert)
    DeDRM v7.0.3: Trying to decrypt fxkkgw82.pdf
    DeDRM v7.0.3: fxkkgw82.pdf is a PDF ebook
    DeDRM v7.0.3: Looking for new default Adobe Digital Editions Keys after 0.1 seconds
    DeDRM v7.0.3: Exception when getting default Adobe Key after 0.1 seconds
    Traceback (most recent call last):
    File “calibre_plugins.dedrm.adobekey”, line 357, in adeptkeys
    FileNotFoundError: [WinError 2] The system cannot find the file specified

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
    File “calibre_plugins.dedrm.init“, line 458, in PDFDecrypt
    File “calibre_plugins.dedrm.adobekey”, line 359, in adeptkeys
    calibre_plugins.dedrm.adobekey.ADEPTError: Adobe Digital Editions not activated
    DeDRM v7.0.3: 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
    Conversion options changed from defaults:
    output_profile: ‘generic_eink’
    verbose: 2
    read_metadata_from_opf: ‘C:\Users\HomePC\AppData\Local\Temp\calibre_85r3rbob\boh_agds.opf’
    Resolved conversion options
    calibre version: 5.11.0
    {‘asciiize’: False,
    ‘author_sort’: None,
    ‘authors’: None,
    ‘base_font_size’: 0.0,
    ‘book_producer’: None,
    ‘change_justification’: ‘original’,
    ‘chapter’: “//[((name()=’h1′ or name()=’h2′) and re:test(., ”
    “‘\s
    ((chapter|book|section|part)\s+)|((prolog|prologue|epilogue)(\s+|$))’, ”
    “‘i’)) or @class = ‘chapter’]”,
    ‘chapter_mark’: ‘pagebreak’,
    ‘comments’: None,
    ‘cover’: None,
    ‘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’: ‘2’,
    ‘expand_css’: False,
    ‘extra_css’: None,
    ‘extract_to’: None,
    ‘filter_css’: ”,
    ‘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 0x000001E8414FD8B0>,
    ‘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,
    ‘new_pdf_engine’: False,
    ‘no_chapters_in_toc’: False,
    ‘no_default_epub_cover’: False,
    ‘no_images’: False,
    ‘no_inline_navbars’: False,
    ‘no_svg_cover’: False,
    ‘output_profile’: <calibre.customize.profiles.GenericEink object at 0x000001E8414FDBB0>,
    ‘page_breaks_before’: “//*[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’: ‘C:\Users\HomePC\AppData\Local\Temp\calibre_85r3rbob\boh_agds.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’: ”,
    ‘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_factor’: 0.45,
    ‘unwrap_lines’: True,
    ‘use_auto_toc’: False,
    ‘verbose’: 2}
    Running file type plugin DeDRM failed with traceback:
    Traceback (most recent call last):
    File “calibre\customize\ui.py”, line 172, in _run_filetype_plugins
    File “calibre_plugins.dedrm.init“, line 637, in run
    File “calibre_plugins.dedrm.init“, line 512, in PDFDecrypt
    calibre_plugins.dedrm.DeDRMError: DeDRM v7.0.3: 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
    DeDRM v7.0.3: Trying to decrypt fxkkgw82.pdf
    DeDRM v7.0.3: fxkkgw82.pdf is a PDF ebook
    DeDRM v7.0.3: Looking for new default Adobe Digital Editions Keys after 0.0 seconds
    DeDRM v7.0.3: Exception when getting default Adobe Key after 0.0 seconds
    Traceback (most recent call last):
    File “calibre_plugins.dedrm.adobekey”, line 357, in adeptkeys
    FileNotFoundError: [WinError 2] The system cannot find the file specified

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
    File “calibre_plugins.dedrm.init“, line 458, in PDFDecrypt
    File “calibre_plugins.dedrm.adobekey”, line 359, in adeptkeys
    calibre_plugins.dedrm.adobekey.ADEPTError: Adobe Digital Editions not activated
    DeDRM v7.0.3: Ultimately failed to decrypt after 0.0 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 “calibre\customize\ui.py”, line 172, in _run_filetype_plugins
    File “calibre_plugins.dedrm.init“, line 637, in run
    File “calibre_plugins.dedrm.init“, line 512, in PDFDecrypt
    calibre_plugins.dedrm.DeDRMError: DeDRM v7.0.3: Ultimately failed to decrypt after 0.0 seconds. Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
    InputFormatPlugin: PDF Input running
    on C:\Users\HomePC\AppData\Local\Temp\calibre_85r3rbob\fxkkgw82.pdf
    Converting file to html…
    Traceback (most recent call last):
    File “runpy.py”, line 194, in _run_module_as_main
    File “runpy.py”, line 87, in _run_code
    File “site.py”, line 82, in
    File “site.py”, line 77, in main
    File “site.py”, line 49, in run_entry_point
    File “calibre\utils\ipc\worker.py”, line 216, in main
    File “calibre\gui2\convert\gui_conversion.py”, line 41, in gui_convert_override
    File “calibre\gui2\convert\gui_conversion.py”, line 28, in gui_convert
    File “calibre\ebooks\conversion\plumber.py”, line 1108, in run
    File “calibre\customize\conversion.py”, line 245, in call
    File “calibre\ebooks\conversion\plugins\pdf_input.py”, line 54, in convert
    File “calibre\ebooks\pdf\pdftohtml.py”, line 83, in pdftohtml
    calibre.ebooks.ConversionError: pdftohtml failed with return code: 1
    Syntax Error: Couldn’t find the ‘EBX_HANDLER’ security handler
    Exception ignored in:
    Traceback (most recent call last):
    File “calibre_plugins.dedrm.adobekey”, line 266, in del
    TypeError: ‘NoneType’ object is not callable
    Exception ignored in:
    Traceback (most recent call last):
    File “calibre_plugins.dedrm.adobekey”, line 266, in del
    TypeError: ‘NoneType’ object is not callable

  26. Convert book 1 of 1 (FSCAv8)
    DeDRM v7.0.3: Trying to decrypt 87if25vc.pdf
    DeDRM v7.0.3: 87if25vc.pdf is a PDF ebook
    DeDRM v7.0.3: Looking for new default Adobe Digital Editions Keys after 0.0 seconds
    DeDRM v7.0.3: Exception when getting default Adobe Key after 0.0 seconds
    Traceback (most recent call last):
    File “calibre_plugins.dedrm.adobekey”, line 357, in adeptkeys
    FileNotFoundError: [WinError 2] The system cannot find the file specified

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
    File “calibre_plugins.dedrm.init“, line 458, in PDFDecrypt
    File “calibre_plugins.dedrm.adobekey”, line 359, in adeptkeys
    calibre_plugins.dedrm.adobekey.ADEPTError: Adobe Digital Editions not activated
    DeDRM v7.0.3: Ultimately failed to decrypt after 0.0 seconds. Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
    Conversion options changed from defaults:
    verbose: 2
    output_profile: ‘generic_eink’
    read_metadata_from_opf: ‘C:\Users\HomePC\AppData\Local\Temp\calibre_85r3rbob\s3y4_jhs.opf’
    Resolved conversion options
    calibre version: 5.11.0
    {‘asciiize’: False,
    ‘author_sort’: None,
    ‘authors’: None,
    ‘base_font_size’: 0.0,
    ‘book_producer’: None,
    ‘change_justification’: ‘original’,
    ‘chapter’: “//[((name()=’h1′ or name()=’h2′) and re:test(., ”
    “‘\s
    ((chapter|book|section|part)\s+)|((prolog|prologue|epilogue)(\s+|$))’, ”
    “‘i’)) or @class = ‘chapter’]”,
    ‘chapter_mark’: ‘pagebreak’,
    ‘comments’: None,
    ‘cover’: None,
    ‘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’: ‘2’,
    ‘expand_css’: False,
    ‘extra_css’: None,
    ‘extract_to’: None,
    ‘filter_css’: ”,
    ‘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 0x000001BC6BB3F8E0>,
    ‘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,
    ‘new_pdf_engine’: False,
    ‘no_chapters_in_toc’: False,
    ‘no_default_epub_cover’: False,
    ‘no_images’: False,
    ‘no_inline_navbars’: False,
    ‘no_svg_cover’: False,
    ‘output_profile’: <calibre.customize.profiles.GenericEink object at 0x000001BC6BB3FBE0>,
    ‘page_breaks_before’: “//*[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’: ‘C:\Users\HomePC\AppData\Local\Temp\calibre_85r3rbob\s3y4_jhs.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’: ”,
    ‘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_factor’: 0.45,
    ‘unwrap_lines’: True,
    ‘use_auto_toc’: False,
    ‘verbose’: 2}
    Running file type plugin DeDRM failed with traceback:
    Traceback (most recent call last):
    File “calibre\customize\ui.py”, line 172, in _run_filetype_plugins
    File “calibre_plugins.dedrm.init“, line 637, in run
    File “calibre_plugins.dedrm.init“, line 512, in PDFDecrypt
    calibre_plugins.dedrm.DeDRMError: DeDRM v7.0.3: Ultimately failed to decrypt after 0.0 seconds. Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
    DeDRM v7.0.3: Trying to decrypt 87if25vc.pdf
    DeDRM v7.0.3: 87if25vc.pdf is a PDF ebook
    DeDRM v7.0.3: Looking for new default Adobe Digital Editions Keys after 0.0 seconds
    DeDRM v7.0.3: Exception when getting default Adobe Key after 0.0 seconds
    Traceback (most recent call last):
    File “calibre_plugins.dedrm.adobekey”, line 357, in adeptkeys
    FileNotFoundError: [WinError 2] The system cannot find the file specified

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
    File “calibre_plugins.dedrm.init“, line 458, in PDFDecrypt
    File “calibre_plugins.dedrm.adobekey”, line 359, in adeptkeys
    calibre_plugins.dedrm.adobekey.ADEPTError: Adobe Digital Editions not activated
    DeDRM v7.0.3: Ultimately failed to decrypt after 0.0 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 “calibre\customize\ui.py”, line 172, in _run_filetype_plugins
    File “calibre_plugins.dedrm.init“, line 637, in run
    File “calibre_plugins.dedrm.init“, line 512, in PDFDecrypt
    calibre_plugins.dedrm.DeDRMError: DeDRM v7.0.3: Ultimately failed to decrypt after 0.0 seconds. Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
    InputFormatPlugin: PDF Input running
    on C:\Users\HomePC\AppData\Local\Temp\calibre_85r3rbob\87if25vc.pdf
    Converting file to html…
    Traceback (most recent call last):
    File “runpy.py”, line 194, in _run_module_as_main
    File “runpy.py”, line 87, in _run_code
    File “site.py”, line 82, in
    File “site.py”, line 77, in main
    File “site.py”, line 49, in run_entry_point
    File “calibre\utils\ipc\worker.py”, line 216, in main
    File “calibre\gui2\convert\gui_conversion.py”, line 41, in gui_convert_override
    File “calibre\gui2\convert\gui_conversion.py”, line 28, in gui_convert
    File “calibre\ebooks\conversion\plumber.py”, line 1108, in run
    File “calibre\customize\conversion.py”, line 245, in call
    File “calibre\ebooks\conversion\plugins\pdf_input.py”, line 54, in convert
    File “calibre\ebooks\pdf\pdftohtml.py”, line 83, in pdftohtml
    calibre.ebooks.ConversionError: pdftohtml failed with return code: 1
    Syntax Error: Couldn’t find the ‘EBX_HANDLER’ security handler
    Exception ignored in:
    Traceback (most recent call last):
    File “calibre_plugins.dedrm.adobekey”, line 266, in del
    TypeError: ‘NoneType’ object is not callable
    Exception ignored in:
    Traceback (most recent call last):
    File “calibre_plugins.dedrm.adobekey”, line 266, in del
    TypeError: ‘NoneType’ object is not callable

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.