Version 7.2.1 released on 11 April, 2021
Welcome to Apprentice Alf’s blog
This blog is intended to help anyone looking for free and simple software for removing DRM from their Kindle ebooks, stripping DRM from their Adobe Digital Editions ebooks, getting rid of DRM from their Barnes and Noble ebooks, freeing their Kobo ebooks of DRM, or decrypting their Fictionwise eReader ebooks.
If you want to find out more about ebooks, DRM and why you will probably want to remove the DRM from your ebooks, see this post: Ebook Formats, DRM and You — A Guide for the Perplexed.
If you already know that you want to strip the DRM from your ebooks, you’ve found the right place.
The Tools
To get started on removing DRM from your ebooks, just download the tools archive from the link below. Unzip the archive, and start reading.
The latest release can be found at the top of this page:
https://github.com/apprenticeharper/DeDRM_tools/releases
Getting Help with the Tools
If you have any questions about the tools, ebooks, and DRM, check the FAQs at the GitHub repository:
https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
If you have any problems with the current tools, please ask for help in a comment on this post or in the Discussions area of Apprentice Harper’s GitHub repository. If you would like to report a bug, please open a new issue at the GitHub repository. If you are having a problem with an older version of the tools, please first update to the current version, and see if that solves your problem.
Before commenting here, please check the ReadMe file and the FAQs (see link above).
In any bug report or help request, please include:
- which tool was used
- which OS you are using
- where the ebook file came from (device or application)
- any error messages
- a log of the DRM-removal attempt (see the FAQs on how to get a log).
Anti-Piracy Notice
Please only use these tools for gaining full access to your own ebooks for archiving/conversion/convenience. De-drmed ebooks should not be uploaded to open servers, torrents, or other methods of mass distribution. No help will be given to people doing such things. Authors, retailers and publishers all need to make a living, so that they can continue to produce books for us to read. Don’t be a parasite.
Origin of the Tools
The tools for removing DRM from ePubs were originally posted at i♥cabbages’ blog. The tools for Kindle/Mobipocket were originally posted at The Dark Reverser’s blog.
They have since been improved by many people, but mostly some_updates, DiapDealer, Apprentice Alf, and Apprentice Harper. While there are many sites that redistribute these tools, the most up-to-date versions of the tools are currently released here.
Other Sources
Anyone trying to sell you ebook DRM removal tools for Adobe Adept ePub and PDFs, Barnes & Noble ePubs, Kindle ebooks, Kobo ebooks, or eReader ebooks has probably just repackaged (an earlier) version of the tools available here.
Hello,
I have the older (1.7) version of the Kindle for PC app, and haven’t had any trouble de-DRMing and converting books with Calibre lately (I like to convert them to PDF to annotate in more pen-friendly programs).
I purchased two of my law school textbooks as ebooks from Amazon. Both added to Calibre and converted to Epub automatically with no problem. One manually converted to PDF with no problem. The other, however, fails to convert to PDF. Both are similar-style textbooks from the same publisher. I have tried fiddling with various output settings, converting from epub and from the azw version, all to no avail.
Note that I was able to convert the Epub file into a PDF via a free online converter, but that doesn’t allow for customizing the output the way Calibre does.
Here is the error message I receive when attempting to convert the Epub into PDF, NOT using heuristic processing (though I tried that a few times):
calibre, version 3.7.0 (win32, embedded-python: True)
Conversion error: Failed: Convert book 1 of 1 (Criminal Law and Its Processes: Cases and Materials (Aspen Casebook Series))
Convert book 1 of 1 (Criminal Law and Its Processes: Cases and Materials (Aspen Casebook Series))
Conversion options changed from defaults:
pdf_mono_family: u’Courier New’
cover: u’C:\Users\bahzew\AppData\Local\Temp\calibre_mtcrpd\uesapj.jpeg’
pdf_mono_font_size: 12
read_metadata_from_opf: u’C:\Users\bahzew\AppData\Local\Temp\calibre_mtcrpd\6ssuh0.opf’
verbose: 2
pdf_serif_family: u’Times New Roman’
page_breaks_before: u”//[name()=’h1′ or name()=’h2′]”
pdf_page_numbers: True
output_profile: ‘generic_eink’
pdf_sans_family: u’MS Shell Dlg 2′
pdf_default_font_size: 12
input_profile: ‘kindle’
Resolved conversion options
calibre version: 3.7.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\bahzew\AppData\Local\Temp\calibre_mtcrpd\uesapj.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.KindleInput object at 0x04CF56B0>,
‘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.GenericEink object at 0x04CF57F0>,
‘page_breaks_before’: u”//[name()=’h1′ or name()=’h2′]”,
‘paper_size’: u’letter’,
‘pdf_add_toc’: False,
‘pdf_default_font_size’: 12,
‘pdf_footer_template’: None,
‘pdf_header_template’: None,
‘pdf_mark_links’: False,
‘pdf_mono_family’: u’Courier New’,
‘pdf_mono_font_size’: 12,
‘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_numbers’: True,
‘pdf_sans_family’: u’MS Shell Dlg 2′,
‘pdf_serif_family’: u’Times New Roman’,
‘pdf_standard_font’: u’serif’,
‘prefer_metadata_cover’: False,
‘preserve_cover_aspect_ratio’: False,
‘pretty_print’: False,
‘pubdate’: None,
‘publisher’: None,
‘rating’: None,
‘read_metadata_from_opf’: u’C:\Users\bahzew\AppData\Local\Temp\calibre_mtcrpd\6ssuh0.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: EPUB Input running
on C:\Users\bahzew\AppData\Local\Temp\calibre_mtcrpd\75os8x.epub
Found HTML cover titlepage.xhtml
Parsing all content…
Parsing text/part0003.html …
Parsing page_styles.css …
Parsing text/part0009_split_002.html …
Parsing stylesheet.css …
Parsing text/part0011_split_002.html …
Parsing text/part0012_split_002.html …
Parsing text/part0016_split_004.html …
Parsing text/part0000.html …
Parsing text/part0017_split_000.html …
Parsing text/part0001.html …
Parsing text/part0020.html …
Parsing text/part0002.html …
Parsing text/part0017_split_001.html …
Parsing text/part0004.html …
Parsing text/part0018_split_000.html …
Parsing text/part0016_split_003.html …
Parsing text/part0016_split_001.html …
Parsing text/part0019_split_001.html …
Parsing text/part0016_split_000.html …
Parsing text/part0011_split_000.html …
Parsing text/part0007.html …
Parsing text/part0015_split_003.html …
Parsing text/part0008.html …
Parsing titlepage.xhtml …
Parsing text/part0015_split_004.html …
Parsing text/part0010_split_001.html …
Parsing text/part0016_split_002.html …
Parsing text/part0011_split_001.html …
Parsing text/part0019_split_000.html …
Parsing text/part0009_split_001.html …
Parsing text/part0011_split_003.html …
Parsing text/part0010_split_000.html …
Parsing text/part0006.html …
Parsing text/part0011_split_004.html …
Parsing text/part0012_split_000.html …
Parsing text/part0012_split_001.html …
Parsing text/part0018_split_002.html …
Parsing text/part0015_split_000.html …
Parsing text/part0009_split_000.html …
Parsing text/part0013_split_000.html …
Parsing text/part0018_split_001.html …
Parsing text/part0021.html …
Parsing text/part0013_split_001.html …
Parsing text/part0015_split_002.html …
Parsing text/part0013_split_002.html …
Parsing text/part0013_split_003.html …
Parsing text/part0014_split_000.html …
Parsing text/part0014_split_001.html …
Parsing text/part0014_split_002.html …
Parsing text/part0022.html …
Parsing text/part0005.html …
Parsing text/part0015_split_001.html …
Reading TOC from NCX…
Merging user specified metadata…
Detecting structure…
Flattening CSS and remapping font sizes…
Source base font size is 16.00000pt
Removing fake margins…
Found 12642 items of level: p_2
Found 1414 items of level: p_3
Found 80 items of level: p_4
Found 17 items of level: p_5
Found 7 items of level: div_4
Found 32 items of level: div_3
Found 803 items of level: div_2
Found 49 items of level: div_1
Ignoring level div_4
Ignoring level p_5
Negative text indent detected at level p_2, ignoring this level
Negative text indent detected at level p_3, ignoring this level
Negative text indent detected at level p_4, ignoring this level
div_3 left margin stats: Counter({u”: 32})
div_3 right margin stats: Counter({u’0′: 32})
div_2 left margin stats: Counter({u”: 53, u’0′: 1})
div_2 right margin stats: Counter({u’0′: 30, u’2em’: 24})
div_1 left margin stats: Counter({u”: 45, u’0′: 2})
div_1 right margin stats: Counter({u”: 45, u’0′: 2})
Cleaning up manifest…
Trimming unused files from manifest…
Trimming u’titlepage.xhtml’ from manifest
Creating PDF Output…
Splitting markup on page breaks and flow limits, if any…
Converting input as a text based book…
Serializing oeb input to disk for processing…
The cover image has an id != “cover”. Renaming to work around bug in Nook Color
Rendering pages to PDF…
Processing C:\Users\bahzew\AppData\Local\Temp\calibre_mtcrpd\ecr1fl_pdf_out\text\part0000.html…
Loading font: family_name=Times New Roman full_name=Times New Roman postscript_name=TimesNewRomanPSMT subfamily_name=Regular
Loading font: family_name=Times New Roman full_name=Times New Roman Bold postscript_name=TimesNewRomanPS-BoldMT subfamily_name=Bold
Processing C:\Users\bahzew\AppData\Local\Temp\calibre_mtcrpd\ecr1fl_pdf_out\text\part0001.html…
Processing C:\Users\bahzew\AppData\Local\Temp\calibre_mtcrpd\ecr1fl_pdf_out\text\part0002.html…
Processing C:\Users\bahzew\AppData\Local\Temp\calibre_mtcrpd\ecr1fl_pdf_out\text\part0003.html…
Processing C:\Users\bahzew\AppData\Local\Temp\calibre_mtcrpd\ecr1fl_pdf_out\text\part0004.html…
Processing C:\Users\bahzew\AppData\Local\Temp\calibre_mtcrpd\ecr1fl_pdf_out\text\part0005.html…
Processing C:\Users\bahzew\AppData\Local\Temp\calibre_mtcrpd\ecr1fl_pdf_out\text\part0006.html…
Loading font: family_name=Times New Roman full_name=Times New Roman Italic postscript_name=TimesNewRomanPS-ItalicMT subfamily_name=Italic
Processing C:\Users\bahzew\AppData\Local\Temp\calibre_mtcrpd\ecr1fl_pdf_out\text\part0007.html…
Processing C:\Users\bahzew\AppData\Local\Temp\calibre_mtcrpd\ecr1fl_pdf_out\text\part0008.html…
Processing C:\Users\bahzew\AppData\Local\Temp\calibre_mtcrpd\ecr1fl_pdf_out\text\part0009_split_000.html…
Loading font: family_name=Times New Roman full_name=Times New Roman Bold Italic postscript_name=TimesNewRomanPS-BoldItalicMT subfamily_name=Bold Italic
Processing C:\Users\bahzew\AppData\Local\Temp\calibre_mtcrpd\ecr1fl_pdf_out\text\part0009_split_001.html…
Processing C:\Users\bahzew\AppData\Local\Temp\calibre_mtcrpd\ecr1fl_pdf_out\text\part0009_split_002.html…
Processing C:\Users\bahzew\AppData\Local\Temp\calibre_mtcrpd\ecr1fl_pdf_out\text\part0010_split_000.html…
Processing C:\Users\bahzew\AppData\Local\Temp\calibre_mtcrpd\ecr1fl_pdf_out\text\part0010_split_001.html…
Processing C:\Users\bahzew\AppData\Local\Temp\calibre_mtcrpd\ecr1fl_pdf_out\text\part0011_split_000.html…
Processing C:\Users\bahzew\AppData\Local\Temp\calibre_mtcrpd\ecr1fl_pdf_out\text\part0011_split_001.html…
Processing C:\Users\bahzew\AppData\Local\Temp\calibre_mtcrpd\ecr1fl_pdf_out\text\part0011_split_002.html…
Processing C:\Users\bahzew\AppData\Local\Temp\calibre_mtcrpd\ecr1fl_pdf_out\text\part0011_split_003.html…
Processing C:\Users\bahzew\AppData\Local\Temp\calibre_mtcrpd\ecr1fl_pdf_out\text\part0011_split_004.html…
Processing C:\Users\bahzew\AppData\Local\Temp\calibre_mtcrpd\ecr1fl_pdf_out\text\part0012_split_000.html…
Processing C:\Users\bahzew\AppData\Local\Temp\calibre_mtcrpd\ecr1fl_pdf_out\text\part0012_split_001.html…
Processing C:\Users\bahzew\AppData\Local\Temp\calibre_mtcrpd\ecr1fl_pdf_out\text\part0012_split_002.html…
Processing C:\Users\bahzew\AppData\Local\Temp\calibre_mtcrpd\ecr1fl_pdf_out\text\part0013_split_000.html…
Processing C:\Users\bahzew\AppData\Local\Temp\calibre_mtcrpd\ecr1fl_pdf_out\text\part0013_split_001.html…
Processing C:\Users\bahzew\AppData\Local\Temp\calibre_mtcrpd\ecr1fl_pdf_out\text\part0013_split_002.html…
Processing C:\Users\bahzew\AppData\Local\Temp\calibre_mtcrpd\ecr1fl_pdf_out\text\part0013_split_003.html…
Processing C:\Users\bahzew\AppData\Local\Temp\calibre_mtcrpd\ecr1fl_pdf_out\text\part0014_split_000.html…
Processing C:\Users\bahzew\AppData\Local\Temp\calibre_mtcrpd\ecr1fl_pdf_out\text\part0014_split_001.html…
Processing C:\Users\bahzew\AppData\Local\Temp\calibre_mtcrpd\ecr1fl_pdf_out\text\part0014_split_002.html…
Processing C:\Users\bahzew\AppData\Local\Temp\calibre_mtcrpd\ecr1fl_pdf_out\text\part0015_split_000.html…
Processing C:\Users\bahzew\AppData\Local\Temp\calibre_mtcrpd\ecr1fl_pdf_out\text\part0015_split_001.html…
Processing C:\Users\bahzew\AppData\Local\Temp\calibre_mtcrpd\ecr1fl_pdf_out\text\part0015_split_002.html…
Processing C:\Users\bahzew\AppData\Local\Temp\calibre_mtcrpd\ecr1fl_pdf_out\text\part0015_split_003.html…
Processing C:\Users\bahzew\AppData\Local\Temp\calibre_mtcrpd\ecr1fl_pdf_out\text\part0015_split_004.html…
Processing C:\Users\bahzew\AppData\Local\Temp\calibre_mtcrpd\ecr1fl_pdf_out\text\part0016_split_000.html…
Processing C:\Users\bahzew\AppData\Local\Temp\calibre_mtcrpd\ecr1fl_pdf_out\text\part0016_split_001.html…
Processing C:\Users\bahzew\AppData\Local\Temp\calibre_mtcrpd\ecr1fl_pdf_out\text\part0016_split_002.html…
Processing C:\Users\bahzew\AppData\Local\Temp\calibre_mtcrpd\ecr1fl_pdf_out\text\part0016_split_003.html…
Processing C:\Users\bahzew\AppData\Local\Temp\calibre_mtcrpd\ecr1fl_pdf_out\text\part0016_split_004.html…
Processing C:\Users\bahzew\AppData\Local\Temp\calibre_mtcrpd\ecr1fl_pdf_out\text\part0017_split_000.html…
Processing C:\Users\bahzew\AppData\Local\Temp\calibre_mtcrpd\ecr1fl_pdf_out\text\part0017_split_001.html…
Processing C:\Users\bahzew\AppData\Local\Temp\calibre_mtcrpd\ecr1fl_pdf_out\text\part0018_split_000.html…
Processing C:\Users\bahzew\AppData\Local\Temp\calibre_mtcrpd\ecr1fl_pdf_out\text\part0018_split_001.html…
Processing C:\Users\bahzew\AppData\Local\Temp\calibre_mtcrpd\ecr1fl_pdf_out\text\part0018_split_002.html…
Processing C:\Users\bahzew\AppData\Local\Temp\calibre_mtcrpd\ecr1fl_pdf_out\text\part0019_split_000.html…
Forgot to say that I am using the latest version of Windows 10. Thank you!
It’s clearly had the DRM removed, so this is probably a question for the calibre developers. You can report a bug at https://calibre-ebook.com/bugs
A couple suggestions: Try calibre 64-bit if possible. If it’s an AZW4 (most textbooks are), try the Kindle Unpack plugin to extract the PDF.
I have downloaded calibre and the lastest plugin. I have followed the instruction but I am unable to convert my AZW3 file to a .pdf and dedrm. it gives me an error saying it has a DRM. Am I doing something wrong? thanks
Are you using the version 1.17 of the Kindle for PC/Mac software? If not. delete all NEWER versions of the “Kindle for” software. Download and reinstall the 1.17 software (Laura has the link). Delete Kindle books downloaded with the newer version(s) software and re-download them. Delete problem books from Calibre and then import the re-downloaded books.
AD, I found Laura’s link info. Quote:
Laura says:
August 20, 2017 at 3:11 am
If you are using something more recent than Kindle for PC 1.17, see the FAQs here:
https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md#a-recent-change-to-kindle-for-pckindle-for-mac
End Quote
If it’s from or for an E-ink Kindle (not a Fire), then you need to enter its serial number into the plugin customization.
I used the calibre plug in on Windows 10 and have been unable to remove the DRM from my nook books.
The error message I receive when I open the books is “This book is locked by DRM”
Below is the debug log:
calibre Debug log
calibre 3.7 embedded-python: True is64bit: False
Windows-7-6.1.7601-SP1 Windows (’32bit’, ‘WindowsPE’)
32bit process running on 64bit windows
(‘Windows’, ‘7’, ‘6.1.7601’)
Python 2.7.12+
Windows: (‘7’, ‘6.1.7601’, ‘SP1′, u’Multiprocessor Free’)
Interface language: None
Successfully initialized third party plugins: DeDRM (6, 5, 4) && Obok DeDRM (6, 5, 4)
calibre 3.7 embedded-python: True is64bit: False
Windows-7-6.1.7601-SP1 Windows (’32bit’, ‘WindowsPE’)
32bit process running on 64bit windows
(‘Windows’, ‘7’, ‘6.1.7601’)
Python 2.7.12+
Windows: (‘7’, ‘6.1.7601’, ‘SP1′, u’Multiprocessor Free’)
Interface language: None
Successfully initialized third party plugins: DeDRM (6, 5, 4) && Obok DeDRM (6, 5, 4)
Turning on automatic hidpi scaling
devicePixelRatio: 1.0
logicalDpi: 96.0 x 96.0
physicalDpi: 71.9842323651 x 71.9822878229
Using calibre Qt style: True
Starting up…
DEBUG: 0.0 obok::utilities.py – loading translations
DEBUG: 0.0 obok::dialogs.py – loading translations
DEBUG: 0.0 obok::config.py – loading translations
DEBUG: 0.0 obok::action_err.py – loading translations
Started up in 18.72 seconds with 1 books
stdout+stderr from file dialog helper: [”, ”]
piped data from file dialog helper: [‘\xba/|>o\xee\xb7\x1f\x1106\x82\x18\x02\x1aA\xb2\xfb-\xbc\xc0\xef\x9c\xa9r\xe2\xfa\x06\x0b\xcd\xdd\xe3’, ‘C:\Users\rc89829\Documents\My Barnes & Noble eBooks\blaraytx@aol.com\aclashofkingsasongof_9780553897852.epub’]
DeDRM v6.5.4: Trying to decrypt aclashofkingsasongof_9780553897852.epub
DeDRM v6.5.4: Verifying zip archive integrity
DeDRM v6.5.4: “aclashofkingsasongof_9780553897852.epub” is a secure Barnes & Noble ePub
DeDRM v6.5.4: Looking for new NOOK Study Keys after 0.1 seconds
No nook Study log files have been found.
DeDRM v6.5.4: Ultimately failed to decrypt after 0.1 seconds.
Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
Running file type plugin DeDRM failed with traceback:
Traceback (most recent call last):
File “site-packages\calibre\customize\ui.py”, line 171, in _run_filetype_plugins
File “calibre_plugins.dedrm.init“, line 622, in run
File “calibre_plugins.dedrm.init“, line 293, in ePubDecrypt
DeDRMError: DeDRM v6.5.4: Ultimately failed to decrypt after 0.1 seconds.
Added 0 books in 0.7 seconds
Enter your B&N account email and password into the plugin configuration.
I am unable to decrypt a rental. Mac..Kindle ver 1.17.1
There is 1 ebook to be decrypted.
Processing file: B007NWFNDW_EBOK.azw
shellcommand: /usr/bin/python ‘/private/var/folders/75/hpcln8ps63zdql42vwpt8rn80000gn/T/AppTranslocation/BD6746A1-9C95-4F01-B600-6FED93DD8BF6/d/DeDRM.app/Contents/Resources/k4mobidedrm.py’ ‘/Users/howardschneider/Downloads/My Kindle Content/B007NWFNDW_EBOK.azw’ ‘/Users/howardschneider/Desktop/’ > ‘/Users/howardschneider/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
shellresult: Using Library AlfCrypto DLL/DYLIB/SO
K4MobiDeDrm v5.4.
Copyright © 2008-2013 The Dark Reverser et al.
MobiDeDrm v0.41.
Copyright © 2008-2012 The Dark Reverser et al.
MOBI header version 4, header length 232
Decrypting Mobipocket 4 ebook: The Wandering Heretics of Languedoc (Cambridge Studies in Medieval Life and Thought: Fourth Series)
Found 0 keys to try after 0.0 seconds
Crypto Type is: 2
Error decrypting book after 0.0 seconds: Cannot decode library or rented ebooks.
Traceback (most recent call last):
File “/private/var/folders/75/hpcln8ps63zdql42vwpt8rn80000gn/T/AppTranslocation/BD6746A1-9C95-4F01-B600-6FED93DD8BF6/d/DeDRM.app/Contents/Resources/k4mobidedrm.py”, line 254, in decryptBook
book = GetDecryptedBook(infile, kDatabases, androidFiles, serials, pids, starttime)
File “/private/var/folders/75/hpcln8ps63zdql42vwpt8rn80000gn/T/AppTranslocation/BD6746A1-9C95-4F01-B600-6FED93DD8BF6/d/DeDRM.app/Contents/Resources/k4mobidedrm.py”, line 228, in GetDecryptedBook
mb.processBook(totalpids)
File “/private/var/folders/75/hpcln8ps63zdql42vwpt8rn80000gn/T/AppTranslocation/BD6746A1-9C95-4F01-B600-6FED93DD8BF6/d/DeDRM.app/Contents/Resources/mobidedrm.py”, line 441, in processBook
raise DrmException(u”Cannot decode library or rented ebooks.”)
DrmException: Cannot decode library or rented ebooks.
shellcommand: /usr/bin/python ‘/private/var/folders/75/hpcln8ps63zdql42vwpt8rn80000gn/T/AppTranslocation/BD6746A1-9C95-4F01-B600-6FED93DD8BF6/d/DeDRM.app/Contents/Resources/kindlekey.py’ ‘/Users/howardschneider/Library/Preferences/com.apprenticealf.dedrm/newKeys/’ > ‘/Users/howardschneider/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
shellresult: kindlekey.py v2.3
Copyright © 2010-2016 by some_updates, Apprentice Alf and Apprentice Harper
Found k4Mac kinf2011 file: /Users/howardschneider/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2011
Found k4Mac kinf2011 file: /Users/howardschneider/Library/Application Support/Kindle/storage/.kinf2011
Decrypted key file using IDString ‘092206f78484’ and UserName ‘howardschneider’
Decrypted key file using IDString ‘092206f78484’ and UserName ‘howardschneider’
Saved a key to /Users/howardschneider/Library/Preferences/com.apprenticealf.dedrm/newKeys/kindlekey1.k4i
Saved a key to /Users/howardschneider/Library/Preferences/com.apprenticealf.dedrm/newKeys/kindlekey2.k4i
shellcommand: /usr/bin/python ‘/private/var/folders/75/hpcln8ps63zdql42vwpt8rn80000gn/T/AppTranslocation/BD6746A1-9C95-4F01-B600-6FED93DD8BF6/d/DeDRM.app/Contents/Resources/k4mobidedrm.py’ -k ‘/Users/howardschneider/Library/Preferences/com.apprenticealf.dedrm/KindleKey 3.der’ -k ‘/Users/howardschneider/Library/Preferences/com.apprenticealf.dedrm/KindleKey 4.der’ ‘/Users/howardschneider/Downloads/My Kindle Content/B007NWFNDW_EBOK.azw’ ‘/Users/howardschneider/Desktop/’ > ‘/Users/howardschneider/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
shellresult: Using Library AlfCrypto DLL/DYLIB/SO
K4MobiDeDrm v5.4.
Copyright © 2008-2013 The Dark Reverser et al.
MobiDeDrm v0.41.
Copyright © 2008-2012 The Dark Reverser et al.
MOBI header version 4, header length 232
Decrypting Mobipocket 4 ebook: The Wandering Heretics of Languedoc (Cambridge Studies in Medieval Life and Thought: Fourth Series)
Found 8 keys to try after 0.0 seconds
Crypto Type is: 2
Error decrypting book after 0.0 seconds: Cannot decode library or rented ebooks.
Traceback (most recent call last):
File “/private/var/folders/75/hpcln8ps63zdql42vwpt8rn80000gn/T/AppTranslocation/BD6746A1-9C95-4F01-B600-6FED93DD8BF6/d/DeDRM.app/Contents/Resources/k4mobidedrm.py”, line 254, in decryptBook
book = GetDecryptedBook(infile, kDatabases, androidFiles, serials, pids, starttime)
File “/private/var/folders/75/hpcln8ps63zdql42vwpt8rn80000gn/T/AppTranslocation/BD6746A1-9C95-4F01-B600-6FED93DD8BF6/d/DeDRM.app/Contents/Resources/k4mobidedrm.py”, line 228, in GetDecryptedBook
mb.processBook(totalpids)
File “/private/var/folders/75/hpcln8ps63zdql42vwpt8rn80000gn/T/AppTranslocation/BD6746A1-9C95-4F01-B600-6FED93DD8BF6/d/DeDRM.app/Contents/Resources/mobidedrm.py”, line 441, in processBook
raise DrmException(u”Cannot decode library or rented ebooks.”)
DrmException: Cannot decode library or rented ebooks.
There was an error with 1 ebook:
B007NWFNDW_EBOK.azw couldn’t be decrypted.
https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md#so-how-can-i-remove-drm-from-my-ebooks
Working as expected then.
I just bought an ebook from Amazon and I can’t get it to convert. I’m running Windows 7 and I’m using Kindle version 1.17. I’m using the latest version of Calibre and version DeDRM version 6.5.4. Here’s the log I get from Calibre: calibre Debug log
calibre 3.7 embedded-python: True is64bit: False
Windows-7-6.1.7601-SP1 Windows (’32bit’, ‘WindowsPE’)
32bit process running on 64bit windows
(‘Windows’, ‘7’, ‘6.1.7601’)
Python 2.7.12+
Windows: (‘7’, ‘6.1.7601’, ‘SP1′, u’Multiprocessor Free’)
Interface language: None
Successfully initialized third party plugins: DeDRM (6, 5, 4) && Kindle and Mobipocket DeDRM (0, 4, 17) && Inept Epub DeDRM (0, 1, 7)
calibre 3.7 embedded-python: True is64bit: False
Windows-7-6.1.7601-SP1 Windows (’32bit’, ‘WindowsPE’)
32bit process running on 64bit windows
(‘Windows’, ‘7’, ‘6.1.7601’)
Python 2.7.12+
Windows: (‘7’, ‘6.1.7601’, ‘SP1′, u’Multiprocessor Free’)
Interface language: None
Successfully initialized third party plugins: DeDRM (6, 5, 4) && Kindle and Mobipocket DeDRM (0, 4, 17) && Inept Epub DeDRM (0, 1, 7)
Turning on automatic hidpi scaling
devicePixelRatio: 2.0
logicalDpi: 72.0 x 72.0
physicalDpi: 36.0177252585 x 36.0
Using calibre Qt style: True
Starting up…
Started up in 22.24 seconds with 0 books
stdout+stderr from file dialog helper: [”, ”]
piped data from file dialog helper: [‘\xc6\xa5_\xd8\x91G\xfbL\xcf\xfd\xb3]\xe5\x917\x17\xa8\xf3\x17\xe7\xcco#P\xc5Ab\xd7]\xfb\x9a\x88’, ‘C:\Users\pc\Documents\My Kindle Content\B010KN4VJW_EBOK.azw’]
DeDRM v6.5.4: Trying to decrypt B010KN4VJW_EBOK.azw
Using Library AlfCrypto Python
MobiDeDrm v0.41.
Copyright © 2008-2012 The Dark Reverser et al.
MOBI header version 8, header length 264
Extra Data Flags: 3
Decrypting Kindle Format 8 ebook: Excuse Me, Professor: Challenging the Myths of Progressivism
Found 2 keys to try after 0.1 seconds
Crypto Type is: 2
DeDRM v6.5.4: Failed to decrypt with error: No key found in 2 keys tried.
DeDRM v6.5.4: Looking for new default Kindle Key after 0.1 seconds
searching for kinfoFiles in C:\Users\pc\AppData\Local
Found K4PC 1.9+ kinf2011 file: C:\Users\pc\AppData\Local\Amazon\Kindle\storage.kinf2011
Decrypted key file using IDString ‘3232302968’ and UserName ‘7063’
DeDRM v6.5.4: 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: Excuse Me, Professor: Challenging the Myths of Progressivism
Found 4 keys to try after 0.2 seconds
Crypto Type is: 2
DeDRM v6.5.4: Ultimately failed to decrypt after 0.2 seconds.
Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
Running file type plugin DeDRM failed with traceback:
Traceback (most recent call last):
File “site-packages\calibre\customize\ui.py”, line 171, in _run_filetype_plugins
File “calibre_plugins.dedrm.init“, line 611, in run
File “calibre_plugins.dedrm.init“, line 561, in KindleMobiDecrypt
DeDRMError: DeDRM v6.5.4: Ultimately failed to decrypt after 0.2 seconds
Added Excuse Me, Professor: Challenging the Myths of Progressivism to db in: 2.0
Added 1 books in 2.7 seconds
Try completely uninstalling and reinstalling Kindle for PC. See the FAQs here: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md#i-have-installed-the-calibre-plugin-and-the-book-is-not-already-in-calibre-but-the-drm-does-not-get-removed-it-is-a-kindle-book
(You can remove the old single file-type DeDRM plugins.)
Thank you, Laura. It works great now.
Hello, hoping somebody can help me figure this out. I’m running the most recent Calibre and DeDRM 6.5.4 with an amazon ebook I downloaded using Kindle for PC version 1.17.1 (44183). The file downloads as a .azw4. I’ve tried uninstalling everything following the apprentice alf tutorials here, but the program gets stuck at the very start of loading the book. The “Adding books…” progress bar appears, but never goes beyond “Reading metadata and adding to library (one book)…” and stays at 0%. I can’t tell for sure as this is all new to me, but it seems like the log is showing that DeDRM isn’t finding a key to decrypt the file. Is there something that I’m missing? Or might it just take a lot longer than I’m expecting it to. Should I just leave it running for a while and see what happens? Here’s my log:
calibre Debug log
calibre 3.7 embedded-python: True is64bit: False
Windows-7-6.1.7601-SP1 Windows (’32bit’, ‘WindowsPE’)
32bit process running on 64bit windows
(‘Windows’, ‘7’, ‘6.1.7601’)
Python 2.7.12+
Windows: (‘7’, ‘6.1.7601’, ‘SP1′, u’Multiprocessor Free’)
Interface language: None
Successfully initialized third party plugins: DeDRM (6, 5, 4) && Obok DeDRM (6, 5, 4)
calibre 3.7 embedded-python: True is64bit: False
Windows-7-6.1.7601-SP1 Windows (’32bit’, ‘WindowsPE’)
32bit process running on 64bit windows
(‘Windows’, ‘7’, ‘6.1.7601’)
Python 2.7.12+
Windows: (‘7’, ‘6.1.7601’, ‘SP1′, u’Multiprocessor Free’)
Interface language: None
Successfully initialized third party plugins: DeDRM (6, 5, 4) && Obok DeDRM (6, 5, 4)
Turning on automatic hidpi scaling
devicePixelRatio: 1.0
logicalDpi: 96.0 x 96.0
physicalDpi: 72.0567375887 x 71.8867924528
Using calibre Qt style: True
Starting up…
DEBUG: 0.0 obok::utilities.py – loading translations
DEBUG: 0.0 obok::dialogs.py – loading translations
DEBUG: 0.0 obok::config.py – loading translations
DEBUG: 0.0 obok::action_err.py – loading translations
Started up in 7.69 seconds with 0 books
DeDRM v6.5.4: Trying to decrypt B01AAYZWP8_EBOK.azw4
Using Library AlfCrypto Python
MobiDeDrm v0.41.
Copyright © 2008-2012 The Dark Reverser et al.
MOBI header version 4, header length 264
Decrypting Mobipocket 4 ebook: Fundamentals of Thermal-Fluid Sciences
Found 0 keys to try after 0.3 seconds
Crypto Type is: 2
DeDRM v6.5.4: Failed to decrypt with error: No key found in 0 keys tried.
DeDRM v6.5.4: Looking for new default Kindle Key after 0.3 seconds
searching for kinfoFiles in C:\Users\Loque\AppData\Local
Found K4PC 1.9+ kinf2011 file: C:\Users\Loque\AppData\Local\Amazon\Kindle\storage.kinf2011
Decrypted key file using IDString ‘439268100’ and UserName ‘4c6f717565’
DeDRM v6.5.4: 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: Fundamentals of Thermal-Fluid Sciences
Found 4 keys to try after 0.6 seconds
Crypto Type is: 2
File is encoded with PID /9eixDclH5.
Decrypting. Please wait . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Haha disregard this. I left it running while I wrote up this post and it actually finished uploading the book a few minutes after I submitted lol. Worked like a charm!
Next time try using 64-bit calibre.
Thank you for this! I just needed to be able to read a particular book where I needed it – this worked great.
I’m having trouble with Calibre and the DeDRM plugin since I changed to Linux (Manjaro). I’m using an old version of PC Kindle under Wine, and it works just fine. There is also a Calibre for Linux, so apparently no problem in that front, either.
The problem comes once I install the DeDRM plugin in Calibre and add an encoded book: Wine is triggered (I thought that the plugin was written in Python?), and the decodification fails due to an obscure error.
There are other tools, bot no one seems to work correctly. For example, I used mobidedrm, but the problem is that its companion tool kindelpid is unable to create the correct pid from my Paperwhite serial number.
Any help or idea?
To use books from Kindle for PC, temporarily install calibre and the plugin under Wine. Add a book, save your key, and import that key into your Linux calibre.
To use books from your Paperwhite, add its serial number into the plugin customization. (You may need to download them from the website to avoid KFX format.)
I’ve been able to solve the problem by installing Calibre under Wine as well. It is a bit sluggish, however. What do yu mean with: “To use books from Kindle for PC, temporarily install calibre and the plugin under Wine. Add a book, save your key, and import that key into your Linux calibre.”? Where is the key? How do I import it into Calibre? Regards, Baltasar
Look in the plugin preferences.
I have had no success using the Kindle app from within wine. The problem that I am seeing is that I cannot seem to find the correct location of the Kindle for PC keys so that the plugin can successfully strip the DRM. My workaround has been to boot into Windows 10, download my books, import them into Calibre whilst in Win, and then once I am booted back into Linux, import from my Windows Calibre folder.
Using the plug in and the proper version of Kindle PC I was able to import a few books that came in as AZW3 then it started importing them as AZW’s. I double checked to make sure it hadn’t updated the Kindle App. Any Idea what’s going on here? Calibre says I still have a DRM File.
Thanks.
The successful imports were already DRM-free, maybe? Or the unsuccessful ones are rentals? Post a log.
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
I should add… The successful imports worked great. There are just some that won’t import properly at all.
I used to be able to use these tools so easily, for the past year I have been stuck with these errors:
$ calibre-debug -g
calibre 3.1.1 embedded-python: False is64bit: True
Linux-4.12.11-300.fc26.x86_64-x86_64-with-fedora-26-Twenty_Six Linux (’64bit’, ”)
(‘Linux’, ‘4.12.11-300.fc26.x86_64’, ‘#1 SMP Thu Sep 7 18:32:12 UTC 2017’)
Python 2.7.13
Linux: (‘Fedora’, ’26’, ‘Twenty Six’)
Interface language: None
Successfully initialized third party plugins: DeDRM (6, 5, 4)
Turning on automatic hidpi scaling
devicePixelRatio: 2.0
logicalDpi: 96.0 x 96.0
physicalDpi: 131.096774194 x 134.470588235
Using calibre Qt style: True
Starting up…
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
Started up in 1.32 seconds with 9 books
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
DeDRM v6.5.4: Trying to decrypt Programming_in_Haskell.pdf
DeDRM v6.5.4: Programming_in_Haskell.pdf is a PDF ebook
DeDRM v6.5.4: Trying Encryption key default_key
DeDRM v6.5.4: Exception when decrypting after 0.2 seconds
Traceback (most recent call last):
File “calibre_plugins.dedrm.init“, line 414, 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 1610, in initialize_ebx
error: Error -5 while decompressing data: incomplete or truncated stream
DeDRM v6.5.4: Failed to decrypt with key default_key after 0.2 seconds
DeDRM v6.5.4: Looking for new default Adobe Digital Editions Keys after 0.2 seconds
DeDRM v6.5.4: Running adobekey.py under Wine
DeDRM v6.5.4: Command line: ‘WINEPREFIX=”/home/kxra/.wine” wine python.exe “/home/kxra/.config/calibre/plugins/DeDRM/libraryfiles/adobekey.py” “/home/kxra/.config/calibre/plugins/DeDRM/libraryfiles/winekeysdir”‘
adobekey.py v6.0
Copyright ? 2009-2013 i?cabbages and Apprentice Alf
Found 1 keys
Saved a key to Z:\home\kxra.config\calibre\plugins\DeDRM\libraryfiles\winekeysdir\adobekey_1.der
DeDRM v6.5.4: Found and decrypted 1 key file
DeDRM v6.5.4: 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 “/usr/lib64/calibre/calibre/customize/ui.py”, line 170, in _run_filetype_plugins
nfp = plugin.run(nfp) or nfp
File “calibre_plugins.dedrm.init“, line 618, in run
File “calibre_plugins.dedrm.init“, line 493, in PDFDecrypt
DeDRMError: DeDRM v6.5.4: Ultimately failed to decrypt after 0.5 seconds.
Syntax Error: Couldn’t find the ‘EBX_HANDLER’ security handler
pdfinfo errored out with return code: 1
Traceback (most recent call last):
File “/usr/lib64/calibre/calibre/customize/ui.py”, line 416, in get_file_type_metadata
mi = plugin.get_metadata(stream, ftype.lower().strip())
File “/usr/lib64/calibre/calibre/customize/builtins.py”, line 342, in get_metadata
return get_metadata(stream)
File “/usr/lib64/calibre/calibre/ebooks/metadata/pdf.py”, line 115, in get_metadata
raise ValueError(‘Could not read info dict from PDF’)
ValueError: Could not read info dict from PDF
Added Programming in Haskell to db in: 0.2
Added 1 books in 1.3 seconds
What version of ADE are you using to download the books? Are you using the same Adobe ID as before you had issues?
Version 1.7 as listed in the instructions and same adobe ID I’ve always had. I have to enter my wineprefix “.wine” manually, but after that I can hit the green plus sign to add the default key. Installed the python tools successfully as well
I recall people having issues with 1.7 and EPUBs. Could be a similar issue with PDFs. I’d try using ADE 2.0.1 if possible. I don’t think it works under Wine, but maybe you have access to a Windows machine. Sorry if that’s not much help. Hopefully someone who has it working in Linux will have a better answer.
I’ve been able to solve the problem by installing Calibre under Wine as well. It is a bit sluggish, however. What do yu mean with: “To use books from Kindle for PC, temporarily install calibre and the plugin under Wine. Add a book, save your key, and import that key into your Linux calibre.”? Where is the key? How do I import it into Calibre? Regards, Baltasar
If you’ve successfully DeDRMed a book from Kindle for PC with the plugin in calibre under wine, then go into the plugin customization Kindle for PC section. You’ll see a default key listed there and a save button. This will create a .k4i file which you can import into the plugin in your Linux calibre. It will only work for books from that particular installation of Kindle for PC.
Thank you! Now it completely works for me, only Kindle for PC in Wine.
calibre Registro de depuración
calibre 2.41 isfrozen: True is64bit: False
Windows-7-6.1.7601-SP1 Windows (’32bit’, ‘WindowsPE’)
32bit process running on 64bit windows
(‘Windows’, ‘7’, ‘6.1.7601’)
Python 2.7.9
Windows: (‘7’, ‘6.1.7601’, ‘SP1’, ‘Multiprocessor Free’)
Successfully initialized third party plugins: DeDRM
Starting up…
Started up in 11.15 seconds with 4 books
Debugging DND event
application/x-qt-windows-mime;value=”Shell IDList Array” 5712 ‘\x02\x00\x00\x00\x10\x00\x00\x00H\x08\x00\x00\xfa\x0e\x00\x00\x14\x00\x1fB%H\x1e\x03\x94{\xc3M\xb11\xe9F\xb4L\x8d\xd5 \x00\x00\x00\x1a\x00\xee\xbb\xfe#\x00\x00\x10\x00}\xb1\r{\xd2\x9c\x93J\x973F\xcc\x89\x02.|\x00\x00\x94\x03\x00\x00\x8e\x03\x81\x19\x14\x10d\x03 \x00\x00\x00\x00
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x9d\x00\x00\x001SPS0\xf1%\xb7\xefG\x1a\x10\xa5\xf1\x02
\x8c\x9e\xeb\xac1\x00\x00\x00\n\x00\x00\x00\x00\x1f\x00\x00\x00\x0f\x00\x00\x00M\x00i\x00s\x00 \x00d\x00o\x00c\x00u\x00m\x00e\x00n\x00t\x00o\x00s\x00\x00\x00\x00\x00\x15\x00\x00\x00\x0f\x00\x00\x00\x00@\x00\x00\x00\x00\xd2\xade\xa6\x97\xd0\x01\x11\x00\x00\x00\r\x00\x00\x00\x00\x13\x00\x00\x00\x11\x00\x00\x00\x15\x00\x00\x00\x0e\x00\x00\x00\x00@\x00\x00\x00\x00\xdd\x8fr\x18.\xd3\x01\x15\x00\x00\x00\x10\x00\x00\x00\x00@\x00\x00\x00\x00\xdd\x8fr\x18.\xd3\x01\x00\x00\x00\x001\x00\x00\x001SPS\xb1\x16mD\xad\x8dpH\xa7H@.\xa4=x\x8c\x15\x00\x00\x00d’application/x-qt-windows-mime;value=”UsingDefaultDragImage” 4 ‘\x01\x00\x00\x00’
application/x-qt-windows-mime;value=”DragImageBits” 36896 ‘
\x00\x00\x00
\x00\x00\x000\x00\x00\x00Y\x00\x00\x00\x07\x1f\x05\x1e\x00\x00\x00\x00\xff\xff\xff\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00′application/x-qt-windows-mime;value=”DragContext” 16 ‘\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00’
application/x-qt-windows-mime;value=”DragSourceHelperFlags” 4 ‘\x01\x00\x00\x00’
application/x-qt-windows-mime;value=”InShellDragLoop” 4 ‘\x01\x00\x00\x00’
text/uri-list 287 ‘file:///C:/Users/XXXXXXXXX/Documents/My%20Digital%20Editions/Metalibro.%20Manual%20del%20libro%20en%20la%20imprenta%20.epub\r\nfile:///C:/Users/Editorial/Documents/My%20Digital%20Editions/De%20la%20investigaci%C3%B3n%20al%20Libro.%20Estudios%20y%20cr%C3%B3nicas%20de%20la%20bibliofi.epub\r\n’
application/x-qt-windows-mime;value=”FileName” 49 ‘C:\Users\EDITOR~1\DOCUME~1\MYDIGI~1\METALI~1.EPU\x00’
application/x-qt-windows-mime;value=”FileNameW” 196 ‘C\x00:\x00\\x00U\x00s\x00e\x00r\x00s\x00\\x00E\x00d\x00i\x00t\x00o\x00r\x00i\x00a\x00l\x00\\x00D\x00o\x00c\x00u\x00m\x00e\x00n\x00t\x00s\x00\\x00M\x00y\x00 \x00D\x00i\x00g\x00i\x00t\x00a\x00l\x00 \x00E\x00d\x00i\x00t\x00i\x00o\x00n\x00s\x00\\x00M\x00e\x00t\x00a\x00l\x00i\x00b\x00r\x00o\x00.\x00 \x00M\x00a\x00n\x00u\x00a\x00l\x00 \x00d\x00e\x00l\x00 \x00l\x00i\x00b\x00r\x00o\x00 \x00e\x00n\x00 \x00l\x00a\x00 \x00i\x00m\x00p\x00r\x00e\x00n\x00t\x00a\x00 \x00.\x00e\x00p\x00u\x00b\x00\x00\x00’
Firefox rurl: None None
URLS: [‘file:///C:/Users/XXXXXXXXXXX/Documents/My%20Digital%20Editions/Metalibro.%20Manual%20del%20libro%20en%20la%20imprenta%20.epub’, ‘file:///C:/Users/XXXXXXXX/Documents/My%20Digital%20Editions/De%20la%20investigaci%C3%B3n%20al%20Libro.%20Estudios%20y%20cr%C3%B3nicas%20de%20la%20bibliofi.epub’]
Paths: [u’C:/Users/XXXXXXXX/Documents/My Digital Editions/Metalibro. Manual del libro en la imprenta .epub’, u’C:/Users/XXXXXX/Documents/My Digital Editions/De la investigaci\xf3n al Libro. Estudios y cr\xf3nicas de la bibliofi.epub’]
Extensions: frozenset([u’epub’])
DeDRM v6.5.4: Trying to decrypt Metalibro. Manual del libro en la imprenta .epub
DeDRM v6.5.4: Verifying zip archive integrity
DeDRM v6.5.4: Metalibro. Manual del libro en la imprenta .epub is a secure Adobe Adept ePub
DeDRM v6.5.4: Trying Encryption key default_key
DeDRM v6.5.4: Trying to decrypt De la investigación al Libro. Estudios y crónicas de la bibliofi.epub
DeDRM v6.5.4: Verifying zip archive integrity
DeDRM v6.5.4: De la investigación al Libro. Estudios y crónicas de la bibliofi.epub is a secure Adobe Adept ePub
DeDRM v6.5.4: Trying Encryption key default_key
DeDRM v6.5.4: Decrypted with key default_key after 0.6 seconds
DeDRM v6.5.4: Finished after 0.6 seconds
DeDRM v6.5.4: Decrypted with key default_key after 0.2 seconds
DeDRM v6.5.4: Finished after 0.2 seconds
C:\Program Files (x86)\Calibre2\pylib.zip\dateutil\parser.py:339: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode – interpreting them as being unequal
C:\Program Files (x86)\Calibre2\pylib.zip\dateutil\parser.py:339: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode – interpreting them as being unequal
Added De la investigación al Libro. Estudios y crónicas de la bibliofilia to db in: 0.2
Added Metalibro. Manual del libro en la imprenta to db in: 0.1
Added 2 books in 1.6 seconds
It looks like it worked to me. What’s the problem?
calibre Debug log
calibre 3.7 embedded-python: True is64bit: False
Windows-10-10.0.15063-SP0 Windows (’32bit’, ‘WindowsPE’)
32bit process running on 64bit windows
(‘Windows’, ’10’, ‘10.0.15063’)
Python 2.7.12+
Windows: (’10’, ‘10.0.15063’, ‘SP0′, u’Multiprocessor Free’)
Interface language: None
Successfully initialized third party plugins: DeDRM (6, 5, 4)
calibre 3.7 embedded-python: True is64bit: False
Windows-10-10.0.15063-SP0 Windows (’32bit’, ‘WindowsPE’)
32bit process running on 64bit windows
(‘Windows’, ’10’, ‘10.0.15063’)
Python 2.7.12+
Windows: (’10’, ‘10.0.15063’, ‘SP0′, u’Multiprocessor Free’)
Interface language: None
Successfully initialized third party plugins: DeDRM (6, 5, 4)
Turning on automatic hidpi scaling
devicePixelRatio: 1.0
logicalDpi: 120.0 x 120.0
physicalDpi: 140.947976879 x 141.402061856
Using calibre Qt style: True
Starting up…
Started up in 12.70 seconds with 44 books
stdout+stderr from file dialog helper: [”, ”]
piped data from file dialog helper: [‘g\x99.i\x0b\xff\xa1\xd9\xe4\xe8\xbeA\xd7C\x9b\x1d>\xfe\xec\x95\x97n(r\xce#\xfa\xf5\x97y q’, ‘C:\Users\casey\Downloads\Catastrophic Crisis.azw3’]
DeDRM v6.5.4: Trying to decrypt Catastrophic Crisis.azw3
Using Library AlfCrypto Python
MobiDeDrm v0.41.
Copyright © 2008-2012 The Dark Reverser et al.
MOBI header version 8, header length 264
Extra Data Flags: 3
Decrypting Kindle Format 8 ebook: Catastrophic Crisis
Found 4 keys to try after 0.1 seconds
Crypto Type is: 2
DeDRM v6.5.4: Failed to decrypt with error: No key found in 4 keys tried.
DeDRM v6.5.4: Looking for new default Kindle Key after 0.1 seconds
searching for kinfoFiles in C:\Users\casey\AppData\Local
Found K4PC 1.9+ kinf2011 file: C:\Users\casey\AppData\Local\Amazon\Kindle\storage.kinf2011
Decrypted key file using IDString ‘3293748819’ and UserName ‘6361736579’
DeDRM v6.5.4: 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: Catastrophic Crisis
Found 4 keys to try after 0.1 seconds
Crypto Type is: 2
DeDRM v6.5.4: Ultimately failed to decrypt after 0.1 seconds.
Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
Running file type plugin DeDRM failed with traceback:
Traceback (most recent call last):
File “site-packages\calibre\customize\ui.py”, line 171, in _run_filetype_plugins
File “calibre_plugins.dedrm.init“, line 611, in run
File “calibre_plugins.dedrm.init“, line 561, in KindleMobiDecrypt
DeDRMError: DeDRM v6.5.4: Ultimately failed to decrypt after 0.1 seconds
Added Catastrophic Crisis to db in: 0.3
Added 1 books in 1.1 seconds
If the book is from or for an E-ink Kindle (not a Fire), then you need to enter its serial number into the plugin customization.
Was unable to remove DRM from my latest book.
copy of my log
There is 1 ebook to be decrypted.
Processing file: Cursed-in-L.azw
shellcommand: /usr/bin/python ‘/Applications/DeDRM.app/Contents/Resources/k4mobidedrm.py’ -s ‘90231702314307EV,G090G10563030D39’ ‘/Users/joanna/Desktop/Cursed-in-L.azw’ ‘/Users/joanna/Desktop/’ > ‘/Users/joanna/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
shellresult: Using Library AlfCrypto DLL/DYLIB/SO
K4MobiDeDrm v5.4.
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: Cursed in Love: A Zodiac Shifters Paranormal Romance: Cancer
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 254, in decryptBook
book = GetDecryptedBook(infile, kDatabases, androidFiles, serials, pids, starttime)
File “/Applications/DeDRM.app/Contents/Resources/k4mobidedrm.py”, line 228, 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.
shellcommand: /usr/bin/python ‘/Applications/DeDRM.app/Contents/Resources/kindlekey.py’ ‘/Users/joanna/Library/Preferences/com.apprenticealf.dedrm/newKeys/’ > ‘/Users/joanna/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
shellresult: kindlekey.py v2.3
Copyright © 2010-2016 by some_updates, Apprentice Alf and Apprentice Harper
Found k4Mac rainier file: /Users/joanna/Library/Application Support/Kindle/storage/.rainier-2.1.1-kinf
Couldn’t decrypt file.
Could not retrieve Kindle for Mac/PC key.
There was an error with 1 ebook:
Cursed-in-L.azw couldn’t be decrypted.
What app or device was the book downloaded to?
it was downloaded to Mac for husbands kindle
it was a purchased book.
So downloaded the book from the website and you choose your husband’s kindle as the device it was for? If that’s an E-ink Kindle (not a Fire), then you need to enter its serial number into the preferences.
Actually I had the serial number in it.
Trouble shooted with Amazon today and used firefox to download book not Safari
and it worked correctly.
Safari is downloading without book extensions for some reason.
Hello i also installed v1.7 as recommended, and the plugin, but still get the DRM error.
C:\Users\admin>calibre-debug -g
calibre 3.7 embedded-python: True is64bit: False
Windows-10-10.0.10586-SP0 Windows (’32bit’, ‘WindowsPE’)
32bit process running on 64bit windows
(‘Windows’, ’10’, ‘10.0.10586’)
Python 2.7.12+
Windows: (’10’, ‘10.0.10586’, ‘SP0′, u’Multiprocessor Free’)
Interface language: None
Successfully initialized third party plugins: DeDRM (6, 5, 4) && Obok DeDRM (6, 5, 4)
Turning on automatic hidpi scaling
devicePixelRatio: 1.0
logicalDpi: 96.0 x 96.0
physicalDpi: 98.5496535797 x 98.4132841328
Using calibre Qt style: True
C:\Users\admin>calibre-debug -g
calibre 3.7 embedded-python: True is64bit: False
Windows-10-10.0.10586-SP0 Windows (’32bit’, ‘WindowsPE’)
32bit process running on 64bit windows
(‘Windows’, ’10’, ‘10.0.10586’)
Python 2.7.12+
Windows: (’10’, ‘10.0.10586’, ‘SP0′, u’Multiprocessor Free’)
Interface language: None
Successfully initialized third party plugins: DeDRM (6, 5, 4) && Obok DeDRM (6, 5, 4)
Turning on automatic hidpi scaling
devicePixelRatio: 1.0
logicalDpi: 96.0 x 96.0
physicalDpi: 98.5496535797 x 98.4132841328
Using calibre Qt style: True
This log doesn’t show any book being added.
I can try again, but what i forgot to mention is that this is an Amazon book rental..
DeDRM doesn’t work on rentals.
I wonder if anyone has come across the following problem – I’ve “dusted” an ePub with Calibre, and I can read it all right with Calibre’s book viewer on my desktop. However no ebook reading app on my iPad or iPhone seems to work: when adding the book it is either not recognised, or I get an error message to the effect that it is encrypted. Any ideas on what could be going wrong? thank you!
If it’s opening in calibre’s ebook viewer, then it’s definitely DRM-free. You could try opening it in calibre’s ebook editor, and check for errors. If any are found, there’s an option to attempt to automatically fix. If that doesn’t do it, then try asking over at the MobileRead forums.
thanks Laura, I’ve tried that and there are no errors – but there is an encryption.xml file in the book: perhaps removing that would fix it? or would it screw it up completely instead?
ok, problem solved – I deleted “encryption.xml”, and that did it! Thanks Laura for suggesting I have a look at editing the file!
Cool! I was going to say give a try and see what happens. 🙂 Turns out that file is the result of embedded fonts which are copyrighted. I guess removing it allows the reading app to fall back on its own fonts.
I successfully installed the DeDRM plugin into Calibre (Manjaro Linux), but after restarting and importing the AZW file the DRM has not been removed. What to do? Calibre’s error details reports “ERROR: DRM”
Getting set up on Linux can be a little tricky. Post a log from importing your book:
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
After a failed attempt to convert Amazon .azw to .pdf I followed the steps below:
– Remove the DRMed book from calibre.
– Click the Preferences drop-down menu and choose ‘Restart in debug mode’.
– Once calibre has re-started, import the problem ebook.
– Now close calibre.
I decide to try the same conversion again after cailbre had restarted in debug mode.
Low and behold, the conversion worked.
Hi
I am on Windows 7 and I’m trying to remove the DRM from a Kindle book I downloaded from Amazon directly to my tablet. I also have the Kindle app on my PC and my book shows there.
I have installed the DRM Removal plugin for Calibre and dragged the Kindle book from “MY Kindle content “ folder into the Calibre main screen, but when I try to convert to EPUB , a message pops up saying that the book is still locked by DRM.
I can’t understand why..
I have uninstalled and reinstalled Calibre and followed your instructions..
The only thing is that under Calibre Preferences there is no option to “Change Calibre behavior” as you said. The plugin is there, however.
I can’t understand why this time it doesn’t work. It used to work in the past .The Kindle book code is BOOTXY9UK0_ebok.prc. For the same book, there are other endings, too (.mbpV2 and .phl, but no .AZW)
Can you help, please?
Thanks
Franco
It won’t work with books from your tablet. You’ll need to download them using Kindle for PC (version1.17 or earlier).
Thanks
I wonder, though. The Kindle book in question (BOOTXY9UK0_ebok.prc) is already in my PC ( “My Kindle content ” folder ). I believe I copied it from the tablet via USB cable or maybe it was there already.
Bottom line, the book file (BOOTXY9UK0_ebok.prc) is in my PC. and its title also shows in the download list of the Kindle for PC app.. Shouldn’t it work ? The book in question has a small blue book icon before the code.
What else should I do to remove the DRM?
Thanks
Franco
One of two things: first, if you want use your E-Ink Kindle, enter its serial number in the DeDRM plug-in settings. Alternately, re-download the book using Kindle for PC 1.17 then import the downloaded book into Calibre.
Thanks, I re-downloaded it and it works!
Franco
I already had the content of two older Kindles (Keyboard and my first Kindle Fire) downloaded on my computer (MAC, OX10.5). I suspect I may be having a problem similar to Franco’s but I cannot figure out where in the plugin I can install the Kindle serial number.
Preferences/Plugins/File type plugins/DeDRM/Customize plugin/eInk Kindle ebooks
Then clock the green + sign and enter the serial numbers.
Challenge for the community. I downloaded offline versions of a few books from the EBSCO library so I would have them on my iPad while away from the Internet in Alaska. While I was away from the Internet, I entered extensive notes in these ebooks. When I returned to civilization, I discovered that the check-out period for these ebooks had expired, and that the files—and all of my own notes—”can no longer be accessed”.
The ebook files are still on my iPad, marked as “expired”. I’m assuming that some kind of DRM prevents the files from opening. But general-issue-DRM removal seems to require being able to open a DRM-protected file, in the first place.
Any idea how I would go about getting these expired ebook files open, at least enough to retrieve my own work that’s now locked up in them?
(Re-checking-out and re-downloading the books does not work. I can re-check-out a book, but the expired file remains, un-open-able on my iPad, and my notes do not transfer to the newly-checked-out version of the book.)
As you said, if you can’t open it, you can’t DeDRM it. (And these tools aren’t intended for library books in the first place.) If the notes are in a separate unencrypted file, then maybe you could retrieve them. But I have no idea if they are or where to look on an iPad.
Well, thanks for saying something, anyway. I got into the iPad guts, but didn’t find a separate file, apart from an .adept .dat file. I can look at the contents of the individual xml files that comprise a particular epub, but without an encryption key, the contents of these files gives me nothing.
It’s unlikely that the notes are kept in the actual ebook file. Compare the file size of the expired ebook with a newly checked-out copy.
Indeed. The notes are not kept in the actual ebook file. But they are almost inaccessible once the book file has expired.
I stumbled onto the solution by accident. There’s a “.annot” file buried in hidden folders on the iPad. One must get an app that can browse the iPad’s file structure (I’m using iMazing), and that can also see hidden directories/files. iMazing doesn’t view hidden files by default, but I accidentally ran iMazing’s “backup” feature. One can see hidden directories/files in the backup. It appears that the EBSCO reader uses something called BlueFireReader, which creates a hidden “Digital Editions” directory, in which is a hidden “Annotations” directory. The “.annot” file associated with a particular eBook is an unencrypted xml file. Nice of EBSCO to leave this file unencrypted. Very, very perfidious of them to bury it so deeply in hidden iPad directories.
Short version is: You don’t have to do anything illegal to recover your bookmarks/hilites/notes from an expired EBSCO library book. You just have to get access to the EBSCO app’s hidden directories on your mobile device.
I’m glad to hear you managed to find them.
Also realized that by copying and pasting the XML markup from the old .annot file to a new .annot file generated by a new download of the ebook, one recovers one’s hilites/notes so that they appear just as they did in the old, expired version of the ebook. EBSCO really ought to have automated this for users.
Good to know!
BlueFire Reader is an epub reader that can handle Adobe DRM. There are iOS, Android, and Windows versions.
Greetings,
I have three Digital manuals for my 1966 Mustang and have not been able to remove the DRM from any of them. They open in adobe but only with a machine having installed PDF Owner guard and the keys inserted.
below is by log from Caliber in debug mode.
calibre Debug log
calibre 3.8 embedded-python: True is64bit: False
Windows-10-10.0.15063-SP0 Windows (’32bit’, ‘WindowsPE’)
32bit process running on 64bit windows
(‘Windows’, ’10’, ‘10.0.15063’)
Python 2.7.12+
Windows: (’10’, ‘10.0.15063’, ‘SP0′, u’Multiprocessor Free’)
Interface language: None
Successfully initialized third party plugins: DeDRM (6, 5, 4)
calibre 3.8 embedded-python: True is64bit: False
Windows-10-10.0.15063-SP0 Windows (’32bit’, ‘WindowsPE’)
32bit process running on 64bit windows
(‘Windows’, ’10’, ‘10.0.15063’)
Python 2.7.12+
Windows: (’10’, ‘10.0.15063’, ‘SP0′, u’Multiprocessor Free’)
Interface language: None
Successfully initialized third party plugins: DeDRM (6, 5, 4)
Turning on automatic hidpi scaling
devicePixelRatio: 1.0
logicalDpi: 96.0 x 96.0
physicalDpi: 81.5518394649 x 81.6428571429
Using calibre Qt style: True
Starting up…
Started up in 10.40 seconds with 0 books
stdout+stderr from file dialog helper: [”, ”]
piped data from file dialog helper: [‘\x06\x9f\xd0\xd3MRC\xe4\x159\x11\x1f\w\x96\xa7\xc4\xd7\xbd\xa5\x9f\x1c\xa1\x1dC\xb8\xbd{“\xf1\xda\xa6’, ‘C:\Users\Cyber\Desktop\Mustang\1966 Colorized Mustang Wiring Diagrams.pdf’]
DeDRM v6.5.4: Trying to decrypt 1966 Colorized Mustang Wiring Diagrams.pdf
DeDRM v6.5.4: 1966 Colorized Mustang Wiring Diagrams.pdf is a PDF ebook
DeDRM v6.5.4: Looking for new default Adobe Digital Editions Keys after 0.1 seconds
DeDRM v6.5.4: Exception when getting default Adobe Key after 0.1 seconds
Traceback (most recent call last):
File “calibre_plugins.dedrm.init“, line 439, in PDFDecrypt
File “calibre_plugins.dedrm.adobekey”, line 377, in adeptkeys
ADEPTError: Adobe Digital Editions not activated
DeDRM v6.5.4: Ultimately failed to decrypt after 0.1 seconds.
Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
Running file type plugin DeDRM failed with traceback:
Traceback (most recent call last):
File “site-packages\calibre\customize\ui.py”, line 171, in _run_filetype_plugins
File “calibre_plugins.dedrm.init“, line 618, in run
File “calibre_plugins.dedrm.init“, line 493, in PDFDecrypt
DeDRMError: DeDRM v6.5.4: Ultimately failed to decrypt after 0.1 seconds.
Syntax Warning: May not be a PDF file (continuing anyway)
Syntax Error (15): Illegal character ‘{‘
Syntax Error (33): Illegal character ‘{‘
Syntax Error (122): Illegal character in hex string
Syntax Error (123): Illegal character in hex string
Syntax Error (124): Illegal character in hex string
Syntax Error (125): Illegal character in hex string
Syntax Error (126): Illegal character in hex string
Syntax Error (128): Illegal character in hex string
Syntax Error (129): Illegal character in hex string
Syntax Error (130): Illegal character in hex string
Syntax Error (131): Illegal character in hex string
Syntax Error (132): Illegal character in hex string
Syntax Error (133): Illegal character in hex string
Syntax Error (134): Illegal character in hex string
Syntax Error (135): Illegal character in hex string
Syntax Error (136): Illegal character in hex string
Syntax Error (137): Illegal character in hex string
Syntax Error (138): Illegal character in hex string
Syntax Error (141): Illegal character in hex string
Syntax Error (142): Illegal character in hex string
Syntax Error (143): Illegal character in hex string
Syntax Error (144): Illegal character in hex string
Syntax Error (145): Illegal character in hex string
Syntax Error (146): Illegal character in hex string
Syntax Error (147): Illegal character in hex string
Syntax Error (148): Illegal character in hex string
Syntax Error (149): Illegal character in hex string
Syntax Error (150): Illegal character in hex string
Syntax Error (151): Illegal character in hex string
Syntax Error (152): Illegal character in hex string
Syntax Error (153): Illegal character in hex string
Syntax Error (154): Illegal character in hex string
Syntax Error (155): Illegal character in hex string
Syntax Error (156): Illegal character in hex string
Syntax Error (157): Illegal character in hex string
Syntax Error (159): Illegal character in hex string
Syntax Error (160): Illegal character in hex string
Syntax Error (162): Illegal character in hex string
Syntax Error (163): Illegal character in hex string
Syntax Error (166): Illegal character in hex string
Syntax Error (167): Illegal character in hex string
Syntax Error (168): Illegal character in hex string
Syntax Error (169): Illegal character in hex string
Syntax Error (171): Illegal character in hex string
Syntax Error (172): Illegal character in hex string
Syntax Error (173): Illegal character in hex string
Syntax Error (174): Illegal character in hex string
Syntax Error (175): Illegal character in hex string
Syntax Error (176): Illegal character in hex string
Syntax Error (177): Illegal character in hex string
Syntax Error (178): Illegal character in hex string
Syntax Error (179): Illegal character in hex string
Syntax Error (180): Illegal character in hex string
Syntax Error (181): Illegal character in hex string
Syntax Error (182): Illegal character in hex string
Syntax Error (183): Illegal character in hex string
Syntax Error (184): Illegal character in hex string
Syntax Error (185): Illegal character in hex string
Syntax Error (186): Illegal character in hex string
Syntax Error (187): Illegal character in hex string
Syntax Error (188): Illegal character in hex string
Syntax Error (190): Illegal character in hex string
Syntax Error (191): Illegal character in hex string
Syntax Error (192): Illegal character in hex string
Syntax Error (193): Illegal character in hex string
Syntax Error (194): Illegal character in hex string
Syntax Error (195): Illegal character in hex string
Syntax Error (196): Illegal character in hex string
Syntax Error (197): Illegal character in hex string
Syntax Error (198): Illegal character in hex string
Syntax Error (199): Illegal character in hex string
Syntax Error (200): Illegal character in hex string
Syntax Error (201): Illegal character in hex string
Syntax Error (202): Illegal character in hex string
Syntax Error (203): Illegal character in hex string
Syntax Error (204): Illegal character in hex string
Syntax Error (205): Illegal character in hex string
Syntax Error (206): Illegal character in hex string
Syntax Error (207): Illegal character in hex string
Syntax Error (208): Illegal character in hex string
Syntax Error (209): Illegal character in hex string
Syntax Error (210): Illegal character in hex string
Syntax Error (211): Illegal character in hex string
Syntax Error (212): Illegal character in hex string
Syntax Error (213): Illegal character in hex string
Syntax Error (214): Illegal character in hex string
Syntax Error (215): Illegal character in hex string
Syntax Error (216): Illegal character in hex string
Syntax Error (217): Illegal character in hex string
Syntax Error (218): Illegal character in hex string
Syntax Error (219): Illegal character in hex string
Syntax Error (220): Illegal character in hex string
Syntax Error (221): Illegal character in hex string
Syntax Error (222): Illegal character in hex string
Syntax Error (223): Illegal character in hex string
Syntax Error (224): Illegal character in hex string
Syntax Error (225): Illegal character in hex string
Syntax Error (226): Illegal character in hex string
Syntax Error (227): Illegal character in hex string
Syntax Error (229): Illegal character in hex string
Syntax Error (230): Illegal character in hex string
Syntax Error (231): Illegal character in hex string
Syntax Error (232): Illegal character in hex string
Syntax Error (233): Illegal character in hex string
Syntax Error (234): Illegal character in hex string
Syntax Error (235): Illegal character in hex string
Syntax Error (236): Illegal character in hex string
Syntax Error (237): Illegal character in hex string
Syntax Error (238): Illegal character in hex string
Syntax Error (239): Illegal character in hex string
Syntax Error (240): Illegal character in hex string
Syntax Error (241): Illegal character in hex string
Syntax Error (242): Illegal character in hex string
Syntax Error (243): Illegal character in hex string
Syntax Error (244): Illegal character in hex string
Syntax Error (245): Illegal character in hex string
Syntax Error (246): Illegal character in hex string
Syntax Error (247): Illegal character in hex string
Syntax Error (248): Illegal character in hex string
Syntax Error (250): Illegal character in hex string
Syntax Error (251): Illegal character in hex string
Syntax Error (252): Illegal character in hex string
Syntax Error (253): Illegal character in hex string
Syntax Error (254): Illegal character in hex string
Syntax Error (256): Illegal character in hex string
Syntax Error (257): Illegal character in hex string
Syntax Error (258): Illegal character in hex string
Syntax Error (260): Illegal character in hex string
Syntax Error (261): Illegal character in hex string
Syntax Error (262): Illegal character in hex string
Syntax Error (263): Illegal character in hex string
Syntax Error (264): Illegal character in hex string
Syntax Error (265): Illegal character in hex string
Syntax Error (266): Illegal character in hex string
Syntax Error (267): Illegal character in hex string
Syntax Error (269): Illegal character in hex string
Syntax Error (270): Illegal character in hex string
Syntax Error (271): Illegal character in hex string
Syntax Error (272): Illegal character in hex string
Syntax Error (273): Illegal character in hex string
Syntax Error (274): Illegal character in hex string
Syntax Error (275): Illegal character in hex string
Syntax Error (276): Illegal character in hex string
Syntax Error (277): Illegal character in hex string
Syntax Error (278): Illegal character in hex string
Syntax Error (279): Illegal character in hex string
Syntax Error (280): Illegal character in hex string
Syntax Error (282): Illegal character in hex string
Syntax Error (283): Illegal character in hex string
Syntax Error (284): Illegal character in hex string
Syntax Error (285): Illegal character in hex string
Syntax Error (286): Illegal character in hex string
Syntax Error (287): Illegal character in hex string
Syntax Error (288): Illegal character in hex string
Syntax Error (290): Illegal character in hex string
Syntax Error (292): Illegal character in hex string
Syntax Error (293): Illegal character in hex string
Syntax Error (294): Illegal character in hex string
Syntax Error (295): Illegal character in hex string
Syntax Error (296): Illegal character in hex string
Syntax Error (297): Illegal character in hex string
Syntax Error (298): Illegal character in hex string
Syntax Error (299): Illegal character in hex string
Syntax Error (300): Illegal character in hex string
Syntax Error (301): Illegal character in hex string
Syntax Error (302): Illegal character in hex string
Syntax Error (303): Illegal character in hex string
Syntax Error (304): Illegal character in hex string
Syntax Error (305): Illegal character in hex string
Syntax Error (306): Illegal character in hex string
Syntax Error (307): Illegal character in hex string
Syntax Error (308): Illegal character in hex string
Syntax Error (309): Illegal character in hex string
Syntax Error (310): Illegal character in hex string
Syntax Error (311): Illegal character in hex string
Syntax Error (312): Illegal character in hex string
Syntax Error (313): Illegal character in hex string
Syntax Error (314): Illegal character in hex string
Syntax Error (315): Illegal character in hex string
Syntax Error (316): Illegal character in hex string
Syntax Error (317): Illegal character in hex string
Syntax Error (318): Illegal character in hex string
Syntax Error (319): Illegal character in hex string
Syntax Error (320): Illegal character in hex string
Syntax Error (321): Illegal character in hex string
Syntax Error (322): Illegal character in hex string
Syntax Error (323): Illegal character in hex string
Syntax Error (324): Illegal character in hex string
Syntax Error (325): Illegal character in hex string
Syntax Error (326): Illegal character in hex string
Syntax Error (327): Illegal character in hex string
Syntax Error (328): Illegal character in hex string
Syntax Error (330): Illegal character in hex string
Syntax Error (332): Illegal character in hex string
Syntax Error (333): Illegal character in hex string
Syntax Error (335): Illegal character in hex string
Syntax Error (336): Illegal character in hex string
Syntax Error (337): Illegal character in hex string
Syntax Error (338): Illegal character in hex string
Syntax Error (340): Illegal character in hex string
Syntax Error (341): Illegal character in hex string
Syntax Error (342): Illegal character in hex string
Syntax Error (343): Illegal character in hex string
Syntax Error (345): Illegal character in hex string
Syntax Error (346): Illegal character in hex string
Syntax Error (347): Illegal character in hex string
Syntax Error (348): Illegal character in hex string
Syntax Error (349): Illegal character in hex string
Syntax Error (350): Illegal character in hex string
Syntax Error (351): Illegal character in hex string
Syntax Error (352): Illegal character in hex string
Syntax Error (353): Illegal character in hex string
Syntax Error (354): Illegal character in hex string
Syntax Error (355): Illegal character in hex string
Syntax Error (357): Illegal character in hex string
Syntax Error (359): Illegal character in hex string
Syntax Error (360): Illegal character in hex string
Syntax Error (361): Illegal character in hex string
Syntax Error (364): Illegal character in hex string
Syntax Error (365): Illegal character in hex string
Syntax Error (366): Illegal character in hex string
Syntax Error (367): Illegal character in hex string
Syntax Error (369): Illegal character in hex string
Syntax Error (370): Illegal character in hex string
Syntax Error (372): Illegal character in hex string
Syntax Error (373): Illegal character in hex string
Syntax Error (374): Illegal character in hex string
Syntax Error (375): Illegal character in hex string
Syntax Error (376): Illegal character in hex string
Syntax Error (377): Illegal character in hex string
Syntax Error (378): Illegal character in hex string
Syntax Error (379): Illegal character in hex string
Syntax Error (380): Illegal character in hex string
Syntax Error (381): Illegal character in hex string
Syntax Error (382): Illegal character in hex string
Syntax Error (383): Illegal character in hex string
Syntax Error (384): Illegal character in hex string
Syntax Error (385): Illegal character in hex string
Syntax Error (386): Illegal character in hex string
Syntax Error (387): Illegal character in hex string
Syntax Error (388): Illegal character in hex string
Syntax Error (389): Illegal character in hex string
Syntax Error (390): Illegal character in hex string
Syntax Error (392): Illegal character in hex string
Syntax Error (393): Illegal character in hex string
Syntax Error (394): Illegal character in hex string
Syntax Error (395): Illegal character in hex string
Syntax Error (396): Illegal character in hex string
Syntax Error (397): Illegal character in hex string
Syntax Error (398): Illegal character in hex string
Syntax Error (399): Illegal character in hex string
Syntax Error (401): Illegal character in hex string
Syntax Error (402): Illegal character in hex string
Syntax Error (404): Illegal character in hex string
Syntax Error (405): Illegal character in hex string
Syntax Error (406): Illegal character in hex string
Syntax Error (407): Illegal character in hex string
Syntax Error (408): Illegal character in hex string
Syntax Error (409): Illegal character in hex string
Syntax Error (410): Illegal character in hex string
Syntax Error (411): Illegal character in hex string
Syntax Error (412): Illegal character in hex string
Syntax Error (413): Illegal character in hex string
Syntax Error (414): Illegal character in hex string
Syntax Error (415): Illegal character in hex string
Syntax Error: Couldn’t find trailer dictionary
Syntax Error: Couldn’t find trailer dictionary
Syntax Error: Couldn’t read xref table
pdfinfo errored out with return code: 1
Traceback (most recent call last):
File “site-packages\calibre\customize\ui.py”, line 417, in get_file_type_metadata
File “site-packages\calibre\customize\builtins.py”, line 342, in get_metadata
File “site-packages\calibre\ebooks\metadata\pdf.py”, line 115, in get_metadata
ValueError: Could not read info dict from PDF
Added 1966 Colorized Mustang Wiring Diagrams to db in: 4.2
Added 1 books in 10.0 seconds
Sounds like these tools won’t help. You need to be able to open the PDF with Adobe Digital Editions 2.0.1 authorized with an Adobe ID.
Yea, I’m thinking maybe I need to get creative with capturing print spooler data. if I have any hopes of having full control of the manuals I purchased…
I have tried installing multiple versions of the DRM removal tool, thinking that was the problem. However, when I install even the most basic release (1.0) in Calibre in my Mac Book Pro (OS 10.8). I am at wit’s end trying to figure this out and would be incredibly grateful for suggestions.
calibre, version 0.9.10
ERROR: Unhandled exception: InvalidPlugin:The plugin in u’/Users/julienaughton/Downloads/DeDRM_tools-1.0.zip’ is invalid. It does not contain a top-level init.py file
Traceback (most recent call last):
File “site-packages/calibre/gui2/preferences/plugins.py”, line 310, in add_plugin
File “site-packages/calibre/customize/ui.py”, line 362, in add_plugin
File “site-packages/calibre/customize/ui.py”, line 54, in load_plugin
File “site-packages/calibre/customize/zipplugin.py”, line 160, in load
File “site-packages/calibre/customize/zipplugin.py”, line 255, in _locate_code
InvalidPlugin: The plugin in u’/Users/julienaughton/Downloads/DeDRM_tools-1.0.zip’ is invalid. It does not contain a top-level init.py file
I’d recommend updating to calibre 2.85.1 and using the latest version of the DeDRM tools.
You can’t install the tools archive because that’s not the plugin – its an archive of a Mac OS app, the plugin and a Windows app. Unzip the tools archive to get to the plugin.
Paul, out of curiosity, why do you recommend Calibre 2.85.1 rather than the current 3.9.0? BTW I’m still using 2.8.0 as I have seen a convincing reason to go higher.
Because that’s the last version that will work on Mac OS 10.8.
Ah, I see; I’m using 10.11.6. BTW, the last sentence of my reply to Paul should have read “…as I have NOT seen…”
Hi Pail – greatly appreciate your help! I downloaded the versions of Calibre and the tools you suggested. If I’m reading the log correctly, it seems as if I successfully added the plugins. I’m not sure what the issue is now – probably due to my own lack of knowledge about computers. Any help, particularly in the “I’m breaking this down for a stupid person” sense, would be very gratefully received. Again, I’m using a Mac Book Pro with a 10.8 operating system. I’m hoping to unlock these files and copy them to my iPad and computer as the Kindle for iPad app I have on my newer iPad doesn’t work, despite multiple reboots and even a factory-settings try.
calibre Debug log
calibre 2.85.1 embedded-python: True is64bit: True
Darwin-12.6.0-x86_64-i386-64bit Darwin (’64bit’, ”)
(‘Darwin’, ‘12.6.0’, ‘Darwin Kernel Version 12.6.0: Wed Mar 18 16:23:48 PDT 2015; root:xnu-2050.48.19~1/RELEASE_X86_64’)
Python 2.7.11
OSX: (‘10.8.5’, (”, ”, ”), ‘x86_64’)
Successfully initialized third party plugins: DeDRM (6, 3, 3) && K4PC, K4Mac, Kindle Mobi and Topaz DeDRM (0, 3, 1)
devicePixelRatio: 1.0
logicalDpi: 72.0 x 72.0
physicalDpi: 114.000001712 x 114.000001712
Starting up…
Started up in 30.24 seconds with 13178 books
DeDRM v6.3.3: Trying to decrypt 1022-Evergreen-Place-Cedar-Cove-.azw
Using Library AlfCrypto DLL/DYLIB/SO
MobiDeDrm v0.41.
Copyright © 2008-2012 The Dark Reverser et al.
MOBI header version 6, header length 232
Extra Data Flags: 2
Decrypting Mobipocket 6 ebook: 1022 Evergreen Place (Cedar Cove)
Found 0 keys to try after 0.1 seconds
Crypto Type is: 2
DeDRM v6.3.3: Failed to decrypt with error: No key found in 0 keys tried.
DeDRM v6.3.3: Looking for new default Kindle Key after 0.1 seconds
Found k4Mac kinf2011 file: /Users/julienaughton/Library/Application Support/Kindle/storage/.kinf2011
Couldn’t decrypt file.
DeDRM v6.3.3: Ultimately failed to decrypt after 1.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 170, in _run_filetype_plugins
File “calibre_plugins.dedrm.init“, line 589, in run
File “calibre_plugins.dedrm.init“, line 539, in KindleMobiDecrypt
DeDRMError: DeDRM v6.3.3: Ultimately failed to decrypt after 1.2 seconds
Running file type plugin K4PC, K4Mac, Kindle Mobi and Topaz DeDRM failed with traceback:
Traceback (most recent call last):
File “site-packages/calibre/customize/ui.py”, line 170, in _run_filetype_plugins
File “calibre_plugins.k4mobidedrm.init“, line 89, in run
ImportError: No module named PyQt4.Qt
is not a valid Kindle serial number or PID.
K4MobiDeDRM: Calibre configuration directory = /Users/julienaughton/Library/Preferences/calibre
MOBI header version = 6, length = 232
Extra Data Flags = 2
No kindle-info files have been found.
Crypto Type is: 2
You can delete the plugin “K4PC, K4Mac, Kindle Mobi and Topaz DeDRM”. It doesn’t work with that version of calibre, and has been replaced by the DeDRM plugin.
To remove the DRM from a Kindle book, it must have been downloaded “for Transfer via USB” to an E-Ink based Kindle, OR downloaded using Kindle for Mac 1.17.
I suggest that you unregister and delete any current installation of Kindle for Mac you have, and delete the folder
/Users/julienaughton/Library/Application Support/Kindle/
Then download Kindle for Mac 1.17 from https://s3.amazonaws.com/kindleformac/44182/KindleForMac-44182.dmg install it and register it with your Amazon account. Then download the books from your account that you want to remove the DRM from using Kindle for Mac, and import those copies.
Thank you so much, Paul – I will try all of these steps. I truly appreciate your patience in explaining all of this to me.
hello, trying to remove DRM from nook epubs with the Mac DeDRM app. In the config settings I inputted my Nook credentials as follows email@email.com:password. Have I missed a step/preference config? I’ve received the following error, which seems attributable to the Nook Key.
There is 1 ebook to be decrypted.
Processing file: 001_Outlander_Diana Gabaldon.epub
shellcommand: /usr/bin/python ‘/private/var/folders/dc/nn7ctjk13v5fvykl3f6n6h440000gn/T/AppTranslocation/0043DF83-5CC1-4FB8-985A-40D69B5E22BD/d/DeDRM.app/Contents/Resources/zipfix.py’ ‘/Users/brandysavarese/Desktop/Outlander/001_Outlander_Diana Gabaldon.epub’ ‘/Users/brandysavarese/Desktop/001_Outlander_Diana Gabaldon_fixed.epub’ > ‘/Users/brandysavarese/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
shellresult:
shellcommand: /usr/bin/python ‘/private/var/folders/dc/nn7ctjk13v5fvykl3f6n6h440000gn/T/AppTranslocation/0043DF83-5CC1-4FB8-985A-40D69B5E22BD/d/DeDRM.app/Contents/Resources/epubtest.py’ ‘/Users/brandysavarese/Desktop/001_Outlander_Diana Gabaldon_fixed.epub’ > ‘/Users/brandysavarese/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
shellresult: B&N
shellcommand: /usr/bin/python ‘/private/var/folders/dc/nn7ctjk13v5fvykl3f6n6h440000gn/T/AppTranslocation/0043DF83-5CC1-4FB8-985A-40D69B5E22BD/d/DeDRM.app/Contents/Resources/ignobleepub.py’ ‘/Users/brandysavarese/Library/Preferences/com.apprenticealf.dedrm/bsavarese@yahoo.com.b64’ ‘/Users/brandysavarese/Desktop/001_Outlander_Diana Gabaldon_fixed.epub’ ‘/Users/brandysavarese/Desktop/001_Outlander_Diana Gabaldon_nodrm.epub’ > ‘/Users/brandysavarese/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
shellresult: Could not decrypt 001_Outlander_Diana Gabaldon_fixed.epub because of an exception:
Traceback (most recent call last):
File “/private/var/folders/dc/nn7ctjk13v5fvykl3f6n6h440000gn/T/AppTranslocation/0043DF83-5CC1-4FB8-985A-40D69B5E22BD/d/DeDRM.app/Contents/Resources/ignobleepub.py”, line 280, in decryptBook
decryptor = Decryptor(bookkey[-16:], encryption)
File “/private/var/folders/dc/nn7ctjk13v5fvykl3f6n6h440000gn/T/AppTranslocation/0043DF83-5CC1-4FB8-985A-40D69B5E22BD/d/DeDRM.app/Contents/Resources/ignobleepub.py”, line 211, in init
self._aes = AES(bookkey)
File “/private/var/folders/dc/nn7ctjk13v5fvykl3f6n6h440000gn/T/AppTranslocation/0043DF83-5CC1-4FB8-985A-40D69B5E22BD/d/DeDRM.app/Contents/Resources/ignobleepub.py”, line 160, in init
raise IGNOBLEError(‘AES improper key used’)
IGNOBLEError: AES improper key used
The command exited with a non-zero status.
shellcommand: /usr/bin/python ‘/private/var/folders/dc/nn7ctjk13v5fvykl3f6n6h440000gn/T/AppTranslocation/0043DF83-5CC1-4FB8-985A-40D69B5E22BD/d/DeDRM.app/Contents/Resources/ignoblekey.py’ ‘/Users/brandysavarese/Library/Preferences/com.apprenticealf.dedrm/newKeys/’ > ‘/Users/brandysavarese/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 was an error with 1 ebook:
001_Outlander_Diana Gabaldon.epub couldn’t be decoded:
Try a fresh copy of the book.
Thanks. Done that a few times to no avail.
When you enter your B&N info into the Mac app, does it show you whether or not it’s been able to retrieve a key? I ask because I think the calibre plugin used to add a empty key when it couldn’t retrieve it. And how are you downloading your books?
Just updated Calibre and the plugin. Former version were working as usual. Now I’ve received three epubs, two have been successfully DeDrmed, the third nothing at all. Tried to reinstall Dedrm, but no avail. Any suggestion? Thank
Post a log of adding the book that didn’t work.
calibre, version 3.11.1
ERRORE: Could not open e-book: Failed to read book, C:\Users\xxxxx\Documents\BIBLIOTECA\Calibre Library\Tan Twan Eng\Il giardino delle nebbie notturne ( (4884)\Il giardino delle nebbie nottur – Tan Twan Eng.azw3 click “Show Details” for more information
Traceback (most recent call last):
File “site-packages\calibre\utils\ipc\simple_worker.py”, line 284, in main
File “site-packages\calibre\ebooks\oeb\iterator\book.py”, line 64, in extract_book
File “site-packages\calibre\customize\conversion.py”, line 245, in call
File “site-packages\calibre\ebooks\conversion\plugins\mobi_input.py”, line 34, in convert
File “site-packages\calibre\ebooks\mobi\reader\mobi6.py”, line 88, in init
error: unpack requires a string argument of length 2
See the FAQs for info on how to post a log: 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
Thanks for the indications. Hereunder the requested log.
calibre Log di debug
calibre 3.11.1 [64bit] embedded-python: True is64bit: True
Windows-10-10.0.15063-SP0 Windows (’64bit’, ‘WindowsPE’)
(‘Windows’, ’10’, ‘10.0.15063’)
Python 2.7.12+
Windows: (’10’, ‘10.0.15063’, ‘SP0′, u’Multiprocessor Free’)
Interface language: it
Successfully initialized third party plugins: DeDRM (6, 5, 5) && Find Duplicates (1, 6, 3)
calibre 3.11.1 [64bit] embedded-python: True is64bit: True
Windows-10-10.0.15063-SP0 Windows (’64bit’, ‘WindowsPE’)
(‘Windows’, ’10’, ‘10.0.15063’)
Python 2.7.12+
Windows: (’10’, ‘10.0.15063’, ‘SP0′, u’Multiprocessor Free’)
Interface language: it
Successfully initialized third party plugins: DeDRM (6, 5, 5) && Find Duplicates (1, 6, 3)
Turning on automatic hidpi scaling
devicePixelRatio: 2.0
logicalDpi: 72.0 x 72.0
physicalDpi: 83.2218430034 x 83.1272727273
Using calibre Qt style: True
Starting up…
Key u’A’ for shortcut Apri la cartella contenente is already used by Aggiungi libri, ignoring
Started up in 22.53 seconds with 3314 books
stdout+stderr from file dialog helper: [”, ”]
piped data from file dialog helper: [‘\x8d\x12-\x98\r7\xa6L\xa0\xe2\xdcTO\x82+\xa7\n\xcf\x7f\x07\xdc\x19\xc0\x01\xf0j\x02\xe9q\xbe\x9f8’, ‘C:\Users\giacitto\Desktop\LIBRI\Il giardino delle nebbie notturne (Italian – Tan Twan Eng.azw3’]
DeDRM v6.5.5: Trying to decrypt Il giardino delle nebbie notturne (Italian – Tan Twan Eng.azw3
Using Library AlfCrypto Python
MobiDeDrm v0.42.
Copyright © 2008-2017 The Dark Reverser, Apprentice Harper et al.
DeDRM v6.5.5: Failed to decrypt with error: Invalid file format
DeDRM v6.5.5: Looking for new default Kindle Key after 0.0 seconds
searching for kinfoFiles in C:\Users\giacitto\AppData\Local
Found K4PC 1.9+ kinf2011 file: C:\Users\giacitto\AppData\Local\Amazon\Kindle\storage.kinf2011
Decrypted key file using IDString ‘3759262454’ and UserName ‘676961636974746f’
DeDRM v6.5.5: Found 1 new key
MobiDeDrm v0.42.
Copyright © 2008-2017 The Dark Reverser, Apprentice Harper et al.
DeDRM v6.5.5: Ultimately failed to decrypt after 0.1 seconds. Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
Running file type plugin DeDRM failed with traceback:
Traceback (most recent call last):
File “site-packages\calibre\customize\ui.py”, line 171, in _run_filetype_plugins
File “calibre_plugins.dedrm.init“, line 618, in run
File “calibre_plugins.dedrm.init“, line 568, in KindleMobiDecrypt
DeDRMError: DeDRM v6.5.5: 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
Traceback (most recent call last):
File “site-packages\calibre\customize\ui.py”, line 417, in get_file_type_metadata
File “site-packages\calibre\customize\builtins.py”, line 284, in get_metadata
File “site-packages\calibre\ebooks\metadata\mobi.py”, line 494, in get_metadata
File “site-packages\calibre\ebooks\mobi\reader\headers.py”, line 284, in init
File “site-packages\calibre\ebooks\mobi\reader\headers.py”, line 312, in identity
MobiError: Unknown book type:
Added Il giardino delle nebbie notturne (Italian to db in: 0.2
Added 1 books in 0.8 seconds
I suspect that your problem is a KFX file. See this post: https://www.mobileread.com/forums/showthread.php?t=283371
Apprentice Harper has released version 6.5.5 of the tools:
https://github.com/apprenticeharper/DeDRM_tools/releases/tag/v6.5.5
(Includes a couple fixes, but DOES NOT include support for KFX format Kindle ebooks.)
— Alf.
Alf, I’m confused. You say DeDRM can’t handle KFX. However, Epubor Studio says their latest version “…can remove Kindle KFX DRM directly and losslessly!”, yet there are posts here saying that Epubor just uses DeDRM in their own GUI shell. So if DeDRM can’t handle KFX, how can it be used by Epubor Studio to work with KFX books?
The code for KFX decryption is available at Harper’s GitHub. Harper hasn’t had a chance to incorporate it into the tools yet.
https://github.com/apprenticeharper/DeDRM_tools/issues/38
Ah, that makes sense. Thanks, Laura!
I updated to the latest plugin but I still can’t get the DRM removed. I am using Win 10 and I do in fact own this book – I bought it from Amazon.
calibre Debug log
calibre 3.10 embedded-python: True is64bit: False
Windows-10-10.0.15063-SP0 Windows (’32bit’, ‘WindowsPE’)
32bit process running on 64bit windows
(‘Windows’, ’10’, ‘10.0.15063’)
Python 2.7.12+
Windows: (’10’, ‘10.0.15063’, ‘SP0′, u’Multiprocessor Free’)
Interface language: None
Successfully initialized third party plugins: DeDRM (6, 5, 5)
calibre 3.10 embedded-python: True is64bit: False
Windows-10-10.0.15063-SP0 Windows (’32bit’, ‘WindowsPE’)
32bit process running on 64bit windows
(‘Windows’, ’10’, ‘10.0.15063’)
Python 2.7.12+
Windows: (’10’, ‘10.0.15063’, ‘SP0′, u’Multiprocessor Free’)
Interface language: None
Successfully initialized third party plugins: DeDRM (6, 5, 5)
Turning on automatic hidpi scaling
devicePixelRatio: 1.0
logicalDpi: 96.0 x 96.0
physicalDpi: 100.861627907 x 101.07357513
Using calibre Qt style: True
Starting up…
Started up in 93.80 seconds with 382 books
stdout+stderr from file dialog helper: [”, ”]
piped data from file dialog helper: [‘IN\xe0\xe6`w\x8cz\x95TwD}*tJz\x85\x08\xb2XH\xba\xbdH\x99\xbbUE,\x85\xc4’, ‘C:\Users\Melissa\OneDrive\Documents\Books\Calibre Back up 5-29-17\TJ Klune\Wolfsong.azw3’]
DeDRM v6.5.5: Trying to decrypt Wolfsong.azw3
Using Library AlfCrypto Python
MobiDeDrm v0.42.
Copyright © 2008-2017 The Dark Reverser, Apprentice Harper et al.
Decrypting Kindle Format 8 ebook: Wolfsong
Found 0 keys to try after 0.1 seconds
Crypto Type is: 2
DeDRM v6.5.5: Failed to decrypt with error: No key found in 0 keys tried.
DeDRM v6.5.5: Looking for new default Kindle Key after 0.1 seconds
searching for kinfoFiles in C:\Users\Melissa\AppData\Local
No K4PC kindle.info/kinf/kinf2011 files have been found.
DeDRM v6.5.5: Ultimately failed to decrypt after 0.1 seconds. Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
Running file type plugin DeDRM failed with traceback:
Traceback (most recent call last):
File “site-packages\calibre\customize\ui.py”, line 171, in _run_filetype_plugins
File “calibre_plugins.dedrm.init“, line 618, in run
File “calibre_plugins.dedrm.init“, line 568, in KindleMobiDecrypt
DeDRMError: DeDRM v6.5.5: 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 Wolfsong to db in: 1.7
Added 1 books in 3.1 seconds
If the book is associated with an Eink Kindle (not a Fire), then you need to enter its serial number into the plugin customization.
I downloaded the book direct from Amazons website. My kindle (fire) wasn’t involved at all. Thanks!!
The only way to download directly from the Amazon website is for ‘transfer via USB’ to some device. If you only have a Kindle Fire, it must have been for your Kindle Fire. These tools don’t work with Kindle books from or downloaded for Kindle Fires.
If you don’t have an E-Ink based device, (Paperwhite, Oasis, etc.) then you’ll need to install Kindle for PC 1.17 (see link in the FAQs) and download using that.
I also have two android devices but Amazon won’t let me select either of those OR the Windows version to transfer via USB. It will only let me select my Fire. When I connect my Android to my computer (via USB) to transfer books using Calibre, it doesn’t even list the book I am trying to deDRM. The book is downloaded to my Android and Fire but for some reason, Calibre doesn’t list it. Thanks!
Then, as Paul said, you will need to install Kindle for PC 1.17 on the same computer and user where you have calibre with the DeDRM plugin. You can find a link in the FAQs here:
https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md#a-recent-change-to-kindle-for-pckindle-for-mac
Thank you all so much!! I am finally able to get rid of the DRM. Awesome!!
I had some trouble with that link, but found the older versions here: https://kindle-for-pc.en.uptodown.com/windows/old
Yes, it looks Amazon like has removed the older setup files. See this MobileRead thread to check for un-tampered with files or for another workaround:
https://www.mobileread.com/forums/showthread.php?t=283371
I’m getting this error running it for an ebook, kindle for pc version 1.21
calibre, version 3.10.0
ERROR: Could not open e-book: Failed to read book, C:\Users\saalbert\Documents\Backup 05-11\Desktop\albertTemp\CalirbeLibrary\Unknown\B07484STST EBOK (8)\B07484STST EBOK – Unknown.azw click “Show Details” for more information
Traceback (most recent call last):
File “site-packages\calibre\utils\ipc\simple_worker.py”, line 284, in main
File “site-packages\calibre\ebooks\oeb\iterator\book.py”, line 64, in extract_book
File “site-packages\calibre\customize\conversion.py”, line 245, in call
File “site-packages\calibre\ebooks\conversion\plugins\mobi_input.py”, line 34, in convert
File “site-packages\calibre\ebooks\mobi\reader\mobi6.py”, line 84, in init
KFXError: This is an Amazon KFX book. It cannot be processed. See https://www.mobileread.com/forums/showthread.php?t=283371 for information on how to handle KFX books.
As the logs says, it’s a KFX book. Follow the link given for MobileRead to find out some workarounds.
Hello,
Not able to remove DRM from an Adobe Digital Edition Ebook, bought at an university store. Windows 10 Calibre 3.10 This is the log in debug mode
calibre Registro de depuración
calibre 3.10 embedded-python: True is64bit: False
Windows-10-10.0.15063-SP0 Windows (’32bit’, ‘WindowsPE’)
32bit process running on 64bit windows
(‘Windows’, ’10’, ‘10.0.15063’)
Python 2.7.12+
Windows: (’10’, ‘10.0.15063’, ‘SP0′, u’Multiprocessor Free’)
Interface language: es
Successfully initialized third party plugins: DeDRM (6, 5, 5)
calibre 3.10 embedded-python: True is64bit: False
Windows-10-10.0.15063-SP0 Windows (’32bit’, ‘WindowsPE’)
32bit process running on 64bit windows
(‘Windows’, ’10’, ‘10.0.15063’)
Python 2.7.12+
Windows: (’10’, ‘10.0.15063’, ‘SP0′, u’Multiprocessor Free’)
Interface language: es
Successfully initialized third party plugins: DeDRM (6, 5, 5)
Turning on automatic hidpi scaling
devicePixelRatio: 1.0
logicalDpi: 96.0 x 96.0
physicalDpi: 100.861627907 x 101.07357513
Using calibre Qt style: True
Starting up…
Started up in 118.07 seconds with 2 books
stdout+stderr from file dialog helper: [”, ”]
piped data from file dialog helper: [‘d\x94\xc1E\xf1C\x03\x9f$L\x86.\xb9\x80\xdeJ\xa4P\x87\x80\x81\xb3\x1f\xfb5\xbe\xea\xc6V:0a’, ‘C:\Users\PC-Admin\Documents\My Digital Editions\VOYAGES DIGITAL. METHODE DE FRANCAIS LANGUE ETRANGERE (AUTO-APPR.epub’]
DeDRM v6.5.5: Trying to decrypt VOYAGES DIGITAL. METHODE DE FRANCAIS LANGUE ETRANGERE (AUTO-APPR.epub
DeDRM v6.5.5: Verifying zip archive integrity
DeDRM v6.5.5: VOYAGES DIGITAL. METHODE DE FRANCAIS LANGUE ETRANGERE (AUTO-APPR.epub is a secure Adobe Adept ePub
DeDRM v6.5.5: Looking for new default Adobe Digital Editions Keys after 0.3 seconds
Found 1 keys
DeDRM v6.5.5: Trying a new default key
Could not decrypt q8wlsq.epub because of an exception:
Traceback (most recent call last):
File “calibre_plugins.dedrm.ineptepub”, line 462, in decryptBook
File “calibre_plugins.dedrm.ineptepub”, line 378, in decrypt
File “calibre_plugins.dedrm.ineptepub”, line 368, in decompress
error: Error -3 while decompressing: invalid stored block lengths
DeDRM v6.5.5: Failed to decrypt with new default key after 0.5 seconds
DeDRM v6.5.5: 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 171, in _run_filetype_plugins
File “calibre_plugins.dedrm.init“, line 629, in run
File “calibre_plugins.dedrm.init“, line 400, in ePubDecrypt
DeDRMError: DeDRM v6.5.5: 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
C:\Program Files (x86)\Calibre2\app\pylib.zip\dateutil\parser.py:601: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode – interpreting them as being unequal
C:\Program Files (x86)\Calibre2\app\pylib.zip\dateutil\parser.py:601: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode – interpreting them as being unequal
Added VOYAGES DIGITAL. METHODE DE FRANCAIS LANGUE ETRANGERE (AUTO-APPRENTISSAGE) NIVEAU A1/A2 1505203748 to db in: 3.3
Added 1 books in 4.7 seconds
Exception TypeError: “‘NoneType’ object is not callable” in <bound method NativeFunction.__del__ of > ignored
Exception TypeError: “‘NoneType’ object is not callable” in <bound method NativeFunction.__del__ of > ignored
Worker Launch took: 0.180999994278
Thanks
What version of Adobe Digital Editions did you use to download the book? If 3.0 or later, install ADE 2.0.1, authorize it with the same Adobe ID, and see if you can open the book. If not, then you may have DRM that can’t be removed.
Thanks Laura, I have tried with ADE 2.0.1 and no way to remove it