Version 6.6.3 released on 30 March, 2019
Welcome to Apprentice Alf’s blog
This blog is intended to help anyone looking for free and simple software for removing DRM from their Kindle ebooks, stripping DRM from their Adobe Digital Editions ebooks, getting rid of DRM from their Barnes and Noble ebooks, freeing their Kobo ebooks of DRM, or decrypting their Fictionwise eReader ebooks.
If you want to find out more about ebooks, DRM and why you will probably want to remove the DRM from your ebooks, see this post: Ebook Formats, DRM and You — A Guide for the Perplexed.
If you already know that you want to strip the DRM from your ebooks, you’ve found the right place.
The Tools
To get started on removing DRM from your ebooks, just download the tools archive from the link below. Unzip the archive, and start reading.
The latest release can be found at the top of this page:
https://github.com/apprenticeharper/DeDRM_tools/releases
Getting Help with the Tools
If you have any questions about the tools, ebooks, and DRM, check the FAQs at the GitHub repository:
https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
If you have any problems with the current tools, please ask for help in a comment on this post or open a new issue at the GitHub repository. If you are having a problem with an older version of the tools, please first update to the current version, and see if that solves your problem.
Before commenting here, please check the ReadMe file and the FAQs (see link above).
In any bug report or help request, please include:
- which tool was used
- which OS you are using
- where the ebook file came from (device or application)
- any error messages
- a log of the DRM-removal attempt (see the FAQs on how to get a log).
Anti-Piracy Notice
Please only use these tools for gaining full access to your own ebooks for archiving/conversion/convenience. De-drmed ebooks should not be uploaded to open servers, torrents, or other methods of mass distribution. No help will be given to people doing such things. Authors, retailers and publishers all need to make a living, so that they can continue to produce books for us to read. Don’t be a parasite.
Origin of the Tools
The tools for removing DRM from ePubs were originally posted at i♥cabbages’ blog. The tools for Kindle/Mobipocket were originally posted at The Dark Reverser’s blog.
They have since been improved by many people, but mostly some_updates, DiapDealer, Apprentice Alf, and Apprentice Harper. While there are many sites that redistribute these tools, the most up-to-date versions of the tools are currently released here.
Other Sources
Anyone trying to sell you ebook DRM removal tools for Adobe Adept ePub and PDFs, Barnes & Noble ePubs, Kindle ebooks, Kobo ebooks, or eReader ebooks has probably just repackaged (an earlier) version of the tools available here.
I cannot make DeDRM for Calibre work. Here is the debug log:
calibre 4.2 embedded-python: True is64bit: False
Windows-10-10.0.17763-SP0 Windows (’32bit’, ‘WindowsPE’)
32bit process running on 64bit windows
(‘Windows’, ’10’, ‘10.0.17763’)
Python 2.7.16+
Windows: (’10’, ‘10.0.17763’, ‘SP0′, u’Multiprocessor Free’)
Interface language: en_GB
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 11, 0) && DeDRM (6, 6, 1) && Package KFX (from KFX Input) (1, 11, 0) && KFX metadata reader (from KFX Input) (1, 11, 0) && KFX Input (1, 11, 0) && Set KFX metadata (from KFX Output) (1, 32, 0) && KFX Output (1, 32, 0)
calibre 4.2 embedded-python: True is64bit: False
Windows-10-10.0.17763-SP0 Windows (’32bit’, ‘WindowsPE’)
32bit process running on 64bit windows
(‘Windows’, ’10’, ‘10.0.17763’)
Python 2.7.16+
Windows: (’10’, ‘10.0.17763’, ‘SP0′, u’Multiprocessor Free’)
Interface language: en_GB
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 11, 0) && DeDRM (6, 6, 1) && Package KFX (from KFX Input) (1, 11, 0) && KFX metadata reader (from KFX Input) (1, 11, 0) && KFX Input (1, 11, 0) && Set KFX metadata (from KFX Output) (1, 32, 0) && KFX Output (1, 32, 0)
Turning on automatic hidpi scaling
devicePixelRatio: 1.0
logicalDpi: 96.0 x 96.0
physicalDpi: 82.6576271186 x 78.3771428571
Using calibre Qt style: True
[0.00] Starting up…
[0.02] Showing splash screen…
[0.58] splash screen shown
[0.58] Initializing db…
[0.58] db initialized
[0.58] Constructing main UI…
[2.05] main UI initialized…
[2.05] Hiding splash screen
[8.08] splash screen hidden
[8.08] Started up in 8.08 seconds with 20 books
stdout+stderr from file dialog helper: [”, ”]
piped data from file dialog helper: [‘x\x80$\x8d\xa6#\xfd\xa4\x82~A\xa9\xff\xba\xa0vU7\xb0\xe0\xf4D]\xff\x9f\xdfR&\xa2\x83\x86’, ‘C:\Users\rarag\Documents\My Kindle Content\B00HY5EZ78_EBOK\B00HY5EZ78_EBOK.azw’]
Gather KFX-ZIP (from KFX Input) 1.11.0: Importing C:\Users\rarag\Documents\My Kindle Content\B00HY5EZ78_EBOK\B00HY5EZ78_EBOK.azw
Gather KFX-ZIP (from KFX Input): Gathered 4 file(s) as C:\Users\rarag\AppData\Local\Temp\calibre_jeq0nh\rvm_0e.kfx-zip
DeDRM v6.6.1: Trying to decrypt rvm_0e.kfx-zip
Using Library AlfCrypto DLL/DYLIB/SO
Decrypting KFX-ZIP ebook: rvm_0e
Found 0 keys to try after 0.2 seconds
Decrypting KFX DRM voucher: amzn1.drm-voucher.v1.ac3fac54-686f-4b96-908a-6601c1cb3d3c.voucher
DeDRM v6.6.1: Failed to decrypt with error: Failed to decrypt KFX DRM voucher with any key
DeDRM v6.6.1: Looking for new default Kindle Key after 0.2 seconds
searching for kinfoFiles in C:\Users\rarag\AppData\Local
No K4PC kindle.info/kinf/kinf2011 files have been found.
DeDRM v6.6.1: Ultimately failed to decrypt after 0.2 seconds. Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
Running file type plugin DeDRM failed with traceback:
Traceback (most recent call last):
File “site-packages\calibre\customize\ui.py”, line 172, in _run_filetype_plugins
File “calibre_plugins.dedrm.init“, line 621, in run
File “calibre_plugins.dedrm.init“, line 571, in KindleMobiDecrypt
DeDRMError: DeDRM v6.6.1: Ultimately failed to decrypt after 0.2 seconds. Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
Package KFX (from KFX Input) 1.11.0: Packaging C:\Users\rarag\AppData\Local\Temp\calibre_jeq0nh\rvm_0e.kfx-zip
Processing container: B00HY5EZ78_EBOK.azw
Running file type plugin Package KFX (from KFX Input) failed with traceback:
Traceback (most recent call last):
File “site-packages\calibre\customize\ui.py”, line 172, in _run_filetype_plugins
File “calibre_plugins.kfx_input.package_filetype”, line 22, in run
File “calibre_plugins.kfx_input.package_filetype”, line 35, in run_kfx
File “calibre_plugins.kfx_input.kfxlib.yj_book”, line 77, in convert_to_single_kfx
File “calibre_plugins.kfx_input.kfxlib.yj_book”, line 150, in decode_book
File “calibre_plugins.kfx_input.kfxlib.yj_book”, line 261, in get_container
KFXDRMError: Book container B00HY5EZ78_EBOK.azw has DRM and cannot be converted
KFX metadata reader (from KFX Input) activated for C:\Users\rarag\AppData\Local\Temp\calibre_jeq0nh\weyb9l_add_books\0\B00HY5EZ78_EBOK.kfx-zip
Added Making Happy People: The nature of happiness and its origins in childhood to db in: 0.1
Added 1 books in 1.1 seconds
I bought the book from Amazon. My PC is a HP Pavilion All-in-One – 27-a275na
Looks like you have an old version of DeDRM — current is 6.6.3. And I think your KFX plugin is old as well. On the other hand, you probably need to go back to an earlier version of Kindle for PC — 1.24 or earlier. See this post for a link to get that version and more info:
https://www.mobileread.com/forums/showthread.php?t=283371
😦 Does not work with macOS Catalina https://support.apple.com/it-it/HT208436
Both the DeDRM plugin and the Mac app are working for some on Catalina. Here’s a thread at the GitHub:
https://github.com/apprenticeharper/DeDRM_tools/issues/898
That’s the 32-bit error notification. You need to update your tools to 6.6.2 or 6.6.3.
If you download it on Catalina, you need to unzip it using The Unarchiver app (it’s free from the App Store), then right-click-Open to get past Gatekeeper.
If you do all that, the standalone app should launch and run when you drop a single ebook onto it.
If you’re dropping multiple ebooks on the app at one time, you’ll also need to replace a file inside the app. More info here: https://github.com/apprenticeharper/DeDRM_tools/issues/925
Or you can just use the Calibre plugin 🙂
I have installed both plugins on WIN 10 and have Calibre 64-bit version. I saw the plugins install and populate when I used the “Load plugin from file” option. I then add my book and it still says it has DRM. Do I need to disable the old plugins so that I can use the ones I just installed? Where can I put my log?
Here is my log.
Convert book 1 of 1 (AeroMACS)
Conversion options changed from defaults:
output_profile: u’kindle’
pdf_serif_family: u’MS Shell Dlg 2′
verbose: 2
pdf_sans_family: u’MS Shell Dlg 2′
read_metadata_from_opf: u’C:\Users\Daniel\AppData\Local\Temp\calibre_v2yfzx\g8aw9d.opf’
cover: u’C:\Users\Daniel\AppData\Local\Temp\calibre_v2yfzx\p6zuwm.jpeg’
Resolved conversion options
calibre version: 4.2.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\Daniel\AppData\Local\Temp\calibre_v2yfzx\p6zuwm.jpeg’,
‘custom_size’: None,
‘debug_pipeline’: None,
‘dehyphenate’: True,
‘delete_blank_paragraphs’: True,
‘disable_font_rescaling’: False,
‘duplicate_links_in_toc’: False,
’embed_all_fonts’: False,
’embed_font_family’: None,
‘enable_heuristics’: False,
‘expand_css’: False,
‘extra_css’: None,
‘filter_css’: u”,
‘fix_indents’: True,
‘font_size_mapping’: None,
‘format_scene_breaks’: True,
‘html_unwrap_factor’: 0.4,
‘input_encoding’: None,
‘input_profile’: <calibre.customize.profiles.InputProfile object at 0x000002250E5A5D48>,
‘insert_blank_line’: False,
‘insert_blank_line_size’: 0.5,
‘insert_metadata’: False,
‘isbn’: None,
‘italicize_common_cases’: True,
‘keep_ligatures’: False,
‘language’: None,
‘level1_toc’: None,
‘level2_toc’: None,
‘level3_toc’: None,
‘line_height’: 0.0,
‘linearize_tables’: False,
‘margin_bottom’: 5.0,
‘margin_left’: 5.0,
‘margin_right’: 5.0,
‘margin_top’: 5.0,
‘markup_chapter_headings’: True,
‘max_toc_links’: 50,
‘minimum_line_height’: 120.0,
‘no_chapters_in_toc’: False,
‘no_inline_navbars’: False,
‘output_profile’: <calibre.customize.profiles.KindleOutput object at 0x000002250E768208>,
‘page_breaks_before’: u”//*[name()=’h1′ or name()=’h2′]”,
‘paper_size’: u’letter’,
‘pdf_add_toc’: False,
‘pdf_default_font_size’: 20,
‘pdf_footer_template’: None,
‘pdf_header_template’: None,
‘pdf_hyphenate’: False,
‘pdf_mark_links’: False,
‘pdf_mono_family’: u’Courier’,
‘pdf_mono_font_size’: 16,
‘pdf_page_margin_bottom’: 72.0,
‘pdf_page_margin_left’: 72.0,
‘pdf_page_margin_right’: 72.0,
‘pdf_page_margin_top’: 72.0,
‘pdf_page_number_map’: None,
‘pdf_page_numbers’: False,
‘pdf_sans_family’: u’MS Shell Dlg 2′,
‘pdf_serif_family’: u’MS Shell Dlg 2′,
‘pdf_standard_font’: u’serif’,
‘pdf_use_document_margins’: False,
‘prefer_metadata_cover’: False,
‘preserve_cover_aspect_ratio’: False,
‘pretty_print’: False,
‘pubdate’: None,
‘publisher’: None,
‘rating’: None,
‘read_metadata_from_opf’: u’C:\Users\Daniel\AppData\Local\Temp\calibre_v2yfzx\g8aw9d.opf’,
‘remove_fake_margins’: True,
‘remove_first_image’: False,
‘remove_paragraph_spacing’: False,
‘remove_paragraph_spacing_indent_size’: 1.5,
‘renumber_headings’: True,
‘replace_scene_breaks’: u”,
‘search_replace’: ‘[]’,
‘series’: None,
‘series_index’: None,
‘smarten_punctuation’: False,
‘sr1_replace’: None,
‘sr1_search’: None,
‘sr2_replace’: None,
‘sr2_search’: None,
‘sr3_replace’: None,
‘sr3_search’: None,
‘start_reading_at’: None,
‘subset_embedded_fonts’: False,
‘tags’: None,
‘timestamp’: None,
‘title’: None,
‘title_sort’: None,
‘toc_filter’: None,
‘toc_threshold’: 6,
‘toc_title’: None,
‘transform_css_rules’: ‘[]’,
‘uncompressed_pdf’: False,
‘unit’: u’inch’,
‘unsmarten_punctuation’: False,
‘unwrap_lines’: True,
‘use_auto_toc’: False,
‘use_profile_size’: False,
‘verbose’: 2}
InputFormatPlugin: MOBI Input running
on C:\Users\Daniel\AppData\Local\Temp\calibre_v2yfzx\ahmibm.azw
Found KF8 MOBI of type u’standalone’
P
Here’s how to get the log that will show what we need to see:
https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md#i-cannot-solve-my-problem-with-the-dedrm-plugin-and-now-i-need-to-post-a-log-how-do-i-do-that
Thank you. Here you go.
calibre Debug log
calibre 4.2 [64bit] embedded-python: True is64bit: True
Windows-10-10.0.18362-SP0 Windows (’64bit’, ‘WindowsPE’)
(‘Windows’, ’10’, ‘10.0.18362’)
Python 2.7.16+
Windows: (’10’, ‘10.0.18362’, ‘SP0′, u’Multiprocessor Free’)
Interface language: None
Successfully initialized third party plugins: DeDRM (6, 6, 3) && Obok DeDRM (6, 5, 4)
calibre 4.2 [64bit] embedded-python: True is64bit: True
Windows-10-10.0.18362-SP0 Windows (’64bit’, ‘WindowsPE’)
(‘Windows’, ’10’, ‘10.0.18362’)
Python 2.7.16+
Windows: (’10’, ‘10.0.18362’, ‘SP0′, u’Multiprocessor Free’)
Interface language: None
Successfully initialized third party plugins: DeDRM (6, 6, 3) && Obok DeDRM (6, 5, 4)
Turning on automatic hidpi scaling
devicePixelRatio: 1.0
logicalDpi: 96.0 x 96.0
physicalDpi: 81.28 x 80.6823529412
Using calibre Qt style: True
[0.00] Starting up…
[0.00] Showing splash screen…
[0.47] splash screen shown
[0.47] Initializing db…
[0.47] db initialized
[0.47] Constructing main UI…
DEBUG: 0.0 obok::utilities.py – loading translations
DEBUG: 0.0 obok::dialogs.py – loading translations
DEBUG: 0.0 obok::config.py – loading translations
DEBUG: 0.0 obok::action_err.py – loading translations
[1.52] main UI initialized…
[1.52] Hiding splash screen
[56.34] splash screen hidden
[56.34] Started up in 56.34 seconds with 0 books
stdout+stderr from file dialog helper: [”, ”]
piped data from file dialog helper: [“H\x9c\xfd\xdb8’\x12@\xef \xe7|\xf9\x92gJ!\xe9\xa0\x9bM\x8b\xeb\xdeb\xf5VM\xda\xfbv\xb6”, ‘C:\Users\Daniel\Documents\My Kindle Content\B07JCBXXG8_EBOK\B07JCBXXG8_EBOK.azw’]
DeDRM v6.6.3: Trying to decrypt B07JCBXXG8_EBOK.azw
Using Library AlfCrypto DLL/DYLIB/SO
MobiDeDrm v0.42.
Copyright © 2008-2017 The Dark Reverser, Apprentice Harper et al.
Decrypting Kindle Format 8 ebook: AeroMACS
Found 0 keys to try after 0.1 seconds
Crypto Type is: 2
DeDRM v6.6.3: Failed to decrypt with error: No key found in 0 keys tried.
DeDRM v6.6.3: Looking for new default Kindle Key after 0.1 seconds
searching for kinfoFiles in C:\Users\Daniel\AppData\Local
Found K4PC 2.25+ kinf2018 file: C:\Users\Daniel\AppData\Local\Amazon\Kindle\storage.kinf2018
Decrypted key file using IDString ‘2323150226’ and UserName ‘44616e69656c’
DeDRM v6.6.3: Found 1 new key
MobiDeDrm v0.42.
Copyright © 2008-2017 The Dark Reverser, Apprentice Harper et al.
Decrypting Kindle Format 8 ebook: AeroMACS
Got DSN key from database default_key_1
Found 3 keys to try after 0.1 seconds
Crypto Type is: 2
DeDRM v6.6.3: Ultimately failed to decrypt after 0.1 seconds. Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
Running file type plugin DeDRM failed with traceback:
Traceback (most recent call last):
File “site-packages\calibre\customize\ui.py”, line 172, in _run_filetype_plugins
File “calibre_plugins.dedrm.init“, line 624, in run
File “calibre_plugins.dedrm.init“, line 574, in KindleMobiDecrypt
DeDRMError: DeDRM v6.6.3: Ultimately failed to decrypt after 0.1 seconds. Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
Added AeroMACS to db in: 1.1
Added 1 books in 1.7 seconds
Worker Launch took: 0.148000001907
Job: 0 Convert book 1 of 1 (AeroMACS) finished
Convert book 1 of 1 (AeroMACS)
Conversion options changed from defaults:
output_profile: u’kindle’
read_metadata_from_opf: u’C:\Users\Daniel\AppData\Local\Temp\calibre_886ner\sr_miu.opf’
pdf_sans_family: u’MS Shell Dlg 2′
cover: u’C:\Users\Daniel\AppData\Local\Temp\calibre_886ner\q5hr7q.jpeg’
pdf_serif_family: u’MS Shell Dlg 2′
verbose: 2
Resolved conversion options
calibre version: 4.2.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\Daniel\AppData\Local\Temp\calibre_886ner\q5hr7q.jpeg’,
‘custom_size’: None,
‘debug_pipeline’: None,
‘dehyphenate’: True,
‘delete_blank_paragraphs’: True,
‘disable_font_rescaling’: False,
‘duplicate_links_in_toc’: False,
’embed_all_fonts’: False,
’embed_font_family’: None,
‘enable_heuristics’: False,
‘expand_css’: False,
‘extra_css’: None,
‘filter_css’: u”,
‘fix_indents’: True,
‘font_size_mapping’: None,
‘format_scene_breaks’: True,
‘html_unwrap_factor’: 0.4,
‘input_encoding’: None,
‘input_profile’: <calibre.customize.profiles.InputProfile object at 0x0000026EF5D04108>,
‘insert_blank_line’: False,
‘insert_blank_line_size’: 0.5,
‘insert_metadata’: False,
‘isbn’: None,
‘italicize_common_cases’: True,
‘keep_ligatures’: False,
‘language’: None,
‘level1_toc’: None,
‘level2_toc’: None,
‘level3_toc’: None,
‘line_height’: 0.0,
‘linearize_tables’: False,
‘margin_bottom’: 5.0,
‘margin_left’: 5.0,
‘margin_right’: 5.0,
‘margin_top’: 5.0,
‘markup_chapter_headings’: True,
‘max_toc_links’: 50,
‘minimum_line_height’: 120.0,
‘no_chapters_in_toc’: False,
‘no_inline_navbars’: False,
‘output_profile’: <calibre.customize.profiles.KindleOutput object at 0x0000026EF5D15588>,
‘page_breaks_before’: u”//*[name()=’h1′ or name()=’h2′]”,
‘paper_size’: u’letter’,
‘pdf_add_toc’: False,
‘pdf_default_font_size’: 20,
‘pdf_footer_template’: None,
‘pdf_header_template’: None,
‘pdf_hyphenate’: False,
‘pdf_mark_links’: False,
‘pdf_mono_family’: u’Courier’,
‘pdf_mono_font_size’: 16,
‘pdf_page_margin_bottom’: 72.0,
‘pdf_page_margin_left’: 72.0,
‘pdf_page_margin_right’: 72.0,
‘pdf_page_margin_top’: 72.0,
‘pdf_page_number_map’: None,
‘pdf_page_numbers’: False,
‘pdf_sans_family’: u’MS Shell Dlg 2′,
‘pdf_serif_family’: u’MS Shell Dlg 2′,
‘pdf_standard_font’: u’serif’,
‘pdf_use_document_margins’: False,
‘prefer_metadata_cover’: False,
‘preserve_cover_aspect_ratio’: False,
‘pretty_print’: False,
‘pubdate’: None,
‘publisher’: None,
‘rating’: None,
‘read_metadata_from_opf’: u’C:\Users\Daniel\AppData\Local\Temp\calibre_886ner\sr_miu.opf’,
‘remove_fake_margins’: True,
‘remove_first_image’: False,
‘remove_paragraph_spacing’: False,
‘remove_paragraph_spacing_indent_size’: 1.5,
‘renumber_headings’: True,
‘replace_scene_breaks’: u”,
‘search_replace’: ‘[]’,
‘series’: None,
‘series_index’: None,
‘smarten_punctuation’: False,
‘sr1_replace’: None,
‘sr1_search’: None,
‘sr2_replace’: None,
‘sr2_search’: None,
‘sr3_replace’: None,
‘sr3_search’: None,
‘start_reading_at’: None,
‘subset_embedded_fonts’: False,
‘tags’: None,
‘timestamp’: None,
‘title’: None,
‘title_sort’: None,
‘toc_filter’: None,
‘toc_threshold’: 6,
‘toc_title’: None,
‘transform_css_rules’: ‘[]’,
‘uncompressed_pdf’: False,
‘unit’: u’inch’,
‘unsmarten_punctuation’: False,
‘unwrap_lines’: True,
‘use_auto_toc’: False,
‘use_profile_size’: False,
‘verbose’: 2}
InputFormatPlugin: MOBI Input running
on C:\Users\Daniel\AppData\Local\Temp\calibre_886ner\zsyrqw.azw
Found KF8 MOBI of type u’standalone’
P y t h o n f u n c t i o n t e r m i n a t e d u n e x p e c t e d l y
Convert book 1 of 1 (AeroMACS)
Conversion options changed from defaults:
output_profile: u’kindle’
read_metadata_from_opf: u’C:\Users\Daniel\AppData\Local\Temp\calibre_886ner\sr_miu.opf’
pdf_sans_family: u’MS Shell Dlg 2′
cover: u’C:\Users\Daniel\AppData\Local\Temp\calibre_886ner\q5hr7q.jpeg’
pdf_serif_family: u’MS Shell Dlg 2′
verbose: 2
Resolved conversion options
calibre version: 4.2.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\Daniel\AppData\Local\Temp\calibre_886ner\q5hr7q.jpeg’,
‘custom_size’: None,
‘debug_pipeline’: None,
‘dehyphenate’: True,
‘delete_blank_paragraphs’: True,
‘disable_font_rescaling’: False,
‘duplicate_links_in_toc’: False,
’embed_all_fonts’: False,
’embed_font_family’: None,
‘enable_heuristics’: False,
‘expand_css’: False,
‘extra_css’: None,
‘filter_css’: u”,
‘fix_indents’: True,
‘font_size_mapping’: None,
‘format_scene_breaks’: True,
‘html_unwrap_factor’: 0.4,
‘input_encoding’: None,
‘input_profile’: <calibre.customize.profiles.InputProfile object at 0x0000026EF5D04108>,
‘insert_blank_line’: False,
‘insert_blank_line_size’: 0.5,
‘insert_metadata’: False,
‘isbn’: None,
‘italicize_common_cases’: True,
‘keep_ligatures’: False,
‘language’: None,
‘level1_toc’: None,
‘level2_toc’: None,
‘level3_toc’: None,
‘line_height’: 0.0,
‘linearize_tables’: False,
‘margin_bottom’: 5.0,
‘margin_left’: 5.0,
‘margin_right’: 5.0,
‘margin_top’: 5.0,
‘markup_chapter_headings’: True,
‘max_toc_links’: 50,
‘minimum_line_height’: 120.0,
‘no_chapters_in_toc’: False,
‘no_inline_navbars’: False,
‘output_profile’: <calibre.customize.profiles.KindleOutput object at 0x0000026EF5D15588>,
‘page_breaks_before’: u”//*[name()=’h1′ or name()=’h2′]”,
‘paper_size’: u’letter’,
‘pdf_add_toc’: False,
‘pdf_default_font_size’: 20,
‘pdf_footer_template’: None,
‘pdf_header_template’: None,
‘pdf_hyphenate’: False,
‘pdf_mark_links’: False,
‘pdf_mono_family’: u’Courier’,
‘pdf_mono_font_size’: 16,
‘pdf_page_margin_bottom’: 72.0,
‘pdf_page_margin_left’: 72.0,
‘pdf_page_margin_right’: 72.0,
‘pdf_page_margin_top’: 72.0,
‘pdf_page_number_map’: None,
‘pdf_page_numbers’: False,
‘pdf_sans_family’: u’MS Shell Dlg 2′,
‘pdf_serif_family’: u’MS Shell Dlg 2′,
‘pdf_standard_font’: u’serif’,
‘pdf_use_document_margins’: False,
‘prefer_metadata_cover’: False,
‘preserve_cover_aspect_ratio’: False,
‘pretty_print’: False,
‘pubdate’: None,
‘publisher’: None,
‘rating’: None,
‘read_metadata_from_opf’: u’C:\Users\Daniel\AppData\Local\Temp\calibre_886ner\sr_miu.opf’,
‘remove_fake_margins’: True,
‘remove_first_image’: False,
‘remove_paragraph_spacing’: False,
‘remove_paragraph_spacing_indent_size’: 1.5,
‘renumber_headings’: True,
‘replace_scene_breaks’: u”,
‘search_replace’: ‘[]’,
‘series’: None,
‘series_index’: None,
‘smarten_punctuation’: False,
‘sr1_replace’: None,
‘sr1_search’: None,
‘sr2_replace’: None,
‘sr2_search’: None,
‘sr3_replace’: None,
‘sr3_search’: None,
‘start_reading_at’: None,
‘subset_embedded_fonts’: False,
‘tags’: None,
‘timestamp’: None,
‘title’: None,
‘title_sort’: None,
‘toc_filter’: None,
‘toc_threshold’: 6,
‘toc_title’: None,
‘transform_css_rules’: ‘[]’,
‘uncompressed_pdf’: False,
‘unit’: u’inch’,
‘unsmarten_punctuation’: False,
‘unwrap_lines’: True,
‘use_auto_toc’: False,
‘use_profile_size’: False,
‘verbose’: 2}
InputFormatPlugin: MOBI Input running
on C:\Users\Daniel\AppData\Local\Temp\calibre_886ner\zsyrqw.azw
Found KF8 MOBI of type u’standalone’
P y t h o n f u n c t i o n t e r m i n a t e d u n e x p e c t e d l y
Traceback (most recent call last):
File “site.py”, line 114, in main
File “site.py”, line 88, in run_entry_point
File “site-packages\calibre\utils\ipc\worker.py”, line 208, in main
File “site-packages\calibre\gui2\convert\gui_conversion.py”, line 43, in gui_convert_override
File “site-packages\calibre\gui2\convert\gui_conversion.py”, line 28, in gui_convert
File “site-packages\calibre\ebooks\conversion\plumber.py”, line 1110, in run
File “site-packages\calibre\customize\conversion.py”, line 246, in call
File “site-packages\calibre\ebooks\conversion\plugins\mobi_input.py”, line 47, in convert
File “site-packages\calibre\ebooks\mobi\reader\mobi8.py”, line 86, in call
File “site-packages\calibre\ebooks\mobi\reader\mobi6.py”, line 158, in check_for_drm
DRMError: AeroMACS
You will need to go back to Kindle for PC 1.24 or earlier. See this post at MobileRead for a link to that version and more info on different ways to get Kindle books you can DeDRM:
https://www.mobileread.com/forums/showthread.php?t=283371
Going back to 1.24 and re-downloading worked. Thanks for your help.
I downloaded the new 6.6.3 DeDrm plugin (I’m on Windows 10). But when I try to install it into Calibre I get the following error message:
calibre, version 3.46.0
ERROR: Unhandled exception: InvalidPlugin:The plugin in u’C:\Users\marks\Downloads\DeDRM_tools_6.6.3.zip’ is invalid. It does not contain a top-level init.py file
calibre 3.46 embedded-python: True is64bit: False
Windows-10-10.0.18362-SP0 Windows (’32bit’, ‘WindowsPE’)
32bit process running on 64bit windows
(‘Windows’, ’10’, ‘10.0.18362’)
Python 2.7.15+
Windows: (’10’, ‘10.0.18362’, ‘SP0′, u’Multiprocessor Free’)
Interface language: None
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 22, 0) && DeDRM (6, 5, 4) && Package KFX (from KFX Input) (1, 22, 0) && KFX metadata reader (from KFX Input) (1, 22, 0) && KFX Input (1, 22, 0)
Traceback (most recent call last):
File “site-packages\calibre\gui2\preferences\plugins.py”, line 318, in add_plugin
File “site-packages\calibre\customize\ui.py”, line 472, in add_plugin
File “site-packages\calibre\customize\ui.py”, line 61, in load_plugin
File “site-packages\calibre\customize\zipplugin.py”, line 194, in load
File “site-packages\calibre\customize\zipplugin.py”, line 292, in _locate_code
InvalidPlugin: The plugin in u’C:\Users\marks\Downloads\DeDRM_tools_6.6.3.zip’ is invalid. It does not contain a top-level init.py file
What am I doing wrong?
You’re trying to load the whole archive. Unzip that file and look in the DeDRM calibre plugin folder.
@Mark:
1. After downloading the DeDRM zip file from github, expand the file.
2. In the folder you’ll find five (5) folders and a ReadMe_First file, READ IT.
3. For Calibre, open the DeDRM_calibre_plugin folder
4. In the folder will be two (2) files: a ReadMe text file and a DeDRM_plugin.zip file
5 DO NOT OPEN THE .zip file, but install the file as is into Calibre.
Thanks. That did it.
You’re welcome, Mark.
Hi! Have been using your pluggin for Amazon books for quite some time now, thanks for the great work. Recently, I bought a book from Kortext but would love to use it with another app on my iPad so I’d like to strip the DRM. The pdf file can be opened in ADE after authorizing it with my Kortext account so it should be using ADEPT. However, it doesn’t work when I simply drag and drop it into Calibre (still an unopenable pdf). Any ideas?
calibre-debug -g
calibre 3.44 embedded-python: True is64bit: False
Windows-10-10.0.17763-SP0 Windows (’32bit’, ‘WindowsPE’)
32bit process running on 64bit windows
(‘Windows’, ’10’, ‘10.0.17763’)
Python 2.7.15+
Windows: (’10’, ‘10.0.17763’, ‘SP0′, u’Multiprocessor Free’)
Interface language: None
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 18, 0) && DeDRM (6, 6, 3) && Package KFX (from KFX Input) (1, 18, 0) && Chinese Text Conversion (2, 3, 4) && KFX metadata reader (from KFX Input) (1, 18, 0) && KFX Input (1, 18, 0)
Turning on automatic hidpi scaling
devicePixelRatio: 1.0
logicalDpi: 106.0 x 106.0
physicalDpi: 95.8113948919 x 95.9160839161
Using calibre Qt style: True
[0.00] Starting up…
[0.00] Showing splash screen…
[0.28] splash screen shown
[0.28] Initializing db…
[0.44] db initialized
[0.44] Constructing main UI…
[3.08] main UI initialized…
[3.08] Hiding splash screen
[3.64] splash screen hidden
[3.66] Started up in 3.66 seconds with 497 books
DeDRM v6.6.3: Trying to decrypt 2137984361.pdf
DeDRM v6.6.3: 2137984361.pdf is a PDF ebook
DeDRM v6.6.3: Trying Encryption key default_key
DeDRM v6.6.3: Exception when decrypting after 0.1 seconds
Traceback (most recent call last):
File “calibre_plugins.dedrm.init“, line 427, in PDFDecrypt
File “calibre_plugins.dedrm.ineptpdf”, line 2193, in decryptBook
File “calibre_plugins.dedrm.ineptpdf”, line 1999, in init
File “calibre_plugins.dedrm.ineptpdf”, line 1484, in initialize
File “calibre_plugins.dedrm.ineptpdf”, line 1616, in initialize_ebx
ADEPTError: error decrypting book session key
DeDRM v6.6.3: Failed to decrypt with key default_key after 0.1 seconds
DeDRM v6.6.3: Looking for new default Adobe Digital Editions Keys after 0.1 seconds
Found 2 keys
DeDRM v6.6.3: Trying a new default key
DeDRM v6.6.3: Exception when decrypting after 0.7 seconds
Traceback (most recent call last):
File “calibre_plugins.dedrm.init“, line 478, in PDFDecrypt
File “calibre_plugins.dedrm.ineptpdf”, line 2193, in decryptBook
File “calibre_plugins.dedrm.ineptpdf”, line 1999, in init
File “calibre_plugins.dedrm.ineptpdf”, line 1484, in initialize
File “calibre_plugins.dedrm.ineptpdf”, line 1616, in initialize_ebx
ADEPTError: error decrypting book session key
DeDRM v6.6.3: Failed to decrypt with new default key after 0.7 seconds
DeDRM v6.6.3: Ultimately failed to decrypt after 0.7 seconds. Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
Running file type plugin DeDRM failed with traceback:
Traceback (most recent call last):
File “site-packages\calibre\customize\ui.py”, line 172, in _run_filetype_plugins
File “calibre_plugins.dedrm.init“, line 631, in run
File “calibre_plugins.dedrm.init“, line 506, in PDFDecrypt
DeDRMError: DeDRM v6.6.3: Ultimately failed to decrypt after 0.7 seconds. Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
Syntax Error: Couldn’t find the ‘EBX_HANDLER’ security handler
pdfinfo errored out with return code: 1
Traceback (most recent call last):
File “site-packages\calibre\customize\ui.py”, line 428, in get_file_type_metadata
File “site-packages\calibre\customize\builtins.py”, line 343, in get_metadata
File “site-packages\calibre\ebooks\metadata\pdf.py”, line 116, in get_metadata
ValueError: Could not read info dict from PDF
Added 2137984361 to db in: 1.2
Added 1 books in 5.3 seconds
Exception TypeError: “‘NoneType’ object is not callable” in <bound method NativeFunction.__del__ of > ignored
Is this what is needed?
Can you open and read the book with ADE version 2.0.1 authorized with your Adobe ID? If not, it may have hardened Adobe Adept DRM that cannot be removed (yet).
I’d also suggest using 64-bit calibre.
No, I must authorise with my Kortext account.
Is it still worth trying 64-bit calibre?
Can you authorize ADE 2.0.1 with the Kortext account? I’m not familiar with that.
Can’t hurt to give 64-bit calibre a try. If it’s just a memory error, that could solve it.
Looked at the webpage, nowhere is Adobe mentioned, they always speak of “Browser, iOS and Android Apps”, so best guess is, they use their own DRM. If that is true, DeDRM will not work.
Outside of the Apps and a supported Browser there is no mention of devices where the ebook can be read.
The OP is imho out of luck, unless a hack can install the Android App on a Kobo, B&N Nook, Tolino or other e-Ink device which runs on Android (Dasung not-e-Reader is open Android and might be possible but would be a rather expensive alternative).
A cheap tablet, maybe used, might be an alternative, but it is of course not the display quality of an eInk device, but depending on the type of books (PDF? / lots of pictures?), could offer better functionality.
Thanks for the help guys! I’m quite frustrated because I only bought the book just so I could import it to another app to be used as a textbook – guess I’ll be stuck with the Kortext app then (which isn’t all that bad but just don’t have the functionality that a dedicated pdf reader would have).
I authorised it with my Kortext account in the latest edition of ADE (not sure which version). Anyway I guess I really am out of luck, thanks for taking the time though.
ADE version 3.0 or newer can handle the hardened Adobe DRM. (I think the current version is 4.5.) If you could open it with 2.0.1, then it has the older DRM.
I see, I’ll give 2.0.1 a try when I’m home. Side question: are there any tools at all (even paid) that can deal with hardened DRM, or is any work being done on that currently?
No tools that I’m aware of, and I don’t know if it’s being worked on. I haven’t really seen ebookstores here in the US using it yet. At least not exclusively. If it becomes harder to avoid, then people will be more motivated.
Hi there – I realize I am late to the game… trying to reduce my amazon consumption by all means, which includes stopping using their devices and e-book store. I do have 100+ books I have purchased from them throughout the years and want to transfer them to my new non-Amazon e-reader.
I believe I follow the approach here: I downloaded calibre, installed the latest DeDRM plugins, closed and re-started calibre, etc.
I realized that using the latest version of Kindle for Mac is an issue, but I am already in MacOS Catalina and have not been successful to downgrade to the older version of Kindle. I added the chmod line to stop KFX downloads but I was not able to even get the files to import to calibre.
Then I tried downloading one e-book as a test from my Amazon page (download for USB transfer), entered my Kindle serial number on calibre, and I successfully added the file to calibre (I can see the cover, Author, etc.); but when I try to convert (or even just open), I get the DRM error message. Any suggestions? Again, I am unfortunately already using MacOS Catalina 10.15.1 with the latest version of Kindle for Mac (1.26.1), so I don’t think downgrading is an option.
Is your Kindle an E-ink device, not a Fire?
Yeah – it’s an old Kindle Voyage. Thanks for the quick response by the way!
Make sure you have the serial number correct. Try copy and paste from the website, removing spaces.
So I removed my test book from the calibre library and then re-added my test book in case an older file from my initial attempts was lingering… and it worked! I downloaded every book using the “Download for USB” transfer option, imported them to Calibre and converted them to epub, so now I have all my Kindle books on my new Kobo reader. Thanks a lot for the guidance!
I did notice some quality degradation for the converted books, mostly on pictures. When converting the kindle books to epub, I chose the Kobo reader layout for the output file. I also installed the KoboTouchExtended plugin (I read that this converts your regular EPUB files into KEPUBs, which is Kobo’s extended format, and offers some extras like pages remaining in the current chapter and syncing your collections). To verify the issue was with the file vs the e-reader itself, I borrowed one of the converted books from my local library through Overdrive so I could compare images between the Kindle-converted version vs the library, “original” Kobo version one.
There WAS a difference – the same pictures were crisper and looked better in the library borrowed version of the book vs the converted one. It’s not a big deal, but wondering if anyone has faced the same issue and has found a way to fix it.
You might be receiving lower res images in the download because it’s intended for your Voyage. How are they before conversion?
So I did another test with one of the downloaded files and it was looking good pre—conversion. Turns out that selecting “Kobo e-reader” as the output format was the culprit – it was generating an EPUB file considerably smaller than the original AZW3 (several Mb – about 40%)
Selecting “Default” or even “Kindle Voyage” in the output format yields a larger file with the same resolution as the original file. All my books look great now in my new e-reader, but am sharing in case someone else runs into the same issue. Thanks again for the help!
Good to know. I usually use the Kindle Unpack plugin to convert azw3 to epub.
I used to have it working. But downloaded the latest Calibre. And made the mistake of removing Kindle and downloaded it again. So as a result I now have Calibre 4.3, Kindle for Mac 1.26.1 running on Mojave 10.14.3.
I was not able to add the file in Calibre after removing DRM as it shows the format to be KFX-Zip. Is there any hope for me?
As you’re not on Catalina yet, yes, there’s hope. You can go back to Kindle for Mac 1.23. If you want to update to 1.26 after getting that working, then see this post:
https://www.mobileread.com/forums/showpost.php?p=3819708&postcount=508
Thank you so much for such a prompt reply. Deleted Kindle 1.26.1. And am downloading 1.23. Hope I won’t have to do anything with terminal window etc and it would work. Keeping fingers crossed. Thank you so much, again.
If you don’t want to deal with the terminal window thing, you will also need the KFX plugin. Make sure to set Kindle for Mac 1.23 not to update. And don’t move on to Catalina.
Thank you so much. Yes, I had installed KFX plug ins, both input and output but that didn’t help, surprisingly. So had to do the terminal thing. Is there a way to reverse the terminal thing after doing chmod -x /Applications/Kindle.app/Contents/MacOS/renderer-test ?
If you are still getting KFX files, then the terminal command doesn’t seemed to have done anything anyway. Post a log so we can get a better idea of what’s happening.
https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md#i-cannot-solve-my-problem-with-the-dedrm-plugin-and-now-i-need-to-post-a-log-how-do-i-do-that
No, no, the terminal command worked for me. What I meant was that the KFX plugin didn’t work for me. So was asking that in case I ever need to revert back to the KFX format (because some times books in non-Roman scripts do not render well in non-KFX format) how do I undo the terminal command.
Replace the – with a +. Or reinstall Kindle for Mac.
Thanks. Has been working fine. But the question now is, what do I do about books that need this, as Kindle warns me:
“Your Kindle app requires an update to view this content. Click here to download and install the free update or visit the Mac App Store to update your app (supported OS: Mac OS X 10.10 or later).”
This is for a book in a different script, and from what you say, if I update, this would stop working. Ah, the tradeoffs one has to make!
You would need to download it with unmodified Kindle for Mac 1.23. And have the KFX Input plugin and DeDRM installed. If you still cannot download it with 1.23, then you’d be out-of-luck until the newer KFX format DRM gets figured out and these tools get updated hopefully.
I can’t find my kindle serial number anywhere. Please help
Go to amazon.com/mycd.
The easiest way is the shortcut to your devices your amazon account.
amazon.com/myk
klick on the label “Devices” between “Content” and “Preferences” (third row from top I think).
You can mark the serial number of your eInk device and copy&paste it, but beware to strip the spaces in the displayed number.
This is a Kindle Voyage, but it is the same for other eInk devices. Kindle Fire is different, sorry and does not work with DeDRM, imho.
Main screen from Kindle with the big cover of the book you are reading and a few others or (depending on settings) a simple list with ebooks -> right hand top corner shows three dots vertically
-> a drop down menu is displayed
->
->
->
There is another way on the kindle to get to that, device options -> device info but it displays the same. The serial number is there, enter it without the space in the DeDRM Settings in Calibre.
And again the blog stripped the necessary info… Sorry.
Drop down tap
Settings
then again tap the
three dots top right corner
chose
device info
The serial number is there, enter without spaces in the dialog.
I don’t have any of the above mentioned options to do it…this was probably in the oldest versions of kindle I had to download the new version and there is no HOME (in Kindle) no 3 dots…in Content I have only Edit, Deregister and view device content and non of them offer any serial number or SETTING…
Serial numbers are used with books from or for E-ink Kindle devices. There aren’t any serial numbers for the Kindle for PC or Mac apps.
PC or Mac? If Mac, are you on Catalina? If so, were you able to DeDRM books from Kindle for Mac before updating to Catalina?
PC…how can I DeDrm the book?… I do all on Pc, no androids.
Use Kindle for PC version 1.24 or earlier. See this post for a link and more info:
https://www.mobileread.com/forums/showthread.php?t=283371
With only apps it gets increasingly difficult to keep it working, with the OS es insisting on 64 bit programs forcing you to upgrade from 32 bit programs and the 2nd generation of KFX (the first worked somehow) from Amazon.
Buying a cheap used Kindle eInk device and registering it to your Amazon account might be a better solution.
Not too much of an issue for PC users yet. I’m still using version K4PC 1.17 which doesn’t support KFX files. I also have an old Kindle Touch. It doesn’t download KFX either so I can use files directly from it or download from the website. Hopefully they’ll keep supporting methods for getting the older formats, but you never know.
few year ago I didn’t have any problem converting books from kindle to pdf but now is really impossible
Hello. I recently got a “cannot convert” screen and I wonder if you can help me diagnose the issue:
I downloaded the file using Amazon’s website using the “transfer via USB” choice for a kindle oasis 2019 device.
This file shows as an AZW3 in Calibre (but it is a brand new book from a technical publisher so maybe its a KFX??)
my computer is a mac running Catalina 10.15.1
Calibre is version 4.3.0
DeDrm is version 6.6.3
I also have plugin Gather KFX-ZIP 1.24.0
The debug log follows
calibre Debug log
calibre 4.3 embedded-python: True is64bit: True
Darwin-19.0.0-x86_64-i386-64bit Darwin (’64bit’, ”)
(‘Darwin’, ‘19.0.0’, ‘Darwin Kernel Version 19.0.0: Thu Oct 17 16:17:15 PDT 2019; root:xnu-6153.41.3~29/RELEASE_X86_64’)
Python 2.7.16
OSX: (‘10.15.1’, (”, ”, ”), ‘x86_64′)
Interface language: None
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 24, 0) && DeDRM (6, 6, 3) && Package KFX (from KFX Input) (1, 24, 0) && KFX metadata reader (from KFX Input) (1, 24, 0) && KFX Input (1, 24, 0)
calibre 4.3 embedded-python: True is64bit: True
Darwin-19.0.0-x86_64-i386-64bit Darwin (’64bit’, ”)
(‘Darwin’, ‘19.0.0’, ‘Darwin Kernel Version 19.0.0: Thu Oct 17 16:17:15 PDT 2019; root:xnu-6153.41.3~29/RELEASE_X86_64’)
Python 2.7.16
OSX: (‘10.15.1’, (”, ”, ”), ‘x86_64’)
Interface language: None
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 24, 0) && DeDRM (6, 6, 3) && Package KFX (from KFX Input) (1, 24, 0) && KFX metadata reader (from KFX Input) (1, 24, 0) && KFX Input (1, 24, 0)
devicePixelRatio: 1.0
logicalDpi: 72.0 x 72.0
physicalDpi: 92.0000013817 x 92.0000013817
Using calibre Qt style: True
[0.00] Starting up…
[0.03] Showing splash screen…
[0.25] splash screen shown
[0.25] Initializing db…
[0.26] db initialized
[0.26] Constructing main UI…
[0.86] main UI initialized…
[0.86] Hiding splash screen
DeDRM v6.6.3: Trying to decrypt Screens Producing & Media Operations.azw3
Using Library AlfCrypto Python
MobiDeDrm v0.42.
Copyright © 2008-2017 The Dark Reverser, Apprentice Harper et al.
Decrypting Kindle Format 8 ebook: Screens Producing & Media Operations
Found 10 keys to try after 0.1 seconds
Crypto Type is: 2
DeDRM v6.6.3: Failed to decrypt with error: No key found in 10 keys tried.
DeDRM v6.6.3: Looking for new default Kindle Key after 0.1 seconds
No k4Mac kindle-info/rainier/kinf2011 files have been found.
DeDRM v6.6.3: Ultimately failed to decrypt after 0.1 seconds. Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
Running file type plugin DeDRM failed with traceback:
Traceback (most recent call last):
File “site-packages/calibre/customize/ui.py”, line 172, in _run_filetype_plugins
File “calibre_plugins.dedrm.init“, line 624, in run
File “calibre_plugins.dedrm.init“, line 574, in KindleMobiDecrypt
DeDRMError: DeDRM v6.6.3: Ultimately failed to decrypt after 0.1 seconds. Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
[76.00] splash screen hidden
[76.00] Started up in 76.00 seconds with 125 books
Debugging DND event
text/uri-list 87 ‘file:///Users/bryandominick/Desktop/Screens%20Producing%20&%20Media%20Operations.azw3\r\n’
Firefox rurl: None None
URLS: [u’file:///Users/USERNAME/Desktop/Screens%20Producing%20&%20Media%20Operations.azw3′]
Paths: [u’/Users/USERNAME/Desktop/Screens Producing & Media Operations.azw3′]
Extensions: frozenset([u’azw3′])
Added Screens Producing & Media Operations to db in: 0.1
Added 1 books in 0.5 seconds
Worker Launch took: 0.0824320316315
Job: 0 Convert book 1 of 1 (Screens Producing & Media Operations) finished
Convert book 1 of 1 (Screens Producing & Media Operations)
Conversion options changed from defaults:
cover: u’/var/folders/_7/n0twy1kx4519j43fy6zt5jl40000gn/C/calibre_4.3.0_tmp_SQuF0L/ak7M0S.jpeg’
input_profile: u’kindle’
verbose: 2
output_profile: u’kindle_voyage’
read_metadata_from_opf: u’/var/folders/_7/n0twy1kx4519j43fy6zt5jl40000gn/C/calibre_4.3.0_tmp_SQuF0L/GCLT6O.opf’
Resolved conversion options
calibre version: 4.3.0
{‘asciiize’: False,
‘author_sort’: None,
‘authors’: None,
‘base_font_size’: 0.0,
‘book_producer’: None,
‘change_justification’: u’original’,
‘chapter’: u”//*[((name()=’h1′ or name()=’h2′) and re:test(., ‘\s*((chapter|book|section|part)\s+)|((prolog|prologue|epilogue)(\s+|$))’, ‘i’)) or @class = ‘chapter’]”,
‘chapter_mark’: u’pagebreak’,
‘comments’: None,
‘cover’: u’/var/folders/_7/n0twy1kx4519j43fy6zt5jl40000gn/C/calibre_4.3.0_tmp_SQuF0L/ak7M0S.jpeg’,
‘debug_pipeline’: None,
‘dehyphenate’: True,
‘delete_blank_paragraphs’: True,
‘disable_font_rescaling’: False,
‘dont_compress’: False,
‘duplicate_links_in_toc’: False,
’embed_all_fonts’: False,
’embed_font_family’: None,
‘enable_heuristics’: False,
‘expand_css’: False,
‘extra_css’: None,
‘extract_to’: None,
‘filter_css’: u”,
‘fix_indents’: True,
‘font_size_mapping’: None,
‘format_scene_breaks’: True,
‘html_unwrap_factor’: 0.4,
‘input_encoding’: None,
‘input_profile’: <calibre.customize.profiles.KindleInput object at 0x1188c1590>,
‘insert_blank_line’: False,
‘insert_blank_line_size’: 0.5,
‘insert_metadata’: False,
‘isbn’: None,
‘italicize_common_cases’: True,
‘keep_ligatures’: False,
‘language’: None,
‘level1_toc’: None,
‘level2_toc’: None,
‘level3_toc’: None,
‘line_height’: 0.0,
‘linearize_tables’: False,
‘margin_bottom’: 5.0,
‘margin_left’: 5.0,
‘margin_right’: 5.0,
‘margin_top’: 5.0,
‘markup_chapter_headings’: True,
‘max_toc_links’: 50,
‘minimum_line_height’: 120.0,
‘mobi_file_type’: u’old’,
‘mobi_ignore_margins’: False,
‘mobi_keep_original_images’: False,
‘mobi_toc_at_start’: False,
‘no_chapters_in_toc’: False,
‘no_inline_navbars’: True,
‘no_inline_toc’: False,
‘output_profile’: <calibre.customize.profiles.KindleVoyageOutput object at 0x1188c1c50>,
‘page_breaks_before’: u”//*[name()=’h1′ or name()=’h2′]”,
‘personal_doc’: u'[PDOC]’,
‘prefer_author_sort’: False,
‘prefer_metadata_cover’: False,
‘pretty_print’: False,
‘pubdate’: None,
‘publisher’: None,
‘rating’: None,
‘read_metadata_from_opf’: u’/var/folders/_7/n0twy1kx4519j43fy6zt5jl40000gn/C/calibre_4.3.0_tmp_SQuF0L/GCLT6O.opf’,
‘remove_fake_margins’: True,
‘remove_first_image’: False,
‘remove_paragraph_spacing’: False,
‘remove_paragraph_spacing_indent_size’: 1.5,
‘renumber_headings’: True,
‘replace_scene_breaks’: u”,
‘search_replace’: ‘[]’,
‘series’: None,
‘series_index’: None,
‘share_not_sync’: False,
‘smarten_punctuation’: False,
‘sr1_replace’: None,
‘sr1_search’: None,
‘sr2_replace’: None,
‘sr2_search’: None,
‘sr3_replace’: None,
‘sr3_search’: None,
‘start_reading_at’: None,
‘subset_embedded_fonts’: False,
‘tags’: None,
‘timestamp’: None,
‘title’: None,
‘title_sort’: None,
‘toc_filter’: None,
‘toc_threshold’: 6,
‘toc_title’: None,
‘transform_css_rules’: ‘[]’,
‘unsmarten_punctuation’: False,
‘unwrap_lines’: True,
‘use_auto_toc’: False,
‘verbose’: 2}
InputFormatPlugin: MOBI Input running
on /var/folders/_7/n0twy1kx4519j43fy6zt5jl40000gn/C/calibre_4.3.0_tmp_SQuF0L/FcIebw.azw3
Found KF8 MOBI of type u’standalone’
Python function terminated unexpectedly: Screens Producing & Media Operations
Traceback (most recent call last):
File “/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py”, line 163, in main
return run_entry_point()
File “/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py”, line 121, in run_entry_point
return
Add your Oasis serial number to DeDRM’s customization.
Thank you Laura! That worked!
I put in my Kindle’s serial # into the “eink Kindle ebooks” configuration menu, saved it, and restarted Calibre. I found that it worked after I also deleted the book and then re-added it. Thank You! Now I can mark this book up the way I want!
Hi,
I’m using Calibre 4.0 and Win10 and trying to remove the DRM from a kindle book I bought from Amazon. This used to work for me but now it doesn’t. I’ve run through the process in debug mode and am appending the debug report. I’d appreciate any help you can give me. Thanks. Here’s the report:
calibre Debug log
calibre 4.0 embedded-python: True is64bit: False
Windows-10-10.0.18362-SP0 Windows (’32bit’, ‘WindowsPE’)
(‘Windows’, ’10’, ‘10.0.18362’)
Python 2.7.16+
Windows: (’10’, ‘10.0.18362’, ‘SP0′, u’Multiprocessor Free’)
Interface language: None
Successfully initialized third party plugins: DeDRM (6, 6, 3)
calibre 4.0 embedded-python: True is64bit: False
Windows-10-10.0.18362-SP0 Windows (’32bit’, ‘WindowsPE’)
(‘Windows’, ’10’, ‘10.0.18362’)
Python 2.7.16+
Windows: (’10’, ‘10.0.18362’, ‘SP0′, u’Multiprocessor Free’)
Interface language: None
Successfully initialized third party plugins: DeDRM (6, 6, 3)
Turning on automatic hidpi scaling
devicePixelRatio: 2.0
logicalDpi: 72.0 x 72.0
physicalDpi: 51.1194968553 x 51.1791044776
Using calibre Qt style: True
[0.00] Starting up…
[0.02] Showing splash screen…
[1.00] splash screen shown
[1.00] Initializing db…
[1.05] db initialized
[1.05] Constructing main UI…
[3.00] main UI initialized…
[3.00] Hiding splash screen
Storage number map:
{(7L, 0L): [(2L, ‘C’)], (7L, 1L): [(1L, ‘E’)]}
Storage number for USBSTOR\DISK&VEN_KINDLE&PROD_INTERNAL_STORAGE&REV_0100\B02416033024073L&0: StorageDeviceNumber(type=7L, number=1L, partition_number=0L)
Drive letters for USBDevice(vendor_id=0x1949 product_id=0x4 bcd=0x100 devid=usb\vid_1949&pid_0004&rev_0100 devinst=6)
{u’drive_letters’: [‘E’],
u’pnp_id_map’: {‘E’: u’\\?\usbstor#disk&ven_kindle&prod_internal_storage&rev_0100#b02416033024073l&0#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}’},
u’readonly_drives’: set([]),
u’sort_map’: {‘E’: (1L, 1L)}}
Job: 0 Get device information started
DeviceJob: 0 Get device information done, calling callback
DeviceJob: 0 Get device information callback returned
Job: 1 Set library information started
DeviceJob: 1 Set library information done, calling callback
DeviceJob: 1 Set library 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: E:\ documents
DEBUG: 0.0 USBMS: scan from root False E:\documents
DEBUG: 0.2 USBMS: count found in cache: 27, count of files in metadata: 27, need_sync: False
DEBUG: 0.2 USBMS: Finished fetching list of books from device. oncard= None
DEBUG: 0.2 USBMS: Fetching list of books from device. Device= KINDLE2 oncard= carda
DEBUG: 0.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= 27
DeviceJob: set_books_in_library finished: time= 0.0209999084473
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: 0 Get device information finished
No details available.
Job: 1 Set library information finished
No details available.
Job: 2 Get list of books on device finished
No details available.
[15.31] splash screen hidden
[15.31] Started up in 15.31 seconds with 578 books
Job: 3 Prepare files for transfer from device started
DeviceJob: 3 Prepare files for transfer from device done, calling callback
DeviceJob: 3 Prepare files for transfer from device callback returned
Job: 3 Prepare files for transfer from device finished
No details available.
DeDRM v6.6.3: Trying to decrypt In Our Mad and Furious City_ Winner of the International Dylan Thomas Prize_B073B6S4V4.azw3
Using Library AlfCrypto DLL/DYLIB/SO
MobiDeDrm v0.42.
Copyright © 2008-2017 The Dark Reverser, Apprentice Harper et al.
Decrypting Kindle Format 8 ebook: In Our Mad and Furious City: Winner of the International Dylan Thomas Prize
Found 0 keys to try after 0.1 seconds
Crypto Type is: 2
DeDRM v6.6.3: Failed to decrypt with error: No key found in 0 keys tried.
DeDRM v6.6.3: Looking for new default Kindle Key after 0.1 seconds
searching for kinfoFiles in C:\Users\USER\AppData\Local
No K4PC kindle.info/kinf/kinf2011 files have been found.
DeDRM v6.6.3: Ultimately failed to decrypt after 0.2 seconds. Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
Running file type plugin DeDRM failed with traceback:
Traceback (most recent call last):
File “site-packages\calibre\customize\ui.py”, line 172, in _run_filetype_plugins
File “calibre_plugins.dedrm.init“, line 624, in run
File “calibre_plugins.dedrm.init“, line 574, in KindleMobiDecrypt
DeDRMError: DeDRM v6.6.3: Ultimately failed to decrypt after 0.2 seconds. Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
C:\Program Files\Calibre2\app\pylib.zip\dateutil\parser_parser.py:1177: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode – interpreting them as being unequal
Added In Our Mad and Furious City: Winner of the International Dylan Thomas Prize to db in: 1.0
Added 1 books in 2.7 seconds
DeviceJob: set_books_in_library: books to process= 27
DeviceJob: set_books_in_library finished: time= 0.00499987602234
If the book is from or for an E-ink Kindle (not a Fire), then you need to enter the Kindle’s serial number into the DeDRM plugin customization.
Thanks for the comment Laura but it’s just an ordinary Kindle. What can I do next?
That’s exactly what you need. Basic Kindle, Paperwhite, etc. As long as it’s not a Fire tablet.
But that’s what I have _ Paperwhite Kindle _ and the debug log is what I get _ and as you see from it the DRM has not been removed.
Because you haven’t entered your Kindle’s serial number into the DeDRM plugin customization.
Thanks very much for your prompt replies. I hate to be so stupid but I don’t have any idea how to find the serial no. of my Kindle.
Just found the serial no. and I’ll try again.
I can’t find how to enter the serial no. Can you tell me please? Thanks
In calibre: Preferences > Plugins. Select DeDRM under File Type Plugins. Click the Customize Plugin button > eInk Kindle ebooks > green plus sign.
And after entering the serial no. be sure to click OK or Apply out of the various windows. Then restart calibre before re-adding your book.
Thank you very much for your patience and help Laura.
First things first, my calibre and DeDRM are up to date. I tried to convert a book recently purchased from Barnes and Noble. I’ve been able to convert books purchased last year, but not this recent one. The log says that it couldn’t find a NOOk Study key. I have never used NOOK Study, only basic NOOK apps. Here is the log:
calibre Debug log
calibre 4.4 [64bit] embedded-python: True is64bit: True
Windows-10-10.0.18362-SP0 Windows (’64bit’, ‘WindowsPE’)
(‘Windows’, ’10’, ‘10.0.18362’)
Python 2.7.16+
Windows: (’10’, ‘10.0.18362’, ‘SP0′, u’Multiprocessor Free’)
Interface language: None
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 24, 0) && DeDRM (6, 6, 3) && Package KFX (from KFX Input) (1, 24, 0) && Barnes & Noble (1, 2, 15) && KFX metadata reader (from KFX Input) (1, 24, 0) && KFX Input (1, 24, 0)
calibre 4.4 [64bit] embedded-python: True is64bit: True
Windows-10-10.0.18362-SP0 Windows (’64bit’, ‘WindowsPE’)
(‘Windows’, ’10’, ‘10.0.18362’)
Python 2.7.16+
Windows: (’10’, ‘10.0.18362’, ‘SP0′, u’Multiprocessor Free’)
Interface language: None
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 24, 0) && DeDRM (6, 6, 3) && Package KFX (from KFX Input) (1, 24, 0) && Barnes & Noble (1, 2, 15) && KFX metadata reader (from KFX Input) (1, 24, 0) && KFX Input (1, 24, 0)
Turning on automatic hidpi scaling
devicePixelRatio: 1.0
logicalDpi: 96.0 x 96.0
physicalDpi: 84.2536585366 x 84.8139130435
Using calibre Qt style: True
[0.00] Starting up…
[0.01] Showing splash screen…
[0.98] splash screen shown
[0.98] Initializing db…
[1.08] db initialized
[1.08] Constructing main UI…
[4.08] main UI initialized…
[4.08] Hiding splash screen
[7.50] splash screen hidden
[7.50] Started up in 7.50 seconds with 715 books
stdout+stderr from file dialog helper: [”, ”]
piped data from file dialog helper: [‘]\x86\xa7\xb8\xfa\xc3\x97\xcaY\n,~[z).\xc4^\x154\xed\xa0tS\x98\xa0\xbc\xb4\xe5-\xd8\x0c’, ‘C:\Users\Heather\AppData\Local\Packages\BarnesNoble.Nook_ahnzqzva31enc\LocalState\9780698195820.epub’]
DeDRM v6.6.3: Trying to decrypt 9780698195820.epub
DeDRM v6.6.3: Verifying zip archive integrity
DeDRM v6.6.3: “9780698195820.epub” is a secure Barnes & Noble ePub
DeDRM v6.6.3: Looking for new NOOK Study Keys after 0.3 seconds
No nook Study log files have been found.
DeDRM v6.6.3: Ultimately failed to decrypt after 0.3 seconds. Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
Running file type plugin DeDRM failed with traceback:
Traceback (most recent call last):
File “site-packages\calibre\customize\ui.py”, line 172, in _run_filetype_plugins
File “calibre_plugins.dedrm.init“, line 635, in run
File “calibre_plugins.dedrm.init“, line 304, in ePubDecrypt
DeDRMError: DeDRM v6.6.3: Ultimately failed to decrypt after 0.3 seconds. Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
Added Storm Cursed to db in: 2.2
Added 1 books in 5.0 seconds
Do you have a B&N key in the DeDRM customization? Or do you have access to the setup which worked previously? Unfortunately, if the key you used previously for B&N books is no longer working, it’s not easy to get the current one. The methods in the tools for retrieving the B&N key have been broken ever since B&N shut off access to the old Nook desktop apps. People have had success extracting their key from rooted Android devices with the Nook app and from rooted Nook devices, but it’s kinda complicated — especially if you don’t already have a rooted device.
I’ll try that. Thanks.
Some discussion of how to do so here:
https://github.com/apprenticeharper/DeDRM_tools/issues/814
I’m using Kindle 1.23.1 on Apple OS X 10.13. I’ve got Calibre 3.36.0 with the latest DeDRM plug-ins installed. When I import a few of the .azw books downloaded by my Kindle app, Calibre they say it still has DRM – what am I doing wrong? This used to work perfectly.
Post a log and we’ll see.
https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md#i-cannot-solve-my-problem-with-the-windows-dedrm-application-and-now-i-need-to-post-a-log-how-do-i-do-that
When I try to use the standalone application, I see this:
There is 1 ebook to be decrypted.
Processing file: B07K1L7NGW_EBOK.azw
There was an error with 1 ebook:
Macintosh HD:Users:xyz:Library:Application Support:Kindle:My Kindle Content:B07K1L7NGW_EBOK:B07K1L7NGW_EBOK.azw is neither a Kindle not a Mobipocket file.
is there a way to get a log from the Calibre when it fails to convert? (or is there a special conversion step in Calibre I’m missing, besides dragging the file into Calibre)?
It’s probably a KFX format. You’ll need calibre with the DeDRM and KFX Input plugins. Or modify the Kindle app so it doesn’t download KFX format.
thanks!
To find out what’s up with the plugin, post a log. Link I gave before.
To stop Kindle app from downloading KFX, see method 2 here;
https://www.mobileread.com/forums/showthread.php?t=283371
hmm, I followed the link you gave to “I cannot solve my problem with the Macintosh DeDRM application, and now I need to ‘post a log’. How do I do that?” and got the log and posted it above – the log file said:
There is 1 ebook to be decrypted.
Processing file: B07K1L7NGW_EBOK.azw
There was an error with 1 ebook:
Macintosh HD:Users:xyz:Library:Application Support:Kindle:My Kindle Content:B07K1L7NGW_EBOK:B07K1L7NGW_EBOK.azw is neither a Kindle not a Mobipocket file.
but this (and the instructions) were not a log from the Calibre plug-in – it’s for a log from the DeDRM standalone app. It looks like you want the Calibre log – are there instructions for how to get that log?
Oh sorry wrong link. It’s just above that. Scroll up.
Ah, thanks. Here’s the log, after I drag it into Calibre (no errors) and try to convert to PDF (it says there’s DRM):
2019-11-25 05:17:06.890 calibre-debug[49562:4885161] ApplePersistence=YES
calibre Debug log
calibre 3.36 embedded-python: True is64bit: True
Darwin-17.7.0-x86_64-i386-64bit Darwin (’64bit’, ”)
(‘Darwin’, ‘17.7.0’, ‘Darwin Kernel Version 17.7.0: Thu Jun 21 22:53:14 PDT 2018; root:xnu-4570.71.2~1/RELEASE_X86_64’)
Python 2.7.12
OSX: (‘10.13.6’, (”, ”, ”), ‘x86_64′)
Interface language: None
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 24, 0) && DeDRM (6, 6, 3) && Package KFX (from KFX Input) (1, 24, 0) && Find Duplicates (1, 6, 3) && KindleUnpack – The Plugin (0, 81, 5) && KFX metadata reader (from KFX Input) (1, 24, 0) && KFX Input (1, 24, 0)
calibre 3.36 embedded-python: True is64bit: True
Darwin-17.7.0-x86_64-i386-64bit Darwin (’64bit’, ”)
(‘Darwin’, ‘17.7.0’, ‘Darwin Kernel Version 17.7.0: Thu Jun 21 22:53:14 PDT 2018; root:xnu-4570.71.2~1/RELEASE_X86_64’)
Python 2.7.12
OSX: (‘10.13.6’, (”, ”, ”), ‘x86_64’)
Interface language: None
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 24, 0) && DeDRM (6, 6, 3) && Package KFX (from KFX Input) (1, 24, 0) && Find Duplicates (1, 6, 3) && KindleUnpack – The Plugin (0, 81, 5) && KFX metadata reader (from KFX Input) (1, 24, 0) && KFX Input (1, 24, 0)
devicePixelRatio: 1.0
logicalDpi: 72.0 x 72.0
physicalDpi: 128.000001922 x 128.000001922
Using calibre Qt style: True
[0.00] Starting up…
[0.02] Showing splash screen…
[0.20] splash screen shown
[0.20] Initializing db…
[0.52] db initialized
[0.52] Constructing main UI…
[3.03] main UI initialized…
[3.03] Hiding splash screen
[3.05] splash screen hidden
[3.06] Started up in 3.06 seconds with 4611 books
Gather KFX-ZIP (from KFX Input) 1.24.0: Importing /Users/xyz/Library/Application Support/Kindle/My Kindle Content/B00YSPVG7Y_EBOK/B00YSPVG7Y_EBOK.azw
Gather KFX-ZIP (from KFX Input): Gathered 4 file(s) as /var/folders/x5/fbdqp6cs4vn1pmx4qvsk86mh0000gp/C/calibre_3.36.0_tmp_70CL84/A727Zm.kfx-zip
DeDRM v6.6.3: Trying to decrypt A727Zm.kfx-zip
Using Library AlfCrypto DLL/DYLIB/SO
Decrypting KFX-ZIP ebook: A727Zm
Got DSN key from database default_key_3
Found 4 keys to try after 0.1 seconds
Decrypting KFX DRM voucher: amzn1.drm-voucher.v1.26709e62-f912-4784-9f03-52945c0aa561.voucher
DeDRM v6.6.3: Failed to decrypt with error: Failed to decrypt KFX DRM voucher with any key
DeDRM v6.6.3: Looking for new default Kindle Key after 0.1 seconds
Found k4Mac kinf2011 file: /Users/xyz/Library/Application Support/Kindle/storage/.kinf2011
Decrypted key file using IDString ‘b9931e4caab7’ and UserName ‘xyz’
DeDRM v6.6.3: Found 1 new key
Decrypting KFX-ZIP ebook: A727Zm
Got DSN key from database default_key_1
Found 1 keys to try after 0.5 seconds
Decrypting KFX DRM voucher: amzn1.drm-voucher.v1.26709e62-f912-4784-9f03-52945c0aa561.voucher
DeDRM v6.6.3: Ultimately failed to decrypt after 0.5 seconds. Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
Running file type plugin DeDRM failed with traceback:
Traceback (most recent call last):
File “site-packages/calibre/customize/ui.py”, line 172, in _run_filetype_plugins
File “calibre_plugins.dedrm.init“, line 624, in run
File “calibre_plugins.dedrm.init“, line 574, in KindleMobiDecrypt
DeDRMError: DeDRM v6.6.3: Ultimately failed to decrypt after 0.5 seconds. Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
Running file type plugin Package KFX (from KFX Input) failed with traceback:
Traceback (most recent call last):
File “site-packages/calibre/customize/ui.py”, line 172, in _run_filetype_plugins
File “calibre_plugins.kfx_input.package_filetype”, line 21, in run
File “calibre_plugins.kfx_input.package_filetype”, line 33, in run_kfx
File “calibre_plugins.kfx_input.kfxlib.yj_book”, line 88, in convert_to_single_kfx
File “calibre_plugins.kfx_input.kfxlib.yj_book”, line 161, in decode_book
File “calibre_plugins.kfx_input.kfxlib.yj_book”, line 268, in get_container
KFXDRMError: Book container B00YSPVG7Y_EBOK.azw has DRM and cannot be converted
Package KFX (from KFX Input) 1.24.0: Packaging /var/folders/x5/fbdqp6cs4vn1pmx4qvsk86mh0000gp/C/calibre_3.36.0_tmp_70CL84/A727Zm.kfx-zip
Processing container: B00YSPVG7Y_EBOK.azw
KFX metadata reader (from KFX Input) activated for /var/folders/x5/fbdqp6cs4vn1pmx4qvsk86mh0000gp/C/calibre_3.36.0_tmp_70CL84/i2KdU1_add_books/0/B00YSPVG7Y_EBOK.kfx-zip
Added The Cybernetics Moment (New Studies in American Intellectual and Cultural History) to db in: 0.2
Added 1 books in 2.1 seconds
Worker Launch took: 0.357872009277
Was that book downloaded with the current installation of Kindle for Mac on the same machine and user? Because while a key is found and decrypted, it’s not working for that book. As if the book was downloaded with a different copy of Kindle for Mac. Or it could be that the key is left over from a previous installation of Kindle for Mac.
Hey! Any info how to deDRM Nook book in the end of 2019? Book downloaded with Windows Store (Windows 10) and all programs that I found (Epubor, Calibre, Epubsoft) can’t get rid of DRM. Epubor says that their program Nook DRM Removal is only working tool for Nook DRM in 2019, but with their key (they generated it for me using my Nook credentials) I still can’t deDRM my book =((
Some have been able to retrieve their key from Nook for Android on a rooted device or emulator. And also from rooted Nook devices. Then use that with these tools. Discussion here at this GitHub issue:
https://github.com/apprenticeharper/DeDRM_tools/issues/814
I recently updated to Mac OS X Catalina and Kindle 1.26.1 before I even considered the potential DRM implications. I’ve been reading about all the possible fixes and am getting the feeling that there is no hope for me at this point. Is that true or is there a way I can still remove Amazon DRM with Calibre and the Alf plugin? This has been working for me for years so I sure hope there’s still a way to make it work.
If you had things working before, then there’s hope. See this post:
https://www.mobileread.com/forums/showpost.php?p=3819708&postcount=508
This post might also help, in addition to the one Laura provided:
https://github.com/apprenticeharper/DeDRM_tools/issues/937#issuecomment-556390983
I’ve just had a thought about removing DRM from the one and only ebook that I haven’t managed to free. If the book wasn’t almost 2k pages, I’d have simply grabbed screenshots and built it from scratch…or scanned my dead tree edition, which would be even more work. Obviously, having downloaded it with newer versions of Nook for PC and the Windows app, I can’t (according to things I’ve read today) just install the old version of Nook for PC and download it again. However, while poking around in my hard drives, I discovered that I’d backed up my Nook books folder in 2013. I have no idea, though, which version I used to download it with. I’ve tried opening the old copy of the book in Calibre, but, unsurprisingly, that didn’t help. I tried Epubor (bought because it was easier for me at the time I bought, years ago), and, of course, that doesn’t work, either. If only I’d had the info then, that I have now…or my habit of always installing updates wouldn’t have caused me this grief. This is precisely the reason I stopped buying from B&N.
What I need to know is, is there any way to convince an old version of Nook for PC to give me the key?
There’s a way to extract your key from Nook for Android on a rooted Android device or an emulator or a rooted Nook device. You should be able to use that on epubs download with the Windows Nook app. Discussion here:
https://github.com/apprenticeharper/DeDRM_tools/issues/814
I’m surprised to hear you were able to download anything with Nook for PC. As far as I knew, the “newest” version of it was from about 2011 and stopped working early this year at around the same time that retrieving the key with these tools broke.
I appreciate your help very much. I guess I’m going to have to root my phone…my Nook HD+, since I upgraded it to one of the newer versions of Android, refuses to root with the tools I’ve found so far. Heh.
I guess you overlooked where I said I’d backed up my Nook folder in 2013. I did, however, successfully install, and downloaded with, some version of Nook for PC last year, while trying to get my books deDRMed. That was mostly successful, anyway. B&N’s games with DRM has led me to stop buying from them–if I can’t read my books on my Kobo, or in Moon+ Reader, it’s pointless to buy them. I can’t stand it when someone tries to force me to do things their way…heh.
Ah, 2013 would have been before they switched away from credit card based keys. When you said you had downloaded with a “newer” version of Nook for PC, I thought you meant some time recently. Both Nook for PC and Nookstudy stopped working early this year. They had long been unsupported, but weren’t completely cut off until then. Once that happened, the methods built into DeDRM for retrieving B&N keys stopped working as well.
Because many libraries change their DRM from Adobe DRM to CARE DRM in Germany, it may be great if the Calibre DeDRM will be enhanced to remove this new DRM type, too.
These tools are intended for books you own.