DRM Removal Tools for eBooks

Version 6.4.3 released on 28 April, 2016

Welcome to Apprentice Alf’s blog

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

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

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

The Tools

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

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

Getting Help with the Tools

If you have any questions about the tools, ebooks and DRM, check my FAQs post:  Frequently Asked Questions about the DRM removal tools.

If you have any problems with the current tools, please ask for help in a comment on this post. If you are having a problem with an older version of the tools, please first update to the current version, and see if that solves your problem.

Before commenting here, please check the ReadMe file and the FAQs (see link above).

In any bug report or help request, please include:

  • which tool was used
  • which OS you are using
  • where the ebook file came from (device or folder)
  • any error messages
  • a log of the DRM-removal attempt (see the FAQs on how to get a log).

Anti-Piracy Notice

Please only use this application for gaining full access to your own ebooks for archiving/converson/convenience. De-drmed ebooks should not be uploaded to open servers, torrents, or other methods of mass distribution. No help will be given to people doing such things. Authors, retailers and publishers all need to make a living, so that they can continue to produce books for us to read. Don’t be a parasite.

Origin of the Tools

The tools for removing DRM from ePubs were originally posted at i♥cabbages’ blog. The tools for Kindle/Mobipocket were originally posted at The Dark Reverser’s blog.

They have since been improved by many people, but mostly some_updates, DiapDealer, Apprentice Alf, and Apprentice Harper. While there are many sites that redistribute these tools, the most up-to-date versions of the tools are currently released here.

Other Sources

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

1,968 thoughts on “DRM Removal Tools for eBooks

  1. Having trouble removing this DRM from my mac kindle reader. Thanks!

    calibre Debug log
    calibre 2.58 embedded-python: True is64bit: True
    Darwin-15.5.0-x86_64-i386-64bit Darwin (’64bit’, ”)
    (‘Darwin’, ‘15.5.0’, ‘Darwin Kernel Version 15.5.0: Tue Apr 19 18:36:36 PDT 2016; root:xnu-3248.50.21~8/RELEASE_X86_64’)
    Python 2.7.11
    OSX: (‘10.11.5’, (”, ”, ”), ‘x86_64’)
    Successfully initialized third party plugins: DeDRM
    Starting up…
    Started up in 3.58 seconds with 4 books
    2016-06-05 12:45:32.480 calibre-debug[6567:1220896] Bad cursor rect event, flags = 256
    DeDRM v6.4.3: Trying to decrypt B00GBJ8K9W_EBOK.azw4
    Using Library AlfCrypto DLL/DYLIB/SO
    MobiDeDrm v0.41.
    Copyright © 2008-2012 The Dark Reverser et al.
    MOBI header version 4, header length 264
    Decrypting Mobipocket 4 ebook: Clinical Calculations: With Applications to General and Specialty Areas
    Found 0 keys to try after 0.2 seconds
    Crypto Type is: 2
    DeDRM v6.4.3: Failed to decrypt with error: Cannot decode library or rented ebooks.
    DeDRM v6.4.3: Looking for new default Kindle Key after 0.2 seconds
    Found k4Mac kinf2011 file: /Users/Cara/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2011
    Decrypted key file using IDString ‘c5a6ad63398b’ and UserName ‘Cara’
    DeDRM v6.4.3: Found 1 new key
    MobiDeDrm v0.41.
    Copyright © 2008-2012 The Dark Reverser et al.
    MOBI header version 4, header length 264
    Decrypting Mobipocket 4 ebook: Clinical Calculations: With Applications to General and Specialty Areas
    Found 4 keys to try after 0.7 seconds
    Crypto Type is: 2
    DeDRM v6.4.3: Ultimately failed to decrypt after 0.7 seconds.
    Read the FAQs at Alf’s blog: https://apprenticealf.wordpress.com/
    Running file type plugin DeDRM failed with traceback:
    Traceback (most recent call last):
    File “site-packages/calibre/customize/ui.py”, line 154, in _run_filetype_plugins
    File “calibre_plugins.dedrm.__init__”, line 604, in run
    File “calibre_plugins.dedrm.__init__”, line 554, in KindleMobiDecrypt
    DeDRMError: DeDRM v6.4.3: Ultimately failed to decrypt after 0.7 seconds
    Added Clinical Calculations: With Applications to General and Specialty Areas to db in: 0.2
    Added 1 books in 1.4 seconds

  2. Ok Paul

    calibre Log de Debug
    calibre 2.58 [64bit] embedded-python: True is64bit: True
    Windows-8-6.2.9200 Windows (’64bit’, ‘WindowsPE’)
    (‘Windows’, ‘8’, ‘6.2.9200’)
    Python 2.7.9
    Windows: (‘8’, ‘6.2.9200’, ”, ‘Multiprocessor Free’)
    Successfully initialized third party plugins: DeDRM && Kindle and Mobipocket DeDRM && Ignoble Epub DeDRM && eReader PDB 2 PML && Inept PDF DeDRM && Inept Epub DeDRM && KindleUnpack – The Plugin
    Starting up…
    Started up in 5.10 seconds with 15 books
    Worker Launch took: 0.238999843597
    Job: 1 Converter livro 1 de 1 (Morri para viver: Meu submundo de fama, drogas e prostituição) finished
    Converter livro 1 de 1 (Morri para viver: Meu submundo de fama, drogas e prostituição)
    C:\Program Files\Calibre2\pylib.zip\dateutil\parser.py:339: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode – interpreting them as being unequal
    Resolved conversion options
    calibre version: 2.58.0
    {‘asciiize’: False,
    ‘author_sort’: None,
    ‘authors’: None,
    ‘base_font_size’: 0.0,
    ‘book_producer’: None,
    ‘change_justification’: u’original’,
    ‘chapter’: u”//*[((name()=’h1′ or name()=’h2′) and re:test(., ‘\\s*((chapter|book|section|part)\\s+)|((prolog|prologue|epilogue)(\\s+|$))’, ‘i’)) or @class = ‘chapter’]”,
    ‘chapter_mark’: u’pagebreak’,
    ‘comments’: None,
    ‘cover’: u’C:\\Users\\JOO~1\\AppData\\Local\\Temp\\calibre_dmp0pj\\terec_.jpeg’,
    ‘debug_pipeline’: None,
    ‘dehyphenate’: True,
    ‘delete_blank_paragraphs’: True,
    ‘disable_font_rescaling’: False,
    ‘dont_split_on_page_breaks’: False,
    ‘duplicate_links_in_toc’: False,
    ’embed_all_fonts’: False,
    ’embed_font_family’: None,
    ‘enable_heuristics’: False,
    ‘epub_flatten’: False,
    ‘epub_inline_toc’: False,
    ‘epub_toc_at_end’: False,
    ‘expand_css’: False,
    ‘extra_css’: None,
    ‘extract_to’: None,
    ‘filter_css’: u”,
    ‘fix_indents’: True,
    ‘flow_size’: 260,
    ‘font_size_mapping’: None,
    ‘format_scene_breaks’: True,
    ‘html_unwrap_factor’: 0.4,
    ‘input_encoding’: None,
    ‘input_profile’: ,
    ‘insert_blank_line’: False,
    ‘insert_blank_line_size’: 0.5,
    ‘insert_metadata’: False,
    ‘isbn’: None,
    ‘italicize_common_cases’: True,
    ‘keep_ligatures’: False,
    ‘language’: None,
    ‘level1_toc’: None,
    ‘level2_toc’: None,
    ‘level3_toc’: None,
    ‘line_height’: 0.0,
    ‘linearize_tables’: False,
    ‘margin_bottom’: 5.0,
    ‘margin_left’: 5.0,
    ‘margin_right’: 5.0,
    ‘margin_top’: 5.0,
    ‘markup_chapter_headings’: True,
    ‘max_toc_links’: 50,
    ‘minimum_line_height’: 120.0,
    ‘no_chapters_in_toc’: False,
    ‘no_default_epub_cover’: False,
    ‘no_inline_navbars’: False,
    ‘no_svg_cover’: False,
    ‘output_profile’: ,
    ‘page_breaks_before’: u”//*[name()=’h1′ or name()=’h2′]”,
    ‘prefer_metadata_cover’: False,
    ‘preserve_cover_aspect_ratio’: False,
    ‘pretty_print’: True,
    ‘pubdate’: None,
    ‘publisher’: None,
    ‘rating’: None,
    ‘read_metadata_from_opf’: u’C:\\Users\\JOO~1\\AppData\\Local\\Temp\\calibre_dmp0pj\\q0mqgl.opf’,
    ‘remove_fake_margins’: True,
    ‘remove_first_image’: False,
    ‘remove_paragraph_spacing’: False,
    ‘remove_paragraph_spacing_indent_size’: 1.5,
    ‘renumber_headings’: True,
    ‘replace_scene_breaks’: u”,
    ‘search_replace’: ‘[]’,
    ‘series’: None,
    ‘series_index’: None,
    ‘smarten_punctuation’: False,
    ‘sr1_replace’: None,
    ‘sr1_search’: None,
    ‘sr2_replace’: None,
    ‘sr2_search’: None,
    ‘sr3_replace’: None,
    ‘sr3_search’: None,
    ‘start_reading_at’: None,
    ‘subset_embedded_fonts’: False,
    ‘tags’: None,
    ‘timestamp’: None,
    ‘title’: None,
    ‘title_sort’: None,
    ‘toc_filter’: None,
    ‘toc_threshold’: 6,
    ‘toc_title’: None,
    ‘transform_css_rules’: ‘[]’,
    ‘unsmarten_punctuation’: False,
    ‘unwrap_lines’: True,
    ‘use_auto_toc’: False,
    ‘verbose’: 2}
    InputFormatPlugin: MOBI Input running
    on C:\Users\JOO~1\AppData\Local\Temp\calibre_dmp0pj\tn9zc4.azw
    Found KF8 MOBI of type ‘standalone’
    Python function terminated unexpectedly
    Morri para viver: Meu submundo de fama, drogas e prostituição (Error Code: 1)
    Traceback (most recent call last):
    File “site.py”, line 132, in main
    File “site.py”, line 109, in run_entry_point
    File “site-packages\calibre\utils\ipc\worker.py”, line 190, in main
    File “site-packages\calibre\gui2\convert\gui_conversion.py”, line 31, in gui_convert_override
    File “site-packages\calibre\gui2\convert\gui_conversion.py”, line 25, in gui_convert
    File “site-packages\calibre\ebooks\conversion\plumber.py”, line 1057, in run
    File “site-packages\calibre\customize\conversion.py”, line 241, in __call__
    File “site-packages\calibre\ebooks\conversion\plugins\mobi_input.py”, line 43, in convert
    File “site-packages\calibre\ebooks\mobi\reader\mobi8.py”, line 81, in __call__
    File “site-packages\calibre\ebooks\mobi\reader\mobi6.py”, line 144, in check_for_drm
    calibre.ebooks.DRMError: Morri para viver: Meu submundo de fama, drogas e prostituição

    Worker Launch took: 0.233999967575
    Job: 2 Converter livro 1 de 1 (Simplesmente Crente (Ordinary: Sustainable Faith): por uma vida cristã comum) finished
    Converter livro 1 de 1 (Simplesmente Crente (Ordinary: Sustainable Faith): por uma vida cristã comum)
    C:\Program Files\Calibre2\pylib.zip\dateutil\parser.py:339: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode – interpreting them as being unequal
    Resolved conversion options
    calibre version: 2.58.0
    {‘asciiize’: False,
    ‘author_sort’: None,
    ‘authors’: None,
    ‘base_font_size’: 0.0,
    ‘book_producer’: None,
    ‘change_justification’: u’original’,
    ‘chapter’: u”//*[((name()=’h1′ or name()=’h2′) and re:test(., ‘\\s*((chapter|book|section|part)\\s+)|((prolog|prologue|epilogue)(\\s+|$))’, ‘i’)) or @class = ‘chapter’]”,
    ‘chapter_mark’: u’pagebreak’,
    ‘comments’: None,
    ‘cover’: u’C:\\Users\\JOO~1\\AppData\\Local\\Temp\\calibre_dmp0pj\\yvo879.jpeg’,
    ‘debug_pipeline’: None,
    ‘dehyphenate’: True,
    ‘delete_blank_paragraphs’: True,
    ‘disable_font_rescaling’: False,
    ‘dont_split_on_page_breaks’: False,
    ‘duplicate_links_in_toc’: False,
    ’embed_all_fonts’: False,
    ’embed_font_family’: None,
    ‘enable_heuristics’: False,
    ‘epub_flatten’: False,
    ‘epub_inline_toc’: False,
    ‘epub_toc_at_end’: False,
    ‘expand_css’: False,
    ‘extra_css’: None,
    ‘extract_to’: None,
    ‘filter_css’: u”,
    ‘fix_indents’: True,
    ‘flow_size’: 260,
    ‘font_size_mapping’: None,
    ‘format_scene_breaks’: True,
    ‘html_unwrap_factor’: 0.4,
    ‘input_encoding’: None,
    ‘input_profile’: ,
    ‘insert_blank_line’: False,
    ‘insert_blank_line_size’: 0.5,
    ‘insert_metadata’: False,
    ‘isbn’: None,
    ‘italicize_common_cases’: True,
    ‘keep_ligatures’: False,
    ‘language’: None,
    ‘level1_toc’: None,
    ‘level2_toc’: None,
    ‘level3_toc’: None,
    ‘line_height’: 0.0,
    ‘linearize_tables’: False,
    ‘margin_bottom’: 5.0,
    ‘margin_left’: 5.0,
    ‘margin_right’: 5.0,
    ‘margin_top’: 5.0,
    ‘markup_chapter_headings’: True,
    ‘max_toc_links’: 50,
    ‘minimum_line_height’: 120.0,
    ‘no_chapters_in_toc’: False,
    ‘no_default_epub_cover’: False,
    ‘no_inline_navbars’: False,
    ‘no_svg_cover’: False,
    ‘output_profile’: ,
    ‘page_breaks_before’: u”//*[name()=’h1′ or name()=’h2′]”,
    ‘prefer_metadata_cover’: False,
    ‘preserve_cover_aspect_ratio’: False,
    ‘pretty_print’: True,
    ‘pubdate’: None,
    ‘publisher’: None,
    ‘rating’: None,
    ‘read_metadata_from_opf’: u’C:\\Users\\JOO~1\\AppData\\Local\\Temp\\calibre_dmp0pj\\av0yog.opf’,
    ‘remove_fake_margins’: True,
    ‘remove_first_image’: False,
    ‘remove_paragraph_spacing’: False,
    ‘remove_paragraph_spacing_indent_size’: 1.5,
    ‘renumber_headings’: True,
    ‘replace_scene_breaks’: u”,
    ‘search_replace’: ‘[]’,
    ‘series’: None,
    ‘series_index’: None,
    ‘smarten_punctuation’: False,
    ‘sr1_replace’: None,
    ‘sr1_search’: None,
    ‘sr2_replace’: None,
    ‘sr2_search’: None,
    ‘sr3_replace’: None,
    ‘sr3_search’: None,
    ‘start_reading_at’: None,
    ‘subset_embedded_fonts’: False,
    ‘tags’: None,
    ‘timestamp’: None,
    ‘title’: None,
    ‘title_sort’: None,
    ‘toc_filter’: None,
    ‘toc_threshold’: 6,
    ‘toc_title’: None,
    ‘transform_css_rules’: ‘[]’,
    ‘unsmarten_punctuation’: False,
    ‘unwrap_lines’: True,
    ‘use_auto_toc’: False,
    ‘verbose’: 2}
    InputFormatPlugin: MOBI Input running
    on C:\Users\JOO~1\AppData\Local\Temp\calibre_dmp0pj\v8varq.azw
    Found KF8 MOBI of type ‘standalone’
    Python function terminated unexpectedly
    Simplesmente Crente (Ordinary: Sustainable Faith): por uma vida cristã comum (Error Code: 1)
    Traceback (most recent call last):
    File “site.py”, line 132, in main
    File “site.py”, line 109, in run_entry_point
    File “site-packages\calibre\utils\ipc\worker.py”, line 190, in main
    File “site-packages\calibre\gui2\convert\gui_conversion.py”, line 31, in gui_convert_override
    File “site-packages\calibre\gui2\convert\gui_conversion.py”, line 25, in gui_convert
    File “site-packages\calibre\ebooks\conversion\plumber.py”, line 1057, in run
    File “site-packages\calibre\customize\conversion.py”, line 241, in __call__
    File “site-packages\calibre\ebooks\conversion\plugins\mobi_input.py”, line 43, in convert
    File “site-packages\calibre\ebooks\mobi\reader\mobi8.py”, line 81, in __call__
    File “site-packages\calibre\ebooks\mobi\reader\mobi6.py”, line 144, in check_for_drm
    calibre.ebooks.DRMError: Simplesmente Crente (Ordinary: Sustainable Faith): por uma vida cristã comum

    an ebook is rented and others are bought and the two give error

    Already managed to release last purchased and rented ebooks and only today is that error occurs (not all)

    • This still doesn’t show a book being added to calibre. Remove the books that didn’t work from calibre. Look under the Preference menu for “Reopen in debug mode”. When it opens, add a book. Then close calibre. Post the log that appears.

      (Also, you only need the DeDRM plugin. You can remove all the individual file type DeDRM plug-ins.)

  3. I am unable to deDRM. I have installed the software as specified but neither the desktop “target” method or the Calibre plugin work.

    The target method produces:
    Windows cannot find ‘python’. Make sure you typed the name correctly, and then try again

    The Calibre plugin debug is:
    calibre-debug -g
    calibre 2.58 [64bit] embedded-python: True is64bit: True
    Windows-8-6.2.9200 Windows (’64bit’, ‘WindowsPE’)
    (‘Windows’, ‘8’, ‘6.2.9200’)
    Python 2.7.9
    Windows: (‘8’, ‘6.2.9200’, ”, ‘Multiprocessor Free’)
    Qt: Untested Windows version 10.0 detected!
    Successfully initialized third party plugins: DeDRM

    Do you have any suggestions?

    • I can see that you’ve installed the plugin correctly, but you need to import a book when in the debug mode so that the log contains some useful info.

      • The screen I sent you was the result of importing a book.
        Since sending the last comment I loaded 32-bit python and crypto. This gave a different result for the target method but it was still unable to deDRM.
        Could you refer me to a page which describes how to configure the deDRM app. I don’t understand what I need to enter.
        The books I am trying to deDRM were purchased quite some time ago and I have changed computers. Perhaps I have lost some DRM files.

        • I’ve sorted it out. Sorry for the trouble.
          I recreated my Adobe Library on the new computer and it all works.

  4. I’ve already re-installed the PlugIn, still I can’t remove the DRM.
    It once worked perfectly fine.
    Could you please tell me how to solve the problem?

  5. calibre Debug log
    calibre 2.58 embedded-python: True is64bit: False
    Windows-8-6.2.9200 Windows (’32bit’, ‘WindowsPE’)
    32bit process running on 64bit windows
    (‘Windows’, ‘8’, ‘6.2.9200’)
    Python 2.7.9
    Windows: (‘8’, ‘6.2.9200’, ”, ‘Multiprocessor Free’)
    Successfully initialized third party plugins: DeDRM && K4PC, K4Mac, Kindle Mobi and Topaz DeDRM && Inept Epub DeDRM && Ignoble Epub DeDRM && eReader PDB 2 PML && Inept PDF DeDRM
    Starting up…
    Started up in 7.85 seconds with 1 books
    Worker Launch took: 0.286000013351
    Job: 1 Convert book 1 of 1 (hope) finished
    Convert book 1 of 1 (hope)
    Resolved conversion options
    calibre version: 2.58.0

    • Remove K4PC, K4Mac, Kindle Mobi and Topaz DeDRM && Inept Epub DeDRM && Ignoble Epub DeDRM && eReader PDB 2 PML && Inept PDF DeDRM plugins. They’re all included now in the DeDRM plugin. Post a log of a book being imported. DRM removal happens on import, not conversion.

  6. calibre Log de Debug
    calibre 2.58 embedded-python: True is64bit: False
    Windows-8-6.2.9200 Windows (’32bit’, ‘WindowsPE’)
    32bit process running on 64bit windows
    (‘Windows’, ‘8’, ‘6.2.9200’)
    Python 2.7.9
    Windows: (‘8’, ‘6.2.9200’, ”, ‘Multiprocessor Free’)
    Successfully initialized third party plugins: DeDRM
    Starting up…
    Started up in 6.43 seconds with 0 books
    stdout+stderr from file dialog helper: [”, ”]
    piped data from file dialog helper: [‘b\xe7\x18F\xa1\x98\xbf[O\rg\xa01\x84\xa8\xf1\x93~\x0f\x08\xe4\x8c\x80\xc5:\x8c\x8a4xy\xe5\xab’, ‘C:\\Users\\Dilla\\Desktop\\My Kindle Content\\B013GSOOIQ_EBOK.azw’, ‘C:\\Users\\Dilla\\Desktop\\My Kindle Content\\B011K69X2I_EBOK.azw’]
    DeDRM v6.4.3: Trying to decrypt B013GSOOIQ_EBOK.azw
    Using Library AlfCrypto DLL/DYLIB/SO
    MobiDeDrm v0.41.
    Copyright © 2008-2012 The Dark Reverser et al.
    MOBI header version 8, header length 264
    Extra Data Flags: 3
    Decrypting Kindle Format 8 ebook: A supremacia e a suficiência de Cristo: A mensagem de Colossenses para a igreja de hoje
    Found 0 keys to try after 0.6 seconds
    Crypto Type is: 2
    DeDRM v6.4.3: Failed to decrypt with error: No key found in 0 keys tried.
    DeDRM v6.4.3: Looking for new default Kindle Key after 0.6 seconds
    DeDRM v6.4.3: Trying to decrypt B011K69X2I_EBOK.azw
    searching for kinfoFiles in C:\Users\Dilla\AppData\Local
    No K4PC kindle.info/kinf/kinf2011 files have been found.
    DeDRM v6.4.3: Ultimately failed to decrypt after 0.6 seconds.
    Read the FAQs at Alf’s blog: https://apprenticealf.wordpress.com/
    Running file type plugin DeDRM failed with traceback:
    Traceback (most recent call last):
    File “site-packages\calibre\customize\ui.py”, line 154, in _run_filetype_plugins
    File “calibre_plugins.dedrm.__init__”, line 604, in run
    File “calibre_plugins.dedrm.__init__”, line 554, in KindleMobiDecrypt
    DeDRMError: DeDRM v6.4.3: Ultimately failed to decrypt after 0.6 seconds
    Using Library AlfCrypto DLL/DYLIB/SO
    C:\Program Files (x86)\Calibre2\pylib.zip\dateutil\parser.py:339: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode – interpreting them as being unequal
    MobiDeDrm v0.41.
    Copyright © 2008-2012 The Dark Reverser et al.
    MOBI header version 8, header length 264
    Extra Data Flags: 3
    Decrypting Kindle Format 8 ebook: Os charutos, o cristão e a glória de Deus: Uma perspectiva reformada
    Found 0 keys to try after 0.5 seconds
    Crypto Type is: 0
    This book is not encrypted.
    Decryption succeeded after 0.5 seconds
    DeDRM v6.4.3: Finished after 0.5 seconds
    Added A supremacia e a suficiência de Cristo: A mensagem de Colossenses para a igreja de hoje to db in: 1.8
    Added Os charutos, o cristão e a glória de Deus: Uma perspectiva reformada to db in: 2.0
    Added 2 books in 5.9 seconds
    Worker Launch took: 0.539000034332
    Job: 1 Converter livro 1 de 1 (Os charutos, o cristão e a glória de Deus: Uma perspectiva reformada) finished
    Converter livro 1 de 1 (Os charutos, o cristão e a glória de Deus: Uma perspectiva reformada)
    C:\Program Files (x86)\Calibre2\pylib.zip\dateutil\parser.py:339: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode – interpreting them as being unequal
    Resolved conversion options
    calibre version: 2.58.0
    {‘asciiize’: False,
    ‘author_sort’: None,
    ‘authors’: None,
    ‘base_font_size’: 0.0,
    ‘book_producer’: None,
    ‘change_justification’: u’original’,
    ‘chapter’: u”//*[((name()=’h1′ or name()=’h2′) and re:test(., ‘\\s*((chapter|book|section|part)\\s+)|((prolog|prologue|epilogue)(\\s+|$))’, ‘i’)) or @class = ‘chapter’]”,
    ‘chapter_mark’: u’pagebreak’,
    ‘comments’: None,
    ‘cover’: u’C:\\Users\\Dilla\\AppData\\Local\\Temp\\calibre_iotx1w\\lhwlfy.jpeg’,
    ‘debug_pipeline’: None,
    ‘dehyphenate’: True,
    ‘delete_blank_paragraphs’: True,
    ‘disable_font_rescaling’: False,
    ‘dont_split_on_page_breaks’: False,
    ‘duplicate_links_in_toc’: False,
    ’embed_all_fonts’: False,
    ’embed_font_family’: None,
    ‘enable_heuristics’: False,
    ‘epub_flatten’: False,
    ‘epub_inline_toc’: False,
    ‘epub_toc_at_end’: False,
    ‘expand_css’: False,
    ‘extra_css’: None,
    ‘extract_to’: None,
    ‘filter_css’: u”,
    ‘fix_indents’: True,
    ‘flow_size’: 260,
    ‘font_size_mapping’: None,
    ‘format_scene_breaks’: True,
    ‘html_unwrap_factor’: 0.4,
    ‘input_encoding’: None,
    ‘input_profile’: ,
    ‘insert_blank_line’: False,
    ‘insert_blank_line_size’: 0.5,
    ‘insert_metadata’: False,
    ‘isbn’: None,
    ‘italicize_common_cases’: True,
    ‘keep_ligatures’: False,
    ‘language’: None,
    ‘level1_toc’: None,
    ‘level2_toc’: None,
    ‘level3_toc’: None,
    ‘line_height’: 0.0,
    ‘linearize_tables’: False,
    ‘margin_bottom’: 5.0,
    ‘margin_left’: 5.0,
    ‘margin_right’: 5.0,
    ‘margin_top’: 5.0,
    ‘markup_chapter_headings’: True,
    ‘max_toc_links’: 50,
    ‘minimum_line_height’: 120.0,
    ‘no_chapters_in_toc’: False,
    ‘no_default_epub_cover’: False,
    ‘no_inline_navbars’: False,
    ‘no_svg_cover’: False,
    ‘output_profile’: ,
    ‘page_breaks_before’: u”//*[name()=’h1′ or name()=’h2′]”,
    ‘prefer_metadata_cover’: False,
    ‘preserve_cover_aspect_ratio’: False,
    ‘pretty_print’: True,
    ‘pubdate’: None,
    ‘publisher’: None,
    ‘rating’: None,
    ‘read_metadata_from_opf’: u’C:\\Users\\Dilla\\AppData\\Local\\Temp\\calibre_iotx1w\\vr8esv.opf’,
    ‘remove_fake_margins’: True,
    ‘remove_first_image’: False,
    ‘remove_paragraph_spacing’: False,
    ‘remove_paragraph_spacing_indent_size’: 1.5,
    ‘renumber_headings’: True,
    ‘replace_scene_breaks’: u”,
    ‘search_replace’: ‘[]’,
    ‘series’: None,
    ‘series_index’: None,
    ‘smarten_punctuation’: False,
    ‘sr1_replace’: None,
    ‘sr1_search’: None,
    ‘sr2_replace’: None,
    ‘sr2_search’: None,
    ‘sr3_replace’: None,
    ‘sr3_search’: None,
    ‘start_reading_at’: None,
    ‘subset_embedded_fonts’: False,
    ‘tags’: None,
    ‘timestamp’: None,
    ‘title’: None,
    ‘title_sort’: None,
    ‘toc_filter’: None,
    ‘toc_threshold’: 6,
    ‘toc_title’: None,
    ‘transform_css_rules’: ‘[]’,
    ‘unsmarten_punctuation’: False,
    ‘unwrap_lines’: True,
    ‘use_auto_toc’: False,
    ‘verbose’: 2}
    InputFormatPlugin: MOBI Input running
    on C:\Users\Dilla\AppData\Local\Temp\calibre_iotx1w\tm2loj.azw3
    Found KF8 MOBI of type ‘standalone’
    Extracting text…
    Parsing all content…
    Parsing text/part0000.html …
    Forcing text/part0000.html into XHTML namespace
    Parsing styles/0001.css …
    Reading TOC from NCX…
    Merging user specified metadata…
    Detecting structure…
    Flattening CSS and remapping font sizes…
    Source base font size is 12.00000pt
    Removing fake margins…
    Found 1 items of level: div_2
    Found 27 items of level: div_1
    Found 23 items of level: p_1
    Found 7 items of level: p_3
    Found 228 items of level: p_2
    Ignoring level p_1
    Ignoring level p_3
    div_2 left margin stats: Counter({u’0%’: 1})
    div_2 right margin stats: Counter({u’0%’: 1})
    Removing level div_2 left margin of: 0%
    Removing level div_2 right margin of: 0%
    div_1 left margin stats: Counter({u”: 11})
    div_1 right margin stats: Counter({u”: 11})
    p_2 left margin stats: Counter({u’0%’: 215, u’10.01%’: 11, u’8.33%’: 2})
    p_2 right margin stats: Counter({u’0%’: 217, u’10.01%’: 11})
    Removing level p_2 right margin of: 0%
    Cleaning up manifest…
    Trimming unused files from manifest…
    Trimming u’images/00003.jpeg’ from manifest
    Creating EPUB Output…
    Rescaling image from 1237×1967 to 488×776 cover.jpeg
    Splitting markup on page breaks and flow limits, if any…
    Splitting on page-break at id=calibre_pb_0
    Splitting on page-break at id=calibre_pb_1
    Splitting on page-break at id=calibre_pb_2
    Splitting on page-break at id=calibre_pb_3
    Splitting on page-break at id=calibre_pb_4
    Splitting on page-break at id=calibre_pb_5
    Splitting on page-break at id=calibre_pb_6
    Splitting on page-break at id=calibre_pb_7
    Splitting on page-break at id=calibre_pb_8
    Adjusted split point to ancestor
    Splitting on page-break at id=calibre_pb_9
    Splitting on page-break at id=calibre_pb_10
    Splitting on page-break at id=calibre_pb_11
    Adjusted split point to ancestor
    Splitting on page-break at id=calibre_pb_12
    Splitting on page-break at id=calibre_pb_13
    Splitting on page-break at id=calibre_pb_14
    Splitting on page-break at id=calibre_pb_15
    Splitting on page-break at id=calibre_pb_16
    Adjusted split point to ancestor
    Splitting on page-break at id=calibre_pb_17
    Splitting on page-break at id=calibre_pb_18
    Splitting on page-break at id=calibre_pb_19
    Splitting on page-break at id=calibre_pb_20
    Splitting on page-break at id=calibre_pb_21
    Adjusted split point to ancestor
    Splitting on page-break at id=calibre_pb_22
    Splitting on page-break at id=calibre_pb_23
    Splitting on page-break at id=calibre_pb_24
    Splitting on page-break at id=calibre_pb_25
    Adjusted split point to ancestor
    Splitting on page-break at id=calibre_pb_26
    Splitting on page-break at id=calibre_pb_27
    Splitting on page-break at id=calibre_pb_28
    Splitting on page-break at id=calibre_pb_29
    Splitting on page-break at id=calibre_pb_30
    Splitting on page-break at id=calibre_pb_31
    Splitting on page-break at id=calibre_pb_32
    Splitting on page-break at id=calibre_pb_33
    Splitting on page-break at id=calibre_pb_34
    Splitting on page-break at id=calibre_pb_35
    Splitting on page-break at id=calibre_pb_36
    Splitting on page-break at id=calibre_pb_37
    Splitting on page-break at id=calibre_pb_38
    Splitting on page-break at id=calibre_pb_39
    Splitting on page-break at id=calibre_pb_40
    Splitting on page-break at id=calibre_pb_41
    Splitting on page-break at id=calibre_pb_42
    Splitting on page-break at id=calibre_pb_43
    Adjusted split point to ancestor
    Splitting on page-break at id=calibre_pb_44
    Splitting on page-break at id=calibre_pb_45
    Splitting on page-break at id=calibre_pb_46
    Adjusted split point to ancestor
    Splitting on page-break at id=calibre_pb_47
    Splitting on page-break at id=calibre_pb_48
    Splitting on page-break at id=calibre_pb_49
    Adjusted split point to ancestor
    Splitting on page-break at id=calibre_pb_50
    Splitting on page-break at id=calibre_pb_51
    Splitting on page-break at id=calibre_pb_52
    Adjusted split point to ancestor
    Splitting on page-break at id=calibre_pb_53
    Splitting on page-break at id=calibre_pb_54
    Splitting on page-break at id=calibre_pb_55
    Adjusted split point to ancestor
    Looking for large trees in text/part0000.html…
    No large trees found
    Split into 34 parts
    Removing anchor from TOC href: text/part0000_split_004.html#_Toc424576303
    Removing anchor from TOC href: text/part0000_split_005.html#_Toc424576304
    Removing anchor from TOC href: text/part0000_split_008.html#_Toc424576307
    Removing anchor from TOC href: text/part0000_split_011.html#_Toc424576310
    Removing anchor from TOC href: text/part0000_split_013.html#_Toc424576312
    Removing anchor from TOC href: text/part0000_split_019.html#_Toc424576318
    Removing anchor from TOC href: text/part0000_split_029.html#_Toc424576329
    Removing anchor from TOC href: text/part0000_split_033.html#_Toc424576335
    EPUB output written to C:\Users\Dilla\AppData\Local\Temp\calibre_iotx1w\t3bck0.epub

    Worker Launch took: 0.532999992371
    Job: 2 Converter livro 1 de 1 (A supremacia e a suficiência de Cristo: A mensagem de Colossenses para a igreja de hoje) finished
    Converter livro 1 de 1 (A supremacia e a suficiência de Cristo: A mensagem de Colossenses para a igreja de hoje)
    C:\Program Files (x86)\Calibre2\pylib.zip\dateutil\parser.py:339: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode – interpreting them as being unequal
    Resolved conversion options
    calibre version: 2.58.0
    {‘asciiize’: False,
    ‘author_sort’: None,
    ‘authors’: None,
    ‘base_font_size’: 0.0,
    ‘book_producer’: None,
    ‘change_justification’: u’original’,
    ‘chapter’: u”//*[((name()=’h1′ or name()=’h2′) and re:test(., ‘\\s*((chapter|book|section|part)\\s+)|((prolog|prologue|epilogue)(\\s+|$))’, ‘i’)) or @class = ‘chapter’]”,
    ‘chapter_mark’: u’pagebreak’,
    ‘comments’: None,
    ‘cover’: u’C:\\Users\\Dilla\\AppData\\Local\\Temp\\calibre_iotx1w\\fp7tvg.jpeg’,
    ‘debug_pipeline’: None,
    ‘dehyphenate’: True,
    ‘delete_blank_paragraphs’: True,
    ‘disable_font_rescaling’: False,
    ‘dont_split_on_page_breaks’: False,
    ‘duplicate_links_in_toc’: False,
    ’embed_all_fonts’: False,
    ’embed_font_family’: None,
    ‘enable_heuristics’: False,
    ‘epub_flatten’: False,
    ‘epub_inline_toc’: False,
    ‘epub_toc_at_end’: False,
    ‘expand_css’: False,
    ‘extra_css’: None,
    ‘extract_to’: None,
    ‘filter_css’: u”,
    ‘fix_indents’: True,
    ‘flow_size’: 260,
    ‘font_size_mapping’: None,
    ‘format_scene_breaks’: True,
    ‘html_unwrap_factor’: 0.4,
    ‘input_encoding’: None,
    ‘input_profile’: ,
    ‘insert_blank_line’: False,
    ‘insert_blank_line_size’: 0.5,
    ‘insert_metadata’: False,
    ‘isbn’: None,
    ‘italicize_common_cases’: True,
    ‘keep_ligatures’: False,
    ‘language’: None,
    ‘level1_toc’: None,
    ‘level2_toc’: None,
    ‘level3_toc’: None,
    ‘line_height’: 0.0,
    ‘linearize_tables’: False,
    ‘margin_bottom’: 5.0,
    ‘margin_left’: 5.0,
    ‘margin_right’: 5.0,
    ‘margin_top’: 5.0,
    ‘markup_chapter_headings’: True,
    ‘max_toc_links’: 50,
    ‘minimum_line_height’: 120.0,
    ‘no_chapters_in_toc’: False,
    ‘no_default_epub_cover’: False,
    ‘no_inline_navbars’: False,
    ‘no_svg_cover’: False,
    ‘output_profile’: ,
    ‘page_breaks_before’: u”//*[name()=’h1′ or name()=’h2′]”,
    ‘prefer_metadata_cover’: False,
    ‘preserve_cover_aspect_ratio’: False,
    ‘pretty_print’: True,
    ‘pubdate’: None,
    ‘publisher’: None,
    ‘rating’: None,
    ‘read_metadata_from_opf’: u’C:\\Users\\Dilla\\AppData\\Local\\Temp\\calibre_iotx1w\\d7ek6k.opf’,
    ‘remove_fake_margins’: True,
    ‘remove_first_image’: False,
    ‘remove_paragraph_spacing’: False,
    ‘remove_paragraph_spacing_indent_size’: 1.5,
    ‘renumber_headings’: True,
    ‘replace_scene_breaks’: u”,
    ‘search_replace’: ‘[]’,
    ‘series’: None,
    ‘series_index’: None,
    ‘smarten_punctuation’: False,
    ‘sr1_replace’: None,
    ‘sr1_search’: None,
    ‘sr2_replace’: None,
    ‘sr2_search’: None,
    ‘sr3_replace’: None,
    ‘sr3_search’: None,
    ‘start_reading_at’: None,
    ‘subset_embedded_fonts’: False,
    ‘tags’: None,
    ‘timestamp’: None,
    ‘title’: None,
    ‘title_sort’: None,
    ‘toc_filter’: None,
    ‘toc_threshold’: 6,
    ‘toc_title’: None,
    ‘transform_css_rules’: ‘[]’,
    ‘unsmarten_punctuation’: False,
    ‘unwrap_lines’: True,
    ‘use_auto_toc’: False,
    ‘verbose’: 2}
    InputFormatPlugin: MOBI Input running
    on C:\Users\Dilla\AppData\Local\Temp\calibre_iotx1w\fthvow.azw
    Found KF8 MOBI of type ‘standalone’
    Python function terminated unexpectedly
    A supremacia e a suficiência de Cristo: A mensagem de Colossenses para a igreja de hoje (Error Code: 1)
    Traceback (most recent call last):
    File “site.py”, line 132, in main
    File “site.py”, line 109, in run_entry_point
    File “site-packages\calibre\utils\ipc\worker.py”, line 190, in main
    File “site-packages\calibre\gui2\convert\gui_conversion.py”, line 31, in gui_convert_override
    File “site-packages\calibre\gui2\convert\gui_conversion.py”, line 25, in gui_convert
    File “site-packages\calibre\ebooks\conversion\plumber.py”, line 1057, in run
    File “site-packages\calibre\customize\conversion.py”, line 241, in __call__
    File “site-packages\calibre\ebooks\conversion\plugins\mobi_input.py”, line 43, in convert
    File “site-packages\calibre\ebooks\mobi\reader\mobi8.py”, line 81, in __call__
    File “site-packages\calibre\ebooks\mobi\reader\mobi6.py”, line 144, in check_for_drm
    calibre.ebooks.DRMError: A supremacia e a suficiência de Cristo: A mensagem de Colossenses para a igreja de hoje

    • The import lines in the log are these:

      DeDRM v6.4.3: Failed to decrypt with error: No key found in 0 keys tried.
      DeDRM v6.4.3: Looking for new default Kindle Key after 0.6 seconds
      DeDRM v6.4.3: Trying to decrypt B011K69X2I_EBOK.azw
      searching for kinfoFiles in C:\Users\Dilla\AppData\Local
      No K4PC kindle.info/kinf/kinf2011 files have been found.
      DeDRM v6.4.3: Ultimately failed to decrypt after 0.6 seconds.

      If you are using Kindle for PC from the Amazon web site, there should be a .kinf2011 file somewhere in C:\Users\Dilla\AppData\Local. Try unregistering, uninstalling Kindle for PC and then re-install and re-register.

  7. Tried to remove from Adobe a couple of times but no luck also won’t convert.

    Python 2.7.9
    Windows: (‘8’, ‘6.2.9200’, ”, ‘Multiprocessor Free’)
    Successfully initialized third party plugins: DeDRM
    Starting up…
    Started up in 18.37 seconds with 1 books
    DeDRM v6.4.3: Trying to decrypt Om God te ken (eBoek).epub
    DeDRM v6.4.3: Verifying zip archive integrity
    DeDRM v6.4.3: Om God te ken (eBoek).epub is a secure Adobe Adept ePub
    DeDRM v6.4.3: Looking for new default Adobe Digital Editions Keys after 0.7 seconds
    Found 1 keys
    DeDRM v6.4.3: Trying a new default key
    Could not decrypt aeik4e.epub. Wrong key
    DeDRM v6.4.3: Failed to decrypt with new default key after 0.8 seconds
    DeDRM v6.4.3: Ultimately failed to decrypt after 0.8 seconds.
    Read the FAQs at Alf’s blog: https://apprenticealf.wordpress.com/
    Running file type plugin DeDRM failed with traceback:
    Traceback (most recent call last):
    File “site-packages\calibre\customize\ui.py”, line 154, in _run_filetype_plugins
    File “calibre_plugins.dedrm.__init__”, line 615, in run
    File “calibre_plugins.dedrm.__init__”, line 386, in ePubDecrypt
    DeDRMError: DeDRM v6.4.3: Ultimately failed to decrypt after 0.8 seconds.
    Added Om God te ken (eBoek) to db in: 1.0
    Added 1 books in 3.0 seconds

    • I think that the new Adobe Encryption isn’t identified as an ADE ebook, so I don’t think this is a new encryption problem. You must be able to read this ePub on the installed ADE, which must be registered to an Adobe ID.

  8. Having trouble removing the DRM from a B&N epub. Thanks!

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

    C:\Users\Mike>calibre-debug -g
    calibre 2.57.1 embedded-python: True is64bit: False
    Windows-8-6.2.9200 Windows (’32bit’, ‘WindowsPE’)
    32bit process running on 64bit windows
    (‘Windows’, ‘8’, ‘6.2.9200’)
    Python 2.7.9
    Windows: (‘8’, ‘6.2.9200’, ”, ‘Multiprocessor Free’)
    Qt: Untested Windows version 10.0 detected!
    Successfully initialized third party plugins: DeDRM
    Starting up…
    Started up in 3.08 seconds with 25 books
    DeDRM v6.4.3: Trying to decrypt elbosquedelospigmeos_9788401342578.epub
    DeDRM v6.4.3: Verifying zip archive integrity
    DeDRM v6.4.3: “elbosquedelospigmeos_9788401342578.epub” is a secure Barnes & Noble ePub
    DeDRM v6.4.3: Trying Encryption key Mike’s Key
    Could not decrypt dloi8x.epub because of an exception:
    Traceback (most recent call last):
    File “calibre_plugins.dedrm.ignobleepub”, line 278, in decryptBook
    File “calibre_plugins.dedrm.ignobleepub”, line 209, in __init__
    File “calibre_plugins.dedrm.ignobleepub”, line 180, in __init__
    File “site-packages\pycrypto-2.6.1-py2.7-win32.egg\Crypto\Cipher\AES.py”, line 95, in new
    File “site-packages\pycrypto-2.6.1-py2.7-win32.egg\Crypto\Cipher\AES.py”, line 59, in __init__
    File “site-packages\pycrypto-2.6.1-py2.7-win32.egg\Crypto\Cipher\blockalgo.py”, line 141, in __init__
    ValueError: Key cannot be the null string

    DeDRM v6.4.3: Failed to decrypt with key Mike’s Key after 0.2 seconds
    DeDRM v6.4.3: Trying Encryption key Mike’s Key X
    Could not decrypt dloi8x.epub because of an exception:
    Traceback (most recent call last):
    File “calibre_plugins.dedrm.ignobleepub”, line 278, in decryptBook
    File “calibre_plugins.dedrm.ignobleepub”, line 209, in __init__
    File “calibre_plugins.dedrm.ignobleepub”, line 180, in __init__
    File “site-packages\pycrypto-2.6.1-py2.7-win32.egg\Crypto\Cipher\AES.py”, line 95, in new
    File “site-packages\pycrypto-2.6.1-py2.7-win32.egg\Crypto\Cipher\AES.py”, line 59, in __init__
    File “site-packages\pycrypto-2.6.1-py2.7-win32.egg\Crypto\Cipher\blockalgo.py”, line 141, in __init__
    ValueError: AES key must be either 16, 24, or 32 bytes long

    DeDRM v6.4.3: Failed to decrypt with key Mike’s Key X after 0.2 seconds
    DeDRM v6.4.3: Looking for new NOOK Study Keys after 0.2 seconds
    No nook Study log files have been found.
    DeDRM v6.4.3: Ultimately failed to decrypt after 0.2 seconds.
    Read the FAQs at Alf’s blog: https://apprenticealf.wordpress.com/
    Running file type plugin DeDRM failed with traceback:
    Traceback (most recent call last):
    File “site-packages\calibre\customize\ui.py”, line 154, in _run_filetype_plugins
    File “calibre_plugins.dedrm.__init__”, line 615, in run
    File “calibre_plugins.dedrm.__init__”, line 286, in ePubDecrypt
    DeDRMError: DeDRM v6.4.3: Ultimately failed to decrypt after 0.2 seconds.
    Added El bosque de los Pigmeos to db in: 1.1
    Added 1 books in 2.0 seconds

    • Try generating your key again, and downloading a fresh copy of the book. (Perhaps your current stored key doesn’t match the one in use when the book was downloaded. By making sure both at the latest, it should work.)

    • Ah – then that might be your problem. Go to the DeDRM plugin customisation dialog through calibre preferences, and enter your B&N email address and password, so that it can retrieve your B&N key.

      • That did it. I had some keys left over from two years ago when the credit card # number was used. When I regenerated the key, I could do the import. Thanks.

  9. Hi Alf … I’m something of being at a loss as to why you don’t want to support EPUB. I buy quite a lot of books from Kobo as I have a Kobo e-reader. My wife has a Kindle, so I need to convert books I have bought to mobi format. I’m OK now I’ve put back the EPUB files, but just don’t understand why you took the facility out.

    Kind regards, Barry.

    • What are you talking about? The current DeDRM plugin removes DRM from Kobo ePubs downloaded through ADE just fine, as it has always done. If you want to remove the DRM from the kepubs downloaded using the Kobo desktop app, use the Obok plugin.

  10. Hello ! Could you help me convert this book https://db.tt/E8X6kxlx Best regards

    Log:
    C:\Program Files (x86)\Calibre\pylib.zip\dateutil\parser.py:339: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode – interpreting them as being unequal
    Resolved conversion options
    calibre version: 2.58.0
    {‘asciiize’: False,
    ‘author_sort’: None,
    ‘authors’: None,
    ‘base_font_size’: 0.0,
    ‘book_producer’: None,
    ‘change_justification’: u’original’,
    ‘chapter’: u”//*[((name()=’h1′ or name()=’h2′) and re:test(., ‘\\s*((chapter|book|section|part)\\s+)|((prolog|prologue|epilogue)(\\s+|$))’, ‘i’)) or @class = ‘chapter’]”,
    ‘chapter_mark’: u’pagebreak’,
    ‘comments’: None,
    ‘cover’: 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,
    ‘expand_css’: False,
    ‘extra_css’: None,
    ‘extract_to’: None,
    ‘filter_css’: u”,
    ‘fix_indents’: True,
    ‘flow_size’: 260,
    ‘font_size_mapping’: None,
    ‘format_scene_breaks’: True,
    ‘html_unwrap_factor’: 0.4,
    ‘input_encoding’: None,
    ‘input_profile’: ,
    ‘insert_blank_line’: False,
    ‘insert_blank_line_size’: 0.5,
    ‘insert_metadata’: False,
    ‘isbn’: None,
    ‘italicize_common_cases’: True,
    ‘keep_ligatures’: False,
    ‘language’: None,
    ‘level1_toc’: None,
    ‘level2_toc’: None,
    ‘level3_toc’: None,
    ‘line_height’: 0.0,
    ‘linearize_tables’: False,
    ‘margin_bottom’: 5.0,
    ‘margin_left’: 5.0,
    ‘margin_right’: 5.0,
    ‘margin_top’: 5.0,
    ‘markup_chapter_headings’: True,
    ‘max_toc_links’: 50,
    ‘minimum_line_height’: 120.0,
    ‘no_chapters_in_toc’: False,
    ‘no_default_epub_cover’: False,
    ‘no_inline_navbars’: False,
    ‘no_svg_cover’: False,
    ‘output_profile’: ,
    ‘page_breaks_before’: u”//*[name()=’h1′ or name()=’h2′]”,
    ‘prefer_metadata_cover’: False,
    ‘preserve_cover_aspect_ratio’: False,
    ‘pretty_print’: True,
    ‘pubdate’: None,
    ‘publisher’: None,
    ‘rating’: None,
    ‘read_metadata_from_opf’: u’C:\\Users\\User\\AppData\\Local\\Temp\\calibre_7gxijs\\xtb3gi.opf’,
    ‘remove_fake_margins’: True,
    ‘remove_first_image’: False,
    ‘remove_paragraph_spacing’: False,
    ‘remove_paragraph_spacing_indent_size’: 1.5,
    ‘renumber_headings’: True,
    ‘replace_scene_breaks’: u”,
    ‘search_replace’: ‘[]’,
    ‘series’: None,
    ‘series_index’: None,
    ‘smarten_punctuation’: False,
    ‘sr1_replace’: None,
    ‘sr1_search’: None,
    ‘sr2_replace’: None,
    ‘sr2_search’: None,
    ‘sr3_replace’: None,
    ‘sr3_search’: None,
    ‘start_reading_at’: None,
    ‘subset_embedded_fonts’: False,
    ‘tags’: None,
    ‘timestamp’: None,
    ‘title’: None,
    ‘title_sort’: None,
    ‘toc_filter’: None,
    ‘toc_threshold’: 6,
    ‘toc_title’: None,
    ‘transform_css_rules’: ‘[]’,
    ‘unsmarten_punctuation’: False,
    ‘unwrap_lines’: True,
    ‘use_auto_toc’: False,
    ‘verbose’: 2}
    InputFormatPlugin: MOBI Input running
    on C:\Users\User\AppData\Local\Temp\calibre_7gxijs\8tnpcx.azw
    Python function terminated unexpectedly
    Unknown book type: ‘\x00\x00\x00\x00\x00\x00\x00\x01’ (Error Code: 1)
    Traceback (most recent call last):
    File “site.py”, line 132, in main
    File “site.py”, line 109, in run_entry_point
    File “site-packages\calibre\utils\ipc\worker.py”, line 190, in main
    File “site-packages\calibre\gui2\convert\gui_conversion.py”, line 31, in gui_convert_override
    File “site-packages\calibre\gui2\convert\gui_conversion.py”, line 25, in gui_convert
    File “site-packages\calibre\ebooks\conversion\plumber.py”, line 1057, in run
    File “site-packages\calibre\customize\conversion.py”, line 241, in __call__
    File “site-packages\calibre\ebooks\conversion\plugins\mobi_input.py”, line 33, in convert
    File “site-packages\calibre\ebooks\mobi\reader\mobi6.py”, line 79, in __init__
    calibre.ebooks.mobi.MobiError: Unknown book type: ‘\x00\x00\x00\x00\x00\x00\x00\x01’

    • No! First, this website is for DRM removal and may help there, but not for conversion of ebooks, which is a normal Calibre function and could be asked at the Calibre-Webpage or in the mobileread forum.
      That said, I unzipped the archive, and dropped both resulting files, but the size (7 MB of one of it) already tipped me of: they have a header sqllite, These are Databases, if it is really a book, maybe a Comic or graphic-heavy book. It may be looked at with a SQL-Viewer or App.
      Not sure, wether it is protected or not.
      Renaming them to AZW and dropping it on DeDRM (Mac) results in the following message:
      Bundle:https_read.amazon.com_0:3.azw is neither a Kindle not a Mobipocket file.
      Bundle:https_read.amazon.com_0:4.azw is neither a Kindle not a Mobipocket file.
      The tools will not help here, imho, you have other problems.

  11. My computer’s OS is Windows 7 Home Premium 64-bit. Which should I download?

    •PyCrypto 2.6 for Python 2.7 32bit
    •PyCrypto 2.6 for Python 2.7 32bit (asc signature)
    •PyCrypto 2.6 for Python 2.7 64bit
    •PyCrypto 2.6 for Python 2.7 64bit (asc signature)

  12. 😦
    There is 1 ebook to be decrypted.
    Processing file: B00GO9AJWK_EBOK.azw
    shellcommand: /usr/bin/python ‘/Applications/DeDRM.app/Contents/Resources/k4mobidedrm.py’ -k ‘/Users/rachelnaffziger/Library/Preferences/com.apprenticealf.dedrm/Local Kindle Key.k4i’ ‘/Users/rachelnaffziger/Documents/Amazon Books/B00GO9AJWK_EBOK.azw’ ‘/Users/rachelnaffziger/Desktop/’ > ‘/Users/rachelnaffziger/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
    shellresult: Using Library AlfCrypto DLL/DYLIB/SO
    K4MobiDeDrm v5.3.
    Copyright © 2008-2013 The Dark Reverser et al.
    MobiDeDrm v0.41.
    Copyright © 2008-2012 The Dark Reverser et al.
    MOBI header version 8, header length 264
    Extra Data Flags: 3
    Decrypting Kindle Format 8 ebook: What Is Biblical Theology?: A Guide to the Bible’s Story, Symbolism, and Patterns
    Found 4 keys to try after 0.0 seconds
    Crypto Type is: 2
    Error decrypting book after 0.0 seconds: No key found in 4 keys tried.
    Traceback (most recent call last):
    File “/Applications/DeDRM.app/Contents/Resources/k4mobidedrm.py”, line 248, in decryptBook
    book = GetDecryptedBook(infile, kDatabases, androidFiles, serials, pids, starttime)
    File “/Applications/DeDRM.app/Contents/Resources/k4mobidedrm.py”, line 222, in GetDecryptedBook
    mb.processBook(totalpids)
    File “/Applications/DeDRM.app/Contents/Resources/mobidedrm.py”, line 471, in processBook
    raise DrmException(u”No key found in {0:d} keys tried.”.format(len(goodpids)))
    DrmException: No key found in 4 keys tried.
    There was an error with 1 ebook:
    B00GO9AJWK_EBOK.azw couldn’t be decrypted.

    I’m just using the straight DRM app, and it used to work. It doesn’t seem to be working with newer books.
    Thanks for your help:)

    • Apprentice Harper has created a new FAQs list at github: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md

      I think this one probably applies:

      I use the Macintosh application, but the DRM does not get removed. It is a Kindle book it used to work before I reinstalled Kindle for Mac.

      You need to delete the Kindle for Mac key that the Macintosh app has stored, so that it will generate the new key from your new installation of Kindle for Mac. You can do this in the application settings, or just delete the file ~/Library/Preferences/com.apprenticealf.dedrm/Local Kindle Key.k4i (where ~ is your home folder).

  13. Would appreciate it if someone can help me with this. It would work for some books and not others. I have tried an older version with the same results.

    Thanks

    shellcommand: /usr/bin/python ‘/Volumes/Storage/Ebooks/DeDRM_Macintosh_Application/DeDRM_tools_6.4.3/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/ignoblekey.py’ ‘/Users//Library/Preferences/com.apprenticealf.dedrm/Nook Study Key.b64’ > ‘/Users//Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
    shellresult: ignoblekey.py v1.1
    Copyright © 2015 Apprentice Alf
    No nook Study log files have been found.
    Could not retrieve nook Study key.

    There is 1 ebook to be decrypted.
    Processing file: B00NAGE09S_EBOK.azw
    shellcommand: /usr/bin/python ‘/Volumes/Storage/Ebooks/DeDRM_Macintosh_Application/DeDRM_tools_6.4.3/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/k4mobidedrm.py’ -k ‘/Users//Library/Preferences/com.apprenticealf.dedrm/Local Kindle Key.k4i’ ‘/Users//Desktop/B00NAGE09S_EBOK.azw’ ‘/Users//Desktop/’ > ‘/Users//Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
    shellresult: Using Library AlfCrypto DLL/DYLIB/SO
    K4MobiDeDrm v5.3.
    Copyright © 2008-2013 The Dark Reverser et al.
    MobiDeDrm v0.41.
    Copyright © 2008-2012 The Dark Reverser et al.
    MOBI header version 8, header length 264
    Extra Data Flags: 3
    Decrypting Kindle Format 8 ebook: Take Down (The Billy Cunningham Series Book 1)
    Found 4 keys to try after 0.0 seconds
    Crypto Type is: 2
    Error decrypting book after 0.0 seconds: No key found in 4 keys tried.
    Traceback (most recent call last):
    File “/Volumes/Storage/Ebooks/DeDRM_Macintosh_Application/DeDRM_tools_6.4.3/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/k4mobidedrm.py”, line 248, in decryptBook
    book = GetDecryptedBook(infile, kDatabases, androidFiles, serials, pids, starttime)
    File “/Volumes/Storage/Ebooks/DeDRM_Macintosh_Application/DeDRM_tools_6.4.3/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/k4mobidedrm.py”, line 222, in GetDecryptedBook
    mb.processBook(totalpids)
    File “/Volumes/Storage/Ebooks/DeDRM_Macintosh_Application/DeDRM_tools_6.4.3/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/mobidedrm.py”, line 471, in processBook
    raise DrmException(u”No key found in {0:d} keys tried.”.format(len(goodpids)))
    DrmException: No key found in 4 keys tried.
    There was an error with 1 ebook:
    B00NAGE09S_EBOK.azw couldn’t be decrypted.

    • Probably the same answer that Paul gave right above your comment. Are you sure the books that worked had DRM to begin with? Or are the books from different sources? Each Kindle device/app has a unique key (even for the same account).

      • Yes, some of the books have DRM that was bought. I tried the suggestion of deleting the ~/Library/Preferences/com.apprenticealf.dedrm/Local Kindle Key.k4i but it didn’t work.

        • Have you tried with a fresh copy downloaded through Kindle for Mac? Any reinstallation will change the key.

          If that still doesn’t work, try a complete unregister/delete/reinstall/reregister/redownload.

          There’s no point in trying earlier versions of the tools.

          • I’ve tried unregister/delete/reinstall/reregister/redownload and it still doesn’t. However it does work with Epub. Aso, I have my macbook kindle synced with other devices, so I don’t know if that can factor into it.

            • You’re using the version of Kindle for Mac downloaded from Amazon, not the one from the Mac App Store?
              Try deleting the key file, and then post the log of the run of DeDRM app immediately after (so we can see how the key retrieval goes.)

              • Yes I’m using the version downloaded from Amazon.
                Thanks

                There is 1 ebook to be decrypted.
                Processing file: B01FV9LW56_EBOK.azw
                shellcommand: /usr/bin/python ‘/Volumes/Storage/Ebooks/DeDRM_Macintosh_Application/DeDRM_tools_6.4.3/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/k4mobidedrm.py’ -k ‘/Users//Library/Preferences/com.apprenticealf.dedrm/Local Kindle Key.k4i’ ‘/Users//Desktop/B01FV9LW56_EBOK.azw’ ‘/Users//Desktop/’ > ‘/Users//Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
                shellresult: Using Library AlfCrypto DLL/DYLIB/SO
                K4MobiDeDrm v5.3.
                Copyright © 2008-2013 The Dark Reverser et al.
                MobiDeDrm v0.41.
                Copyright © 2008-2012 The Dark Reverser et al.
                MOBI header version 8, header length 264
                Extra Data Flags: 3
                Decrypting Kindle Format 8 ebook: Get Your Story Straight: A Step-by-Step Guide to Screenwriting by a Million-Dollar Screenwriter
                Found 4 keys to try after 0.0 seconds
                Crypto Type is: 2
                Error decrypting book after 0.0 seconds: No key found in 4 keys tried.
                Traceback (most recent call last):
                File “/Volumes/Storage/Ebooks/DeDRM_Macintosh_Application/DeDRM_tools_6.4.3/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/k4mobidedrm.py”, line 248, in decryptBook
                book = GetDecryptedBook(infile, kDatabases, androidFiles, serials, pids, starttime)
                File “/Volumes/Storage/Ebooks/DeDRM_Macintosh_Application/DeDRM_tools_6.4.3/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/k4mobidedrm.py”, line 222, in GetDecryptedBook
                mb.processBook(totalpids)
                File “/Volumes/Storage/Ebooks/DeDRM_Macintosh_Application/DeDRM_tools_6.4.3/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/mobidedrm.py”, line 471, in processBook
                raise DrmException(u”No key found in {0:d} keys tried.”.format(len(goodpids)))
                DrmException: No key found in 4 keys tried.
                There was an error with 1 ebook:
                B01FV9LW56_EBOK.azw couldn’t be decrypted.

                  • what’s also strange is that there is no folder for it in the Preference file. I did a spotlight search and it indicated that it doesn’t exist. When I try to DeDRMed there is no error message it just goes back to the opening page.

                  • OK, I deleted the key file for DeDRM and tried again and this is the result. It’s different from the last one I posted. Also, I couldn’t find the Kindle for Mac keys in Preference.

                    There is 1 ebook to be decrypted.
                    Processing file: B00361F9ME_EBOK.azw
                    shellcommand: /usr/bin/python ‘/Users//Desktop/DeDRM_tools_6.4.3.zip Folder/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/k4mobidedrm.py’ -k ‘/Users//Library/Preferences/com.apprenticealf.dedrm/Local Kindle Key.k4i’ ‘/Users//Desktop/B00361F9ME_EBOK.azw’ ‘/Users//Desktop/’ > ‘/Users//Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
                    shellresult: Using Library AlfCrypto DLL/DYLIB/SO
                    K4MobiDeDrm v5.3.
                    Copyright © 2008-2013 The Dark Reverser et al.
                    Decrypting Topaz ebook: The Dramatic Writer’s Companion: Tools to Develop Characters, Cause Scenes, and Build Stories (Chicago Guides to Writing, Editing, and Publishing)
                    Found 4 keys to try after 0.0 seconds
                    Trying: JAJB5B52
                    Trying: Jn0IEk9I
                    Trying: 2252PNA9
                    Trying: bYsYpcSv
                    Error decrypting book after 0.0 seconds: No key found in 4 keys tried. Read the FAQs at Alf’s blog: https://apprenticealf.wordpress.com/
                    Traceback (most recent call last):
                    File “/Users//Desktop/DeDRM_tools_6.4.3.zip Folder/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/k4mobidedrm.py”, line 248, in decryptBook
                    book = GetDecryptedBook(infile, kDatabases, androidFiles, serials, pids, starttime)
                    File “/Users//Desktop/DeDRM_tools_6.4.3.zip Folder/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/k4mobidedrm.py”, line 222, in GetDecryptedBook
                    mb.processBook(totalpids)
                    File “/Users//Desktop/DeDRM_tools_6.4.3.zip Folder/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/topazextract.py”, line 355, in processBook
                    raise DrmException(u”No key found in {0:d} keys tried. Read the FAQs at Alf’s blog: https://apprenticealf.wordpress.com/“.format(len(pidlst)))
                    DrmException: No key found in 4 keys tried. Read the FAQs at Alf’s blog: https://apprenticealf.wordpress.com/
                    There was an error with 1 ebook:
                    B00361F9ME_EBOK.azw couldn’t be decrypted.

                  • My apologies to keep harping on this subject. I misunderstood where the Kindle for Mac key was and looked in the wrong place. So I deleted both keys from Preferences and tried to DeDRM again and this is the result. Please help if you can. Thanks.

                    shellcommand: /usr/bin/python ‘/Users/michaeldudar/Desktop/DeDRM_tools_6.4.3.zip Folder/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/kindlekey.py’ ‘/Users/michaeldudar/Library/Preferences/com.apprenticealf.dedrm/Local Kindle Key.k4i’ > ‘/Users/michaeldudar/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
                    shellresult: kindlekey.py v2.2
                    Copyright © 2010-2016 by some_updates, Apprentice Alf and Apprentice Harper
                    Found k4Mac kinf2011 file: /Users/michaeldudar/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2011
                    Found k4Mac kinf2011 file: /Users/michaeldudar/Library/Application Support/Kindle/storage/.kinf2011
                    Decrypted key file using IDString ‘8d6a4c2ebbca’ and UserName ‘michaeldudar’
                    Decrypted key file using IDString ‘8d6a4c2ebbca’ and UserName ‘michaeldudar’
                    Saved a key to /Users/michaeldudar/Library/Preferences/com.apprenticealf.dedrm/Local Kindle Key.k4i

                    shellcommand: /usr/bin/python ‘/Users/michaeldudar/Desktop/DeDRM_tools_6.4.3.zip Folder/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/ignoblekey.py’ ‘/Users/michaeldudar/Library/Preferences/com.apprenticealf.dedrm/Nook Study Key.b64’ > ‘/Users/michaeldudar/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
                    shellresult: ignoblekey.py v1.1
                    Copyright © 2015 Apprentice Alf
                    No nook Study log files have been found.
                    Could not retrieve nook Study key.

                    There is 1 ebook to be decrypted.
                    Processing file: B00P72KKN8_EBOK.azw
                    shellcommand: /usr/bin/python ‘/Users/michaeldudar/Desktop/DeDRM_tools_6.4.3.zip Folder/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/k4mobidedrm.py’ -k ‘/Users/michaeldudar/Library/Preferences/com.apprenticealf.dedrm/Local Kindle Key.k4i’ ‘/Users/michaeldudar/Desktop/B00P72KKN8_EBOK.azw’ ‘/Users/michaeldudar/Desktop/’ > ‘/Users/michaeldudar/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
                    shellresult: Using Library AlfCrypto DLL/DYLIB/SO
                    K4MobiDeDrm v5.3.
                    Copyright © 2008-2013 The Dark Reverser et al.
                    MobiDeDrm v0.41.
                    Copyright © 2008-2012 The Dark Reverser et al.
                    MOBI header version 6, header length 232
                    Extra Data Flags: 3
                    Decrypting Mobipocket 6 ebook: The Roll Model: A Step-by-Step Guide to Erase Pain, Improve Mobility, and Live Better in Your Body
                    Found 4 keys to try after 0.1 seconds
                    Crypto Type is: 2
                    Error decrypting book after 0.1 seconds: No key found in 4 keys tried.
                    Traceback (most recent call last):
                    File “/Users/michaeldudar/Desktop/DeDRM_tools_6.4.3.zip Folder/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/k4mobidedrm.py”, line 248, in decryptBook
                    book = GetDecryptedBook(infile, kDatabases, androidFiles, serials, pids, starttime)
                    File “/Users/michaeldudar/Desktop/DeDRM_tools_6.4.3.zip Folder/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/k4mobidedrm.py”, line 222, in GetDecryptedBook
                    mb.processBook(totalpids)
                    File “/Users/michaeldudar/Desktop/DeDRM_tools_6.4.3.zip Folder/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/mobidedrm.py”, line 471, in processBook
                    raise DrmException(u”No key found in {0:d} keys tried.”.format(len(goodpids)))
                    DrmException: No key found in 4 keys tried.
                    There was an error with 1 ebook:
                    B00P72KKN8_EBOK.azw couldn’t be decrypted.

                    • The Mac application is a little might stupider than the plugin. When there’s more than one key, it just picks one and hopes for the best. As can be seen in the log, there are two keys stored on your Mac, one from Kindle for Mac from the Mac App store and one from Kindle for Mac from the AMazon web site. Unregister Kindle for Mac, delete Kindle for Mac, delete the folders /Users/michaeldudar/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/ and /Users/michaeldudar/Library/Application Support/Kindle/ , the file /Users/michaeldudar/Library/Preferences/com.apprenticealf.dedrm/Local Kindle Key.k4i and then reinstall and re-register Kindle for Mac (from the Amazon web site) and re-download your book. Then all should be well.

                      Harper.

  14. I have a more general question about DRM removal. Some ebooks bought from Kobo are in the Adobe DRM EPUB format, but I can read these books in the Kobo application without obtaining a Adobe ID. Should it be possible for deDRM to also make these books readable, without an Adobe ID?

  15. Can someone please help? It’s an ADE book, I can open it with ADE 2.0.1 and download it, I put it into calibre but after it apparently removed the DRM, if I open the PDF file I can only see the first two pages. After that it says error (14) in Adobe DC Reader. I can convert the book to PDF and get all the information, but it looks horrible after converting from PDF to PDF, so would prefer to just remove the DRM.

    calibre Fehlerdiagnoseprotokoll
    calibre 2.58 [64bit] embedded-python: True is64bit: True
    Windows-8-6.2.9200 Windows (’64bit’, ‘WindowsPE’)
    (‘Windows’, ‘8’, ‘6.2.9200’)
    Python 2.7.9
    Windows: (‘8’, ‘6.2.9200’, ”, ‘Multiprocessor Free’)
    Successfully initialized third party plugins: DeDRM
    Starting up…
    Started up in 14.28 seconds with 0 books
    DeDRM v6.4.3: Trying to decrypt book.pdf
    DeDRM v6.4.3: book.pdf is a PDF ebook
    DeDRM v6.4.3: Trying Encryption key default_key
    DeDRM v6.4.3: Finished after 4.6 seconds
    C:\Program Files\Calibre2\pylib.zip\dateutil\parser.py:339: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode – interpreting them as being unequal
    Added book to db in: 0.2
    Added 1 books in 6.4 seconds

    • Problem seems to be with the PDF file. I can open it e.g. with google docs but not with Adobe, so probably is not a problem with the encryption.

      • Open it in something other than ADE, and then do a ‘save as’ to a new PDF file. That might sort things out. (Not calibre – calibre will convert to ePub and back again when doing a PDF->PDF conversion!)

  16. Microsoft Windows [Version 10.0.10586]
    Calibre deDRM 6.4.3

    tried to import from the Nook for PC program – the ePubs will import but will not deDRM for some reason. I tried deleting the Nook Study app that was on the computer, which had no effect.

    calibre 2.58 [64bit] embedded-python: True is64bit: True
    Windows-8-6.2.9200 Windows (’64bit’, ‘WindowsPE’)
    (‘Windows’, ‘8’, ‘6.2.9200’)
    Python 2.7.9
    Windows: (‘8’, ‘6.2.9200’, ”, ‘Multiprocessor Free’)
    Qt: Untested Windows version 10.0 detected!
    Successfully initialized third party plugins: DeDRM
    Starting up…
    Loaded cached store plugin for: Smashwords at version: 3
    Started up in 3.09 seconds with 360 books
    stdout+stderr from file dialog helper: [”, ”]
    piped data from file dialog helper: [‘\xb1|\xe9)\x98\x12b\xb9Dw\x81\x07\xf4\xdc\xa1\xed\xcb\xb7\x1eF=\xb7\xc5\x97\x05rF*F\x8e\xd1\xca’, ‘C:\\Users\\Documents\\My Barnes & Noble eBooks\\firstlordsfurycodexa_9781101151518.epub’]
    DeDRM v6.4.3: Trying to decrypt firstlordsfurycodexa_9781101151518.epub
    DeDRM v6.4.3: Verifying zip archive integrity
    DeDRM v6.4.3: ���firstlordsfurycodexa_9781101151518.epub��� is a secure Barnes & Noble ePub
    DeDRM v6.4.3: Looking for new NOOK Study Keys after 0.3 seconds
    Found nookStudy log file: C:\Users\\AppData\Roaming\Barnes & Noble\NOOKstudy\logs\BNClientLog.txt
    Found 3 keys in the Nook Study log files
    DeDRM v6.4.3: Trying a new default key
    Could not decrypt e3e6lr.epub because of an exception:
    Traceback (most recent call last):
    File “calibre_plugins.dedrm.ignobleepub”, line 278, in decryptBook
    File “calibre_plugins.dedrm.ignobleepub”, line 209, in __init__
    File “calibre_plugins.dedrm.ignobleepub”, line 180, in __init__
    File “site-packages\pycrypto-2.6.1-py2.7-win-amd64.egg\Crypto\Cipher\AES.py”, line 95, in new
    File “site-packages\pycrypto-2.6.1-py2.7-win-amd64.egg\Crypto\Cipher\AES.py”, line 59, in __init__
    File “site-packages\pycrypto-2.6.1-py2.7-win-amd64.egg\Crypto\Cipher\blockalgo.py”, line 141, in __init__
    ValueError: Key cannot be the null string

    DeDRM v6.4.3: Failed to decrypt with new default key after 0.3 seconds
    DeDRM v6.4.3: Ultimately failed to decrypt after 0.3 seconds.
    Read the FAQs at Alf’s blog: https://apprenticealf.wordpress.com/
    Running file type plugin DeDRM failed with traceback:
    Traceback (most recent call last):
    File “site-packages\calibre\customize\ui.py”, line 154, in _run_filetype_plugins
    File “calibre_plugins.dedrm.__init__”, line 615, in run
    File “calibre_plugins.dedrm.__init__”, line 286, in ePubDecrypt
    DeDRMError: DeDRM v6.4.3: Ultimately failed to decrypt after 0.3 seconds.
    Added First Lord’s Fury to db in: 1.5
    Added 1 books in 2.8 seconds
    Worker Launch took: 0.21799993515

  17. Have installed the calibre plugin as per instructions but not having any success. Log below:

    calibre Debug log
    calibre 2.58 embedded-python: True is64bit: True
    Darwin-15.5.0-x86_64-i386-64bit Darwin (’64bit’, ”)
    (‘Darwin’, ‘15.5.0’, ‘Darwin Kernel Version 15.5.0: Tue Apr 19 18:36:36 PDT 2016; root:xnu-3248.50.21~8/RELEASE_X86_64’)
    Python 2.7.11
    OSX: (‘10.11.5’, (”, ”, ”), ‘x86_64′)
    Successfully initialized third party plugins: DeDRM
    Starting up…
    Started up in 1.86 seconds with 464 books
    DeDRM v6.4.3: Trying to decrypt A Dance with Dragons – Martin, George R.R_.azw
    Using Library AlfCrypto DLL/DYLIB/SO
    MobiDeDrm v0.41.
    Copyright © 2008-2012 The Dark Reverser et al.
    MOBI header version 6, header length 248
    Extra Data Flags: 3
    Decrypting Mobipocket 6 ebook: A Dance with Dragons: A Song of Ice and Fire: Book Five
    Found 0 keys to try after 0.0 seconds
    Crypto Type is: 2
    DeDRM v6.4.3: Failed to decrypt with error: No key found in 0 keys tried.
    DeDRM v6.4.3: Looking for new default Kindle Key after 0.0 seconds
    Found k4Mac kinf2011 file: /Users/Michael/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2011
    Decrypted key file using IDString ’99a2f16e9d89’ and UserName ‘Michael’
    DeDRM v6.4.3: Found 1 new key
    MobiDeDrm v0.41.
    Copyright © 2008-2012 The Dark Reverser et al.
    MOBI header version 6, header length 248
    Extra Data Flags: 3
    Decrypting Mobipocket 6 ebook: A Dance with Dragons: A Song of Ice and Fire: Book Five
    Found 4 keys to try after 0.3 seconds
    Crypto Type is: 2
    DeDRM v6.4.3: Ultimately failed to decrypt after 0.3 seconds.
    Read the FAQs at Alf’s blog: https://apprenticealf.wordpress.com/
    Running file type plugin DeDRM failed with traceback:
    Traceback (most recent call last):
    File “site-packages/calibre/customize/ui.py”, line 154, in _run_filetype_plugins
    File “calibre_plugins.dedrm.__init__”, line 604, in run
    File “calibre_plugins.dedrm.__init__”, line 554, in KindleMobiDecrypt
    DeDRMError: DeDRM v6.4.3: Ultimately failed to decrypt after 0.3 seconds
    Added A Dance with Dragons: A Song of Ice and Fire: Book Five to db in: 0.0
    Added 1 books in 0.8 seconds
    Worker Launch took: 0.0629189014435

    Help please

    Michael

  18. If I drag-and-drop a Kindle AZW file to the DeDRM shortcut on my desktop — it doesn’t matter whether the AZW file has DRM or not — DeDRM.bat converts X.azw to X_nodrm.azw3, and page-breaks don’t work right. How do I configure DeDRM so that an AZW file comes out as an AZW file (and hopefully page-breaks still work)?

    • .azw files are either (old) .mobi format or (new) .azw3 files. The DeDRM tools do not do any conversion*.

      If page-breaks aren’t working right, that’s the fault of the software you’re using to display the ebook, or the conversion software you’re using.

      *Except in the case of Topaz format Kindle files, which this isn’t.

  19. I’m having trouble opening books after importing them from my Kindle Paperwhite. More specifically, I get the error message “calibre, version 1.48.0 ERROR: Could not open ebook: ‘NoneType’ object has no attribute ‘resource_index'” when I open the book; the book’s contents are blank. I’m running calibre version 1.48.0 on and older Mac running OSX 10.6.8.

    Thanks,
    Nicole

    Calibre Debug Log:

    Traceback (most recent call last):
    File “site-packages/calibre/gui2/viewer/main.py”, line 33, in run
    File “lib/python2.7/threading.py”, line 761, in run
    File “site-packages/calibre/ebooks/oeb/iterator/book.py”, line 99, in __enter__
    File “site-packages/calibre/customize/conversion.py”, line 241, in __call__
    File “site-packages/calibre/ebooks/conversion/plugins/mobi_input.py”, line 43, in convert
    File “site-packages/calibre/ebooks/mobi/reader/mobi8.py”, line 102, in __call__
    File “site-packages/calibre/ebooks/mobi/reader/mobi8.py”, line 436, in extract_resources
    AttributeError: ‘NoneType’ object has no attribute ‘resource_index’
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    Traceback (most recent call last):
    File “site-packages/calibre/devices/usbms/driver.py”, line 191, in update_booklist
    File “site-packages/calibre/devices/usbms/driver.py”, line 485, in book_from_path
    OSError: [Errno 2] No such file or directory: ‘/Volumes/Kindle/documents/Lucia Rene\xcc\x81 – Ascension Game Changer – 3-26-2016_DQCXUYTEHXXXUO3YBQPC65KD3DSIC2VR.azw3’
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    Failed to load calibre style
    InputFormatPlugin: MOBI Input running
    on /Users/nicole.freed/Calibre Library/Matias Flury/Downloads From the Nine_ Awaken as you read (42)/Downloads From the Nine_ Awaken as you rea – Matias Flury.azw3
    Found KF8 MOBI of type ‘standalone’
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    calibre Debug log
    calibre 1.48 isfrozen: True is64bit: True
    Darwin-10.8.0-i386-64bit Darwin (’64bit’, ”)
    (‘Darwin’, ‘10.8.0’, ‘Darwin Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386’)
    Python 2.7.5
    OSX: (‘10.6.8’, (”, ”, ”), ‘i386’)
    Failed to load calibre style
    Starting up…
    Job: 1 Get device information started
    DeviceJob: 1 Get device information done, calling callback
    DeviceJob: 1 Get device information callback returned
    Job: 2 Get list of books on device started
    DEBUG: 0.0 USBMS: Fetching list of books from device. Device= KINDLE2 oncard= None
    DEBUG: 0.0 USBMS: dirs are: /Volumes/Kindle/ documents
    Job: 1 Get device information finished
    No details available.
    DEBUG: 0.8 USBMS: scan from root False /Volumes/Kindle/documents
    DEBUG: 2.9 USBMS: count found in cache: 873, count of files in metadata: 873, need_sync: False
    DEBUG: 2.9 USBMS: Finished fetching list of books from device. oncard= None
    DEBUG: 2.9 USBMS: Fetching list of books from device. Device= KINDLE2 oncard= carda
    DEBUG: 2.9 USBMS: Fetching list of books from device. Device= KINDLE2 oncard= cardb
    DeviceJob: 2 Get list of books on device done, calling callback
    DeviceJob: metadata_downloaded: Starting set_books_in_library
    DeviceJob: set_books_in_library: books to process= 873
    DeviceJob: set_books_in_library finished: time= 0.0413570404053
    DeviceJob: metadata_downloaded: updating views
    DeviceJob: metadata_downloaded: syncing
    DeviceJob: metadata_downloaded: refreshing ondevice
    DeviceJob: metadata_downloaded: sending metadata_available signal
    DeviceJob: 2 Get list of books on device callback returned
    Job: 2 Get list of books on device finished
    No details available.
    Started up in 70.56 seconds with 1 books
    Worker Launch took: 0.746776819229
    Job: 3 Read metadata (0 of 1) finished
    Read metadata (0 of 1)
    DeDRM v6.4.3: Trying to decrypt Downloads From the Nine_ Awaken as you read_B00Q085E16.azw3
    Using Library AlfCrypto DLL/DYLIB/SO
    MobiDeDrm v0.41.
    Copyright © 2008-2012 The Dark Reverser et al.
    MOBI header version 8, header length 264
    Extra Data Flags: 3
    Decrypting Kindle Format 8 ebook: Downloads From the Nine: Awaken as you read
    Found 2 keys to try after 0.2 seconds
    Crypto Type is: 0
    This book is not encrypted.
    Decryption succeeded after 0.2 seconds
    DeDRM v6.4.3: Finished after 0.2 seconds

    Added Downloads From the Nine: Awaken as you read to db in: 0.85182094574 seconds
    Worker Launch took: 0.0994031429291

    • “This book is not encrypted.” So this is a problem with the old version of calibre, not with the DeDRM plugin. You might be able to get somewhere with the KindleUnpack plugin, which will give you a pseudo-ePub that the old calibre might be happier with.

      • Thanks, Paul. Ugh—It looks like KindleUnpack is a command-line install. I’m not very good with those. Is there an easier way?

        Thanks,
        Nicole

          • It is. I installed that, imported the books, and still the same error message. Here’s the log:

            QPixmap::scaled: Pixmap is a null pixmap
            QPixmap::scaled: Pixmap is a null pixmap
            QPixmap::scaled: Pixmap is a null pixmap
            Traceback (most recent call last):
            File “site-packages/calibre/devices/usbms/driver.py”, line 191, in update_booklist
            File “site-packages/calibre/devices/usbms/driver.py”, line 485, in book_from_path
            OSError: [Errno 2] No such file or directory: ‘/Volumes/Kindle/documents/Lucia Rene\xcc\x81 – Ascension Game Changer – 3-26-2016_DQCXUYTEHXXXUO3YBQPC65KD3DSIC2VR.azw3′
            QPixmap::scaled: Pixmap is a null pixmap
            calibre Debug log
            calibre 1.48 isfrozen: True is64bit: True
            Darwin-10.8.0-i386-64bit Darwin (’64bit’, ”)
            (‘Darwin’, ‘10.8.0’, ‘Darwin Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386’)
            Python 2.7.5
            OSX: (‘10.6.8’, (”, ”, ”), ‘i386’)
            Failed to load calibre style
            Starting up…
            Started up in 14.96 seconds with 1 books
            Job: 1 Get device information started
            DeviceJob: 1 Get device information done, calling callback
            DeviceJob: 1 Get device information callback returned
            Job: 2 Get list of books on device started
            DEBUG: 0.0 USBMS: Fetching list of books from device. Device= KINDLE2 oncard= None
            DEBUG: 0.0 USBMS: dirs are: /Volumes/Kindle/ documents
            Job: 1 Get device information finished
            No details available.
            DEBUG: 0.9 USBMS: scan from root False /Volumes/Kindle/documents
            DEBUG: 2.2 USBMS: count found in cache: 873, count of files in metadata: 873, need_sync: False
            DEBUG: 2.2 USBMS: Finished fetching list of books from device. oncard= None
            DEBUG: 2.2 USBMS: Fetching list of books from device. Device= KINDLE2 oncard= carda
            DEBUG: 2.2 USBMS: Fetching list of books from device. Device= KINDLE2 oncard= cardb
            DeviceJob: 2 Get list of books on device done, calling callback
            DeviceJob: metadata_downloaded: Starting set_books_in_library
            DeviceJob: set_books_in_library: books to process= 873
            DeviceJob: set_books_in_library finished: time= 0.0359408855438
            DeviceJob: metadata_downloaded: updating views
            DeviceJob: metadata_downloaded: syncing
            DeviceJob: metadata_downloaded: refreshing ondevice
            DeviceJob: metadata_downloaded: sending metadata_available signal
            DeviceJob: 2 Get list of books on device callback returned
            Job: 2 Get list of books on device finished
            No details available.
            Worker Launch took: 0.0967590808868
            Added MOTHER MEERA ANSWERS Part I to db in: 0.439651012421 seconds
            Added MOTHER MEERA ANSWERS Part II to db in: 0.359610080719 seconds
            Job: 3 Read metadata (0 of 1) finished
            Read metadata (0 of 1)
            DeDRM v6.4.3: Trying to decrypt MOTHER MEERA ANSWERS Part I_B00YDTEAKA.azw3
            Using Library AlfCrypto DLL/DYLIB/SO
            MobiDeDrm v0.41.
            Copyright © 2008-2012 The Dark Reverser et al.
            MOBI header version 8, header length 264
            Extra Data Flags: 3
            Decrypting Kindle Format 8 ebook: MOTHER MEERA ANSWERS Part I
            Found 2 keys to try after 0.1 seconds
            Crypto Type is: 2
            File is encoded with PID ouAmcUFh4F.
            Decrypting. Please wait . . . done
            Decryption succeeded after 0.1 seconds
            DeDRM v6.4.3: Finished after 0.1 seconds
            DeDRM v6.4.3: Trying to decrypt MOTHER MEERA ANSWERS Part II_B0100LSHYO.azw3
            MobiDeDrm v0.41.
            Copyright © 2008-2012 The Dark Reverser et al.
            MOBI header version 8, header length 264
            Extra Data Flags: 3
            Decrypting Kindle Format 8 ebook: MOTHER MEERA ANSWERS Part II
            Found 2 keys to try after 0.0 seconds
            Crypto Type is: 2
            File is encoded with PID 0aykNze6PY.
            Decrypting. Please wait . . . done
            Decryption succeeded after 0.0 seconds
            DeDRM v6.4.3: Finished after 0.0 seconds
            DeDRM v6.4.3: Trying to decrypt Downloads From the Nine_ Awaken as you read_B00Q085E16.azw3
            MobiDeDrm v0.41.
            Copyright © 2008-2012 The Dark Reverser et al.
            MOBI header version 8, header length 264
            Extra Data Flags: 3
            Decrypting Kindle Format 8 ebook: Downloads From the Nine: Awaken as you read
            Found 2 keys to try after 0.0 seconds
            Crypto Type is: 0
            This book is not encrypted.
            Decryption succeeded after 0.0 seconds
            DeDRM v6.4.3: Finished after 0.0 seconds
            DeDRM v6.4.3: Trying to decrypt HTML_ Learn HTML In A DAY! – The Ultimate Crash Course to Learning the Basics of HTML In No Time (HTML,_B0117VKEZG.azw3
            MobiDeDrm v0.41.
            Copyright © 2008-2012 The Dark Reverser et al.
            MOBI header version 8, header length 264
            Extra Data Flags: 3
            Decrypting Kindle Format 8 ebook: HTML: Learn HTML In A DAY! – The Ultimate Crash Course to Learning the Basics of HTML In No Time (HTML, HTML Course, HTML Development, HTML Books, HTML for Beginners)
            Found 2 keys to try after 0.0 seconds
            Crypto Type is: 0
            This book is not encrypted.
            Decryption succeeded after 0.0 seconds
            DeDRM v6.4.3: FinQPixmap::scaled: Pixmap is a null pixmap
            QPixmap::scaled: Pixmap is a null pixmap
            Failed to load calibre style
            InputFormatPlugin: MOBI Input running
            on /Users/nicole.freed/Calibre Library/Acodemy/HTML_ Learn HTML In A DAY! – The Ultimate Crash Course to Learning the Basics of HTML In No Time (52)/HTML_ Learn HTML In A DAY! – The Ultimate – Acodemy.azw3
            Found KF8 MOBI of type ‘standalone’
            ished after 0.0 seconds

            Added Downloads From the Nine: Awaken as you read to db in: 0.360550165176 seconds
            Added HTML: Learn HTML In A DAY! – The Ultimate Crash Course to Learning the Basics of HTML In No Time (HTML, HTML Course, HTML Development, HTML Books, HTML for Beginners) to db in: 0.655221939087 seconds
            Worker Launch took: 0.0958979129791

            • I don’t see anything wrong there. All the DRM seemed to get removed. If you’re unsure how to use the KinldeUnpack plugin, ask at MobileRead in the appropriate thread.

              • The issue wasn’t with the DRM (I thought we determined the book(s) in question weren’t even encrypted?); it was with there being no resource index in the imported books. The error I keep getting is “‘NoneType’ object has no attribute ‘resource_index'”. This is even before doing anything with KindleUnpack.

  20. Tried Calibre plug in, tried DRM stand alone. in either case, I cannot see the folder where the kindle book files are supposed to be (i.e the path from kindle preferences). Is there a reason for this? I’ve looked in both places (Mac with kindle), but the right directory path fails to show. Is there some permission i’m missing? thanks.

    • On a Mac the path is: ~/Library/Application Support/Kindle/My Kindle Content

      If you don’t see the Library folder in your Home folder, hold down the Option key then click on the Go menu in the Finder’s menu bar.

  21. Hi,

    I’m running Calibre 2.58 with DeDRM 6.4.3, and Obok 3.1.1 on Windows 10.

    I clicked on the Obok DeDRM icon in Calibre and selected the book title from the list — a cookbook that I paid for and downloaded using the Kobo Desktop software.

    I got the error message:
    “The Paleo Approach Cookbook not added because it couldn’t be decrypted.”

    Following is the log from the terminal window. I’d appreciate any suggestions you could provide as to why this cookbook won’t decrypt.

    Thanks!

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

    C:\Windows\System32>calibre-debug -g
    calibre 2.58 embedded-python: True is64bit: False
    Windows-8-6.2.9200 Windows (’32bit’, ‘WindowsPE’)
    32bit process running on 64bit windows
    (‘Windows’, ‘8’, ‘6.2.9200’)
    Python 2.7.9
    Windows: (‘8’, ‘6.2.9200’, ”, ‘Multiprocessor Free’)
    Successfully initialized third party plugins: DeDRM && Obok DeDRM

    C:\Windows\System32>calibre-debug -g
    calibre 2.58 embedded-python: True is64bit: False
    Windows-8-6.2.9200 Windows (’32bit’, ‘WindowsPE’)
    32bit process running on 64bit windows
    (‘Windows’, ‘8’, ‘6.2.9200’)
    Python 2.7.9
    Windows: (‘8’, ‘6.2.9200’, ”, ‘Multiprocessor Free’)
    Successfully initialized third party plugins: DeDRM && Obok DeDRM
    Starting up…
    DEBUG: 0.0 obok::utilities.py – loading translations
    DEBUG: 0.0 obok::dialogs.py – loading translations
    DEBUG: 0.0 obok::config.py – loading translations
    DEBUG: 0.1 obok::action_err.py – loading translations
    Started up in 4.07 seconds with 106 books
    Running Obok DeDRM v3.1.1
    Found 5 possible keys to try.
    DEBUG: 19.7 BookListTableWidget:get_books – book_num: 5
    DEBUG: 19.7 BookListTableWidget:get_books – book: The Paleo Approach Cookbook
    DEBUG: 19.7 InterfacePluginAction::launchObok – number of books to decrypt: 1
    Obok DeDRM v3.1.1 – Decrypting The Paleo Approach Cookbook
    Trying key: 74b0c177fc2704c09e0810997e31ea20
    Bad JPEG: 057014
    Decryption failed, trying next key.
    Trying key: 5ff53876cb1f31d7352770cb92cd39cb
    Bad JPEG: cdfeac
    Decryption failed, trying next key.
    Trying key: 41cb4414e3ee97b4618bf34a8e28aeb8
    Bad JPEG: 821339
    Decryption failed, trying next key.
    Trying key: 41cb4414e3ee97b4618bf34a8e28aeb8
    Bad JPEG: 821339
    Decryption failed, trying next key.
    Trying key: 6b02b3cd87f7352c480dbb47ea1cccd0
    Bad JPEG: a15f56
    Decryption failed, trying next key.
    Obok DeDRM v3.1.1 – Couldn’t decrypt The Paleo Approach Cookbook
    DEBUG: 19.9 DecryptAddProgressDialog::do_book_action – book decryption failed: ‘The Paleo Approach Cookbook’
    Obok DeDRM v3.1.1 – wrapping up results.

    • I’m not sure why it’s not working, but it’s a little strange that one of the keys (41cb4414e3ee97b4618bf34a8e28aeb8) is tried twice.

      • Hi Paul,

        No, it doesn’t work with other books either. I’ve tried with 2 other books purchased from Kobo and I get the same error message: ” not added because it couldn’t be decrypted.”

        Thanks

      • Thanks for noticing that, Laura! I didn’t realize that was out of date. I updated to 6.3.6 and it solved the problem. Much appreciated!

  22. Hi,

    I’m having problems using the Calibre DeDRM plugin after a new Windows 10 install. I can open the book in Adobe Digital Editions, and it seems that DeDRM finds the two keys I have registered against my adobe ID.

    Here are the logs from calibre-debug:

    calibre 2.59 [64bit] embedded-python: True is64bit: True
    Windows-8-6.2.9200 Windows (’64bit’, ‘WindowsPE’)
    (‘Windows’, ‘8’, ‘6.2.9200’)
    Python 2.7.9
    Windows: (‘8’, ‘6.2.9200’, ”, ‘Multiprocessor Free’)
    Qt: Untested Windows version 10.0 detected!
    Successfully initialized third party plugins: DeDRM && Generate Cover && Obok DeDRM && KePub Metadata Writer && EpubMerge && KePub Metadata Reader && Reading List && KePub Input && KindleUnpack – The Plugin && View Manager && Quality Check && Search The Internet && Open With && Kobo Utilities && Count Pages && Diaps Editing Toolbag && Modify ePub && Goodreads && KePub Output && Manage Series && Goodreads Sync
    Starting up…
    DEBUG: 0.0 obok::utilities.py – loading translations
    DEBUG: 0.0 obok::dialogs.py – loading translations
    DEBUG: 0.0 obok::config.py – loading translations
    DEBUG: 0.0 using xml.etree for xml parsing
    DEBUG: 0.0 obok::action_err.py – loading translations
    DEBUG: 0.0 KoboUtilites::action.py – loading translations
    DEBUG: 0.0 KoboUtilites::dialogs.py – loading translations
    DEBUG: 0.0 KoboUtilites::action.py – loading translations
    EpubMerge: DEBUG: 2016-06-19 14:41:02,178: calibre_plugins.epubmerge.epubmerge_plugin(152): macmenuhack file_path:C:\Users\dasim\AppData\Roaming\calibre\plugins\fanficfare_macmenuhack.txt
    DEBUG: 2.0 No Kobo Touch, Glo or Mini appears to be connected
    DEBUG: 2.0 rebuild_menus – self.supports_ratings=None, self.supports_tiles=None
    DEBUG: 2.0 KoboUtilities:set_toolbar_button_tooltip – start: text=’None’
    DEBUG: 2.0 device_driver_name – could not load extended driver. Exception= No module named kobotouch_extended.device.driver
    DEBUG: 2.0 KoboUtilities:set_toolbar_button_tooltip – setting to text=’Utilities to use with Kobo ereaders

    Driver: KoboTouch’
    HttpHelper::__init__: proxy=None
    Started up in 2.53 seconds with 1962 books
    libpng warning: Unknown iTXt compression type or method
    stdout+stderr from file dialog helper: [”, ”]
    piped data from file dialog helper: [‘\xee\xe9\xa9\xc9\x95\x0b\x7f\x1f\x97\x963P$H[\xf1z]\x10\xb5)\x9b\x19hM\xc0\xf4C>pT\xf3’, ‘F:\\Personal Data\\Users\\David\\Documents\\My Digital Editions\\Half a King.epub’]
    DeDRM v6.4.3: Trying to decrypt Half a King.epub
    DeDRM v6.4.3: Verifying zip archive integrity
    DeDRM v6.4.3: Half a King.epub is a secure Adobe Adept ePub
    DeDRM v6.4.3: Trying Encryption key default_key
    Could not decrypt rmiawo.epub. Wrong key
    DeDRM v6.4.3: Failed to decrypt with key default_key after 0.1 seconds
    DeDRM v6.4.3: Looking for new default Adobe Digital Editions Keys after 0.1 seconds
    Found 2 keys
    DeDRM v6.4.3: Trying a new default key
    DeDRM v6.4.3: Saving a new default key
    DeDRM v6.4.3: Saved a new default key after 0.6 seconds
    DeDRM v6.4.3: Ultimately failed to decrypt after 0.6 seconds.
    Read the FAQs at Alf’s blog: https://apprenticealf.wordpress.com/
    Running file type plugin DeDRM failed with traceback:
    Traceback (most recent call last):
    File “site-packages\calibre\customize\ui.py”, line 154, in _run_filetype_plugins
    File “calibre_plugins.dedrm.__init__”, line 615, in run
    File “calibre_plugins.dedrm.__init__”, line 386, in ePubDecrypt
    DeDRMError: DeDRM v6.4.3: Ultimately failed to decrypt after 0.6 seconds.
    Added 0 books in 35.1 seconds
    Exception TypeError: “‘NoneType’ object is not callable” in <bound method NativeFunction.__del__ of > ignored

    • Looks like I solved my own problem. I had two different adobe IDs registered with my ADE. When I removed the second ID, it started working again. It is a bit strange, since the logs I attached indicated that it read 2 keys from ADE, but failed to decrypt using them. However when I removed the second account and the logs showed only a single key being read, it started to work. To be perfectly clear, it did not actually work the first time I tried after removing the second account, but the second time I tried, the key it had read the previous time and saved as a second default key worked. The problem seems to be related to the decryption not working with the keys it reads following a failure with the default key. In my original case, it read two new keys and appears to have saved the second key (the wrong one in my case) as the new default key, so it would never work. When I deleted my second ADE authorization, it still failed to decrypt with the new key it read, but in this case saved the single key it read as a new default, allowing it to work with future decryptions.

  23. Hello,

    DeDRM was working perfectly for me until I had to reload Windows, now it won’t! Any help would be much appreciated.

    The book is coming from my wife’s Kindle. Debug report follows.

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

    C:\Users\Bill>calibre-debug -g
    calibre 2.56 [64bit] embedded-python: True is64bit: True
    Windows-7-6.1.7601-SP1 Windows (’64bit’, ‘WindowsPE’)
    (‘Windows’, ‘7’, ‘6.1.7601’)
    Python 2.7.9
    Windows: (‘7’, ‘6.1.7601’, ‘SP1’, ‘Multiprocessor Free’)
    Successfully initialized third party plugins: DeDRM
    Starting up…
    Started up in 3.08 seconds with 134 books
    DeDRM v6.4.3: Trying to decrypt Behind Closed Doors The gripping-asin_B013L2OBEE
    -type_EBOK-v_0.azw3
    Using Library AlfCrypto DLL/DYLIB/SO
    MobiDeDrm v0.41.
    Copyright © 2008-2012 The Dark Reverser et al.
    MOBI header version 8, header length 264
    Extra Data Flags: 3
    Decrypting Kindle Format 8 ebook: Behind Closed Doors: The gripping debut thrill
    er everyone is raving about
    Found 0 keys to try after 0.1 seconds
    Crypto Type is: 2
    DeDRM v6.4.3: Failed to decrypt with error: No key found in 0 keys tried.
    DeDRM v6.4.3: Looking for new default Kindle Key after 0.1 seconds
    searching for kinfoFiles in C:\Users\Bill\AppData\Local
    No K4PC kindle.info/kinf/kinf2011 files have been found.
    DeDRM v6.4.3: Ultimately failed to decrypt after 0.1 seconds.
    Read the FAQs at Alf’s blog: https://apprenticealf.wordpress.com/
    Running file type plugin DeDRM failed with traceback:
    Traceback (most recent call last):
    File “site-packages\calibre\customize\ui.py”, line 154, in _run_filetype_plugi
    ns
    File “calibre_plugins.dedrm.__init__”, line 604, in run
    File “calibre_plugins.dedrm.__init__”, line 554, in KindleMobiDecrypt
    DeDRMError: DeDRM v6.4.3: Ultimately failed to decrypt after 0.1 seconds
    Added Behind Closed Doors: The gripping debut thriller everyone is raving about
    to db in: 0.1
    Added 1 books in 0.9 seconds

    Many thanks.

  24. It no longer seems possible to remove DRM from Nook books.

    I found where stuff is stored with the Nook app on Windows 10, non DRMed books even open just fine with other readers.

    %USERPROFILE%\AppData\Local\Packages\BarnesNoble.Nook_AAAAAAAANNAAA

    The latter part is an alpha numeric string.

    But the current B&N key extractors do not work at all.

    I did find this, in LocalStore\settings there is an empty .salt file and an XML file called “activation.xml”

    http://edelivery.barnesandnoble.com/EDS/fulfillment
    [REDACTED]

    I’m assuming passHash may be the key used. It’s fairly long, 64 bytes. It does not appear to be base64 encoded.

    If an Apprentice wants to take a (wait for it) crack at this, let me know.

  25. I can’t seem to get this working. I had issues after going to windows 10 and was able to get book 1 decrypted, but no luck with book 2. I tried going the python application route, but I must be doing something wrong as the drag/drop is not working, even after doing the adb backup of com.amazon.kindle — it comes out to be just 41 bytes? I’m using an Amazon Fire budget tablet (the new one, not kindle fire). I’d like to get it working in Calibre. I have tried downloading the ebook to my PC via the amazon web page for transfer via USB. The book will not show up if I manage the device in Calibre.

    calibre Debug log
    calibre 2.18 isfrozen: True is64bit: False
    Windows-8-6.2.9200 Windows (’32bit’, ‘WindowsPE’)
    32bit process running on 64bit windows
    (‘Windows’, ‘8’, ‘6.2.9200’)
    Python 2.7.9
    Windows: (‘8’, ‘6.2.9200’, ”, ‘Multiprocessor Free’)
    Successfully initialized third party plugins: DeDRM
    Starting up…
    Started up in 4.77 seconds with 95 books
    DeDRM v6.4.3: Trying to decrypt Spell or High Water (Magic 2.0 Book 2).azw3
    Using Library AlfCrypto DLL/DYLIB/SO
    MobiDeDrm v0.41.
    Copyright © 2008-2012 The Dark Reverser et al.
    MOBI header version 8, header length 264
    Extra Data Flags: 3
    Decrypting Kindle Format 8 ebook: Spell or High Water (Magic 2.0 Book 2)
    Found 4 keys to try after 0.0 seconds
    Crypto Type is: 2
    DeDRM v6.4.3: Failed to decrypt with error: No key found in 4 keys tried.
    DeDRM v6.4.3: Looking for new default Kindle Key after 0.0 seconds
    searching for kinfoFiles in C:\Users\xxxxxxx.Multivac\AppData\Local
    Found K4PC 1.9+ kinf2011 file: C:\Users\xxxxxx.Multivac\AppData\Local\Amazon\Kindle\storage\.kinf2011
    Decrypted key file using IDString ‘3420196272’ and UserName ‘5374657474696e’
    DeDRM v6.4.3: Found 1 new key
    MobiDeDrm v0.41.
    Copyright © 2008-2012 The Dark Reverser et al.
    MOBI header version 8, header length 264
    Extra Data Flags: 3
    Decrypting Kindle Format 8 ebook: Spell or High Water (Magic 2.0 Book 2)
    Found 4 keys to try after 0.1 seconds
    Crypto Type is: 2
    DeDRM v6.4.3: Ultimately failed to decrypt after 0.1 seconds.
    Read the FAQs at Alf’s blog: https://apprenticealf.wordpress.com/
    Running file type plugin DeDRM failed with traceback:
    Traceback (most recent call last):
    File “site-packages\calibre\customize\ui.py”, line 155, in _run_filetype_plugins
    File “calibre_plugins.dedrm.__init__”, line 604, in run
    File “calibre_plugins.dedrm.__init__”, line 554, in KindleMobiDecrypt
    DeDRMError: DeDRM v6.4.3: Ultimately failed to decrypt after 0.1 seconds
    Added Spell or High Water (Magic 2.0 Book 2) to db in: 1.4
    Added 1 books in 1.8 seconds

Leave a Reply

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

WordPress.com Logo

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

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s