Last updated on 17th May, 2013
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, deleting the DRM from their Sony eBooks, 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 one of the links below. Unzip the archive, and start reading.
The latest tools_v6.05.zip can be downloaded from
http://www1.datafilehost.com/d/e290f19f
The latest plugin for Calibre can be downloaded from
http://www1.datafilehost.com/d/49922de3
- The download link is the grey button on the left under the file information.
- If you can see a checkbox labelled “Use our download manager and get recommended downloads”, uncheck it before downloading. Some users will not have the check box.
- Do not click on the advert on the right-hand side of the page, even if it says “DOWNLOAD NOW”.
- The download will be a .zip file. If your download is a .exe file do not run it, as you have downloaded the download manager. Make sure that the check box is unchecked
- Make sure Javascript is enabled in your browser.
- No credit card or payment of any kind is required to download the tools.
- Datafilehost.com is marked as suspect by some virus checkers, which is rather obvious as anyone can upload anything to it. If you are worried about the integrity of the tools, listed below is the MD5 checksum.
MD5 (tools_v6.0.5.zip) = 9fe771a714428d5b0494e552b485fb51
MD5(DeDRM_plugin_6.0.6.zip)= 6d6110e29281ce6ba80f3ce9cf8ab8a5
Changes in 6.0.6:
- Fixed up an incorrect function call. (Only relevant Linux Calibre users using Wine)
Changes in 6.0.5:
- Fixed a problem that resulted in key issues (thanks, Paul)
Changes in 6.0.4:
- Fixed a problem in the plugin converting earlier preferences (thanks, enno)
- Fixed a problem in the plugin with importing pdb files (thanks, Tina Bird)
- Fixed a problem with unicode characters in path names for the Mac application (thanks, K)
Changes in 6.0.3:
- Fixed a problem with non-ascii characters in Windows user name
- Fixed a problem early versions of Kindle for Mac
- Fix for location of DeDRMed PDF files with Macintosh DeDRM Application
- Fix in Windows DeDRM application for paths with spaces
- Restored ability for calibre plugin to call wine for Kindle for PC decryption key
- Added ability for calibre plugin to call wine for Adobe Digital Edition key
- Hopefully removed any dependency on tinter (although still used if available).
- Updated the readmes
Getting Help with the Tools
If you have any questions about the tools, ebooks and DRM, check my FAQs post Frequently Asked Questions about the DRM removal tools.
If you have any problems with the current tools, please ask for help in a comment on this post. If you are having a problem with an older version of the tools, please first update to the current version, and see if that solves your problem.
Before commenting here, please check the ReadMe file and the FAQs (see link above).
In any bug report or help request, please include
- which tool was used
- which OS you are using
- where the ebook file came from (device or folder)
- any error messages
- a log of the DRM-removal attempt (see the FAQs on how to get a log).
Anti-Piracy Notice
Please only use this application for gaining full access to your own ebooks for archiving/converson/convenience. De-drmed ebooks should not be uploaded to open servers, torrents, or other methods of mass distribution. No help will be given to people doing such things. Authors, retailers and publishers all need to make a living, so that they can continue to produce books for us to read. Don’t be a parasite.
Origin of the Tools
The tools for removing DRM from ePubs were originally posted at i♥cabbages’ blog. The tools for Kindle/Mobipocket were originally posted at The Dark Reverser’s blog.
They have since been improved by many people, but mostly some_updates, DiapDealer and Apprentice Alf. 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 or eReader ebooks has probably just repackaged (an earlier) version of the tools available here.
— Alf.
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\Norm>calibre-debug -g
calibre 0.9.30 [64bit] isfrozen: True is64bit: True
Windows-7-6.1.7601-SP1 Windows (’64bit’, ‘WindowsPE’)
(‘Windows’, ’7′, ’6.1.7601′)
Python 2.7.4
Windows: (’7′, ’6.1.7601′, ‘SP1′, ‘Multiprocessor Free’)
Starting up…
Started up in 2.08 seconds with 0 books
Worker Launch took: 0.370000123978
Added Treasure Island to db in: 0.821000099182 seconds
Added Aesop’s Fables to db in: 1.29999995232 seconds
Added The New Oxford American Dictionary to db in: 0.77999997139 seconds
Job: 1 Read metadata (0 of 1) finished
Read metadata (0 of 1)
DeDRM v6.0.5: Trying to decrypt Treasure-Island.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: 8
Decrypting Mobipocket 6 ebook: Treasure Island
Found 0 keys to try after 0.2 seconds
Crypto Type is: 0
This book is not encrypted.
Decryption succeeded after 0.2 seconds
DeDRM v6.0.5: Successfully decrypted book after 0.2 seconds
DeDRM v6.0.5: Trying to decrypt Aesops-Fables.azw
MobiDeDrm v0.41.
Copyright © 2008-2012 The Dark Reverser et al.
MOBI header version 6, header length 232
Extra Data Flags: 8
Decrypting Mobipocket 6 ebook: Aesop’s Fables
Found 0 keys to try after 0.5 seconds
Crypto Type is: 0
This book is not encrypted.
Decryption succeeded after 0.5 seconds
DeDRM v6.0.5: Successfully decrypted book after 0.5 seconds
DeDRM v6.0.5: Trying to decrypt B003ODIZL6_EBOK.azw
MobiDeDrm v0.41.
Copyright © 2008-2012 The Dark Reverser et al.
MOBI header version 5, header length 232
Extra Data Flags: 0
Decrypting Mobipocket 5 ebook: The New Oxford American Dictionary
Found 0 keys to try after 0.8 seconds
Crypto Type is: 2
DeDRM v6.0.5: Failed to decrypt with error: No key found in 0 keys tried
.
DeDRM v6.0.5: Looking for new default Kindle Key after 0.8 seconds
searching for kinfoFiles in C:\Users\Norm\AppData\Local
Found K4PC 1.9+ kinf2011 file: C:\Users\Norm\AppData\Local\Amazon\Kindle
\storage\.kinf2011
DeDRM v6.0.5: Ultimately failed to decrypt after 0.9 seconds.
Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/
Traceback (most recent call last):
File “calibre_plugins.dedrm.__init__”, line 376, in KindleMobiDecrypt
File “calibre_plugins.dedrm.k4mobidedrm”, line 214, in GetDecryptedBoo
k
File “calibre_plugins.dedrm.mobidedrm”, line 467, in processBook
DrmException: No key found in 0 keys tried.
Running file type plugin DeDRM failed with traceback:
Traceback (most recent call last):
File “site-packages\calibre\customize\ui.py”, line 154, in _run_filety
pe_plugins
File “calibre_plugins.dedrm.__init__”, line 467, in run
File “calibre_plugins.dedrm.__init__”, line 418, in KindleMobiDecrypt
DeDRMError: DeDRM v6.0.5: Ultimately failed to decrypt “B003ODIZL6_EBOK.
azw” after 0.9 seconds with error: No key found in 0 keys tried.
Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/
DeDRM v6.0.5: Trying to decrypt B0076QVQLI_EBOK.azw
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: The Command: Deep Inside the President’s
Secret Army (Kindle Single)
Found 0 keys to try after 0.5 seconds
Crypto Type is: 2
DeDRM v6.0.5: Failed to decrypt with error: No key found in 0 keys tried
.
DeDRM v6.0.5: Looking for new default Kindle Key after 0.5 seconds
searching for kinfoFiles in C:\Users\Norm\AppData\Local
Found K4PC 1.9+ kinf2011 file: C:\Users\Norm\AppData\Local\Amazon\Kindle
\storage\.kinf2011
DeDRM v6.0.5: Ultimately failed to decrypt after 0.5 seconds.
Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/
Traceback (most recent call last):
File “calibre_plugins.dedrm.__init__”, line 376, in KindleMobiDecrypt
File “calibre_plugins.dedrm.k4mobidedrm”, line 214, in GetDecryptedBoo
k
File “calibre_plugins.dedrm.mobidedrm”, line 467, in processBook
DrmException: No key found in 0 keys tried.
Running file type plugin DeDRM failed with traceback:
Traceback (most recent call last):
File “site-packages\calibre\customize\ui.py”, line 154, in _run_filety
pe_plugins
File “calibre_plugins.dedrm.__init__”, line 467, in run
File “calibre_plugins.dedrm.__init__”, line 418, in KindleMobiDecrypt
DeDRMError: DeDRM v6.0.5: Ultimately failed to decrypt “B0076QVQLI_EBOK.
azw” after 0.5 seconds with error: No key found in 0 keys tried.
Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/
DeDRM v6.0.5: Trying to decrypt Pride-and-Prejudice.azw
MobiDeDrm v0.41.
Copyright © 2008-2012 The Dark Reverser et al.
MOBI header version 6, header length 232
Extra Data Flags: 8
Decrypting Mobipocket 6 ebook: Pride & Prejudice
Found 0 keys to try after 0.2 seconds
Crypto Type is: 0
This book is not encrypted.
Decryption succeeded after 0.2 seconds
DeDRM v6.0.5: Successfully decrypted book after 0.2 seconds
Added The Command: Deep Inside the President’s Secret Army (Kindle Single) to db
in: 0.632000207901 seconds
Added Pride & Prejudice to db in: 0.951999902725 seconds
I have just tried for the first time to use the tools. I followed all the directions including removing the books and re-importing them, and they still do not unlock. If you could help me, I would greatly appreciate it! Thanks, Nick
I added some of my Kindle books to Calibre and then tried to convert them to MOBI. I get an error saying it cannot convert due to the DRM. I tried installing the newest version of tools as well as making sure the ID’s for my kindle are in the customization field. After each of those, I deleted the books and re-added the books to my library and again tried to convert the DRM. Again I had no success. I pasted the info from the command prompt below. Thanks for any help you can give me.
Microsoft Windows [Version 6.2.9200]
(c) 2012 Microsoft Corporation. All rights reserved.
C:\Users\Audra>cmd
Microsoft Windows [Version 6.2.9200]
(c) 2012 Microsoft Corporation. All rights reserved.
C:\Users\Audra>calibre-debug -g
calibre 0.9.29 [64bit] isfrozen: True is64bit: True
Windows-post2008Server-6.2.9200 Windows (’64bit’, ‘WindowsPE’)
(‘Windows’, ‘post2008Server’, ’6.2.9200′)
Python 2.7.3
Windows: (‘post2008Server’, ’6.2.9200′, ”, ‘Multiprocessor Free’)
C:\Users\Audra>calibre-debug -g
calibre 0.9.29 [64bit] isfrozen: True is64bit: True
Windows-post2008Server-6.2.9200 Windows (’64bit’, ‘WindowsPE’)
(‘Windows’, ‘post2008Server’, ’6.2.9200′)
Python 2.7.3
Windows: (‘post2008Server’, ’6.2.9200′, ”, ‘Multiprocessor Free’)
Starting up…
Started up in 2.05 seconds with 1094 books
Job: 1 Get device information started
DeviceJob: 1 Get device information done, calling callback
DeviceJob: 1 Get device information callback returned
Job: 2 Get list of books on device started
DEBUG: 0.0 USBMS: Fetching list of books from device. Device= KINDLE2 oncard=
None
DEBUG: 0.0 USBMS: dirs are: D:\ documents
Job: 1 Get device information finished
No details available.
DEBUG: 0.5 USBMS: scan from root False D:\documents
DEBUG: 2.3 USBMS: count found in cache: 214, count of files in metadata: 214,
need_sync: False
DEBUG: 2.3 USBMS: Finished fetching list of books from device. oncard= None
DEBUG: 2.3 USBMS: Fetching list of books from device. Device= KINDLE2 oncard=
carda
DEBUG: 2.3 USBMS: Fetching list of books from device. Device= KINDLE2 oncard=
cardb
DeviceJob: 2 Get list of books on device done, calling callback
DeviceJob: 2 Get list of books on device callback returned
Job: 2 Get list of books on device finished
No details available.
Job: 3 Prepare files for transfer from device started
DeviceJob: 3 Prepare files for transfer from device done, calling callback
DeviceJob: 3 Prepare files for transfer from device callback returned
Job: 3 Prepare files for transfer from device finished
No details available.
Worker Launch took: 0.608999967575
Job: 4 Read metadata (0 of 1) finished
Read metadata (0 of 1)
DeDRM v6.0.3: Trying to decrypt The Book of Story Beginnings_B00B90Y24A.
azw3
Using Library AlfCrypto DLL/DYLIB/SO
MobiDeDrm v0.40.
Copyright © 2008-2012 The Dark Reverser et al.
MOBI header version 8, header length 256
Extra Data Flags: 3
Decrypting Kindle Format 8 ebook: The Book of Story Beginnings
Found 8 keys to try after 0.2 seconds
Crypto Type is: 2
DeDRM v6.0.3: Failed to decrypt with error: No key found in 8 keys tried
.
DeDRM v6.0.3: Looking for new default Kindle Key after 0.2 seconds
searching for kinfoFiles in C:\Users\Audra\AppData\Local
Found K4PC 1.9+ kinf2011 file: C:\Users\Audra\AppData\Local\Amazon\Kindl
e\storage\.kinf2011
Decrypted key file using IDString ’1425106139′ and UserName ‘Audra’
DeDRM v6.0.3: Found 1 new key
MobiDeDrm v0.40.
Copyright © 2008-2012 The Dark Reverser et al.
MOBI header version 8, header length 256
Extra Data Flags: 3
Decrypting Kindle Format 8 ebook: The Book of Story Beginnings
Found 4 keys to try after 0.4 seconds
Crypto Type is: 2
DeDRM v6.0.3: Ultimately failed to decrypt after 0.4 seconds.
Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/
Traceback (most recent call last):
File “calibre_plugins.dedrm.__init__”, line 403, in KindleMobiDecrypt
File “calibre_plugins.dedrm.k4mobidedrm”, line 213, in GetDecryptedBoo
k
File “calibre_plugins.dedrm.mobidedrm”, line 466, in processBook
DrmException: No key found in 4 keys tried.
Running file type plugin DeDRM failed with traceback:
Traceback (most recent call last):
File “site-packages\calibre\customize\ui.py”, line 154, in _run_filety
pe_plugins
File “calibre_plugins.dedrm.__init__”, line 465, in run
File “calibre_plugins.dedrm.__init__”, line 416, in KindleMobiDecrypt
DeDRMError: DeDRM v6.0.3: Ultimately failed to decrypt “The Book of Stor
y Beginnings_B00B90Y24A.azw3” after 0.4 seconds with error: No key found in 4 ke
ys tried.
Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/
Added The Book of Story Beginnings to db in: 1.11199998856 seconds
Worker Launch took: 0.154000043869
Job: 5 Convert book 1 of 1 (The Book of Story Beginnings) finished
Convert book 1 of 1 (The Book of Story Beginnings)
Resolved conversion options
calibre version: 0.9.29
{‘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*((ch
apter|book|section|part)\\s+)|((prolog|prologue|epilogue)(\\s+|$))', 'i')) or @c
lass = 'chapter']“,
‘chapter_mark’: u’pagebreak’,
‘comments’: None,
‘cover’: u’C:\\Users\\Audra\\AppData\\Local\\Temp\\calibre_o2g5tf\\n_ny
qn.jpeg’,
‘debug_pipeline’: None,
‘dehyphenate’: True,
‘delete_blank_paragraphs’: True,
‘disable_font_rescaling’: False,
‘dont_compress’: False,
‘duplicate_links_in_toc’: False,
‘embed_font_family’: None,
‘enable_heuristics’: False,
‘extra_css’: None,
‘extract_to’: None,
‘filter_css’: u”,
‘fix_indents’: True,
‘font_size_mapping’: None,
‘format_scene_breaks’: True,
‘html_unwrap_factor’: 0.4,
‘input_encoding’: None,
‘input_profile’: ,
‘insert_blank_line’: False,
‘insert_blank_line_size’: 0.5,
‘insert_metadata’: False,
‘isbn’: None,
‘italicize_common_cases’: True,
‘keep_ligatures’: False,
‘language’: None,
‘level1_toc’: None,
‘level2_toc’: None,
‘level3_toc’: None,
‘line_height’: 0.0,
‘linearize_tables’: False,
‘margin_bottom’: 5.0,
‘margin_left’: 5.0,
‘margin_right’: 5.0,
‘margin_top’: 5.0,
‘markup_chapter_headings’: True,
‘max_toc_links’: 50,
‘minimum_line_height’: 120.0,
‘mobi_file_type’: u’old’,
‘mobi_ignore_margins’: False,
‘mobi_keep_original_images’: False,
‘mobi_toc_at_start’: False,
‘no_chapters_in_toc’: False,
‘no_inline_navbars’: True,
‘no_inline_toc’: False,
‘output_profile’: ,
‘page_breaks_before’: u”//*[name()='h1' or name()='h2']“,
‘personal_doc’: u’[PDOC]‘,
‘prefer_author_sort’: False,
‘prefer_metadata_cover’: False,
‘pretty_print’: False,
‘pubdate’: None,
‘publisher’: None,
‘rating’: None,
‘read_metadata_from_opf’: u’C:\\Users\\Audra\\AppData\\Local\\Temp\\cal
ibre_o2g5tf\\ncbcln.opf’,
‘remove_fake_margins’: True,
‘remove_first_image’: False,
‘remove_paragraph_spacing’: False,
‘remove_paragraph_spacing_indent_size’: 1.5,
‘renumber_headings’: True,
‘replace_scene_breaks’: u”,
‘search_replace’: ‘[]‘,
‘series’: None,
‘series_index’: None,
‘share_not_sync’: False,
‘smarten_punctuation’: False,
‘sr1_replace’: None,
‘sr1_search’: None,
‘sr2_replace’: None,
‘sr2_search’: None,
‘sr3_replace’: None,
‘sr3_search’: None,
‘start_reading_at’: None,
‘subset_embedded_fonts’: False,
‘tags’: None,
‘timestamp’: None,
‘title’: None,
‘title_sort’: None,
‘toc_filter’: None,
‘toc_threshold’: 6,
‘toc_title’: None,
‘unsmarten_punctuation’: False,
‘unwrap_lines’: True,
‘use_auto_toc’: False,
‘verbose’: 2}
InputFormatPlugin: MOBI Input running
on C:\Users\Audra\AppData\Local\Temp\calibre_o2g5tf\lwppou.azw3
Found KF8 MOBI of type ‘standalone’
Python function terminated unexpectedly
The Book of Story Beginnings (Error Code: 1)
Traceback (most recent call last):
File “site.py”, line 132, in main
File “site.py”, line 109, in run_entry_point
File “site-packages\calibre\utils\ipc\worker.py”, line 189, in main
File “site-packages\calibre\gui2\convert\gui_conversion.py”, line 31,
in gui_convert_override
File “site-packages\calibre\gui2\convert\gui_conversion.py”, line 25,
in gui_convert
File “site-packages\calibre\ebooks\conversion\plumber.py”, line 1009,
in run
File “site-packages\calibre\customize\conversion.py”, line 239, in __c
all__
File “site-packages\calibre\ebooks\conversion\plugins\mobi_input.py”,
line 40, in convert
File “site-packages\calibre\ebooks\mobi\reader\mobi8.py”, line 70, in
__call__
File “site-packages\calibre\ebooks\mobi\reader\mobi6.py”, line 148, in
check_for_drm
calibre.ebooks.DRMError: The Book of Story Beginnings
Oh, this is on Windows 8 (tho I am upgrading to Win 7 very soon) and I copied via USB from my Kindle.
The most likely explanation is that you have entered the serial number of your Kindle incorrectly. The serial number is case-sensitive. The next most likely explanation is that your Kindle is a Kindle Fire of some kind.
Hi,
Would an upgrade to 6.0.5 from 6.0.3 help here? Is this book from a standalone kindle and if so which type or from your Kindle For PC?
I have a Kindle Fire and can’t get the latest version of the plugins to work (although the same plugins work fine for my husband with his older Kindle, which is on a separate Amazon account)– is there any way for me to strip the DRM from my files when all I have is a Fire?
Thank you for your help,
Jennifer
You have two options.
1. Download Kindle for Mac or Kindle for PC, download your books through that for DRM removal
2. Temporarily unregister your husband’s Kindle from his account, and register it to your account. Download all your books (to be de-DRMed) to the Kindle, and then copy them to your computer for de-drming. Then unregister the Kindle and re-register to your husband’s acccount.
It looks like there’s another way – use thom’s code. It’s not very easy to use yet, but it would be interesting to see if it works for you.
Coming to post the error message I got.
C:\Program Files\Calibre2>calibre-debug -g
calibre 0.9.30 isfrozen: True is64bit: False
Windows-7-6.1.7601-SP1 Windows (’32bit’, ‘WindowsPE’)
(‘Windows’, ’7′, ’6.1.7601′)
Python 2.7.4
Windows: (’7′, ’6.1.7601′, ‘SP1′, ‘Multiprocessor Free’)
Starting up…
Started up in 1.44 seconds with 1 books
Job: 1 Get device information started
DeviceJob: 1 Get device information done, calling callback
DeviceJob: 1 Get device information callback returned
Job: 2 Get list of books on device started
DEBUG: 0.0 USBMS: Fetching list of books from device. Device= KINDLE2 oncard=
None
DEBUG: 0.0 USBMS: dirs are: F:\ documents
DEBUG: 0.1 USBMS: scan from root False F:\documents
Job: 1 Get device information finished
No details available.
DEBUG: 0.3 USBMS: count found in cache: 20, count of files in metadata: 20, n
eed_sync: False
DEBUG: 0.3 USBMS: Finished fetching list of books from device. oncard= None
DEBUG: 0.3 USBMS: Fetching list of books from device. Device= KINDLE2 oncard=
carda
DEBUG: 0.3 USBMS: Fetching list of books from device. Device= KINDLE2 oncard=
cardb
DeviceJob: 2 Get list of books on device done, calling callback
DeviceJob: 2 Get list of books on device callback returned
Job: 2 Get list of books on device finished
No details available.
Job: 3 Prepare files for transfer from device started
DeviceJob: 3 Prepare files for transfer from device done, calling callback
DeviceJob: 3 Prepare files for transfer from device callback returned
Worker Launch took: 0.324000120163
Job: 3 Prepare files for transfer from device finished
No details available.
Job: 4 Read metadata (0 of 1) finished
Read metadata (0 of 1)
DeDRM v6.0.5: Trying to decrypt (Book_Name)-asin_B00C90ZX
K6-type_EBOK-v_0.azw1
Using Library AlfCrypto DLL/DYLIB/SO
Decrypting Topaz ebook: Book_Name
Found 0 keys to try after 0.5 seconds
DeDRM v6.0.5: Failed to decrypt with error: No key found in 0 keys tried
. Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/
DeDRM v6.0.5: Looking for new default Kindle Key after 0.5 seconds
searching for kinfoFiles in C:\Users\aurato\AppData\Local
No K4PC kindle.info/kinf/kinf2011 files have been found.
DeDRM v6.0.5: Ultimately failed to decrypt after 0.5 seconds.
Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/
Traceback (most recent call last):
File “calibre_plugins.dedrm.__init__”, line 376, in KindleMobiDecrypt
File “calibre_plugins.dedrm.k4mobidedrm”, line 214, in GetDecryptedBoo
k
File “calibre_plugins.dedrm.topazextract”, line 355, in processBook
DrmException: No key found in 0 keys tried. Read the FAQs at Alf’s blog:
http://apprenticealf.wordpress.com/
Running file type plugin DeDRM failed with traceback:
Traceback (most recent call last):
File “site-packages\calibre\customize\ui.py”, line 154, in _run_filety
pe_plugins
File “calibre_plugins.dedrm.__init__”, line 467, in run
File “calibre_plugins.dedrm.__init__”, line 418, in KindleMobiDecrypt
DeDRMError: DeDRM v6.0.5: Ultimately failed to decrypt “Book_Name-asin_B00C90ZXK6-type_EBOK-v_0.azw1” after 0.5 seconds with error: No
key found in 0 keys tried. Read the FAQs at Alf’s blog: http://apprenticealf.wor
dpress.com/
Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/
Added Book_Name to db in: 1.79200005531 seconds
Hi. Still having troubles only with some BN epubs, not all will unlock. Kindle, PDFs, and epubs downloaded from other sources work just fine. Is anyone else having this problem? Windows 7, updated Calibre and tools. Here’s the log from where I tried to view/convert a BN downloaded book.. Thanks in advance for any advice!
calibre Debug log
calibre 0.9.30 isfrozen: True is64bit: False
Windows-7-6.1.7601-SP1 Windows (’32bit’, ‘WindowsPE’)
(‘Windows’, ’7′, ’6.1.7601′)
Python 2.7.4
Windows: (’7′, ’6.1.7601′, ‘SP1′, ‘Multiprocessor Free’)
Starting up…
Started up in 7.64 seconds with 313 books
Worker Launch took: 0.202000141144
Worker Launch took: 0.141000032425
Job: 2 Convert book 1 of 1 (Nightfall) finished
Convert book 1 of 1 (Nightfall)
Resolved conversion options
calibre version: 0.9.30
{‘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\\Donovan\\AppData\\Local\\Temp\\calibre_wkd71a\mvx9c.jpeg’,
‘debug_pipeline’: None,
‘dehyphenate’: True,
‘delete_blank_paragraphs’: True,
‘disable_font_rescaling’: False,
‘dont_split_on_page_breaks’: False,
‘duplicate_links_in_toc’: False,
‘embed_font_family’: None,
‘enable_heuristics’: False,
‘epub_flatten’: False,
‘extra_css’: None,
‘extract_to’: None,
‘filter_css’: u”,
‘fix_indents’: True,
‘flow_size’: 260,
‘font_size_mapping’: None,
‘format_scene_breaks’: True,
‘html_unwrap_factor’: 0.4,
‘input_encoding’: None,
‘input_profile’: ,
‘insert_blank_line’: False,
‘insert_blank_line_size’: 0.5,
‘insert_metadata’: False,
‘isbn’: None,
‘italicize_common_cases’: True,
‘keep_ligatures’: False,
‘language’: None,
‘level1_toc’: None,
‘level2_toc’: None,
‘level3_toc’: None,
‘line_height’: 0.0,
‘linearize_tables’: False,
‘margin_bottom’: 5.0,
‘margin_left’: 5.0,
‘margin_right’: 5.0,
‘margin_top’: 5.0,
‘markup_chapter_headings’: True,
‘max_toc_links’: 50,
‘minimum_line_height’: 120.0,
‘no_chapters_in_toc’: False,
‘no_default_epub_cover’: False,
‘no_inline_navbars’: False,
‘no_svg_cover’: False,
‘output_profile’: ,
‘page_breaks_before’: u’/',
‘prefer_metadata_cover’: False,
‘preserve_cover_aspect_ratio’: False,
‘pretty_print’: True,
‘pubdate’: None,
‘publisher’: None,
‘rating’: None,
‘read_metadata_from_opf’: u’C:\\Users\\Donovan\\AppData\\Local\\Temp\\calibre_wkd71a\\c5ctwy.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,
‘unsmarten_punctuation’: False,
‘unwrap_lines’: True,
‘use_auto_toc’: False,
‘verbose’: 2}
InputFormatPlugin: EPUB Input running
on C:\Users\Donovan\AppData\Local\Temp\calibre_wkd71a\ji4wak.epub
Python function terminated unexpectedly
ji4wak.epub (Error Code: 1)
Traceback (most recent call last):
File “site.py”, line 132, in main
File “site.py”, line 109, in run_entry_point
File “site-packages\calibre\utils\ipc\worker.py”, line 189, in main
File “site-packages\calibre\gui2\convert\gui_conversion.py”, line 31, in gui_convert_override
File “site-packages\calibre\gui2\convert\gui_conversion.py”, line 25, in gui_convert
File “site-packages\calibre\ebooks\conversion\plumber.py”, line 1009, in run
File “site-packages\calibre\customize\conversion.py”, line 239, in __call__
File “site-packages\calibre\ebooks\conversion\plugins\epub_input.py”, line 188, in convert
calibre.ebooks.DRMError: ji4wak.epub
An import log is what’s needed, not a view/conversion log. DRM-removal only happens on import.
If your B&N ePubs are downloaded using the desktop app, then the most likely cause is incorrect name/number. Try variations, and remmeber it’s the default number when your downloaded the ePub, not when you bought it.
Hi Paul! Thanks for getting back to me. I imported via USB, pulling the files directly from my Nook, to the desktop, then to calibre. When that didn’t work, I downloaded Nook for PC, downloaded one of the books there, found the file in explorer and then imported to calibre. Still no DRM removal. I know the tools are working otherwise, because just minutes before I did the same thing with Kindle for PC and was able to deDRM and convert to epub. Thanks, Wendy
Here’s what the log says when I try to import in debug mode
calibre Debug log
calibre 0.9.30 isfrozen: True is64bit: False
Windows-7-6.1.7601-SP1 Windows (’32bit’, ‘WindowsPE’)
(‘Windows’, ’7′, ’6.1.7601′)
Python 2.7.4
Windows: (’7′, ’6.1.7601′, ‘SP1′, ‘Multiprocessor Free’)
Starting up…
Started up in 5.85 seconds with 312 books
Worker Launch took: 1.04600000381
Added Nightfall to db in: 0.0309998989105 seconds
Job: 1 Read metadata (0 of 1) finished
Read metadata (0 of 1)
DeDRM v6.0.5: Trying to decrypt Nightfall – Connor, Ellen.epub
DeDRM v6.0.5: Verifying zip archive integrity
DeDRM v6.0.5: “Nightfall – Connor, Ellen.epub” is a secure Barnes & Noble ePub
DeDRM v6.0.5: Ultimately failed to decrypt after 0.3 seconds.
Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/
Running file type plugin DeDRM failed with traceback:
Traceback (most recent call last):
File “site-packages\calibre\customize\ui.py”, line 154, in _run_filetype_plugins
File “calibre_plugins.dedrm.__init__”, line 478, in run
File “calibre_plugins.dedrm.__init__”, line 176, in ePubDecrypt
DeDRMError: DeDRM v6.0.5: Ultimately failed to decrypt “Nightfall – Connor, Ellen.epub” after 0.3 seconds.
Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/
Worker Launch took: 0.156000137329
By “secure B & N ePub” does it mean that some books just can’t be deDRMed?
Thanks, Wendy
There has been a report that boks taken from a nook won’t decrypt. However, the copy downloaded using Nook for PC should work. The problem seems to be that you haven’t entered the required information in the plugins preferences. You need to enter your name and the default CC number in your B&N account at the time of download. The exact form of your name could be any of the ones in your Barnes & Nobel acount, so you might have to try several different versions.
Paul, you’re my hero! Thank you so much! It worked like a charm. I don’t even have to go download all the books through Nook for PC. All I have to do is cut the file from calibre via explorer, paste to desktop, use the calibre command to remove the book and then re-add.
My problem was I didn’t know what a key was and was afraid to mess with it. It was also weird how only certain books needed the key.
For anyone else out there who is only semi literate in calibre-ees – to fix this, go to preferences, change behavior, plugins, file type plugins, then highlight the deDRM removal tool. Click customize plugin, B&N ebook, and then the green plus symbol. Its here that you’ll name your key and add the name and credit card number from your bn account.
Good luck everyone!
Hi,
I bought a book with a DRM Adobe Digital Edition. I can read it with the proper adobe application. I tried to remove DRM with Calibre plug-in in Mac but without succes. Here is the log:
Worker Launch took: 0.27353811264
Job: 1 Read metadata (0 of 1) finished
Read metadata (0 of 1)
DeDRM v6.0.5: Trying to decrypt 8000 Quiz + glossario per Medicina, Odontoiatria, Veterinaria.pdf
DeDRM v6.0.5: 8000 Quiz + glossario per Medicina, Odontoiatria, Veterinaria.pdf is a PDF ebook
DeDRM v6.0.5: Ultimately failed to decrypt after 0.1 seconds.
Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/
Running file type plugin DeDRM failed with traceback:
Traceback (most recent call last):
File “site-packages/calibre/customize/ui.py”, line 154, in _run_filetype_plugins
File “calibre_plugins.dedrm.__init__”, line 474, in run
File “calibre_plugins.dedrm.__init__”, line 356, in PDFDecrypt
DeDRMError: DeDRM v6.0.5: Ultimately failed to decrypt “8000 Quiz + glossario per Medicina, Odontoiatria, Veterinaria.pdf” after 0.1 seconds.
Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/
Syntax Error: Couldn’t find the ‘EBX_HANDLER’ security handler
Traceback (most recent call last):
File “site-packages/calibre/customize/ui.py”, line 334, in get_file_type_metadata
File “site-packages/calibre/customize/builtins.py”, line 320, in get_metadata
File “site-packages/calibre/ebooks/metadata/pdf.py”, line 96, in get_metadata
ValueError: Could not read info dict from PDF
Thanks for your help
Never seen that issue before, maybe email Alf the document in question. Can I ask where you obtained the PDF from?
I kept getting the “missing top-level __init__.py file” error trying to install the plugins. Then I noticed that the “DeDRM_calibre_plugins” subfolder of the unzipped tools_v6.0.5.zip does not have the final “s” in its name; it’s named “DeDRM_calibre_plugin” instead. When I added the “s” to the subfolder name, the plugins installed!
NOTE: The DeDRM_plugin.zip file itself also lacks the “s” after “plugin”, but I didn’t add it. BTW, the only Zip file within DeDRM_plugin.zip is “alfcrypto_src.zip”. Also, I’m using Win8 64-bit, and I installed the 64-bit versions of Calibre 0.9.30, ActivePython, and pycrypto. I’m new to DeDRM, so I haven’t tried to DeDRM a file yet, and I probably wouldn’t know it if I succeeded.
It sounds to me like you were trying to add the entire tools zip, rather than just the DeDRM_plugin.zip file. The presence or absence of the s on the folder name (there shouldn’t be one, as there’s now only one plugin) won’t affet loading the plugin at all, but it might have clued you in to accidentally browsing into the still zipped tools file instead of the unzipped tools folder. (Windows ‘helpfully’ lets you browse inside zip files as if they were folders, but I think if you do that in a file selection dialog, it returns the outer zip file.)
I’ve installed & authorized w/ Adobe Digital Editions on linux under wine. have also installed the python + crypto libraries (and Kindle app). I’m unable to import the Adobe Keys however. I set my wineprefix in the plugin to /home/erick/.wine and I get a message saying the keys could not be found. Any tips are greatly appreciated
Read metadata (0 of 1)
DeDRM v6.0.5: Trying to decrypt The_Lean_Startup.epub
DeDRM v6.0.5: Verifying zip archive integrity
DeDRM v6.0.5: The_Lean_Startup.epub is a secure Adobe Adept ePub
DeDRM v6.0.5: Looking for new default Adobe Digital Editions Keys after 0.1 seconds
Traceback (most recent call last):
File “calibre_plugins.dedrm.__init__”, line 219, in ePubDecrypt
AttributeError: ‘module’ object has no attribute ‘join’
DeDRM v6.0.5: Ultimately failed to decrypt after 0.1 seconds.
Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/
Running file type plugin DeDRM failed with traceback:
Traceback (most recent call last):
File “/usr/lib/calibre/calibre/customize/ui.py”, line 148, in _run_filetype_plugins
nfp = plugin.run(path_to_file)
File “calibre_plugins.dedrm.__init__”, line 478, in run
File “calibre_plugins.dedrm.__init__”, line 264, in ePubDecrypt
DeDRMError: DeDRM v6.0.5: Ultimately failed to decrypt âThe_Lean_Startup.epubâ after 0.1 seconds.
Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/
I think you’ve found a bug. As a work-around, you could run the adobekey.pyw (Other Tools) script manually under wine, and then import the generated .der file into the plugin’s preferences.
Great thanks Paul. I’ll try tonight when I get home.
Short version: How do I get the k4i key file that corresponding to my kindle?
Longer version: Using Mac OS 10.8.3, Caibre 0.9.31. The files that have been downloaded to my Mac to read on the “Kindle for Mac” application can be deDRMed using Calibre. Files that have been downloaded to my Kindle (version 3.3 Kindle Keyboard) cannot be deDRMed. In the previous version of the plugin, I was able to use the Kindle Serial Number with the plugin to deDRM books. I would like to generate the k4i file corresponding to my physical Kindle so that if Amazon does change the “Kindle for Mac” application through an update where the DRM-key can no longer be extracted, I will still be able to deDRM books. The DRM method for the physical Kindle is already set and cannot be changed. As long as I can download book that can be read on the physical Kindle, I should always be able to deDRM them. That is as long as I have the corresponding k4i key.
Thank you for your help.
You don’t generate a .k4i file for an eInk Kindle (such as your Kindle Keyboard), you just enter your Kindle’s serial number, in the “eInk Kindle ebooks” section of the plugins preferences.
Please consider adding the possibility to “reDRM” to the tools. In many cases, I free the book to make wanted changes or corrections, and then would be happy enough to put it back in original DRMed form. One can always deDRM again if there is an additional need. Having this capability may be beneficial in other ways.
I suppose it’s possible, but it seems unlikely that anyone would bother. (Would you also have to make sure it was re-encrypted using the same key as it originally had? And for Kindle files it would still only be usable on one device. Not very useful if you’ve gone to the trouble of editing it.)
Paul, thanks for the answer. Perhaps you are right. I don’t know about the Kindle. Some epub sellers offer more flexibility, and I prefer those. And there are some advantages in keeping the book recognized as part of the “ecosystem” from which you bought it. You can use the standard apps for transferring, and I think in the case of the Nook family of devices it would let you use the set-aside memory area on the device instead of sideloading somewhere else. Besides these things, even though the process may still be illegal in some locations, doing things like deDRMing, changing the font size or other formatting to accommodate individual needs, and then reDRMing (using the same key) seem like actions that would be acceptable or valid to a much greater number of people, even if they were DRM supporters.
But if I am alone in this, then “please pardon the interruption”.
Interesting idea, however I question whether the ReDRMed book would still be recognized by the device (and the network).
I feel like there would be little benefit in the book being recognized as part of the ecosystem, the edited book would not be reuploaded to the network, thus your edited changes will not be reflected anywhere else, also it would be problematic for syncing of read positions across devices.
I suppose if you were to use the Kindle network, things may be different with the Personal Document Service, however in that use case, there is still no need to ReDRM the book.
With respect to changing font sizes, most (if not all?) readers would surely allow such modifications.
Sorry if I posted incorrectly before, I am trying to use the DeDRM plugin for calibre on my Windows 7 64-bit OS on an e-book I purchased from Amazon and read using Kindle for PC. When I import the book by dragging and dropping the book this is the debug log that I receive: Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\Norm>calibre-debug -g
calibre 0.9.30 [64bit] isfrozen: True is64bit: True
Windows-7-6.1.7601-SP1 Windows (’64bit’, ‘WindowsPE’)
(‘Windows’, ’7′, ’6.1.7601′)
Python 2.7.4
Windows: (’7′, ’6.1.7601′, ‘SP1′, ‘Multiprocessor Free’)
Starting up…
Started up in 1.13 seconds with 0 books
Worker Launch took: 0.361000061035
Job: 1 Read metadata (0 of 1) finished
Read metadata (0 of 1)
DeDRM v6.0.5: Trying to decrypt B0076QVQLI_EBOK.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: The Command: Deep Inside the President’s
Secret Army (Kindle Single)
Found 0 keys to try after 0.2 seconds
Crypto Type is: 2
DeDRM v6.0.5: Failed to decrypt with error: No key found in 0 keys tried
.
DeDRM v6.0.5: Looking for new default Kindle Key after 0.2 seconds
searching for kinfoFiles in C:\Users\Norm\AppData\Local
Found K4PC 1.9+ kinf2011 file: C:\Users\Norm\AppData\Local\Amazon\Kindle
\storage\.kinf2011
DeDRM v6.0.5: Ultimately failed to decrypt after 0.3 seconds.
Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/
Traceback (most recent call last):
File “calibre_plugins.dedrm.__init__”, line 376, in KindleMobiDecrypt
File “calibre_plugins.dedrm.k4mobidedrm”, line 214, in GetDecryptedBoo
k
File “calibre_plugins.dedrm.mobidedrm”, line 467, in processBook
DrmException: No key found in 0 keys tried.
Running file type plugin DeDRM failed with traceback:
Traceback (most recent call last):
File “site-packages\calibre\customize\ui.py”, line 154, in _run_filety
pe_plugins
File “calibre_plugins.dedrm.__init__”, line 467, in run
File “calibre_plugins.dedrm.__init__”, line 418, in KindleMobiDecrypt
DeDRMError: DeDRM v6.0.5: Ultimately failed to decrypt “B0076QVQLI_EBOK.
azw” after 0.3 seconds with error: No key found in 0 keys tried.
Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/
Added The Command: Deep Inside the President’s Secret Army (Kindle Single) to db
in: 0.500999927521 seconds
Calibre then says the book is still DRMd and will not open. I would appreciate knowing what I am doing wrong, and if there is some way to fix this. Thanks, Nick
There is an update to Calibre, if that doesn’t resolve it, try reinstalling Kindle for PC
I think reinstalling Kindle for PC is most likely to fix it Sometimes the .kinf filedoesn’t seem to get written in a way the tools can read. Don’t forget to delete the local Kindle preferences at C:\Users\Norm\AppData\Local\Amazon\Kindle before reinstalling and re-registering.
Thanks for the help! I updated Calibre and re-installed Kindle and deleted the local preferences. Then, I tried to drag and drop the book again without success. Is the fact that I am using the 64 bit version of Calibre the possible problem?
No idea. I don’t think it should make a difference, but it’s easy enough for you to check. Just try out the 32-bit version.
OK!! I found an older version (1.4) of Kindle for PC and installed that. Once I did that and dragged my ebook over to Calibre it worked fine!! Thanks for the information, tools, and help!
Glad to hear you’re working. But the tools can work with the latest Kindle for PC. Really – just uninstalling and deleting the preferences before reinstalling can get it to work, even with the same version of the software. I’ve no idea why.
Hello,
Bought a book on Amazon yesterday, had it delivered to my Kindle over whisper net, connected the Kindle to my PC via USB, copied it to Caliber. Caliber asked if I wanted to upgrade, upgraded. Then wanted to push the book to the Nook, that failed. Reinstalled tools 6.0.4, tried converting to MOBI – failed. Upgraded tools from 6.0.4 to 6.0.5 – failed again. Started caliber in debug mode and tried to convert the book to MOBI.
OS: Win7 64
The log is below:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Windows\System32>calibre-debug -g
calibre 0.9.31 isfrozen: True is64bit: False
Windows-7-6.1.7601-SP1 Windows (’32bit’, ‘WindowsPE’)
(‘Windows’, ’7′, ’6.1.7601′)
Python 2.7.4
Windows: (’7′, ’6.1.7601′, ‘SP1′, ‘Multiprocessor Free’)
Starting up…
Started up in 1.18 seconds with 42 books
Job: 1 Get device information started
DeviceJob: 1 Get device information done, calling callback
DeviceJob: 1 Get device informationJob: callback returned1
Job:Get device information 2finished
Get list of books on deviceNo details available.
started
DEBUG: 0.0 USBMS: Fetching list of books from device. Device= NOOK oncard= No
ne
DEBUG: 0.0 USBMS: dirs are: E:\ my documents
DEBUG: 0.0 USBMS: scan from root False E:\my documents
DEBUG: 0.0 USBMS: count found in cache: 13, count of files in metadata: 13, n
eed_sync: False
DEBUG: 0.0 USBMS: Finished fetching list of books from device. oncard= None
DEBUG: 0.0 USBMS: Fetching list of books from device. Device= NOOK oncard= ca
rda
DEBUG: 0.0 USBMS: Fetching list of books from device. Device= NOOK oncard= ca
rdb
DeviceJob: 2 Get list of books on device done, calling callback
DeviceJob: 2 Get list of books on device callback returned
Job: 1 Get device information finished
No details available.
Job: 2 Get list of books on device finished
No details available.
Worker Launch took: 0.104000091553
Job: 3 Convert book 1 of 1 (There Goes the Galaxy) finished
Convert book 1 of 1 (There Goes the Galaxy)
Resolved conversion options
calibre version: 0.9.31
{‘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*((ch
apter|book|section|part)\\s+)|((prolog|prologue|epilogue)(\\s+|$))', 'i')) or @c
lass = 'chapter']“,
‘chapter_mark’: u’pagebreak’,
‘comments’: None,
‘cover’: u’C:\\Users\\tv\\AppData\\Local\\Temp\\calibre_nqdg7j\\ae6u4y.
jpeg’,
‘debug_pipeline’: None,
‘dehyphenate’: True,
‘delete_blank_paragraphs’: True,
‘disable_font_rescaling’: False,
‘dont_compress’: False,
‘duplicate_links_in_toc’: False,
‘embed_font_family’: None,
‘enable_heuristics’: False,
‘extra_css’: None,
‘extract_to’: None,
‘filter_css’: u”,
‘fix_indents’: True,
‘font_size_mapping’: None,
‘format_scene_breaks’: True,
‘html_unwrap_factor’: 0.4,
‘input_encoding’: None,
‘input_profile’: ,
‘insert_blank_line’: False,
‘insert_blank_line_size’: 0.5,
‘insert_metadata’: False,
‘isbn’: None,
‘italicize_common_cases’: True,
‘keep_ligatures’: False,
‘language’: None,
‘level1_toc’: None,
‘level2_toc’: None,
‘level3_toc’: None,
‘line_height’: 0.0,
‘linearize_tables’: False,
‘margin_bottom’: 5.0,
‘margin_left’: 5.0,
‘margin_right’: 5.0,
‘margin_top’: 5.0,
‘markup_chapter_headings’: True,
‘max_toc_links’: 50,
‘minimum_line_height’: 120.0,
‘mobi_file_type’: u’old’,
‘mobi_ignore_margins’: False,
‘mobi_keep_original_images’: False,
‘mobi_toc_at_start’: False,
‘no_chapters_in_toc’: False,
‘no_inline_navbars’: True,
‘no_inline_toc’: False,
‘output_profile’: ,
‘page_breaks_before’: u”//*[name()='h1' or name()='h2']“,
‘personal_doc’: u’[PDOC]‘,
‘prefer_author_sort’: False,
‘prefer_metadata_cover’: False,
‘pretty_print’: False,
‘pubdate’: None,
‘publisher’: None,
‘rating’: None,
‘read_metadata_from_opf’: u’C:\\Users\\tv\\AppData\\Local\\Temp\\calibr
e_nqdg7j\\i9jvrt.opf’,
‘remove_fake_margins’: True,
‘remove_first_image’: False,
‘remove_paragraph_spacing’: False,
‘remove_paragraph_spacing_indent_size’: 1.5,
‘renumber_headings’: True,
‘replace_scene_breaks’: u”,
‘search_replace’: ‘[]‘,
‘series’: None,
‘series_index’: None,
‘share_not_sync’: False,
‘smarten_punctuation’: False,
‘sr1_replace’: None,
‘sr1_search’: None,
‘sr2_replace’: None,
‘sr2_search’: None,
‘sr3_replace’: None,
‘sr3_search’: None,
‘start_reading_at’: None,
‘subset_embedded_fonts’: False,
‘tags’: None,
‘timestamp’: None,
‘title’: None,
‘title_sort’: None,
‘toc_filter’: None,
‘toc_threshold’: 6,
‘toc_title’: None,
‘unsmarten_punctuation’: False,
‘unwrap_lines’: True,
‘use_auto_toc’: False,
‘verbose’: 2}
InputFormatPlugin: MOBI Input running
on C:\Users\tv\AppData\Local\Temp\calibre_nqdg7j\zh0oqz.azw
Python function terminated unexpectedly
There Goes the Galaxy (Error Code: 1)
Traceback (most recent call last):
File “site.py”, line 132, in main
File “site.py”, line 109, in run_entry_point
File “site-packages\calibre\utils\ipc\worker.py”, line 189, in main
File “site-packages\calibre\gui2\convert\gui_conversion.py”, line 31,
in gui_convert_override
File “site-packages\calibre\gui2\convert\gui_conversion.py”, line 25,
in gui_convert
File “site-packages\calibre\ebooks\conversion\plumber.py”, line 1010,
in run
File “site-packages\calibre\customize\conversion.py”, line 239, in __c
all__
File “site-packages\calibre\ebooks\conversion\plugins\mobi_input.py”,
line 34, in convert
File “site-packages\calibre\ebooks\mobi\reader\mobi6.py”, line 152, in
extract_content
File “site-packages\calibre\ebooks\mobi\reader\mobi6.py”, line 148, in
check_for_drm
calibre.ebooks.DRMError: There Goes the Galaxy
Looks like you haven’t properly installed the plugins. Read DeDRM_plugin_ReadMe.txt
Alternatively, remember that drm removal happens only on import, not on conversion. You probably just need to delete the book from calibre and reimport it.
Interesting point, Paul, thank you! That didn’t help though. I’m going to paste the debug log below, but this is what stands out: after 0.1 seconds with error: No key found in 4 keys tried.
A new key is needed?
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Windows\System32>calibre-debug -g
calibre 0.9.31 isfrozen: True is64bit: False
Windows-7-6.1.7601-SP1 Windows (’32bit’, ‘WindowsPE’)
(‘Windows’, ’7′, ’6.1.7601′)
Python 2.7.4
Windows: (’7′, ’6.1.7601′, ‘SP1′, ‘Multiprocessor Free’)
Starting up…
Started up in 0.47 seconds with 40 books
Job: 1 Get device information started
DeviceJob: 1 Get device information done, calling callback
DeviceJob: 1 Get device information callback returned
Job: 2 Get list of books on device started
DEBUG: 0.0 USBMS: Fetching list of books from device. Device= KINDLE2 oncard=
None
DEBUG: 0.0 USBMS: dirs are: E:\ documents
DEBUG: 0.1 USBMS: scan from root False E:\documents
Job: 1 Get device information finished
No details available.
DEBUG: 0.7 USBMS: count found in cache: 39, count of files in metadata: 39, n
eed_sync: False
DEBUG: 0.7 USBMS: Finished fetching list of books from device. oncard= None
DEBUG: 0.7 USBMS: Fetching list of books from device. Device= KINDLE2 oncard=
carda
DEBUG: 0.7 USBMS: Fetching list of books from device. Device= KINDLE2 oncard=
cardb
DeviceJob: 2 Get list of books on device done, calling callback
DeviceJob: 2 Get list of books on device callback returned
Job: 2 Get list of books on device finished
No details available.
Job: 3 Prepare files for transfer from device started
DeviceJob: 3 Prepare files for transfer from device done, calling callback
DeviceJob: 3 Prepare files for transfer from device callback returned
Worker Launch took: 0.0900001525879
Job: 3 Prepare files for transfer from device finished
No details available.
Job: 4 Read metadata (0 of 1) finished
Read metadata (0 of 1)
DeDRM v6.0.5: Trying to decrypt There Goes the Galaxy_B005M2RRRA.azw
Using Library AlfCrypto DLL/DYLIB/SO
MobiDeDrm v0.41.
Copyright © 2008-2012 The Dark Reverser et al.
MOBI header version 6, header length 248
Extra Data Flags: 3
Decrypting Mobipocket 6 ebook: There Goes the Galaxy
Found 4 keys to try after 0.0 seconds
Crypto Type is: 2
DeDRM v6.0.5: Failed to decrypt with error: No key found in 4 keys tried
.
DeDRM v6.0.5: Looking for new default Kindle Key after 0.0 seconds
searching for kinfoFiles in C:\Users\tv\AppData\Local
Found K4PC 1.9+ kinf2011 file: C:\Users\tv\AppData\Local\Amazon\Kindle\s
torage\.kinf2011
Decrypted key file using IDString ’686312528′ and UserName ‘tv’
DeDRM v6.0.5: Found 1 new key
MobiDeDrm v0.41.
Copyright © 2008-2012 The Dark Reverser et al.
MOBI header version 6, header length 248
Extra Data Flags: 3
Decrypting Mobipocket 6 ebook: There Goes the Galaxy
Found 4 keys to try after 0.1 seconds
Crypto Type is: 2
DeDRM v6.0.5: Ultimately failed to decrypt after 0.1 seconds.
Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/
Traceback (most recent call last):
File “calibre_plugins.dedrm.__init__”, line 405, in KindleMobiDecrypt
File “calibre_plugins.dedrm.k4mobidedrm”, line 214, in GetDecryptedBoo
k
File “calibre_plugins.dedrm.mobidedrm”, line 467, in processBook
DrmException: No key found in 4 keys tried.
Running file type plugin DeDRM failed with traceback:
Traceback (most recent call last):
File “site-packages\calibre\customize\ui.py”, line 154, in _run_filety
pe_plugins
File “calibre_plugins.dedrm.__init__”, line 467, in run
File “calibre_plugins.dedrm.__init__”, line 418, in KindleMobiDecrypt
DeDRMError: DeDRM v6.0.5: Ultimately failed to decrypt “There Goes the G
alaxy_B005M2RRRA.azw” after 0.1 seconds with error: No key found in 4 keys tried
.
Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/
Added There Goes the Galaxy to db in: 0.115000009537 seconds
If that’s an eInk Kindle you’re importing the file from, you need to enter the serial number in the apprpriate part of the configuration dialog. NB Kindle serial numbers are case-sensitive.
Thank you very much, Paul! That worked. Is this a recent change? I don’t think I entered the serial number for my Kindle with the previous verion of DeDRM (6.0.4).
Anyway, it’s all good now. Thank you very much for the tool and for the help!
Decrypting books from an E-Ink Kindle has always required the Kindle’s serial number. (Or, very long ago, a PID derived from the Kindle’s serial number. )
I installed according to the readme, Charley. I can see the plugin under file type plugins and can configure it. With previous version of Caliber and 6.0.4 it worked fine. I tried removing and reinstalling it, too – same result.
I have an issue with installing the latest DRM Tools for Calibre. I downloaded and unzipped the file without any problems, but when I go to install the plugin I get this message:
calibre, version 0.9.31
ERROR: Unhandled exception: InvalidPlugin:The plugin in u’C:/Documents and Settings/Mark R. Hansen/My Documents/Book Tools/DeDRM_plugin_6.0.6/alfcrypto_src.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 361, in add_plugin
File “site-packages\calibre\customize\ui.py”, line 53, 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’C:/Documents and Settings/Mark R. Hansen/My Documents/Book Tools/DeDRM_plugin_6.0.6/alfcrypto_src.zip’ is invalid. It does not contain a top-level __init__.py file
I know it is the correct zip file…Running XP SP3.
It seems Alf has uploaded the plugin on its own. Don’t unzip it, just add the DeDRM_plugin_6.0.6.zip
Thanks Paul…that did the trick.
Am I right to say that Microsoft Windows users do not need to download and install DeDRM_plugin_6.0.6.zip?
According to Alf’s release notes, the only fix is for Linux users, so Windows users (and Mac users) needn’t bother.
After updating to ver 6.0.6 when adding/dedrming kindle books I get an error message:
K4MobiDeDRM v0.4.2 Plugin
Error: No Key found please report this failure for help
update: the book is added and DeDRMed correctly after pressing OK. Does not give error message every time.
You haven’t deleted the old K4MobiDeDRM v0.4.2 plugin that you installed at some point. Delete it.
Thanks, that must have been there for quite a while.
I have tried over and over again to down load the plugin zip file but I can’t do it. I keep getting a file called get.php… no zip file. I have windows 7
Are you trying to right click and save As? Or do you have some kind of download accelerater installed? Just clicking the grey DOWNLOAD button will work. If all else fails, try a different browser.
Hi there, I am having trouble getting an Amazon book to open in Calibre. This is the first time I have tried to remove the drm since installing the new combined plugins. I no longer have a Kindle and use the Kindle for PC app.
I opened the book successfully in the app. Then I went to Calibre and imported the book from the My Kindle Content folder.
The book imports fine but when I try to open it I get an error message saying Invalid Start Byte, clicking more details gives this:
Traceback (most recent call last):
File “site-packages\calibre\gui2\viewer\main.py”, line 40, in run
File “threading.py”, line 504, in run
File “site-packages\calibre\ebooks\oeb\iterator\book.py”, line 99, in __enter__
File “site-packages\calibre\customize\conversion.py”, line 239, in __call__
File “site-packages\calibre\ebooks\conversion\plugins\mobi_input.py”, line 40, in convert
File “site-packages\calibre\ebooks\mobi\reader\mobi8.py”, line 95, in __call__
File “site-packages\calibre\ebooks\mobi\reader\mobi8.py”, line 425, in expand_text
File “site-packages\calibre\ebooks\mobi\reader\markup.py”, line 310, in expand_mobi8_markup
File “site-packages\calibre\ebooks\mobi\reader\markup.py”, line 51, in update_internal_links
File “encodings\utf_8.py”, line 16, in decode
UnicodeDecodeError: ‘utf8′ codec can’t decode byte 0×94 in position 24741: invalid start byte
I deleted the book and tried again using the debug instructions. Here are the results from that:
Microsoft Windows [Version 6.0.6002]
Copyright (c) 2006 Microsoft Corporation. All rights reserved.
C:\Windows\system32>calibre-debug -g
calibre 0.9.27 isfrozen: True is64bit: False
Windows-Vista-6.0.6002-SP2 Windows (’32bit’, ‘WindowsPE’)
(‘Windows’, ‘Vista’, ’6.0.6002′)
Python 2.7.3
Windows: (‘Vista’, ’6.0.6002′, ‘SP2′, ‘Multiprocessor Free’)
Starting up…
Started up in 2.51 seconds with 945 books
Worker Launch took: 0.34500002861
Job: 1 Read metadata (0 of 1) finished
Read metadata (0 of 1)
DeDRM v6.0.4: Trying to decrypt B00CV32CSC_EBOK.azw
Using Library AlfCrypto DLL/DYLIB/SO
MobiDeDrm v0.41.
Copyright © 2008-2012 The Dark Reverser et al.
MOBI header version 8, header length 264
Extra Data Flags: 3
Decrypting Kindle Format 8 ebook: Funny And Weird Facts: 600 Interesting
Facts You Never Knew
Found 4 keys to try after 0.3 seconds
Crypto Type is: 2
File is encoded with PID ziObJyKFHR.
Decrypting. Please wait . . . done
Decryption succeeded after 0.3 seconds
DeDRM v6.0.4: Successfully decrypted book after 0.3 seconds
Added Funny And Weird Facts: 600 Interesting Facts You Never Knew to db in: 1.95
799994469 seconds
Worker Launch took: 0.330999851227
I would appreciate any help with this please.
Thank you
Please ignore my entire post. After posting it, I noticed I needed to update Calibre. I also uninstalled my de-drm plugin. Between the updated Calibre and the fresh plugin install, everything is now working as it should. Thanks
Yes, that was a calibre problem, fixed in the latest 0.9.31 update.
I’m running the latest Calibre 0.9.31, and the latest Alf tools v6.0.5, both downloaded and installed today on Win XP. I have restarted Calibre several times since adding the plugin. I bought a book from Amazon and downloaded it via the USB option. It shows a Feb 2013 publishing date and has the .azw3 extension. I properly loaded the Alf plugin into Calibre, then ‘Added’ the new book. The DRM was not removed. I tried renaming the book to .azw but got the same results.
Thanks for all your work and if you have any ideas on this I’d appreciate it.
If you download via the USB option, you downloaded it for some particular device. If that was a Kindle with an E-Ink screen then you need to enter that Kindle’s serial number in the configuration of the plugin.
Perhaps you should read the ReadMe and the FAQs.
Thank you! I was following second-hand web advice and never thought to actually RTFM…
For info to others: In Calibre the Alf plugin will show up under “File Type” plugins. A Kindle “Touch” (in my case) falls into the E-ink type of readers. The serial number from the Touch can be found via its “Menu | Settings | Menu | Device Info”. The serial will be shown with spaces between each block of four characters. Enter the serial into the Alf plugin *without* the spaces. Then restart Calibre.
Worked great.
Not working for me – book loads fine in Adobe Digital Editions but after importing it into Calibre it is still DRM protected. I’m on Windows 8 x64 and have tried both the 32-bit and 64-bit versions of Calibre, have tried reloading Calibre, rebooting, nothing…It just doesn’t seem to work
Never any issues with the installation of the plug-in.
A log of an import might help to sort out your problem.
Microsoft Windows [Versi¢n 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Reservados todos los derechos.
C:\Users\Samsung>Calibre
C:\Users\Samsung>calibre-debug -g
calibre 0.9.30 isfrozen: True is64bit: False
Windows-7-6.1.7601-SP1 Windows (’32bit’, ‘WindowsPE’)
(‘Windows’, ’7′, ’6.1.7601′)
Python 2.7.4
Windows: (’7′, ’6.1.7601′, ‘SP1′, ‘Multiprocessor Free’)
Starting up…
Key u’A’ for shortcut Añadir archivos a los registros de libros seleccionados is
already used by Añadir libros, ignoring
Key u’N’ for shortcut Ir al objeto anterior is already used by Ir a la siguiente
coincidencia, ignoring
Key u’F3′ for shortcut Ir al objeto anterior is already used by Ir a la siguient
e coincidencia, ignoring
Key u’Alt+T’ for shortcut Conmutar Explorador de etiquetas is already used by Li
bros con las mismas etiquetas, ignoring
Key u’Ctrl+F’ for shortcut Iniciar búsqueda is already used by Búsqueda avanzada
, ignoring
Key u’Alt+S’ for shortcut Iniciar búsqueda is already used by Libros de la misma
serie, ignoring
Started up in 16.79 seconds with 6357 books
Worker Launch took: 2.87599992752
Job: 1 Read metadata (0 of 1) finished
Read metadata (0 of 1)
DeDRM v6.0.6: Trying to decrypt 23 cosas que no te cuentan sobre el.epub
DeDRM v6.0.6: Verifying zip archive integrity
DeDRM v6.0.6: “23 cosas que no te cuentan sobre el.epub” is neither an A
dobe Adept nor a Barnes & Noble encrypted ePub
DeDRM v6.0.6: Successfully decrypted book after 0.8 seconds
Inept Epub DeDRM v0.2.1: Trying to decrypt 23 cosas que no te cuentan so
bre el.epub.
Inept Epub DeDRM v0.2.1: Verifying zip archive integrity.
Running file type plugin Inept Epub DeDRM failed with traceback:
Traceback (most recent call last):
File “site-packages\calibre\customize\ui.py”, line 154, in _run_filety
pe_plugins
File “calibre_plugins.ineptepub.__init__”, line 129, in run
ADEPTError: Inept Epub DeDRM v0.2.1: 23 cosas que no te cuentan sobre el
.epub is not a secure Adobe Adept ePub.
Added 23 cosas que no te cuentan sobre el capitalismo to db in: 0.720999956131 s
econds
You need to delete the Inept Epub DeDRM v0.2.1 plugin.
The ePub you’re adding doesn’t seem to be from Barnes & Noble, nor an Adobe Digital Editions ePub. Where is it from? Perhaps it doesn’t have DRM at all.
I’ve tried using the the Kindle4Android patches before to try getting the app to cough up it’s serial numbers without much success, but I’ve just been having a look at newly release Cydia Substrate for Android http://www.cydiasubstrate.com/ and it occurs to me that Cydia’s ability to modify running programs on-the-fly could be just what’s needed to make getting Kindle App serial numbers much less problematic.
Does anyone know if any of the minds behind the Kindle patch are into using Cydia this way ?
Hi.
I’m using Linux (Ubuntu 13.04). I have installed ADE under wine and it is working (even if it cannot see my Kobo reader because wine doesn’t manage the USB link). Thus, I need to remove the DRM from the bought e-book, in order to load it on my reader using Calibre. I added the DeDRM plug-in to Calibre, but when I load the e-book the DRM is still there. Before sending the log to you, I would like to know the EXACT procedure to add the DeDRM plug-in under ubuntu and how I have to configure it after the installation, taking into account that ADE is working under wine.
Thank you very much.
As far as I understand things, you have calibre installled as a native ubuntu application, with the DeDRM plugin installed in that. The plugin then tries to run some scripts under the wine in which you have installed ADE to get the ADE key for decrypting books. For the scripts to run, I think you need to make sure that the plugin can find your wine if it’s not in a standard place, and you also need to install Python and PyCrypto under that wine.
I think all this info is in the readme.
When I pull a book in, it comes in but I get an error message about imagemagick and error code 1. When I ran the debug file on the command prompt, calibre did not open, and this is what I got:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\Shelly>calibre-debug -g
Loading ICU failed with: MemoryLoadLibrary() failed loading icu.pyd
Loading ICU failed with: MemoryLoadLibrary() failed loading icu.pyd
Python function terminated unexpectedly
Failed to load ImageMagick: No module named magick (Error Code: 1)
Traceback (most recent call last):
File “site.py”, line 132, in main
File “site.py”, line 109, in run_entry_point
File “site-packages\calibre\debug.py”, line 206, in main
File “site.py”, line 50, in load_module
File “site-packages\calibre\gui2\main.py”, line 18, in
File “site.py”, line 50, in load_module
File “site-packages\calibre\library\database2.py”, line 42, in
File “site.py”, line 50, in load_module
File “site-packages\calibre\utils\magick\__init__.py”, line 15, in
RuntimeError: Failed to load ImageMagick: No module named magick
C:\Users\Shelly> Thanks!
That looks like a calibre problem. I’m guessing that you’ve installed some utility called ImageMagick that isn’t working correctly. I suggest asking in the MobileRead calibre forum if you can’t sort it out yourself.
Hi! Thanks for your great blog! I have some books from kno textbooks (kno.com). They are originally PDF but i cant remove DRM from it like when i download from Adobe Digital Edition. Do you have any solutions?
Also, Apple has released a new book format called “ibook author” (.ibook, not .epub) that can only be read on ipad, not iphone. Do you have any way to remove DRM from it?
Thanks!
I don’t know about kno.com. There were PDFs from ScuolaBooks that someone provides a windows-only solution for. Perhaps kno.com uses the same scheme, and the ScuolaBooks solution might work for them?
I beleive that .ibook are extended .epubs, so perhaps Requiem by Brahms will help. But if that doens’t work, I haven’t heard of anything else for books from the iBookStore.
Thanks for all of this work.
I did have a problem with Linux and Amazon Kindle. It did not work with the installation of Kindle under wine 1.4 (using the default WINEPREFIX), what I had to do was to copy the whole c:\users\\AppData\Local\Amazon directory from a true Windows installation into the corresponding wine location and then it worked. The error was that it could not find the default_keys. There was a problem with it parsing the .kinf2011 file for the appropriate data. Simply replacing the file did not work, the whole of the Amazon Kindle data directory was required to fix.
I have a similar problem as massi above. This is with Calibre 0.9.31 [64bit] on Win 7. Book is from a Spanish publisher.
Job: 1 Read metadata (0 of 1) finished
Read metadata (0 of 1)
DeDRM v6.0.6: Trying to decrypt La Guitarra Historia, organología y repe
rtorio.pdf
DeDRM v6.0.6: La Guitarra Historia, organología y repertorio.pdf is a PD
F ebook
DeDRM v6.0.6: Ultimately failed to decrypt after 0.6 seconds.
Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/
Running file type plugin DeDRM failed with traceback:
Traceback (most recent call last):
File “site-packages\calibre\customize\ui.py”, line 154, in _run_filety
pe_plugins
File “calibre_plugins.dedrm.__init__”, line 475, in run
File “calibre_plugins.dedrm.__init__”, line 357, in PDFDecrypt
DeDRMError: DeDRM v6.0.6: Ultimately failed to decrypt “La Guitarra Hist
oria, organología y repertorio.pdf” after 0.6 seconds.
Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/
Syntax Error: Couldn’t find the ‘EBX_HANDLER’ security handler
pdfinfo errored out with return code: 1
Traceback (most recent call last):
File “site-packages\calibre\customize\ui.py”, line 334, in get_file_ty
pe_metadata
File “site-packages\calibre\customize\builtins.py”, line 320, in get_m
etadata
File “site-packages\calibre\ebooks\metadata\pdf.py”, line 96, in get_m
etadata
ValueError: Could not read info dict from PDF
Added La Guitarra Historia, organología y repertorio to db in: 1.09800004959 sec
onds
If that’s really an ADE PDF file, then it looks to me like you’re doing everything right. I have had PDFs successfully decryted, but I have very, very few PDF ebooks.
Yes, that’s an ADE PDF file. I actualy was able to deDRM it with this software http://adobe-pdf-drm-removal.en.softonic.com/. It’s a 30-day trial but I only needed it to decrypt this file, and it did so very easily.
How interesting. Taking a quick look at that software, it includes a python interpreter, libalfcrypto, and many other files from these tools, including ones definitely not needed for PDF DRM removal (e.g. topazextract.py!). I wonder why it worked.
Perhaps Alf would be interested to hear from your with sample files, to work out why the tools didn’t work for you.
I really appreciate that Alf took the time and effort to develop this tool. Please, let me know how I can send him the encrypted pdf, if it may be of any help.
Ask if it it would be useful to him. apprenticealf@gmail.com
(His avatar in the top right is a clickable link).
Oh, I’m sorry, I didn’t realize about that. I looked for the address but couldn’t find it. Thanks.
No, it’s not obvious. Perhaps he ought to make it more obvious.
For those who have problem with extracting key from Kindle for PC installation on Linux: You should install ActiveState ActivePython 2.7 (currently the only Windows version Python working on Wine) on Wine. It took me days to figure it out. The source code for DeDrm invokes specifically for Windows system calls, and normal Linux Python cannot access them, while Windows Python on Wine can.
I get the following message when importing a purchased book, downloaded via wifi, from my Kindle to Caibre:
K4MOBI DeDrm V 0.4.2.
“No Key found”, followed by the location of the book on my Kindle: T:bookname-B0061DUAW.azw3.
I OKed the message – and the book decrypted fine. Showed up on Calibre as an azw3 which could be read by the E-Book viewer, Convert to .mobi worked fine, read the .mobi file in the Kindle-PC reader worked fine.
So.. what exactly was missing?? And what should I do about it.
(I’ve been using Caibre and DeDrm for a while, all has worked well. Recently some system problems caused a reinstall of Calibre.)
You seem to be using an ancient copy of the Kindle dedrm plugin. I’d suggest deleting it and making sure the latest DeDRM plugin is installed (v6.0.6 last time I checked).
Actually, I did install the latest (6.06) through Calibre’s plug-in system. No errors, so I assume everything went OK. Is it normal for an update to require a manual uninstall first??
.
Only when there’s been a big change. Like going from separate plugins to one plugin.
I am not even very tech savvy, but I followed these instructions and now I am listening to my books only available on Kindle!! Perfect. Thank you for being so smart!!!
Very nice guide even including links to all the required programs for wine. Worked like a charm (ubuntu 12.04 64b)! Thanks bunches!
Thanks for the good writeup. It in fact was once a leisure account
it. Glance advanced to far delivered agreeable from you!
However, how could we keep in touch?
I’d like to share the patch for drm removal tools to support android.
patch: https://piebridge.me/dedrm.patch.txt
all in one for k4mobidrm: https://piebridge.me/k4mobidedrm.zip
No need to patch kindle for android, however, will need root phone, or on emulator, or backup kindle settings to get AmazonSecureStorage.xml.
steps:
1. get AmazonSecureStorage.xml from /data/data/com.amazon.kindle/shared_prefs/AmazonSecureStorage.xml
2. run `k4mobidedrm.py -a AmazonSecureStorage.xml ‘
Oh, well done, thom. Perhaps Apprentice Alf can work out a way to integrate those changes into the plugin.
there is another way to get serials without AmazonSecureStorage.xml.
just use andbug: https://github.com/swdunlop/AndBug
break with “break com.amazon.system.security.Security getPids(Lcom/amazon/system/security/IMessageDigest;Lcom/amazon/system/security/IBase64;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;[B[[B)[Ljava/lang/String;”
then try to open a book, it will suspend on the break point.
input “threads main verbose=3″, will show the stack and var data, then can get deviceSerialNumber and accountSecrets.
the serial will be deviceSerialNumber + one of accountSecrets.
if everyone know how to debug, my patch is useless.
I assure you that not only do few people know how to debug, even the number of people happy running a script from the command line is limited!
I’d like to share the patches to support kindle for android.
patch: https://piebridge.me/dedrm.patch.txt
allinone k4mobidedrm: https://piebridge.me/k4mobidedrm.zip
Usage:
1. get AmazonSecureStorage.xml from /data/data/com.amazon.kindle/shared_prefs/AmazonSecureStorage.xml
2. run `k4mobidedrm.py -a AmazonSecureStorage.xml ‘
Possible Issue to get AmazonSecureStorage.xml.
Normally, AmazonSecureStorage.xml cannot be read in android.
It can be read in rooted phone, emulator, or through backup settings.
I wont provide a patched version to display the essential content in AmazonSecureStorage.xml.
Running Windows 8 and Calibre 0.9.32.
Unzipped download of DeDRM_plugin_6.0.6.zip produces many .py files, and an alfcrypto_src.zip file.
There is no “DeDRM_calibre_plugin” folder (that contains DeDRM_plugin.zip)?
Any suggestions why I am not geting the “DeDRM_calibre_plugin” folder?
Not knowing how to solve, I did try directing Calibre plugin preference/behavior/load plugin at the alfcrypto_src.zip file which produced:
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 361, in add_plugin
File “site-packages\calibre\customize\ui.py”, line 53, 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’J:/unzipped_DeDRM_plugin_6.0.6/alfcrypto_src.zip’ is invalid. It does not contain a top-level __init__.py file
help?
Great site and very informative. Plugin does not work on the latest Calibre, comes back with error message when trying to load the .zip file.
Regards
Jinks
You’re probably trying to add the wrong file. It’s the DeDRM_plugin.zip file you need to add to calibre.
Funnily I just downloaded the latest calibre update, and now it works!