Giter Club home page Giter Club logo

dedrm_tools's Introduction

No Longer Maintained

I have not had the time to devote to this project in recent years that I would have liked. I am delighted to find that someone else has taken on the task of keeping the tools updated, and making releases. I shall be using noDRM's version of the tools from now on.

[Guide] How to remove DRM Refer to Wiki Page

DeDRM_tools

DeDRM tools for ebooks

This is a repository that tracks all the scripts and other tools for removing DRM from ebooks that I could find, committed in date order as best as I could manage. (Except for the Requiem tools for Apple's iBooks, and Convert LIT for Microsoft's .lit ebooks.) This includes the tools from a time before Apprentice Alf had a blog, and continues through to when Apprentice Harper (with help) took over maintenance of the tools.

The individual scripts are now released as two plugins for calibre: DeDRM and Obok. The DeDRM plugin handles books that use Amazon DRM, Adobe Digital Editions DRM (version 1), Barnes & Noble DRM, and some historical formats. The Obok plugin handles Kobo DRM.

Users with calibre 5.x or later should use release 7.2.0 or later of the tools. Users with calibe 4.x or earlier should use release 6.8.x of the tools.

For the latest Amazon KFX format, users of the calibre plugin should also install the KFX Input plugin from the standard calibre plugin menu. It's also available from the MobileRead thread here: https://www.mobileread.com/forums/showthread.php?t=291290

Note that Amazon changes the DRM for KFX files frequently. What works for KFX today might not work tomorrow.

I welcome contributions from others to improve these tools, from expanding the range of books handled, improving key retrieval, to just general bug fixes, speed improvements and UI enhancements.

I urge people to read the FAQs. But to cover the most common: Use ADE 2.0.1 to be sure not to get the new DRM scheme that these tools can't handle. Do remember to unzip the downloaded archive to get the plugin (beta versions may be just the plugin don't unzip that). You can't load the whole tools archive into calibre.

My special thanks to all those developers who have done the hard work of reverse engineering to provide the initial tools.

Apprentice Harper.

dedrm_tools's People

Contributors

2weak2live avatar ableeker avatar adericbourg avatar adrw avatar aplaice avatar apprenticealf avatar apprenticeharper avatar cclauss avatar cgaspar avatar concavegit avatar dunesmopy avatar dzmlsience avatar ivan-m avatar jonahweissman avatar jpwhiting avatar keshavgbpecdelhi avatar koumaza avatar kubik147 avatar llrosy798 avatar norbusan avatar pdurrant avatar penenkel avatar taroxd avatar task-hazy avatar tomthumb1997 avatar tzk13 avatar vanicat avatar wxl avatar wzyboy avatar xxyzz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dedrm_tools's Issues

Kindle for Android code won't run correctly if userdata_row is empty

If userdata_row is empty, the code won't run because an empty string (or is it NULL even?) can't have encode, or len. Luckily it will just return false if you test it. If I modify the code to use this feature, it runs. That's not to say it does what it's supposed to, but I think it does. I hope so anyway.

for userdata_row in userdata_keys:
    if userdata_row:
        userdata_row0 = userdata_row[0]
        if userdata_row0:
            userdata_utf8 = userdata_row0.encode('utf8')

Kobo with wine on Linux

Right now Linux Calibre cannot be used with wine Kobo Desktop without modifying the plugin files. Being able to configure a Kobo installation path or provide it via an environment variable or something would be great.

Segfault on Ubuntu 15.10

DeDRM 6.3.4 with Calibre 2.48 segfaults when trying to remove drm while importing epubs into calibre. DRM key and epubs should be ok because it works fine on windows 7 with the same epubs and the same drm key.

This is the result of "calibre-debug -g":

calibre 2.48  isfrozen: True is64bit: True
Linux-3.19.0-21-generic-x86_64-with-debian-jessie-sid Linux ('64bit', 'ELF')
('Linux', '3.19.0-21-generic', '#21-Ubuntu SMP Sun Jun 14 18:31:11 UTC 2015')
Python 2.7.9
Linux: ('debian', 'jessie/sid', '')
Successfully initialized third party plugins: DeDRM
Starting up...
Started up in 2.31 seconds with 85 books
DeDRM v6.3.4: Trying to decrypt dup_cache.epub
DeDRM v6.3.4: Verifying zip archive integrity
DeDRM v6.3.4: dup_cache.epub is a secure Adobe Adept ePub
DeDRM v6.3.4: Trying Encryption key sebr
Speicherzugriffsfehler (Speicherabzug geschrieben)

For more information see attached crash dump.

crash.zip

Needless re-writing of config data

When importing a lot of books, I saw the dedrm.json file be re-written each time a book was processed. The content did not change. For a flash drive, this hurts with huge collections.

Problems Removing DRM From an AZW3 eBook

I have version 2.33 of Calibre and installed the latest version of the DeDRM plugin. However, when I attempted to remove the DRM from an AZW3 ebook, it failed. Here's what I got as the results:

calibre 2.33 isfrozen: True is64bit: False
Windows-8-6.2.9200 Windows ('32bit', 'WindowsPE')
32bit process running on 64bit windows
('Windows', '8', '6.2.9200')
Python 2.7.9
Windows: ('8', '6.2.9200', '', 'Multiprocessor Free')
Successfully initialized third party plugins: DeDRM
Starting up...
Started up in 3.24 seconds with 50 books
DeDRM v6.2.2: Trying to decrypt The Skull Throne- Book Four of The Demon Cycle (
The Demon Cycle Series 4).azw3
Using Library AlfCrypto DLL/DYLIB/SO
MobiDeDrm v0.41.
Copyright © 2008-2012 The Dark Reverser et al.
MOBI header version 8, header length 264
Extra Data Flags: 3
Decrypting Kindle Format 8 ebook: The Skull Throne: Book Four of The Demon Cycle
(The Demon Cycle Series 4)
Found 0 keys to try after 0.2 seconds
Crypto Type is: 2
DeDRM v6.2.2: Failed to decrypt with error: No key found in 0 keys tried.
DeDRM v6.2.2: Looking for new default Kindle Key after 0.2 seconds
searching for kinfoFiles in C:\Users\Denis\AppData\Local
No K4PC kindle.info/kinf/kinf2011 files have been found.
DeDRM v6.2.2: Ultimately failed to decrypt after 0.2 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 155, in _run_filetype_plugi
ns
File "calibre_plugins.dedrm.init", line 579, in run
File "calibre_plugins.dedrm.init", line 530, in KindleMobiDecrypt
DeDRMError: DeDRM v6.2.2: Ultimately failed to decrypt after 0.2 seconds
Added The Skull Throne: Book Four of The Demon Cycle (The Demon Cycle Series 4)
to db in: 0.3
Added 1 books in 1.6 seconds

Please let me know if you have any advice. Thanks!

Error Decrypting .azw File

File format downloaded was Amazon for PC.

Microsoft Windows Version 6.3.9600 2013 Microsoft Corporation. All rights reserved.

C:\Users\Oh4sh0>calibre-debug -g
calibre 2.21 [64bit] isfrozen: True is64bit: True
Windows-8-6.2.9200 Windows ('64bit', 'WindowsPE')
('Windows', '8', '6.2.9200')
Python 2.7.9
Windows: ('8', '6.2.9200', '', 'Multiprocessor Free')
Successfully initialized third party plugins: DeDRM
Registering with default programs...
Starting up...
Registered with default programs in 0.8 seconds
Started up in 1.47 seconds with 3 books
DeDRM v6.3.2: Trying to decrypt B004JHYS12_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: The Guns of the South
Found 0 keys to try after 0.1 seconds
Crypto Type is: 2
DeDRM v6.3.2: Failed to decrypt with error: No key found in 0 keys tried.
DeDRM v6.3.2: Looking for new default Kindle Key after 0.1 seconds
searching for kinfoFiles in C:\Users\Oh4sh0\AppData\Local
Found K4PC 1.9+ kinf2011 file: C:\Users\Oh4sh0\AppData\Local\Amazon\Kindle\stora
ge.kinf2011
Decrypted key file using IDString '2086738763' and UserName '4f6834736830'
DeDRM v6.3.2: 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: The Guns of the South
DeDRM v6.3.2: 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 155, in _run_filetype_plugi
ns
File "calibre_plugins.dedrm.init", line 588, in run
File "calibre_plugins.dedrm.init", line 538, in KindleMobiDecrypt
DeDRMError: DeDRM v6.3.2: Ultimately failed to decrypt after 0.1 seconds
Added The Guns of the South to db in: 0.3
Added 1 books in 0.9 seconds

Android Keys error on pc with no connected android device ?

Just updated to the current version of the plugin however when i click the plugin options i get a unhandled exception

KeyError: 'androidkeys'

calibre 1.18 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.5
Windows: ('7', '6.1.7601', 'SP1', 'Multiprocessor Free')
Traceback (most recent call last):
File "site-packages\calibre\gui2\preferences\plugins.py", line 286, in customize_plugin
File "site-packages\calibre\gui2\preferences\plugins.py", line 361, in modify_plugin
File "site-packages\calibre\customize__init__.py", line 150, in do_user_config
File "calibre_plugins.dedrm.init", line 614, in config_widget
File "calibre_plugins.dedrm.config", line 57, in init
File "calibre_plugins.dedrm.prefs", line 50, in getitem
File "site-packages\calibre\utils\config.py", line 387, in getitem
KeyError: 'androidkeys'

to the best of my knowledge there is no android device currently plugged into my computer or registered with calibre

IGNOBLEError on B&N epub book, probably due to an empty key file

I followed these instructions:

"Enter your Barnes & Noble account email address and password into the configuration dialog. The DeDRM tools v6.2.2 or later will use this information to retrieve the decryption key from the B&N servers. The email address and password will not be stored."

I didn't get any errors in the GUI or the command line when doing this, and it duly generated a key entry (Phone Appy Key) in the GUI. However, when I tried it on an epub from B&N, I got the following traceback:

DeDRM v6.3.4: “2940045619318_epub.v6.epub” is a secure Barnes & Noble ePub
DeDRM v6.3.4: Trying Encryption key Phone App Key
DeDRM v6.3.4: Exception when trying to decrypt after 0.1 seconds
Traceback (most recent call last):
  File "calibre_plugins.dedrm.__init__", line 200, in ePubDecrypt
  File "calibre_plugins.dedrm.ignobleepub", line 258, in decryptBook
  File "calibre_plugins.dedrm.ignobleepub", line 158, in __init__
IGNOBLEError: AES improper key used

I tried dumping the key to a .b64 file and ended up with an empty file, which may be an indication that it failed to get the key. I double-checked my username/password and I'm pretty sure they're right---would it silently fail if those were wrong?

The epub came from the Nook Android app, and I'm running Calibre/DeDRM on Ubuntu Linux.

Is there any other information that would help diagnose this?

Format of keys in androidkindlekey.py isn't quite right

I believe the keys are calculated correctly, because I've been taken the values that are output, and have been able to combine them manually into keys that will successfully decrypt my ebooks. However, the format the program uses to form the keys isn't quite right, and as a result the final keys aren’t valid. As it is now, they take the form “(None,)(u’abc’,)” or “(u’abc,)(u’xyz)”. The required format is in fact much simpler: it’s just “abc”, or “abcxyz”. (I found out that one of the values can be missing when combined into the final key.)

Instructions building this

Are there instructions available to build this from source? e.g. what program do I use to zip the files up for Calibre? Standard Mac OS X zip didn't seem to work correctly.

default encryption key for Kindle for Mac/PC could not be found

I'm running Ubuntu 15.04 with Calibre 2.31 and DeDRM 6.3.1. I installed Kindle For PC 1.11.0 (40.617) with PlayOnLinux and Wine 1.7.39. My wineprefix (~/.PlayOnLinux/wineprefix/amazonkindle/) is configured properly and I followed the instructions given in DeDRM_plugin_ReadMe.txt. pycrypto-2.6.win32-py2.7.exe and ActivePython-2.7.8.10-win32-x86.msi are installed. Yet kindlekey.py is unable to decrypt the kindlekey because wine canont find the python installation.

Any suggestion what went wrong?

$ calibre
Unable to open ~/.mtpz-data for reading, MTPZ disabled.
    DeDRM v6.3.1: Running kindlekey.py under Wine
DeDRM v6.3.1: Command line: “wine python.exe "/home/tristank/.config/calibre/plugins/DeDRM/libraryfiles/kindlekey.py" "/home/tristank/.config/calibre/plugins/DeDRM/libraryfiles/winekeysdir"”
wine: cannot find L"C:\\windows\\system32\\python.exe"
DeDRM v6.3.1: Found and decrypted 0 key files
Traceback (most recent call last):
  File "calibre_plugins.dedrm.config", line 772, in __init__
IndexError: list index out of range
fixme:ole:RemUnknown_QueryInterface No interface for iid {00000019-0000-0000-c000-000000000046}

dedrm 6 3 1 getting default kindle for mac-pc key_021

dedrm 6 3 1 manage kindle for mac and pc keys_020

Question re: Calibre PlugIn Not working for Amazon Ebook

I am running the DeDRM calibre plugin 6.3.3. And Calibre vers. 2.35.0. Windows 7 PC.

When importing a DRM'ed .azw file, it simply does not remove the DRM and the dialogue box stating so pops up. In the read_me it does not mention much about customizing key files for PC. Is this something I must enter or import? Thank you.

Problem importing AZW3 Amazon Kindle format

DRM hasn't been removed from the book I have imported directly from the Kindle's folder.
I have opened a debug report as suggested and the result follows:

Microsoft Windows [Versione 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Tutti i diritti riservati.

C:\Users\Fabio>calibre-debug -g
calibre 2.33 isfrozen: True is64bit: False
Windows-7-6.1.7601-SP1 Windows ('32bit', 'WindowsPE')
('Windows', '7', '6.1.7601')
Python 2.7.9
Windows: ('7', '6.1.7601', 'SP1', 'Multiprocessor Free')
Successfully initialized third party plugins: DeDRM

Nothing happens in the terminal windows when I add the new book.
Do you have any suggestion?

Thank you

Failed to decrypt file

Debug messages:

Job: 10 Prepare files for transfer from device started
DeviceJob: 10 Prepare files for transfer from device done, calling callback
DeviceJob: 10 Prepare files for transfer from device callback returned
Job: 10 Prepare files for transfer from device finished
No details available.
DeDRM v6.3.3: Trying to decrypt Half Girlfriend_B013VO02LS.azw3
Using Library AlfCrypto DLL/DYLIB/SO
MobiDeDrm v0.41.
Copyright © 2008-2012 The Dark Reverser et al.
MOBI header version 8, header length 264
Extra Data Flags: 3
Decrypting Kindle Format 8 ebook: Half Girlfriend
Found 0 keys to try after 0.5 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.5 seconds
searching for kinfoFiles in C:\Users\Joel\AppData\Local
Found K4PC 1.9+ kinf2011 file: C:\Users\Joel\AppData\Local\Amazon\Kindle\storage
\.kinf2011
Decrypted key file using IDString '1583170637' and UserName '4a6f656c'
DeDRM v6.3.3: Found 1 new key
MobiDeDrm v0.41.
Copyright © 2008-2012 The Dark Reverser et al.
MOBI header version 8, header length 264
Extra Data Flags: 3
Decrypting Kindle Format 8 ebook: Half Girlfriend
Found 4 keys to try after 0.9 seconds
Crypto Type is: 2
DeDRM v6.3.3: Ultimately failed to decrypt after 0.9 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 155, in _run_filetype_plugi
ns
  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 0.9 seconds
Added Half Girlfriend to db in: 3.3
Added 1 books in 7.8 seconds
DeviceJob: set_books_in_library: books to process= 143
DeviceJob: set_books_in_library finished: time= 0.0539999008179

Used both 6.3.3 and latest github master.
Anything else that I can check?

ImportError: cannot import name choose_save_file

The latest DeDRM plugin is installed and I have restarted it after installation. When I try to customize the plugin on Calibre, I get the following error;

Traceback (most recent call last):
File "/usr/lib/calibre/calibre/gui2/preferences/plugins.py", line 284, in customize_plugin
self.modify_plugin(op='customize')
File "/usr/lib/calibre/calibre/gui2/preferences/plugins.py", line 360, in modify_plugin
if plugin.do_user_config(self.gui):
File "/usr/lib/calibre/calibre/customize/init.py", line 150, in do_user_config
config_widget = self.config_widget()
File "calibre_plugins.dedrm.init", line 602, in config_widget
File "/usr/lib/calibre/calibre/customize/zipplugin.py", line 150, in load_module
exec compiled in mod.dict
File "calibre_plugins.dedrm.config", line 28, in
ImportError: cannot import name choose_save_file

how to decrypt an unknown type of DRM

There is an online store in Turkey (babil com) which has an unknown type of DRM. and afaik there is no tool to decrypt it. Is there a way to search on it? what would be your advice to deal with it? I can provide an ebook with its registered account if anybody want to try on it.

Hello, I have loaded the DeDRM tools and I am still getting an error loading or converting

I have run this in debug as suggested and here is the debug info. Thanks in advance for your help.

C:\Users\tony.coorey\Documents>dir
Volume in drive C is Default
Volume Serial Number is 888C-0193

Directory of C:\Users\tony.coorey\Documents

Tue 24 Mar 15 15:08

.
Tue 24 Mar 15 15:08 ..
Tue 24 Mar 15 15:08 Calibre Library
Tue 11 Nov 14 09:03 CRM
Tue 24 Mar 15 05:09 1,621,311 Mightier Than The Sword The Clifton Chron
icles 5.epub
Thu 03 Jul 14 10:23 6,479,545 Windows 8 Guide.docx
2 File(s) 8,100,856 bytes
4 Dir(s) 163,353,190,400 bytes free

C:\Users\tony.coorey\Documents>cd calibre library

C:\Users\tony.coorey\Documents\Calibre Library>dir
Volume in drive C is Default
Volume Serial Number is 888C-0193

Directory of C:\Users\tony.coorey\Documents\Calibre Library

Tue 24 Mar 15 15:08

.
Tue 24 Mar 15 15:08 ..
Tue 24 Mar 15 13:48 DeDRM
Tue 24 Mar 15 09:23 John Schember
Tue 24 Mar 15 15:08 133,120 metadata.db
Tue 24 Mar 15 15:08 12,995 metadata_db_prefs_backup.json
Tue 24 Mar 15 05:09 1,621,311 Mightier Than The Sword The Clifton Chron
icles 5.epub
3 File(s) 1,767,426 bytes
4 Dir(s) 163,353,190,400 bytes free

C:\Users\tony.coorey\Documents\Calibre Library>c:\program files\calibre2\calibre
-debug -g
'c:\program' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\tony.coorey\Documents\Calibre Library>cd\program files

C:\Program Files>dir
Volume in drive C is Default
Volume Serial Number is 888C-0193

Directory of C:\Program Files

Tue 24 Mar 15 08:29

.
Tue 24 Mar 15 08:29 ..
Tue 24 Mar 15 08:30 Calibre2
Thu 13 Feb 14 09:40 Common Files
Thu 06 Feb 14 11:04 DellTPad
Thu 06 Feb 14 11:03 DIFX
Wed 18 Dec 13 16:44 DVD Maker
Thu 13 Mar 14 13:47 Google
Thu 06 Feb 14 11:04 IDT
Thu 26 Feb 15 15:01 Internet Explorer
Thu 13 Feb 14 09:38 Microsoft Analysis Services
Fri 13 Mar 15 10:26 Microsoft Mouse and Keyboard Center
Thu 13 Feb 14 09:40 Microsoft Office
Thu 24 Jul 14 17:35 Microsoft Silverlight
Wed 18 Dec 13 12:29 Microsoft SQL Server
Tue 14 Jul 09 16:32 MSBuild
Thu 06 Feb 14 11:04 NVIDIA Corporation
Tue 14 Jul 09 16:32 Reference Assemblies
Thu 06 Feb 14 10:50 STMicroelectronics
Mon 10 Feb 14 11:48 uvnc bvba
Thu 19 Dec 13 09:55 Windows Defender
Thu 26 Feb 15 15:01 Windows Journal
Wed 18 Dec 13 16:44 Windows Mail
Mon 02 Mar 15 07:34 Windows Media Player
Tue 14 Jul 09 16:32 Windows NT
Wed 18 Dec 13 16:44 Windows Photo Viewer
Wed 18 Dec 13 16:44 Windows Portable Devices
Wed 18 Dec 13 16:44 Windows Sidebar
0 File(s) 0 bytes
28 Dir(s) 163,353,145,344 bytes free

C:\Program Files>dir cal*
Volume in drive C is Default
Volume Serial Number is 888C-0193

Directory of C:\Program Files

Tue 24 Mar 15 08:30

Calibre2
0 File(s) 0 bytes
1 Dir(s) 163,353,145,344 bytes free

C:\Program Files>dir/w
Volume in drive C is Default
Volume Serial Number is 888C-0193

Directory of C:\Program Files

[.] [..]
[Calibre2] [Common Files]
[DellTPad] [DIFX]
[DVD Maker] [Google]
[IDT] [Internet Explorer]
[Microsoft Analysis Services] [Microsoft Mouse and Keyboard Center]
[Microsoft Office] [Microsoft Silverlight]
[Microsoft SQL Server] [MSBuild]
[NVIDIA Corporation] [Reference Assemblies]
[STMicroelectronics] [uvnc bvba]
[Windows Defender] [Windows Journal]
[Windows Mail] [Windows Media Player]
[Windows NT] [Windows Photo Viewer]
[Windows Portable Devices] [Windows Sidebar]
0 File(s) 0 bytes
28 Dir(s) 163,353,145,344 bytes free

C:\Program Files>cd calibre2

C:\Program Files\Calibre2>dir/w
Volume in drive C is Default
Volume Serial Number is 888C-0193

Directory of C:\Program Files\Calibre2

[.] [..]
calibre-complete.exe calibre-customize.exe
calibre-debug.exe calibre-eject.exe
calibre-launcher.dll calibre-parallel.exe
calibre-server.exe calibre-smtp.exe
calibre.exe calibredb.exe
[DLLs] ebook-convert.exe
ebook-device.exe ebook-edit.exe
ebook-meta.exe ebook-polish.exe
ebook-viewer.exe fetch-ebook-metadata.exe
LICENSE lrf2lrs.exe
lrfviewer.exe lrs2lrf.exe
markdown-calibre.exe [Microsoft.VC90.CRT]
pdfinfo.exe pdftohtml.exe
pdftoppm.exe [plugins2]
pylib.zip [qt_plugins]
[resources] web2disk.exe
27 File(s) 62,350,976 bytes
7 Dir(s) 163,353,145,344 bytes free

C:\Program Files\Calibre2>calibre-debug -g
calibre 2.22 [64bit] isfrozen: True is64bit: True
Windows-7-6.1.7601-SP1 Windows ('64bit', 'WindowsPE')
('Windows', '7', '6.1.7601')
Python 2.7.9
Windows: ('7', '6.1.7601', 'SP1', 'Multiprocessor Free')
Successfully initialized third party plugins: DeDRM
Starting up...
Started up in 2.34 seconds with 1 books
DeDRM v6.2.0: Trying to decrypt Mightier Than The Sword The Clifton Chronicles 5
.epub
DeDRM v6.2.0: Verifying zip archive integrity
DeDRM v6.2.0: Mightier Than The Sword The Clifton Chronicles 5.epub is a secure
Adobe Adept ePub
DeDRM v6.2.0: Looking for new default Adobe Digital Editions Keys after 0.7 seco
nds
DeDRM v6.2.0: Exception when getting default Adobe Key after 0.7 seconds
Traceback (most recent call last):
File "calibre_plugins.dedrm.init", line 310, in ePubDecrypt
File "calibre_plugins.dedrm.adobekey", line 377, in adeptkeys
ADEPTError: Adobe Digital Editions not activated
DeDRM v6.2.0: Ultimately failed to decrypt after 0.7 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 155, in run_filetype_plugi
ns
File "calibre_plugins.dedrm.init", line 587, in run
File "calibre_plugins.dedrm.init", line 364, in ePubDecrypt
DeDRMError: DeDRM v6.2.0: Ultimately failed to decrypt after 0.7 seconds.
Added Mightier Than The Sword: The Clifton Chronicles 5 to db in: 2.1
Added 1 books in 4.7 seconds
Worker Launch took: 0.338000059128
Job: 1 Convert book 1 of 1 (Mightier Than The Sword: The Clifton Chronicles 5) f
inished
Convert book 1 of 1 (Mightier Than The Sword: The Clifton Chronicles 5)
Resolved conversion options
calibre version: 2.22.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_((ch
apter|book|section|part)\s+)|((prolog|prologue|epilogue)(\s+|$))', 'i')) or @c
lass = 'chapter']",
'chapter_mark': u'pagebreak',
'comments': None,
'cover': None,
'debug_pipeline': None,
'dehyphenate': True,
'delete_blank_paragraphs': True,
'disable_font_rescaling': False,
'dont_compress': False,
'duplicate_links_in_toc': False,
'embed_all_fonts': False,
'embed_font_family': None,
'enable_heuristics': False,
'expand_css': False,
'extra_css': None,
'extract_to': None,
'filter_css': u'',
'fix_indents': True,
'font_size_mapping': None,
'format_scene_breaks': True,
'html_unwrap_factor': 0.4,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.InputProfile object at 0x0
0000000025247B8>,
'insert_blank_line': False,
'insert_blank_line_size': 0.5,
'insert_metadata': False,
'isbn': None,
'italicize_common_cases': True,
'keep_ligatures': False,
'language': None,
'level1_toc': None,
'level2_toc': None,
'level3_toc': None,
'line_height': 0.0,
'linearize_tables': False,
'margin_bottom': 5.0,
'margin_left': 5.0,
'margin_right': 5.0,
'margin_top': 5.0,
'markup_chapter_headings': True,
'max_toc_links': 50,
'minimum_line_height': 120.0,
'mobi_file_type': u'old',
'mobi_ignore_margins': False,
'mobi_keep_original_images': False,
'mobi_toc_at_start': False,
'no_chapters_in_toc': False,
'no_inline_navbars': True,
'no_inline_toc': False,
'output_profile': <calibre.customize.profiles.KindlePaperWhiteOutput ob
ject at 0x0000000002524E10>,
'page_breaks_before': u'/',
'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\TONY1.COO\AppData\Local\Temp
\calibre_vbb7rp\bikdmi.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: EPUB Input running
on C:\Users\TONY
1.COO\AppData\Local\Temp\calibre_vbb7rp\kcdmym.epub
Python function terminated unexpectedly
kcdmym.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 193, 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 1041,
in run
File "site-packages\calibre\customize\conversion.py", line 241, in c
all

File "site-packages\calibre\ebooks\conversion\plugins\epub_input.py",
line 218, in convert
calibre.ebooks.DRMError: kcdmym.epub

C:\Program Files\Calibre2>^A

Calibre 2.31 / DeDRM 6.2.1 PyQt4.py error

I find that the DeDRM 6.2.1 tools work fine with Calibre 1.48, but if I upgrade to 2.31 I get an import error on PyQt4.py whenever I try to customize the Ignoble Epub plugin.

The exact exception is:
calibre, version 2.31.0
ERROR: Unhandled exception: ImportError:No module named PyQt4.Qt

calibre 2.31 isfrozen: True is64bit: False
Windows-8-6.2.9200 Windows ('32bit', 'WindowsPE')
32bit process running on 64bit windows
('Windows', '8', '6.2.9200')
Python 2.7.9
Windows: ('8', '6.2.9200', '', 'Multiprocessor Free')
Successfully initialized third party plugins: DeDRM && Ignoble Epub DeDRM
Traceback (most recent call last):
File "site-packages\calibre\gui2\preferences\plugins.py", line 292, in customize_plugin
File "site-packages\calibre\gui2\preferences\plugins.py", line 370, in modify_plugin
File "site-packages\calibre\customize__init__.py", line 154, in do_user_config
File "calibre_plugins.ignobleepub.init", line 174, in config_widget
File "site-packages\calibre\customize\zipplugin.py", line 179, in load_module
File "calibre_plugins.ignobleepub.config", line 12, in
ImportError: No module named PyQt4.Qt

I've tried scrubbing my machine of all components and reinstalling everything but I always seem to get the same response.

Have I overlooked something?

Probable bug in Kindle for Mac caused by Android support

shellcommand: /usr/bin/python '/Volumes/Raumfahrt/Software/Mac/DeDRM_tools_6.3.4a/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/adobekey.py' '/Users/Asphoa/Library/Preferences/com.apprenticealf.dedrm/Local Adept Key.der' > '/Users/Asphoa/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log'
shellresult: adobekey.py v6.0
Copyright © 2009-2013 i♥cabbages and Apprentice Alf
Traceback (most recent call last):
File "/Volumes/Raumfahrt/Software/Mac/DeDRM_tools_6.3.4a/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/adobekey.py", line 602, in
sys.exit(cli_main())
File "/Volumes/Raumfahrt/Software/Mac/DeDRM_tools_6.3.4a/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/adobekey.py", line 525, in cli_main
keys = adeptkeys()
File "/Volumes/Raumfahrt/Software/Mac/DeDRM_tools_6.3.4a/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/adobekey.py", line 446, in adeptkeys
raise ADEPTError("Could not find ADE activation.dat file.")
main.ADEPTError: Could not find ADE activation.dat file.
shellcommand: /usr/bin/python '/Volumes/Raumfahrt/Software/Mac/DeDRM_tools_6.3.4a/DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/ignoblekey.py' '/Users/Asphoa/Library/Preferences/com.apprenticealf.dedrm/Nook Study Key.b64' > '/Users/Asphoa/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log'
shellresult: ignoblekey.py v1.1
Copyright © 2015 Apprentice Alf
No nook Study log files have been found.
Could not retrieve nook Study key.

There is 1 ebook to be decrypted.
Processing file: B00MUQULMY_EBOK.prc
An unexpected error occurred. Please report on Apprentice Alf's blog.

Error Message: Erreur dans Finder : Il est impossible d’obtenir document file "backup.ab" of folder "TemporaryItems" of folder "Caches" of folder "Library" of folder "/username/" of folder "Users" of startup disk.
Error Number: -1728

DeDRM corrupts images on certain eBooks [Calibre Plugin] [Kindle AZW3]

Hello! I noticed that when I DeDRM certain eBooks, (The Witcher series by Andrzej Sapkowski as an example), the images become corrupt; the corrupted images are renamed "0000N.unknown".

Here's a screenshot of the corrupted image

Viewing the eBook via Amazon's Cloud Viewer, I was able to see how the eBook looks proper. From there I was able to find the missing image on Google images and import it.

Here's how  it's supposed to look

azw3 -> epub calibre plugin on linux

calibre 2.46
DeDRM 6.3.4a

calibre, version 2.46.0 (linux2, isfrozen: True)
Conversion Error: Failed: Convert book 1 of 1 (Book Title)

Convert book 1 of 1 (Book Title)
Resolved conversion options
calibre version: 2.46.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(., 'chapter|book|section|part\s+', 'i')) or @Class = 'chapter']",
'chapter_mark': u'pagebreak',
'comments': None,
'cover': u'/tmp/calibre_2.46.0_tmp_BKxMjf/aQha7D.jpeg',
'debug_pipeline': None,
'dehyphenate': True,
'delete_blank_paragraphs': True,
'disable_font_rescaling': False,
'dont_split_on_page_breaks': False,
'duplicate_links_in_toc': False,
'embed_all_fonts': False,
'embed_font_family': None,
'enable_heuristics': False,
'epub_flatten': False,
'epub_inline_toc': False,
'epub_toc_at_end': False,
'expand_css': False,
'extra_css': None,
'extract_to': None,
'filter_css': u'',
'fix_indents': True,
'flow_size': 260,
'font_size_mapping': None,
'format_scene_breaks': True,
'html_unwrap_factor': 0.4,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.InputProfile object at 0x7fd7effd0b50>,
'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': <calibre.customize.profiles.GenericEink object at 0x7fd7effd0f50>,
'page_breaks_before': u"//
[name()='h1' or name()='h2']",
'prefer_metadata_cover': False,
'preserve_cover_aspect_ratio': False,
'pretty_print': True,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': u'/tmp/calibre_2.46.0_tmp_BKxMjf/4uB9kX.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,
'unsmarten_punctuation': False,
'unwrap_lines': True,
'use_auto_toc': False,
'verbose': 2}
InputFormatPlugin: MOBI Input running
on /tmp/calibre_2.46.0_tmp_BKxMjf/sidbxp.azw3
Found KF8 MOBI of type 'standalone'
Traceback (most recent call last):
File "site.py", line 66, in main
File "site-packages/calibre/utils/ipc/worker.py", line 190, in main
File "site-packages/calibre/gui2/convert/gui_conversion.py", line 31, in gui_convert_override
File "site-packages/calibre/gui2/convert/gui_conversion.py", line 25, in gui_convert
File "site-packages/calibre/ebooks/conversion/plumber.py", line 1051, in run
File "site-packages/calibre/customize/conversion.py", line 241, in call
File "site-packages/calibre/ebooks/conversion/plugins/mobi_input.py", line 43, in convert
File "site-packages/calibre/ebooks/mobi/reader/mobi8.py", line 81, in call
File "site-packages/calibre/ebooks/mobi/reader/mobi6.py", line 144, in check_for_drm
DRMError: Book Title

wine: cannot find L”C:\\windows\\system32\\python.exe”

Wine 1.9.0 Installed following steps from http://wiki.winehq.org/Ubuntu

“ActivePython-2.7.8.10-win64-x64.msi” installed from http://www.activestate.com/activepython/downloads/

This time, ActivePython installer was able to create ~/.wine/drive_c/windows/syswow64/python.exe

I don’t know if this is a problem related to Calibre or the DeDRM script, but, as we can see in the debug below, python.exe is called from the wrong path:
wine: cannot find L”C:\windows\system32\python.exe”
As I said above, the 64bit version installs the "python.exe" file under: "~/.wine/drive_c/windows/syswow64/" folder.

Don’t know what I can do any further.

Would be a way to define the correct path to python.exe inside the DeDRM script?


rgr@atipico64: calibre-debug -g
calibre 1.25 isfrozen: False is64bit: True
Linux-3.13.0-74-generic-x86_64-with-Ubuntu-14.04-trusty Linux (’64bit’, ‘ELF’)
(‘Linux’, ‘3.13.0-74-generic’, ‘#118-Ubuntu SMP Thu Dec 17 22:52:10 UTC 2015’)
Python 2.7.6
Linux: (‘Ubuntu’, ‘14.04’, ‘trusty’)
Starting up…
DEBUG: 0.0 obok::utilities.py – loading translations
DEBUG: 0.0 obok::dialogs.py – loading translations
DEBUG: 0.0 obok::config.py – loading translations
DEBUG: 0.0 using xml.etree for xml parsing
DEBUG: 0.0 obok::action_err.py – loading translations
Unable to open ~/.mtpz-data for reading, MTPZ disabled.Started up in 1.37 seconds with 11 books
Worker Launch took: 0.0650780200958
Job: 1 Read metadata (0 of 1) finished
Read metadata (0 of 1)
DeDRM v6.3.4: Trying to decrypt B00BMWEFR4_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: The Boron Letters
Found 0 keys to try after 0.0 seconds
Crypto Type is: 2
DeDRM v6.3.4: Failed to decrypt with error: No key found in 0 keys tried.
DeDRM v6.3.4: Looking for new default Kindle Key after 0.0 seconds
DeDRM v6.3.4: Running kindlekey.py under Wine
DeDRM v6.3.4: Command line: “WINEPREFIX=”/home/rgr” wine python.exe “/home/rgr/.config/calibre/plugins/DeDRM/libraryfiles/kindlekey.py” “/home/rgr/.config/calibre/plugins/DeDRM/libraryfiles/winekeysdir””
wine: cannot find L”C:\windows\system32\python.exe”
DeDRM v6.3.4: Found and decrypted 0 key files
DeDRM v6.3.4: Ultimately failed to decrypt after 1.1 seconds.
Read the FAQs at Alf’s blog: https://apprenticealf.wordpress.com/
Running file type plugin DeDRM failed with traceback:
Traceback (most recent call last):
File “/usr/lib/calibre/calibre/customize/ui.py”, line 154, in _run_filetype_plugins
nfp = plugin.run(path_to_file)
File “calibre_plugins.dedrm.init”, line 590, in run
File “calibre_plugins.dedrm.init”, line 540, in KindleMobiDecrypt
DeDRMError: DeDRM v6.3.4: Ultimately failed to decrypt after 1.1 seconds

Added The Boron Letters to db in: 1.74273991585 seconds

Amazon/Kindle AZW-format ebooks NOT stripping DRM with Calibre plugin

I am using the latest version of Calibre and the plug-in (both were updated to latest versions today) to try to de-DRM my Kindle books in AZW format, and while some will convert, many will not. I am using a bulk-add-and-convert, and some are getting stripped (and will then convert) and some will not. What's going on? In Calibre, I can't tell any difference between the formatting at all - they are showing as the same (AZW). Help?

These are all books which I have purchased, btw. Out of 113 requested books, 65 books DID NOT convert (that's more than half!). I also tried adding them individually, and they don't work that way either.

Some examples:

Example #1:
Convert book 1 of 1 (The Autistic Brain: Thinking Across the Spectrum)
(log details):
Convert book 1 of 1 (The Autistic Brain: Thinking Across the Spectrum)
Resolved conversion options
calibre version: 2.47.0
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0.0,
'book_producer': None,
'change_justification': u'original',
'chapter': u"//[((name()='h1' or name()='h2') and re:test(., '\s((chapter|book|section|part)\s+)|((prolog|prologue|epilogue)(\s+|$))', 'i')) or @Class = 'chapter']",
'chapter_mark': u'pagebreak',
'comments': None,
'cover': u'/var/folders/k6/rpx44f5j73s69qklkkf0b9wr0000gn/T/calibre_2.47.0_tmp_FqtW9f/RwDTjI.jpeg',
'debug_pipeline': None,
'dehyphenate': True,
'delete_blank_paragraphs': True,
'disable_font_rescaling': False,
'dont_split_on_page_breaks': False,
'duplicate_links_in_toc': False,
'embed_all_fonts': False,
'embed_font_family': None,
'enable_heuristics': False,
'epub_flatten': False,
'epub_inline_toc': False,
'epub_toc_at_end': False,
'expand_css': False,
'extra_css': None,
'extract_to': None,
'filter_css': u'',
'fix_indents': True,
'flow_size': 260,
'font_size_mapping': None,
'format_scene_breaks': True,
'html_unwrap_factor': 0.4,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.InputProfile object at 0x114285610>,
'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': <calibre.customize.profiles.iPad3Output object at 0x114285bd0>,
'page_breaks_before': u"//*[name()='h1' or name()='h2']",
'prefer_metadata_cover': False,
'preserve_cover_aspect_ratio': False,
'pretty_print': True,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': u'/var/folders/k6/rpx44f5j73s69qklkkf0b9wr0000gn/T/calibre_2.47.0_tmp_FqtW9f/4e2Iwo.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,
'unsmarten_punctuation': False,
'unwrap_lines': True,
'use_auto_toc': False,
'verbose': 2}
Python function terminated unexpectedly: The Autistic Brain: Thinking Across the Spectrum
InputFormatPlugin: MOBI Input running
on /var/folders/k6/rpx44f5j73s69qklkkf0b9wr0000gn/T/calibre_2.47.0_tmp_FqtW9f/aoZnWG.azw
Found KF8 MOBI of type 'standalone'
Traceback (most recent call last):
File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py", line 209, in main
return run_entry_point()
File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py", line 114, in run_entry_point
return getattr(pmod, func)()
File "site-packages/calibre/utils/ipc/worker.py", line 190, in main
File "site-packages/calibre/gui2/convert/gui_conversion.py", line 31, in gui_convert_override
File "site-packages/calibre/gui2/convert/gui_conversion.py", line 25, in gui_convert
File "site-packages/calibre/ebooks/conversion/plumber.py", line 1051, in run
File "site-packages/calibre/customize/conversion.py", line 241, in call
File "site-packages/calibre/ebooks/conversion/plugins/mobi_input.py", line 43, in convert
File "site-packages/calibre/ebooks/mobi/reader/mobi8.py", line 81, in call
File "site-packages/calibre/ebooks/mobi/reader/mobi6.py", line 144, in check_for_drm
calibre.ebooks.DRMError: The Autistic Brain: Thinking Across the Spectrum

Example #2
Convert book 94 of 113 (The Magician King: A Novel (The Magicians Book 2))
Convert book 94 of 113 (The Magician King: A Novel (The Magicians Book 2))
Resolved conversion options
calibre version: 2.47.0
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0.0,
'book_producer': None,
'change_justification': u'original',
'chapter': u"//[((name()='h1' or name()='h2') and re:test(., '\s((chapter|book|section|part)\s+)|((prolog|prologue|epilogue)(\s+|$))', 'i')) or @Class = 'chapter']",
'chapter_mark': u'pagebreak',
'comments': None,
'cover': u'/var/folders/k6/rpx44f5j73s69qklkkf0b9wr0000gn/T/calibre_2.47.0_tmp_FqtW9f/Y1jOJT.jpeg',
'debug_pipeline': None,
'dehyphenate': True,
'delete_blank_paragraphs': True,
'disable_font_rescaling': False,
'dont_split_on_page_breaks': False,
'duplicate_links_in_toc': False,
'embed_all_fonts': False,
'embed_font_family': None,
'enable_heuristics': False,
'epub_flatten': False,
'epub_inline_toc': False,
'epub_toc_at_end': False,
'expand_css': False,
'extra_css': None,
'extract_to': None,
'filter_css': u'',
'fix_indents': True,
'flow_size': 260,
'font_size_mapping': None,
'format_scene_breaks': True,
'html_unwrap_factor': 0.4,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.InputProfile object at 0x10c7a1590>,
'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': <calibre.customize.profiles.iPad3Output object at 0x10c7a1b50>,
'page_breaks_before': u"//*[name()='h1' or name()='h2']",
'prefer_metadata_cover': False,
'preserve_cover_aspect_ratio': False,
'pretty_print': True,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': u'/var/folders/k6/rpx44f5j73s69qklkkf0b9wr0000gn/T/calibre_2.47.0_tmp_FqtW9f/MrAz0t.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,
'unsmarten_punctuation': False,
'unwrap_lines': True,
'use_auto_toc': False,
'verbose': 2}
Python function terminated unexpectedly: The Magician King: A Novel (The Magicians Book 2)
InputFormatPlugin: MOBI Input running
on /var/folders/k6/rpx44f5j73s69qklkkf0b9wr0000gn/T/calibre_2.47.0_tmp_FqtW9f/kfThgW.azw
Found KF8 MOBI of type 'standalone'
Traceback (most recent call last):
File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py", line 209, in main
return run_entry_point()
File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py", line 114, in run_entry_point
return getattr(pmod, func)()
File "site-packages/calibre/utils/ipc/worker.py", line 190, in main
File "site-packages/calibre/gui2/convert/gui_conversion.py", line 31, in gui_convert_override
File "site-packages/calibre/gui2/convert/gui_conversion.py", line 25, in gui_convert
File "site-packages/calibre/ebooks/conversion/plumber.py", line 1051, in run
File "site-packages/calibre/customize/conversion.py", line 241, in call
File "site-packages/calibre/ebooks/conversion/plugins/mobi_input.py", line 43, in convert
File "site-packages/calibre/ebooks/mobi/reader/mobi8.py", line 81, in call
File "site-packages/calibre/ebooks/mobi/reader/mobi6.py", line 144, in check_for_drm
calibre.ebooks.DRMError: The Magician King: A Novel (The Magicians Book 2)

Example #3:
Convert book 88 of 113 (Until Proven Guilty (J. P. Beaumont Novel Book 1))
Convert book 88 of 113 (Until Proven Guilty (J. P. Beaumont Novel Book 1))
Resolved conversion options
calibre version: 2.47.0
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0.0,
'book_producer': None,
'change_justification': u'original',
'chapter': u"//[((name()='h1' or name()='h2') and re:test(., '\s((chapter|book|section|part)\s+)|((prolog|prologue|epilogue)(\s+|$))', 'i')) or @Class = 'chapter']",
'chapter_mark': u'pagebreak',
'comments': None,
'cover': u'/var/folders/k6/rpx44f5j73s69qklkkf0b9wr0000gn/T/calibre_2.47.0_tmp_FqtW9f/rLS4L5.jpeg',
'debug_pipeline': None,
'dehyphenate': True,
'delete_blank_paragraphs': True,
'disable_font_rescaling': False,
'dont_split_on_page_breaks': False,
'duplicate_links_in_toc': False,
'embed_all_fonts': False,
'embed_font_family': None,
'enable_heuristics': False,
'epub_flatten': False,
'epub_inline_toc': False,
'epub_toc_at_end': False,
'expand_css': False,
'extra_css': None,
'extract_to': None,
'filter_css': u'',
'fix_indents': True,
'flow_size': 260,
'font_size_mapping': None,
'format_scene_breaks': True,
'html_unwrap_factor': 0.4,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.InputProfile object at 0x115405590>,
'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': <calibre.customize.profiles.iPad3Output object at 0x115405b50>,
'page_breaks_before': u"//*[name()='h1' or name()='h2']",
'prefer_metadata_cover': False,
'preserve_cover_aspect_ratio': False,
'pretty_print': True,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': u'/var/folders/k6/rpx44f5j73s69qklkkf0b9wr0000gn/T/calibre_2.47.0_tmp_FqtW9f/f_5WpY.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,
'unsmarten_punctuation': False,
'unwrap_lines': True,
'use_auto_toc': False,
'verbose': 2}
Python function terminated unexpectedly: Until Proven Guilty (J. P. Beaumont Novel Book 1)
InputFormatPlugin: MOBI Input running
on /var/folders/k6/rpx44f5j73s69qklkkf0b9wr0000gn/T/calibre_2.47.0_tmp_FqtW9f/pf5xeW.azw
Traceback (most recent call last):
File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py", line 209, in main
return run_entry_point()
File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py", line 114, in run_entry_point
return getattr(pmod, func)()
File "site-packages/calibre/utils/ipc/worker.py", line 190, in main
File "site-packages/calibre/gui2/convert/gui_conversion.py", line 31, in gui_convert_override
File "site-packages/calibre/gui2/convert/gui_conversion.py", line 25, in gui_convert
File "site-packages/calibre/ebooks/conversion/plumber.py", line 1051, in run
File "site-packages/calibre/customize/conversion.py", line 241, in call
File "site-packages/calibre/ebooks/conversion/plugins/mobi_input.py", line 35, in convert
File "site-packages/calibre/ebooks/mobi/reader/mobi6.py", line 148, in extract_content
File "site-packages/calibre/ebooks/mobi/reader/mobi6.py", line 144, in check_for_drm
calibre.ebooks.DRMError: Until Proven Guilty (J. P. Beaumont Novel Book 1)

Kobo Desktop Reader update breaks Calibre Obok DeDRM.

Looks like they changed the location of their key.

Kobo Desktop 3.17.0 (white interface), Calibre 2.34, Obok 3.1.3, Windows 7 64-bit, currently inoperable.

"... could not be added because it could not be decrypted."
"ERROR: Obok DeDRM v3.1.3: No userkeys found to decrypt books with. No point in proceeding"

Unable to configure

Upon installing the plugin on Calibre 2.27 and tryin to configure it, it gives me this error:

calibre 2.27 isfrozen: True is64bit: True
Linux-3.19.0-16-generic-x86_64-with-debian-jessie-sid Linux ('64bit', 'ELF')
('Linux', '3.19.0-16-generic', '#16-Ubuntu SMP Thu Apr 30 16:09:58 UTC 2015')
Python 2.7.9
Linux: ('debian', 'jessie/sid', '')
Successfully initialized third party plugins: DeDRM
Traceback (most recent call last):
File "site-packages/calibre/gui2/preferences/plugins.py", line 292, in customize_plugin
File "site-packages/calibre/gui2/preferences/plugins.py", line 370, in modify_plugin
File "site-packages/calibre/customize/init.py", line 154, in do_user_config
File "calibre_plugins.dedrm.init", line 601, in config_widget
AttributeError: 'module' object has no attribute 'ConfigWidget'

Calibre error when installing DeDRM_plugin.zip

calibre, version 2.28.0
ERROR: Unhandled exception: InvalidPlugin:Initialization of plugin Traceback (most recent call last):
File "site-packages\calibre\customize\ui.py", line 553, in initialize_plugin
File "calibre_plugins.dedrm.init", line 145, in initialize
AttributeError: 'DeDRM' object has no attribute 'starttime'
failed with traceback:
Traceback (most recent call last):
File "site-packages\calibre\customize\ui.py", line 553, in initialize_plugin
File "calibre_plugins.dedrm.init", line 145, in initialize
AttributeError: 'DeDRM' object has no attribute 'starttime'

calibre 2.28 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')
Traceback (most recent call last):
File "site-packages\calibre\gui2\preferences\plugins.py", line 316, in add_plugin
File "site-packages\calibre\customize\ui.py", line 392, in add_plugin
File "site-packages\calibre\customize\ui.py", line 559, in initialize_plugin
InvalidPlugin: Initialization of plugin Traceback (most recent call last):
File "site-packages\calibre\customize\ui.py", line 553, in initialize_plugin
File "calibre_plugins.dedrm.init", line 145, in initialize
AttributeError: 'DeDRM' object has no attribute 'starttime'
failed with traceback:
Traceback (most recent call last):
File "site-packages\calibre\customize\ui.py", line 553, in initialize_plugin
File "calibre_plugins.dedrm.init", line 145, in initialize
AttributeError: 'DeDRM' object has no attribute 'starttime'

Headless usage of DeDRM Plugin

Hey guys,

I am trying to use the DeDRM Plugin on my headless server to just copy files to a specific folder and let calibre convert it to a different format. Till now I had to free the files before putting into the folder.

On Windows dedrm works like charm, on my headless linux I can not add certificates. So it is not able to work. Can you tell me how to import the cert? With calibre-customize customize-plugin=DeDRM I can access plugin-functions. But what is the correct one?

Not stripping DRM - Log says "Found 0 keys to try"

I'm unable to remove DRM from Kindle books. Here is a log detailing the importation of one book. What am I doing wrong?

TIA.

calibre Debug log
calibre 2.48 isfrozen: True is64bit: True
Darwin-14.5.0-x86_64-i386-64bit Darwin ('64bit', '')
('Darwin', '14.5.0', 'Darwin Kernel Version 14.5.0: Tue Sep 1 21:23:09 PDT 2015; root:xnu-2782.50.1~1/RELEASE_X86_64')
Python 2.7.9
OSX: ('10.10.5', ('', '', ''), 'x86_64')
Successfully initialized third party plugins: DeDRM
Starting up...
Loaded cached store plugin for: Virtualo at version: 6
Loaded cached store plugin for: Cdp.pl at version: 8
Loaded cached store plugin for: Ebookpoint at version: 6
Loaded cached store plugin for: Koobe at version: 5
DeDRM v6.3.4: Trying to decrypt B00AEBEVTQ_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 256
Extra Data Flags: 3
Decrypting Kindle Format 8 ebook: Eleven Rings: The Soul of Success
Found 0 keys to try after 0.0 seconds
Crypto Type is: 2
DeDRM v6.3.4: Failed to decrypt with error: No key found in 0 keys tried.
DeDRM v6.3.4: Looking for new default Kindle Key after 0.0 seconds
Found k4Mac kinf2011 file: /Users/**********/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2011
Decrypted key file using IDString 'a59b4407611b' and UserName 'jaygarnett'
DeDRM v6.3.4: Found 1 new key
MobiDeDrm v0.41.
Copyright © 2008-2012 The Dark Reverser et al.
MOBI header version 8, header length 256
Extra Data Flags: 3
Decrypting Kindle Format 8 ebook: Eleven Rings: The Soul of Success
Found 4 keys to try after 0.3 seconds
Crypto Type is: 2
DeDRM v6.3.4: 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 155, in run_filetype_plugins
File "calibre_plugins.dedrm.init", line 590, in run
File "calibre_plugins.dedrm.init", line 540, in KindleMobiDecrypt
DeDRMError: DeDRM v6.3.4: Ultimately failed to decrypt after 0.3 seconds
Started up in 15.29 seconds with 0 books
Added Eleven Rings: The Soul of Success to db in: 0.1
Added 1 books in 0.8 seconds
InputFormatPlugin: MOBI Input running
on /Users/jaygarnett/Documents/Calibre Library/Phil Jackson/Eleven Rings
The Soul of Success (106)/Eleven Rings_ The Soul of Success - Phil Jackson.azw
Found KF8 MOBI of type 'standalone'
Worker Launch took: 0.0429649353027

Error message running android.py and androidkindlekey.py

On my machine android.py (and androidkindlekey.py) abort with an error message:

File “F:\eBooks\Android\android.py”, line 137, in get_serials2
tokens = [x[0].encode(‘utf8′) for x in cursor.fetchall()]
AttributeError: ‘NoneType’ object has no attribute ‘encode’

I think the encode part will only work as long as none of the results are NULL: if a result is NULL, you can’t encode it to UTF-8. On my machine at least, some results unfortunately are NULL. So what you’d like to do is only encode the particular result if it isn’t NULL. I’ve tried to do that by rewriting the line like so:

if not tokens:
[x[0].encode(‘utf-8′) for x in tokens]

This runs without an error message, but because I don’t know Python that well, I’m not entirely sure it does what I want. This produces different keys, but they don’t work, as in they don’t decrypt the ebook. This may well mean that statement is wrong, which wouldn’t surprise me at all.

However, at first I got rid of the error message by just 'ignoring' the token. I ignored the tokens by replacing the line with just 'tokens = ['']'. This produced a key which weirdly enough DOES work.

unable to read a book

Hi,
I'm running calibre 2.45 and kindle 1.13.1 and DeDRM_tools_6.3.4a on a win10 pc
I've just bought a book from amazon. Downloaded the azw file with the kindle for pc on my pc and imported the file into calibre library.
When I try to read the file with calibre I get the message that the file is DRM protected and is not able to read it.

Do I miss something?

Opening Patched App crashes

Hello

I saw your post and decided to patch the kindle apk 4.8.1.10 and finished patching and install successfully on my nexus 5. However when I open the app it crashes, tried clearing out the cache and stuff and it keeps happening. I was wondering if your apk is working and wondering if you can attached your working version so I can use it. I already spend 4 hrs trying to figure it out with no success. The newest version of Kindle is 4.12, maybe you can rework the patch to work with it. I tried the 4.8.1.10 to patch 4.12 however there is a small error when patching but with the same crash when I tried to open it.

Also what version of Javasdk are you using and the apktools 2.0? to decompile and recompile with signing.

PS I sent a email containing the apk to your [email protected]
Please let me know if you can take a look into it

thank you

ZIP file infected

When checking for viruses in your archives Dr. Web reports virus infections in the newer ones:

tools_v6.0.8.zip : OK
tools_v6.0.9.zip : OK
tools_v6.1.0.zip : OK
tools_v6.2.0.zip : OK
tools_v6.2.1.zip : OK
tools_v6.2.2.zip : OK
tools_v6.3.1.zip : OK
DeDRM_tools.6.3.2.zip : FOUND Trojan.Siggen6.48102
DeDRM_tools_6.3.3.zip : FOUND Worm.Win32.AutoRun
DeDRM_tools_6.3.4a.zip : FOUND Trojan.Siggen6.48102
DeDRM_tools_6.3.4.zip : FOUND Trojan.Siggen6.48102

Maybe you should check your system and/or fix the (hopefully) false positive.

Unable to install plugin on my Windows Surface 3

On installation I'm seeing 'file is invalid. It does not contain a top-level init.py file

here is a paste from details of error mssg

calibre, version 2.35.0
ERROR: Unhandled exception: InvalidPlugin:The plugin in u'C:/Users/Ivor/Downloads/DeDRM_tools_6.3.3.zip' is invalid. It does not contain a top-level init.py file

calibre 2.35 [64bit] isfrozen: True is64bit: True
Windows-8-6.2.9200 Windows ('64bit', 'WindowsPE')
('Windows', '8', '6.2.9200')
Python 2.7.9
Windows: ('8', '6.2.9200', '', 'Multiprocessor Free')
Traceback (most recent call last):
File "site-packages\calibre\gui2\preferences\plugins.py", line 316, in add_plugin
File "site-packages\calibre\customize\ui.py", line 388, in add_plugin
File "site-packages\calibre\customize\ui.py", line 53, in load_plugin
File "site-packages\calibre\customize\zipplugin.py", line 188, in load
File "site-packages\calibre\customize\zipplugin.py", line 286, in _locate_code
InvalidPlugin: The plugin in u'C:/Users/Ivor/Downloads/DeDRM_tools_6.3.3.zip' is invalid. It does not contain a top-level init.py file

Calibre 2.22 plug-in: install issue - SORTED -

--- The plug-in got finally installed ---
More .ZIP files found in the DeDRM_tools packet (in itself already a ZIP) than previously expected needed to be un-zipped first. Contributing to the initial failure was the fact that Calibre's plug-ins apparently have the file extension... .ZIP. (...).

Anyway, it's sorted now but I thought it might be worth do leave this (now non-issue) entry published here in case other users run into the same issue. Maybe the ReadMe.txt could add a line to tackle this ZIP-confusion-matter?

--------- Original entry -----------------------------------
Tried to integrate the DRM plug-in into Calibre 2.22 (64bit), running under Win7, as described in <DeDRM_plugin_ReadMe.txt> and later in various creative ways but keep getting an error message:

calibre, version 2.22.0
ERROR: Unhandled exception: InvalidPlugin:The plugin in u'C:/Users/user/Downloads/DRM Tools/calibre plugin/alfcrypto_src.zip' is invalid. It does not contain a top-level init.py file

calibre 2.22 [64bit] isfrozen: True is64bit: True
Windows-7-6.1.7601-SP1 Windows ('64bit', 'WindowsPE')
('Windows', '7', '6.1.7601')
Python 2.7.9
Windows: ('7', '6.1.7601', 'SP1', 'Multiprocessor Free')
Traceback (most recent call last):
File "site-packages\calibre\gui2\preferences\plugins.py", line 316, in add_plugin
File "site-packages\calibre\customize\ui.py", line 388, in add_plugin
File "site-packages\calibre\customize\ui.py", line 53, in load_plugin
File "site-packages\calibre\customize\zipplugin.py", line 188, in load
File "site-packages\calibre\customize\zipplugin.py", line 286, in _locate_code
InvalidPlugin: The plugin in u'C:/Users/user/Downloads/DRM Tools/calibre plugin/alfcrypto_src.zip' is invalid. It does not contain a top-level init.py file

Any suggestion on how to remedy this? Could I be doing something wrong? Could the ReadMe.txt be somewhere more clear? Any help is appreciated.

Can't DeDRM B&N ePubs

I generate the key with my name and credit card, download the ePub on my Nook App on my Mac and even through the website using the JS helper on Firefox.

Every time I try to remove the DRM I get the following:

imported_9780446567688-ePub.v1.epub is not a secure Adobe Adept ePub.

Where 9780446567688-ePub.v1.epub is the name of my eBook.

Is there any known problem with B&N DRMs?

ADEPTError: Failed to decrypt user key key (sic)

calibre 2.32.1 isfrozen: True is64bit: False
Windows-7-6.1.7601-SP1 Windows ('32bit', 'WindowsPE')
('Windows', '7', '6.1.7601')
Python 2.7.9
Windows: ('7', '6.1.7601', 'SP1', 'Multiprocessor Free')
Successfully initialized third party plugins: DeDRM
Starting up...
Failed to check for calibre update: [Errno 11004] getaddrinfo failed
Failed to check for plugin update: <urlopen error [Errno 11004] getaddrinfo failed>
Started up in 2.62 seconds with 11 books
DeDRM v6.2.2: Trying to decrypt The Girl with the Dragon Tattoo.epub
DeDRM v6.2.2: Verifying zip archive integrity
DeDRM v6.2.2: The Girl with the Dragon Tattoo.epub is a secure Adobe Adept ePub
DeDRM v6.2.2: Looking for new default Adobe Digital Editions Keys after 0.4 seconds
DeDRM v6.2.2: Exception when getting default Adobe Key after 0.4 seconds
Traceback (most recent call last):
File "calibre_plugins.dedrm.init", line 313, in ePubDecrypt
File "calibre_plugins.dedrm.adobekey", line 378, in adeptkeys
File "calibre_plugins.dedrm.adobekey", line 358, in CryptUnprotectData
ADEPTError: Failed to decrypt user key key (sic)
DeDRM v6.2.2: Ultimately failed to decrypt after 0.4 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 155, in _run_filetype_plugins
File "calibre_plugins.dedrm.init", line 590, in run
File "calibre_plugins.dedrm.init", line 367, in ePubDecrypt
DeDRMError: DeDRM v6.2.2: Ultimately failed to decrypt after 0.4 seconds.
Added The Girl with the Dragon Tattoo to db in: 0.5
Added 1 books in 1.9 seconds
Exception TypeError: "'NoneType' object is not callable" in <bound method NativeFunction.del of <calibre_plugins.dedrm.adobekey.NativeFunction object at 0x02B81530>> ignored
Exception TypeError: "'NoneType' object is not callable" in <bound method NativeFunction.del of <calibre_plugins.dedrm.adobekey.NativeFunction object at 0x02B81590>> ignored
Job: 1 Get device information started
DeviceJob: 1 Get device information done, calling callback
DeviceJob: 1 Get device information callback returned
Job: 2 Set library information started
DeviceJob: 2 Set library information done, calling callback
DeviceJob: 2 Set library information callback returned
Job: 3 Get list of books on device started
DEBUG: 0.0 PRS505: starting fetching books for card None
DEBUG: 0.0 USBMS: Fetching list of books from device. Device= PRS505 oncard= None
DEBUG: 0.0 USBMS: dirs are: D:\ database/media/books
DEBUG: 0.1 USBMS: scan from root True D:
DEBUG: 0.4 USBMS: count found in cache: 23, count of files in metadata: 23, need_sync: False
DEBUG: 0.4 USBMS: Finished fetching list of books from device. oncard= None
DEBUG: 0.4 Building XMLCache... {0: 'D:\database\cache\media.xml', 2: 'F:\Sony Reader\database\cache.xml'}
DEBUG: 0.5 Done building XMLCache...
DEBUG: 0.5 Updating JSON cache: 0
DEBUG: 0.5 Start build_id_playlist_map
DEBUG: 0.5 after cleaning playlists
DEBUG: 0.5 Finish build_id_playlist_map. Found 15
DEBUG: 0.5 Finished updating JSON cache: 0
DEBUG: 0.5 PRS505: finished fetching books for card None
DEBUG: 0.5 PRS505: starting fetching books for card carda
DEBUG: 0.5 USBMS: Fetching list of books from device. Device= PRS505 oncard= carda
DEBUG: 0.5 Building XMLCache... {0: 'D:\database\cache\media.xml', 2: 'F:\Sony Reader\database\cache.xml'}
DEBUG: 0.5 Done building XMLCache...
DEBUG: 0.5 PRS505: finished fetching books for card carda
DEBUG: 0.5 PRS505: starting fetching books for card cardb
DEBUG: 0.6 USBMS: Fetching list of books from device. Device= PRS505 oncard= cardb
DEBUG: 0.6 USBMS: dirs are: F:
DEBUG: 0.6 USBMS: scan from root True F:
DEBUG: 0.6 USBMS: count found in cache: 3, count of files in metadata: 3, need_sync: False
DEBUG: 0.6 USBMS: Finished fetching list of books from device. oncard= cardb
DEBUG: 0.7 Building XMLCache... {0: 'D:\database\cache\media.xml', 2: 'F:\Sony Reader\database\cache.xml'}
DEBUG: 0.7 Done building XMLCache...
DEBUG: 0.7 Updating JSON cache: 2
DEBUG: 0.7 Start build_id_playlist_map
DEBUG: 0.7 after cleaning playlists
DEBUG: 0.7 Finish build_id_playlist_map. Found 0
DEBUG: 0.7 Finished updating JSON cache: 2
DEBUG: 0.7 PRS505: finished fetching books for card cardb
DeviceJob: 3 Get list of books on device done, calling callback
DeviceJob: metadata_downloaded: Starting set_books_in_library
DeviceJob: set_books_in_library: books to process= 26
DeviceJob: set_books_in_library finished: time= 0.00899982452393
DeviceJob: metadata_downloaded: updating views
DeviceJob: metadata_downloaded: syncing
DeviceJob: metadata_downloaded: refreshing ondevice
DeviceJob: metadata_downloaded: sending metadata_available signal
DeviceJob: 3 Get list of books on device callback returned
Job: 2 Set library information finished
No details available.
Job: 3 Get list of books on device finished
No details available.
Job: 1 Get device information finished
No details available.

calibre 2.45.0 invalidPlugin

calibre, version 2.45.0
: InvalidPlugin:The plugin in u'C:/Users/lei/Downloads/DeDRM_tools_6.3.4a.zip' is invalid. It does not contain a top-level init.py file

calibre 2.45 isfrozen: True is64bit: False
Windows-8-6.2.9200 Windows ('32bit', 'WindowsPE')
32bit process running on 64bit windows
('Windows', '8', '6.2.9200')
Python 2.7.9
Windows: ('8', '6.2.9200', '', 'Multiprocessor Free')
Traceback (most recent call last):
File "site-packages\calibre\gui2\preferences\plugins.py", line 316, in add_plugin
File "site-packages\calibre\customize\ui.py", line 388, in add_plugin
File "site-packages\calibre\customize\ui.py", line 53, in load_plugin
File "site-packages\calibre\customize\zipplugin.py", line 188, in load
File "site-packages\calibre\customize\zipplugin.py", line 286, in _locate_code
InvalidPlugin: The plugin in u'C:/Users/lei/Downloads/DeDRM_tools_6.3.4a.zip' is invalid. It does not contain a top-level init.py file

The software requires PYTHON

In 2015, this is completely fucking unacceptable.
Stop forcing users to install shit they will never use again.

Error on adobe DRM decription from Sony e-Reader.

I've followed the guide in https://apprenticealf.wordpress.com/ but this tool is not working to me.

calibre Registro de depuración
calibre 2.26  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...
Job: 1 Obtener información del dispositivo started
DeviceJob: 1 Obtener información del dispositivo done, calling callback
DeviceJob: 1 Obtener información del dispositivo callback returned
Job: 2 Establecer información de la biblioteca started
DeviceJob: 2 Establecer información de la biblioteca done, calling callback
DeviceJob: 2 Establecer información de la biblioteca callback returned
Job: 3 Obtener lista de libros en el dispositivo started
DEBUG:    0.0 USBMS: Fetching list of books from device. Device= PRST1 oncard= None
DEBUG:    0.0 USBMS: dirs are: I:\ 
DEBUG:    0.2 USBMS: scan from root False I:\
Job: 1 Obtener información del dispositivo finished
No hay detalles disponibles.
Job: 2 Establecer información de la biblioteca finished
No hay detalles disponibles.
DEBUG:    1.0 USBMS: count found in cache: 31, count of files in metadata: 31, need_sync: False
DEBUG:    1.0 USBMS: Finished fetching list of books from device. oncard= None
DEBUG:    1.0 SQLite DB Path: I:\Sony_Reader\database\books.db
DEBUG:    1.0 Device Offset: 7200000 ms
DeviceJob: 3 Obtener lista de libros en el dispositivo done, calling callback
DeviceJob: metadata_downloaded: Starting set_books_in_library
DeviceJob: set_books_in_library: books to process= 31
DeviceJob: set_books_in_library finished: time= 0.00999999046326
DeviceJob: metadata_downloaded: updating views
DeviceJob: metadata_downloaded: syncing
DeviceJob: metadata_downloaded: refreshing ondevice
DeviceJob: metadata_downloaded: sending metadata_available signal
DeviceJob: 3 Obtener lista de libros en el dispositivo callback returned
Job: 3 Obtener lista de libros en el dispositivo finished
No hay detalles disponibles.
Started up in 21.17 seconds with 1 books
Job: 4 Ver libro en el dispositvo started
DeviceJob: 4 Ver libro en el dispositvo done, calling callback
DeviceJob: 4 Ver libro en el dispositvo callback returned
Worker Launch took: 0.388000011444
Job: 4 Ver libro en el dispositvo finished
No hay detalles disponibles.
Job: 6 Preparar archivos para transferir desde el dispositivo started
DeviceJob: 6 Preparar archivos para transferir desde el dispositivo done, calling callback
DeviceJob: 6 Preparar archivos para transferir desde el dispositivo callback returned
DeDRM v6.3.0: Trying to decrypt El ángel perdido.epub
DeDRM v6.3.0: Verifying zip archive integrity
Job: 6 Preparar archivos para transferir desde el dispositivo finished
No hay detalles disponibles.
DeDRM v6.3.0: El ángel perdido.epub is a secure Adobe Adept ePub
DeDRM v6.3.0: Trying Encryption key adeptkey
Could not decrypt hmybti.epub. Wrong key
DeDRM v6.3.0: Failed to decrypt with key adeptkey after 1.3 seconds
DeDRM v6.3.0: Looking for new default Adobe Digital Editions Keys after 1.3 seconds
DeDRM v6.3.0: Exception when getting default Adobe Key after 1.3 seconds
Traceback (most recent call last):
  File "calibre_plugins.dedrm.__init__", line 312, in ePubDecrypt
  File "calibre_plugins.dedrm.adobekey", line 377, in adeptkeys
ADEPTError: Adobe Digital Editions not activated
DeDRM v6.3.0: Ultimately failed to decrypt after 1.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 155, in _run_filetype_plugins
  File "calibre_plugins.dedrm.__init__", line 590, in run
  File "calibre_plugins.dedrm.__init__", line 366, in ePubDecrypt
DeDRMError: DeDRM v6.3.0: Ultimately failed to decrypt after 1.3 seconds.
Added El ángel perdido to db in: 1.9
Added 1 books in 4.5 seconds
DeviceJob: set_books_in_library: books to process= 31
DeviceJob: set_books_in_library finished: time= 0.0140001773834
Worker Launch took: 0.449000120163

AndroidKindle: 'NoneType' object has no attribute 'encode'

Hi,
I'm experiencing problems dedrm'ing android kindle app files (System information below):
I've successfully installed the adb and I'm backing up the kindle app with the command
"adb backup com.amazon.kindle -f D:\backup.ab" (exporting without setting a specific backup
path will otherwise crash the adb.exe).
However once I've select the ab-file in Calibre 2.35.0/DeDRM 6.3.3 I get the following error
(I don't set up any encryption password for the ab file on my LG G2 phone, after the backup
command promt appears on the phone):

calibre, version 2.35.0
ERROR: Unhandled exception: AttributeError:'NoneType' object has no attribute 'encode'

calibre 2.35 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 && Kindle and Mobipocket DeDRM && Inept Epub DeDRM && eReader PDB 2 PML && XRay Generator && KindleUnpack - The Plugin && Ignoble Epub DeDRM && Inept PDF DeDRM
Traceback (most recent call last):
File "calibre_plugins.dedrm.config", line 934, in get_android_file
File "calibre_plugins.dedrm.androidkindlekey", line 292, in get_serials
File "calibre_plugins.dedrm.androidkindlekey", line 224, in get_serials2
AttributeError: 'NoneType' object has no attribute 'encode'<\b>

I've also checked the standalone android decryption tool, which results in the same error.
However I didn't try the "Other_Tools\Kindle_for_Android_Patches", because the version
numbers for the kindle android apps do not match mine (4.16.0.75. I don't know if this is
version number is specific to an app that runs in german).

Thank you for any help!

DeDRM direct from device (and support for linux by this)

Hi all,
I played around with the obok.py script and found out that I can easily decrypt books from my Kobo device when instead of the MAC address of the device, I use the serial number.
In principle I did a bit of hacking to adjust the paths of self.kobodir and then added:

@@ -297,6 +308,9 @@
             for m in matches:
                 # print "m:",m[0]
                 macaddrs.append(m[0].upper())
+        elif sys.platform.startswith('linux'):
+            # my Kobo GloHD serial - that does the trick
+           macaddrs.append('SERIAL NUMBER OF YOUR KOBO')
         return macaddrs

     def __getuserids (self):

WIth that removal of drm from kepubs on my device worked without a problem. Also, the script started to work on Linux.

I tried a bit to integrate it into the obok calibre plugin and add an interface a la DeDRM plugin with configuration of the device, but didn't succeed, due to limited Python and Calibre-internals knowledge.

I hope that this information allows someone with more insight into the script to add support both for Linux and getting decryption direct from the device.

Thanks

No key found

I did one book 2 days ago and now i can't do it. Did the keys changed?

Found 4 keys to try after 2.3 seconds
Crypto Type is: 2
Error decrypting book after 2.3 seconds: No key found in 4 keys tried.
Traceback (most recent call last):
File "C:\Users\local\Desktop\DRM\DeDRM_Windows_Application\DeDRM_App\DeDRM_lib\lib\k4mobidedrm.py", line 248, in decryptBook
book = GetDecryptedBook(infile, kDatabases, androidFiles, serials, pids, starttime)
File "C:\Users\local\Desktop\DRM\DeDRM_Windows_Application\DeDRM_App\DeDRM_lib\lib\k4mobidedrm.py", line 222, in GetDecryptedBook
mb.processBook(totalpids)
File "C:\Users\local\Desktop\DRM\DeDRM_Windows_Application\DeDRM_App\DeDRM_lib\lib\mobidedrm.py", line 469, in processBook
raise DrmException(u"No key found in {0:d} keys tried.".format(len(goodpids)))
DrmException: No key found in 4 keys tried.
DeDRM v6.3.4: Failed

DeDRM v6.3.4: Complete: Successes: 0, Failures: 1

Only one key retrieved

When fetching the key from the B&N site, only one key is retrieved, even if multiple keys are used for different books.

I know of no work-around; I just edited the JSON config to add the additional keys, retrieved from a nook via the cchashdata.db file.

epub DRM removal for Overdrive books does not work

I have installed the latest version of Calibre (2.31) and also installed the latest version of plugin (6.2.1) and yet it doesn't remove the DRM. The log says that it thinks its a DRM Free file. It is not.

Any idea what's going on here? The file is .epub and it comes from Overdrive, according to the XML internals, its using AES128 and Adobe Adept. I am including the XML file for it. Anything else I can provide to help figure out why its not working?

http://www.mediafire.com/download/zbfts1heig7di45/EPUB_File.zip
(contains the actual epub file as well as a folder containing the deconstructed internals)

FeatureRequest [standalone osx app] - moving the dialog boxes into OSX notification?

Standalone mac app- could we please consider moving the dialog boxes into OSX notification. (Then each user can select banner or alert to their preference).

Currently the app interrupts my workflow as dock icon bounces until I accept the "Thanks" dialog.
Perhaps even have a preference option, only notify me when there is a problem.

Thankyou.

Kobo Desktop 3.19.3665 support

Hello.
It looks like Kobo devs are onto us, so they changed the master key generation in version 3.19.
Basically, you can use string 88b3a2e13 as a new salt.

My version

EOFError when trying the wrong key first

I'm on Kubuntu Vivid 64-bit and have reproduced this bug with Calibre versions 2.20 and 2.28, DeDRM tools v6.3.4a.

I have imported two .der files into the plugin. When I try to add a book freshly downloaded by the Digital Editions app, I get an ERROR: Cannot add books with details:

Worker process crashed while executing job
Traceback (most recent call last):
  File "/usr/lib/calibre/calibre/utils/ipc/pool.py", line 103, in recv
    result = cPickle.loads(eintr_retry_call(self.conn.recv_bytes))
  File "/usr/lib/calibre/calibre/utils/ipc/__init__.py", line 19, in eintr_retry_call
    return func(*args, **kwargs)
EOFError

The output in the terminal makes it appear that DeDRM tried decrypting with the wrong key first and then just...gave up?

DeDRM v6.3.4: Trying to decrypt The_Annihilation_Score.epub                         
DeDRM v6.3.4: Verifying zip archive integrity                                       
DeDRM v6.3.4: The_Annihilation_Score.epub is a secure Adobe Adept ePub              
DeDRM v6.3.4: Trying Encryption key calibre-adeptkey                                
No node found for item that was just removed:  QUrl( "file:///home/sanotehu/Documents/My Digital Editions/manifest.xml" )

I can de-DRM the book by removing all but the key it really needs, but I think I should be able to have more than one key.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.