nodrm / dedrm_tools Goto Github PK
View Code? Open in Web Editor NEWThis project forked from apprenticeharper/dedrm_tools
DeDRM tools for ebooks
This project forked from apprenticeharper/dedrm_tools
DeDRM tools for ebooks
When importing an azw3 file dedrm fails with the following message:
ModuleNotFoundError: No module named 'Crypto'
I am usign Calibre on Ubuntu Ubuntu 21.10
5.25
10.0.2
No response
calibre 5.25 embedded-python: False is64bit: True
Linux-5.13.0-28-generic-x86_64-with-glibc2.34 Linux ('64bit', 'ELF')
('Linux', '5.13.0-28-generic', '#31-Ubuntu SMP Thu Jan 13 17:41:06 UTC 2022')
Python 3.9.7
Interface language: None
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 46, 0) && DeDRM (10, 0, 2) && Package KFX (from KFX Input) (1, 46, 0) && KFX metadata reader (from KFX Input) (1, 46, 0) && KFX Input (1, 46, 0) && Set KFX metadata (from KFX Output) (1, 58, 0) && KFX Output (1, 58, 0) && Obok DeDRM (10, 0, 0)
Turning on automatic hidpi scaling
devicePixelRatio: 1.0
logicalDpi: 96.0 x 96.0
physicalDpi: 127.99999999999999 x 128.18691588785046
Using calibre Qt style: True
[0.00] Starting up...
[0.00] Showing splash screen...
[0.05] splash screen shown
[0.05] Initializing db...
[0.07] db initialized
[0.07] Constructing main UI...
DEBUG: 0.0 obok::utilities.py - loading translations
DEBUG: 0.0 obok::dialogs.py - loading translations
DEBUG: 0.0 obok::config.py - loading translations
DEBUG: 0.0 obok::action_err.py - loading translations
Using proxies: {'no': 'localhost,127.0.0.0/8,::1'}
[0.65] main UI initialized...
[0.65] Hiding splash screen
Starting QuickView
[0.97] splash screen hidden
[0.97] Started up in 0.97 seconds with 226 books
DeDRM v10.0.2: Trying to decrypt 地球星人(新潮文庫).azw3
Using Library AlfCrypto DLL/DYLIB/SO
Using Library AlfCrypto DLL/DYLIB/SO
Running file type plugin DeDRM failed with traceback:
Traceback (most recent call last):
File "calibre_plugins.dedrm.kfxdedrm", line 18, in <module>
from ion import DrmIon, DrmIonVoucher
File "/tmp/calibre_5.25.0_tmp_x1cvjsnw/ezx_07h1plugin_unzip/ion.py", line 33, in <module>
from Crypto.Cipher import AES
ModuleNotFoundError: No module named 'Crypto'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/calibre/calibre/customize/ui.py", line 176, in _run_filetype_plugins
nfp = plugin.run(nfp) or nfp
File "calibre_plugins.dedrm.__init__", line 888, in run
decrypted_ebook = self.KindleMobiDecrypt(path_to_ebook)
File "calibre_plugins.dedrm.__init__", line 782, in KindleMobiDecrypt
import calibre_plugins.dedrm.k4mobidedrm
File "/usr/lib/calibre/calibre/customize/zipplugin.py", line 192, in exec_module
exec(compiled, module.__dict__)
File "calibre_plugins.dedrm.k4mobidedrm", line 88, in <module>
from calibre_plugins.dedrm import kfxdedrm
File "/usr/lib/calibre/calibre/customize/zipplugin.py", line 192, in exec_module
exec(compiled, module.__dict__)
File "calibre_plugins.dedrm.kfxdedrm", line 20, in <module>
from calibre_plugins.dedrm.ion import DrmIon, DrmIonVoucher
File "/usr/lib/calibre/calibre/customize/zipplugin.py", line 192, in exec_module
exec(compiled, module.__dict__)
File "calibre_plugins.dedrm.ion", line 33, in <module>
from Crypto.Cipher import AES
ModuleNotFoundError: No module named 'Crypto'
Added 0 books in 2.7 seconds
The same error as this
5.39.1
v10.0.2 and v7.2.1
No response
Traceback (most recent call last):
File "calibre\customize\ui.py", line 451, in set_file_type_metadata
File "calibre\customize\builtins.py", line 439, in set_metadata
File "calibre\ebooks\metadata\epub.py", line 261, in set_metadata
File "calibre\ebooks\metadata\epub.py", line 155, in read_bytes
File "calibre\utils\zipfile.py", line 1005, in read
File "calibre\utils\zipfile.py", line 1033, in open
File "calibre\utils\zipfile.py", line 994, in getinfo
KeyError: "There is no item named 'OPS/advanced.opf' in the archive"
Thank you.
M1 MacBook, running Monterey 12.2.1
I am trying to import and remove DRM from a number of Amazon kindle books, but it always tells me "Wrong key" (see log below).
I have entered the serial numbers from my two kindles (eInk Kindle eBooks), and have added the default_key to the "Kindle for Mac/PC ebooks" section.
All three are used (log file) but none works. What am I missing?
5.37
v10.0.2
1.34.1 (63102)
calibre Debug log
calibre 5.37 embedded-python: True is64bit: True
macOS-10.16-x86_64-i386-64bit Darwin ('64bit', '')
('Darwin', '21.3.0', 'Darwin Kernel Version 21.3.0: Wed Jan 5 21:37:58 PST 2022; root:xnu-8019.80.24~20/RELEASE_ARM64_T6000')
Python 3.8.5
OSX: ('10.16', ('', '', ''), 'x86_64')
Interface language: None
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 47, 0) && DeDRM (10, 0, 2) && Package KFX (from KFX Input) (1, 47, 0) && KFX metadata reader (from KFX Input) (1, 47, 0) && KFX Input (1, 47, 0) && Set KFX metadata (from KFX Output) (1, 59, 0) && KFX Output (1, 59, 0) && Obok DeDRM (10, 0, 0)
calibre 5.37 embedded-python: True is64bit: True
macOS-10.16-x86_64-i386-64bit Darwin ('64bit', '')
('Darwin', '21.3.0', 'Darwin Kernel Version 21.3.0: Wed Jan 5 21:37:58 PST 2022; root:xnu-8019.80.24~20/RELEASE_ARM64_T6000')
Python 3.8.5
OSX: ('10.16', ('', '', ''), 'x86_64')
Interface language: None
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 47, 0) && DeDRM (10, 0, 2) && Package KFX (from KFX Input) (1, 47, 0) && KFX metadata reader (from KFX Input) (1, 47, 0) && KFX Input (1, 47, 0) && Set KFX metadata (from KFX Output) (1, 59, 0) && KFX Output (1, 59, 0) && Obok DeDRM (10, 0, 0)
devicePixelRatio: 2.0
logicalDpi: 72.0 x 72.0
physicalDpi: 127.50000191485789 x 127.50000191485789
Using calibre Qt style: True
[0.00] Starting up...
[0.02] Showing splash screen...
[0.24] splash screen shown
[0.24] Initializing db...
[0.25] db initialized
[0.25] Constructing main UI...
DEBUG: 0.0 obok::utilities.py - loading translations
DEBUG: 0.0 obok::dialogs.py - loading translations
DEBUG: 0.0 obok::config.py - loading translations
DEBUG: 0.0 obok::action_err.py - loading translations
[1.01] main UI initialized...
[1.01] Hiding splash screen
Starting QuickView
Gather KFX-ZIP (from KFX Input) 1.47.0: Importing /Users/rainerkrug/Library/Application Support/Kindle/My Kindle Content/B00A61ZV3O_EBOK/B00A61ZV3O_EBOK.azw
Gather KFX-ZIP (from KFX Input): Gathered 4 file(s) as /var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/rn_19cvk.kfx-zip
DeDRM v10.0.2: Trying to decrypt rn_19cvk.kfx-zip
Using Library AlfCrypto Python
Using Library AlfCrypto Python
Decrypting KFX-ZIP ebook: rn_19cvk
Got DSN key from database default_key
Found 3 keys to try after 0.1 seconds
Decrypting KFX DRM voucher: amzn1.drm-voucher.v1.37035179-6fac-424a-9050-9298b65c9671.voucher
Traceback (most recent call last):
File "calibre_plugins.dedrm.kfxdedrm", line 83, in decrypt_voucher
voucher.decryptvoucher()
File "/var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/1x32gtvuplugin_unzip/ion.py", line 879, in decryptvoucher
b = pkcs7unpad(b, 16)
File "/var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/1x32gtvuplugin_unzip/ion.py", line 758, in pkcs7unpad
_assert(paddinglen > 0 and paddinglen <= blocklen, "Incorrect padding - Wrong key")
File "/var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/1x32gtvuplugin_unzip/ion.py", line 98, in _assert
raise Exception(msg)
Exception: Incorrect padding - Wrong key
Traceback (most recent call last):
File "calibre_plugins.dedrm.kfxdedrm", line 83, in decrypt_voucher
voucher.decryptvoucher()
File "/var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/1x32gtvuplugin_unzip/ion.py", line 879, in decryptvoucher
b = pkcs7unpad(b, 16)
File "/var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/1x32gtvuplugin_unzip/ion.py", line 758, in pkcs7unpad
_assert(paddinglen > 0 and paddinglen <= blocklen, "Incorrect padding - Wrong key")
File "/var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/1x32gtvuplugin_unzip/ion.py", line 98, in _assert
raise Exception(msg)
Exception: Incorrect padding - Wrong key
Traceback (most recent call last):
File "calibre_plugins.dedrm.kfxdedrm", line 83, in decrypt_voucher
voucher.decryptvoucher()
File "/var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/1x32gtvuplugin_unzip/ion.py", line 879, in decryptvoucher
b = pkcs7unpad(b, 16)
File "/var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/1x32gtvuplugin_unzip/ion.py", line 758, in pkcs7unpad
_assert(paddinglen > 0 and paddinglen <= blocklen, "Incorrect padding - Wrong key")
File "/var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/1x32gtvuplugin_unzip/ion.py", line 98, in _assert
raise Exception(msg)
Exception: Incorrect padding - Wrong key
Traceback (most recent call last):
File "calibre_plugins.dedrm.kfxdedrm", line 83, in decrypt_voucher
voucher.decryptvoucher()
File "/var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/1x32gtvuplugin_unzip/ion.py", line 879, in decryptvoucher
b = pkcs7unpad(b, 16)
File "/var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/1x32gtvuplugin_unzip/ion.py", line 758, in pkcs7unpad
_assert(paddinglen > 0 and paddinglen <= blocklen, "Incorrect padding - Wrong key")
File "/var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/1x32gtvuplugin_unzip/ion.py", line 98, in _assert
raise Exception(msg)
Exception: Incorrect padding - Wrong key
DeDRM v10.0.2: Failed to decrypt with error: Failed to decrypt KFX DRM voucher with any key
DeDRM v10.0.2: Looking for new default Kindle Key after 0.1 seconds
Found k4Mac kinf2018 file: /Users/rainerkrug/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2018
Found k4Mac kinf2018 file: /Users/rainerkrug/Library/Application Support/Kindle/storage/.kinf2018
trying username b'rainerkrug' on file /Users/rainerkrug/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2018
trying IDString: b'9f65a889d4a4'
[20.69] splash screen hidden
[20.69] Started up in 20.69 seconds with 50 books
trying IDString: b'9f65a889d4a7'
trying IDString: b'9f65a889d4a6'
trying IDString: b'5de82cf625cd'
trying IDString: b'930f148de1a5'
trying IDString: b'930f148de1a1'
trying IDString: b'930f148de1ad'
trying IDString: b'930f148de1a5'
trying IDString: b'disk3s1s1'
trying IDString: b'disk3s6'
trying IDString: b'disk3s2'
trying IDString: b'disk3s4'
trying IDString: b'disk1s2'
trying IDString: b'disk1s1'
trying IDString: b'disk1s3'
trying IDString: b'disk3s5'
trying IDString: b'disk5s1'
trying IDString: b'9999999999'
Couldn't decrypt file.
trying username b'rainerkrug' on file /Users/rainerkrug/Library/Application Support/Kindle/storage/.kinf2018
trying IDString: b'9f65a889d4a4'
trying IDString: b'9f65a889d4a7'
trying IDString: b'9f65a889d4a6'
trying IDString: b'5de82cf625cd'
Decrypted key file using IDString '5de82cf625cd' and UserName 'rainerkrug'
DeDRM v10.0.2: Found 1 new key
Decrypting KFX-ZIP ebook: rn_19cvk
Got DSN key from database default_key_1
Found 1 keys to try after 10.4 seconds
Decrypting KFX DRM voucher: amzn1.drm-voucher.v1.37035179-6fac-424a-9050-9298b65c9671.voucher
Traceback (most recent call last):
File "calibre_plugins.dedrm.__init__", line 795, in KindleMobiDecrypt
book = k4mobidedrm.GetDecryptedBook(path_to_ebook,kindleDatabases,androidFiles,serials,pids,self.starttime)
File "calibre_plugins.dedrm.k4mobidedrm", line 244, in GetDecryptedBook
mb.processBook(totalpids)
File "calibre_plugins.dedrm.kfxdedrm", line 45, in processBook
self.decrypt_voucher(totalpids)
File "calibre_plugins.dedrm.kfxdedrm", line 89, in decrypt_voucher
raise Exception("Failed to decrypt KFX DRM voucher with any key")
Exception: Failed to decrypt KFX DRM voucher with any key
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "calibre_plugins.dedrm.kfxdedrm", line 83, in decrypt_voucher
voucher.decryptvoucher()
File "/var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/1x32gtvuplugin_unzip/ion.py", line 879, in decryptvoucher
b = pkcs7unpad(b, 16)
File "/var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/1x32gtvuplugin_unzip/ion.py", line 758, in pkcs7unpad
_assert(paddinglen > 0 and paddinglen <= blocklen, "Incorrect padding - Wrong key")
File "/var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/1x32gtvuplugin_unzip/ion.py", line 98, in _assert
raise Exception(msg)
Exception: Incorrect padding - Wrong key
Traceback (most recent call last):
File "calibre_plugins.dedrm.__init__", line 795, in KindleMobiDecrypt
book = k4mobidedrm.GetDecryptedBook(path_to_ebook,kindleDatabases,androidFiles,serials,pids,self.starttime)
File "calibre_plugins.dedrm.k4mobidedrm", line 244, in GetDecryptedBook
mb.processBook(totalpids)
File "calibre_plugins.dedrm.kfxdedrm", line 45, in processBook
self.decrypt_voucher(totalpids)
File "calibre_plugins.dedrm.kfxdedrm", line 89, in decrypt_voucher
raise Exception("Failed to decrypt KFX DRM voucher with any key")
Exception: Failed to decrypt KFX DRM voucher with any key
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "calibre_plugins.dedrm.kfxdedrm", line 83, in decrypt_voucher
voucher.decryptvoucher()
File "/var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/1x32gtvuplugin_unzip/ion.py", line 879, in decryptvoucher
b = pkcs7unpad(b, 16)
File "/var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/1x32gtvuplugin_unzip/ion.py", line 758, in pkcs7unpad
_assert(paddinglen > 0 and paddinglen <= blocklen, "Incorrect padding - Wrong key")
File "/var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/1x32gtvuplugin_unzip/ion.py", line 98, in _assert
raise Exception(msg)
Exception: Incorrect padding - Wrong key
DeDRM v10.0.2: Ultimately failed to decrypt after 10.4 seconds. Read the FAQs at Harper's repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
Package KFX (from KFX Input) 1.47.0: Packaging /var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/rn_19cvk.kfx-zip
Processing container: B00A61ZV3O_EBOK.azw
KFX metadata reader (from KFX Input) activated for /var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/03v6ztuc_add_books/0/B00A61ZV3O_EBOK.kfx-zip
Running file type plugin DeDRM failed with traceback:
Traceback (most recent call last):
File "calibre_plugins.dedrm.__init__", line 795, in KindleMobiDecrypt
book = k4mobidedrm.GetDecryptedBook(path_to_ebook,kindleDatabases,androidFiles,serials,pids,self.starttime)
File "calibre_plugins.dedrm.k4mobidedrm", line 244, in GetDecryptedBook
mb.processBook(totalpids)
File "calibre_plugins.dedrm.kfxdedrm", line 45, in processBook
self.decrypt_voucher(totalpids)
File "calibre_plugins.dedrm.kfxdedrm", line 89, in decrypt_voucher
raise Exception("Failed to decrypt KFX DRM voucher with any key")
Exception: Failed to decrypt KFX DRM voucher with any key
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "calibre/customize/ui.py", line 175, in _run_filetype_plugins
File "calibre_plugins.dedrm.__init__", line 888, in run
decrypted_ebook = self.KindleMobiDecrypt(path_to_ebook)
File "calibre_plugins.dedrm.__init__", line 838, in KindleMobiDecrypt
raise DeDRMError("{0} v{1}: Ultimately failed to decrypt after {2:.1f} seconds. Read the FAQs at Harper's repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md".format(PLUGIN_NAME, PLUGIN_VERSION,time.time()-self.starttime))
calibre_plugins.dedrm.DeDRMError: DeDRM v10.0.2: Ultimately failed to decrypt after 10.4 seconds. Read the FAQs at Harper's repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
Running file type plugin Package KFX (from KFX Input) failed with traceback:
Traceback (most recent call last):
File "calibre/customize/ui.py", line 175, in _run_filetype_plugins
File "calibre_plugins.kfx_input.package_filetype", line 21, in run
return self.run_kfx(path_to_ebook)
File "calibre_plugins.kfx_input.package_filetype", line 32, in run_kfx
kfx_data = YJ_Book(path_to_ebook).convert_to_single_kfx()
File "calibre_plugins.kfx_input.kfxlib.yj_book", line 83, in convert_to_single_kfx
self.decode_book()
File "calibre_plugins.kfx_input.kfxlib.yj_book", line 210, in decode_book
container = self.get_container(datafile)
File "calibre_plugins.kfx_input.kfxlib.yj_book", line 317, in get_container
raise KFXDRMError("Book container %s has DRM and cannot be converted" % datafile.name)
calibre_plugins.kfx_input.kfxlib.utilities.KFXDRMError: Book container B00A61ZV3O_EBOK.azw has DRM and cannot be converted
Added The Shining Girls to db in: 0.0
Added 1 books in 11.0 seconds
Worker Launch took: 0.02 seconds
Job: 0 Convert book 1 of 1 (The Shining Girls) finished
Convert book 1 of 1 (The Shining Girls)
DeDRM v10.0.2: Trying to decrypt gkefjbxo.kfx-zip
Using Library AlfCrypto Python
Using Library AlfCrypto Python
Decrypting KFX-ZIP ebook: gkefjbxo
Got DSN key from database default_key
Found 3 keys to try after 0.1 seconds
Decrypting KFX DRM voucher: amzn1.drm-voucher.v1.37035179-6fac-424a-9050-9298b65c9671.voucher
Traceback (most recent call last):
File "calibre_plugins.dedrm.kfxdedrm", line 83, in decrypt_voucher
voucher.decryptvoucher()
File "/var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/0d84f00wplugin_unzip/ion.py", line 879, in decryptvoucher
b = pkcs7unpad(b, 16)
File "/var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/0d84f00wplugin_unzip/ion.py", line 758, in pkcs7unpad
_assert(paddinglen > 0 and paddinglen <= blocklen, "Incorrect padding - Wrong key")
File "/var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/0d84f00wplugin_unzip/ion.py", line 98, in _assert
raise Exception(msg)
Exception: Incorrect padding - Wrong key
Traceback (most recent call last):
File "calibre_plugins.dedrm.kfxdedrm", line 83, in decrypt_voucher
voucher.decryptvoucher()
File "/var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/0d84f00wplugin_unzip/ion.py", line 879, in decryptvoucher
b = pkcs7unpad(b, 16)
File "/var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/0d84f00wplugin_unzip/ion.py", line 758, in pkcs7unpad
_assert(paddinglen > 0 and paddinglen <= blocklen, "Incorrect padding - Wrong key")
File "/var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/0d84f00wplugin_unzip/ion.py", line 98, in _assert
raise Exception(msg)
Exception: Incorrect padding - Wrong key
Traceback (most recent call last):
File "calibre_plugins.dedrm.kfxdedrm", line 83, in decrypt_voucher
voucher.decryptvoucher()
File "/var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/0d84f00wplugin_unzip/ion.py", line 879, in decryptvoucher
b = pkcs7unpad(b, 16)
File "/var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/0d84f00wplugin_unzip/ion.py", line 758, in pkcs7unpad
_assert(paddinglen > 0 and paddinglen <= blocklen, "Incorrect padding - Wrong key")
File "/var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/0d84f00wplugin_unzip/ion.py", line 98, in _assert
raise Exception(msg)
Exception: Incorrect padding - Wrong key
Traceback (most recent call last):
File "calibre_plugins.dedrm.kfxdedrm", line 83, in decrypt_voucher
voucher.decryptvoucher()
File "/var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/0d84f00wplugin_unzip/ion.py", line 879, in decryptvoucher
b = pkcs7unpad(b, 16)
File "/var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/0d84f00wplugin_unzip/ion.py", line 758, in pkcs7unpad
_assert(paddinglen > 0 and paddinglen <= blocklen, "Incorrect padding - Wrong key")
File "/var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/0d84f00wplugin_unzip/ion.py", line 98, in _assert
raise Exception(msg)
Exception: Incorrect padding - Wrong key
DeDRM v10.0.2: Failed to decrypt with error: Failed to decrypt KFX DRM voucher with any key
DeDRM v10.0.2: Looking for new default Kindle Key after 0.1 seconds
Found k4Mac kinf2018 file: /Users/rainerkrug/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2018
Found k4Mac kinf2018 file: /Users/rainerkrug/Library/Application Support/Kindle/storage/.kinf2018
trying username b'rainerkrug' on file /Users/rainerkrug/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2018
trying IDString: b'9f65a889d4a4'
trying IDString: b'9f65a889d4a7'
trying IDString: b'9f65a889d4a6'
trying IDString: b'5de82cf625cd'
trying IDString: b'930f148de1a5'
trying IDString: b'930f148de1a1'
trying IDString: b'930f148de1ad'
trying IDString: b'930f148de1a5'
trying IDString: b'disk3s1s1'
trying IDString: b'disk3s6'
trying IDString: b'disk3s2'
trying IDString: b'disk3s4'
trying IDString: b'disk1s2'
trying IDString: b'disk1s1'
trying IDString: b'disk1s3'
trying IDString: b'disk3s5'
trying IDString: b'disk5s1'
trying IDString: b'9999999999'
Couldn't decrypt file.
trying username b'rainerkrug' on file /Users/rainerkrug/Library/Application Support/Kindle/storage/.kinf2018
trying IDString: b'9f65a889d4a4'
trying IDString: b'9f65a889d4a7'
trying IDString: b'9f65a889d4a6'
trying IDString: b'5de82cf625cd'
Decrypted key file using IDString '5de82cf625cd' and UserName 'rainerkrug'
DeDRM v10.0.2: Found 1 new key
Decrypting KFX-ZIP ebook: gkefjbxo
Got DSN key from database default_key_1
Found 1 keys to try after 10.4 seconds
Decrypting KFX DRM voucher: amzn1.drm-voucher.v1.37035179-6fac-424a-9050-9298b65c9671.voucher
Traceback (most recent call last):
File "calibre_plugins.dedrm.__init__", line 795, in KindleMobiDecrypt
book = k4mobidedrm.GetDecryptedBook(path_to_ebook,kindleDatabases,androidFiles,serials,pids,self.starttime)
File "calibre_plugins.dedrm.k4mobidedrm", line 244, in GetDecryptedBook
mb.processBook(totalpids)
File "calibre_plugins.dedrm.kfxdedrm", line 45, in processBook
self.decrypt_voucher(totalpids)
File "calibre_plugins.dedrm.kfxdedrm", line 89, in decrypt_voucher
raise Exception("Failed to decrypt KFX DRM voucher with any key")
Exception: Failed to decrypt KFX DRM voucher with any key
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "calibre_plugins.dedrm.kfxdedrm", line 83, in decrypt_voucher
voucher.decryptvoucher()
File "/var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/0d84f00wplugin_unzip/ion.py", line 879, in decryptvoucher
b = pkcs7unpad(b, 16)
File "/var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/0d84f00wplugin_unzip/ion.py", line 758, in pkcs7unpad
_assert(paddinglen > 0 and paddinglen <= blocklen, "Incorrect padding - Wrong key")
File "/var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/0d84f00wplugin_unzip/ion.py", line 98, in _assert
raise Exception(msg)
Exception: Incorrect padding - Wrong key
Traceback (most recent call last):
File "calibre_plugins.dedrm.__init__", line 795, in KindleMobiDecrypt
book = k4mobidedrm.GetDecryptedBook(path_to_ebook,kindleDatabases,androidFiles,serials,pids,self.starttime)
File "calibre_plugins.dedrm.k4mobidedrm", line 244, in GetDecryptedBook
mb.processBook(totalpids)
File "calibre_plugins.dedrm.kfxdedrm", line 45, in processBook
self.decrypt_voucher(totalpids)
File "calibre_plugins.dedrm.kfxdedrm", line 89, in decrypt_voucher
raise Exception("Failed to decrypt KFX DRM voucher with any key")
Exception: Failed to decrypt KFX DRM voucher with any key
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "calibre_plugins.dedrm.kfxdedrm", line 83, in decrypt_voucher
voucher.decryptvoucher()
File "/var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/0d84f00wplugin_unzip/ion.py", line 879, in decryptvoucher
b = pkcs7unpad(b, 16)
File "/var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/0d84f00wplugin_unzip/ion.py", line 758, in pkcs7unpad
_assert(paddinglen > 0 and paddinglen <= blocklen, "Incorrect padding - Wrong key")
File "/var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/0d84f00wplugin_unzip/ion.py", line 98, in _assert
raise Exception(msg)
Exception: Incorrect padding - Wrong key
DeDRM v10.0.2: Ultimately failed to decrypt after 10.4 seconds. Read the FAQs at Harper's repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
Conversion options changed from defaults:
verbose: 2
read_metadata_from_opf: '/var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/o56p07u4.opf'
cover: '/var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/enrmy9vt.jpeg'
Resolved conversion options
calibre version: 5.37.0
{'allow_conversion_with_errors': False,
'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0.0,
'book_producer': None,
'change_justification': 'original',
'chapter': "//*[((name()='h1' or name()='h2') and re:test(., "
"'\\s*((chapter|book|section|part)\\s+)|((prolog|prologue|epilogue)(\\s+|$))', "
"'i')) or @class = 'chapter']",
'chapter_mark': 'pagebreak',
'comments': None,
'cover': '/var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/enrmy9vt.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,
'epub_version': '2',
'expand_css': False,
'extra_css': None,
'extract_to': None,
'filter_css': '',
'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 0x116c5f520>,
'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.OutputProfile object at 0x116c5f7f0>,
'page_breaks_before': '/',
'prefer_metadata_cover': False,
'preserve_cover_aspect_ratio': False,
'pretty_print': True,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': '/var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/o56p07u4.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': '',
'search_replace': '[]',
'series': None,
'series_index': None,
'smarten_punctuation': False,
'sr1_replace': None,
'sr1_search': None,
'sr2_replace': None,
'sr2_search': None,
'sr3_replace': None,
'sr3_search': None,
'start_reading_at': None,
'subset_embedded_fonts': False,
'tags': None,
'timestamp': None,
'title': None,
'title_sort': None,
'toc_filter': None,
'toc_threshold': 6,
'toc_title': None,
'transform_css_rules': '[]',
'transform_html_rules': '[]',
'unsmarten_punctuation': False,
'unwrap_lines': True,
'use_auto_toc': False,
'verbose': 2}
Running file type plugin DeDRM failed with traceback:
Traceback (most recent call last):
File "calibre_plugins.dedrm.__init__", line 795, in KindleMobiDecrypt
book = k4mobidedrm.GetDecryptedBook(path_to_ebook,kindleDatabases,androidFiles,serials,pids,self.starttime)
File "calibre_plugins.dedrm.k4mobidedrm", line 244, in GetDecryptedBook
mb.processBook(totalpids)
File "calibre_plugins.dedrm.kfxdedrm", line 45, in processBook
self.decrypt_voucher(totalpids)
File "calibre_plugins.dedrm.kfxdedrm", line 89, in decrypt_voucher
raise Exception("Failed to decrypt KFX DRM voucher with any key")
Exception: Failed to decrypt KFX DRM voucher with any key
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "calibre/customize/ui.py", line 175, in _run_filetype_plugins
File "calibre_plugins.dedrm.__init__", line 888, in run
decrypted_ebook = self.KindleMobiDecrypt(path_to_ebook)
File "calibre_plugins.dedrm.__init__", line 838, in KindleMobiDecrypt
raise DeDRMError("{0} v{1}: Ultimately failed to decrypt after {2:.1f} seconds. Read the FAQs at Harper's repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md".format(PLUGIN_NAME, PLUGIN_VERSION,time.time()-self.starttime))
calibre_plugins.dedrm.DeDRMError: DeDRM v10.0.2: Ultimately failed to decrypt after 10.4 seconds. Read the FAQs at Harper's repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
DeDRM v10.0.2: Trying to decrypt gkefjbxo.kfx-zip
Decrypting KFX-ZIP ebook: gkefjbxo
Got DSN key from database default_key
Found 3 keys to try after 0.0 seconds
Decrypting KFX DRM voucher: amzn1.drm-voucher.v1.37035179-6fac-424a-9050-9298b65c9671.voucher
Traceback (most recent call last):
File "calibre_plugins.dedrm.kfxdedrm", line 83, in decrypt_voucher
voucher.decryptvoucher()
File "/var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/0d84f00wplugin_unzip/ion.py", line 879, in decryptvoucher
File "/var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/0d84f00wplugin_unzip/ion.py", line 758, in pkcs7unpad
File "/var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/0d84f00wplugin_unzip/ion.py", line 98, in _assert
Exception: Incorrect padding - Wrong key
Traceback (most recent call last):
File "calibre_plugins.dedrm.kfxdedrm", line 83, in decrypt_voucher
voucher.decryptvoucher()
File "/var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/0d84f00wplugin_unzip/ion.py", line 879, in decryptvoucher
File "/var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/0d84f00wplugin_unzip/ion.py", line 758, in pkcs7unpad
File "/var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/0d84f00wplugin_unzip/ion.py", line 98, in _assert
Exception: Incorrect padding - Wrong key
Traceback (most recent call last):
File "calibre_plugins.dedrm.kfxdedrm", line 83, in decrypt_voucher
voucher.decryptvoucher()
File "/var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/0d84f00wplugin_unzip/ion.py", line 879, in decryptvoucher
File "/var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/0d84f00wplugin_unzip/ion.py", line 758, in pkcs7unpad
File "/var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/0d84f00wplugin_unzip/ion.py", line 98, in _assert
Exception: Incorrect padding - Wrong key
Traceback (most recent call last):
File "calibre_plugins.dedrm.kfxdedrm", line 83, in decrypt_voucher
voucher.decryptvoucher()
File "/var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/0d84f00wplugin_unzip/ion.py", line 879, in decryptvoucher
File "/var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/0d84f00wplugin_unzip/ion.py", line 758, in pkcs7unpad
File "/var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/0d84f00wplugin_unzip/ion.py", line 98, in _assert
Exception: Incorrect padding - Wrong key
DeDRM v10.0.2: Failed to decrypt with error: Failed to decrypt KFX DRM voucher with any key
DeDRM v10.0.2: Looking for new default Kindle Key after 0.0 seconds
Found k4Mac kinf2018 file: /Users/rainerkrug/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2018
Found k4Mac kinf2018 file: /Users/rainerkrug/Library/Application Support/Kindle/storage/.kinf2018
trying username b'rainerkrug' on file /Users/rainerkrug/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2018
trying IDString: b'9f65a889d4a4'
trying IDString: b'9f65a889d4a7'
trying IDString: b'9f65a889d4a6'
trying IDString: b'5de82cf625cd'
trying IDString: b'930f148de1a5'
trying IDString: b'930f148de1a1'
trying IDString: b'930f148de1ad'
trying IDString: b'930f148de1a5'
trying IDString: b'disk3s1s1'
trying IDString: b'disk3s6'
trying IDString: b'disk3s2'
trying IDString: b'disk3s4'
trying IDString: b'disk1s2'
trying IDString: b'disk1s1'
trying IDString: b'disk1s3'
trying IDString: b'disk3s5'
trying IDString: b'disk5s1'
trying IDString: b'9999999999'
Couldn't decrypt file.
trying username b'rainerkrug' on file /Users/rainerkrug/Library/Application Support/Kindle/storage/.kinf2018
trying IDString: b'9f65a889d4a4'
trying IDString: b'9f65a889d4a7'
trying IDString: b'9f65a889d4a6'
trying IDString: b'5de82cf625cd'
Decrypted key file using IDString '5de82cf625cd' and UserName 'rainerkrug'
DeDRM v10.0.2: Found 1 new key
Decrypting KFX-ZIP ebook: gkefjbxo
Got DSN key from database default_key_1
Found 1 keys to try after 10.3 seconds
Decrypting KFX DRM voucher: amzn1.drm-voucher.v1.37035179-6fac-424a-9050-9298b65c9671.voucher
Traceback (most recent call last):
File "calibre_plugins.dedrm.__init__", line 795, in KindleMobiDecrypt
book = k4mobidedrm.GetDecryptedBook(path_to_ebook,kindleDatabases,androidFiles,serials,pids,self.starttime)
File "calibre_plugins.dedrm.k4mobidedrm", line 244, in GetDecryptedBook
mb.processBook(totalpids)
File "calibre_plugins.dedrm.kfxdedrm", line 45, in processBook
self.decrypt_voucher(totalpids)
File "calibre_plugins.dedrm.kfxdedrm", line 89, in decrypt_voucher
raise Exception("Failed to decrypt KFX DRM voucher with any key")
Exception: Failed to decrypt KFX DRM voucher with any key
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "calibre_plugins.dedrm.kfxdedrm", line 83, in decrypt_voucher
voucher.decryptvoucher()
File "/var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/0d84f00wplugin_unzip/ion.py", line 879, in decryptvoucher
File "/var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/0d84f00wplugin_unzip/ion.py", line 758, in pkcs7unpad
File "/var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/0d84f00wplugin_unzip/ion.py", line 98, in _assert
Exception: Incorrect padding - Wrong key
Traceback (most recent call last):
File "calibre_plugins.dedrm.__init__", line 795, in KindleMobiDecrypt
book = k4mobidedrm.GetDecryptedBook(path_to_ebook,kindleDatabases,androidFiles,serials,pids,self.starttime)
File "calibre_plugins.dedrm.k4mobidedrm", line 244, in GetDecryptedBook
mb.processBook(totalpids)
File "calibre_plugins.dedrm.kfxdedrm", line 45, in processBook
self.decrypt_voucher(totalpids)
File "calibre_plugins.dedrm.kfxdedrm", line 89, in decrypt_voucher
raise Exception("Failed to decrypt KFX DRM voucher with any key")
Exception: Failed to decrypt KFX DRM voucher with any key
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "calibre_plugins.dedrm.kfxdedrm", line 83, in decrypt_voucher
voucher.decryptvoucher()
File "/var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/0d84f00wplugin_unzip/ion.py", line 879, in decryptvoucher
File "/var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/0d84f00wplugin_unzip/ion.py", line 758, in pkcs7unpad
File "/var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/0d84f00wplugin_unzip/ion.py", line 98, in _assert
Exception: Incorrect padding - Wrong key
DeDRM v10.0.2: Ultimately failed to decrypt after 10.3 seconds. Read the FAQs at Harper's repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
Running file type plugin DeDRM failed with traceback:
Traceback (most recent call last):
File "calibre_plugins.dedrm.__init__", line 795, in KindleMobiDecrypt
book = k4mobidedrm.GetDecryptedBook(path_to_ebook,kindleDatabases,androidFiles,serials,pids,self.starttime)
File "calibre_plugins.dedrm.k4mobidedrm", line 244, in GetDecryptedBook
mb.processBook(totalpids)
File "calibre_plugins.dedrm.kfxdedrm", line 45, in processBook
self.decrypt_voucher(totalpids)
File "calibre_plugins.dedrm.kfxdedrm", line 89, in decrypt_voucher
raise Exception("Failed to decrypt KFX DRM voucher with any key")
Exception: Failed to decrypt KFX DRM voucher with any key
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "calibre/customize/ui.py", line 175, in _run_filetype_plugins
File "calibre_plugins.dedrm.__init__", line 888, in run
decrypted_ebook = self.KindleMobiDecrypt(path_to_ebook)
File "calibre_plugins.dedrm.__init__", line 838, in KindleMobiDecrypt
raise DeDRMError("{0} v{1}: Ultimately failed to decrypt after {2:.1f} seconds. Read the FAQs at Harper's repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md".format(PLUGIN_NAME, PLUGIN_VERSION,time.time()-self.starttime))
calibre_plugins.dedrm.DeDRMError: DeDRM v10.0.2: Ultimately failed to decrypt after 10.3 seconds. Read the FAQs at Harper's repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
InputFormatPlugin: KFX Input running
on /var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/gkefjbxo.kfx-zip
Software versions: KFX Input 1.47.0, calibre 5.37, macOS-10.16-x86_64-i386-64bit
KFX Input plugin help is available at https://www.mobileread.com/forums/showthread.php?t=291290
Converting /var/folders/50/wcr5bjwn75q595n6x82gxj280000gq/C/calibre_5.37.0_tmp_kys3rgj6/gkefjbxo.kfx-zip
Processing container: B00A61ZV3O_EBOK.azw
Traceback (most recent call last):
File "calibre_plugins.kfx_input.__init__", line 105, in convert
File "calibre_plugins.kfx_input.kfxlib.yj_book", line 210, in decode_book
File "calibre_plugins.kfx_input.kfxlib.yj_book", line 317, in get_container
calibre_plugins.kfx_input.kfxlib.utilities.KFXDRMError: Book container B00A61ZV3O_EBOK.azw has DRM and cannot be converted
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "runpy.py", line 194, in _run_module_as_main
File "runpy.py", line 87, in _run_code
File "site.py", line 39, in <module>
File "site.py", line 35, in main
File "calibre/utils/ipc/worker.py", line 215, in main
File "calibre/gui2/convert/gui_conversion.py", line 38, in gui_convert_override
File "calibre/gui2/convert/gui_conversion.py", line 25, in gui_convert
File "calibre/ebooks/conversion/plumber.py", line 1108, in run
File "calibre/customize/conversion.py", line 242, in __call__
File "calibre_plugins.kfx_input.__init__", line 125, in convert
calibre.ebooks.DRMError: This book has DRM!
I just bought a good number of books yesterday, but despite the complement having all the keys in existance up to last year, most of them give me the following error:
Exception: Incorrect padding - Wrong key
DeDRM v10.0.2: Failed to decrypt with error: Failed to decrypt KFX DRM voucher with any key
5.35.0
v10.0.2
1..33.0.62002
No response
I am able to open the ebook file in Adobe Digital Editions. However, when I load it into Calibre, the plugin fails to DeDRM. Debug report is below. I encountered this issue with both this fork of the tool and with Apprentice Alf's version.
calibre Debug log
calibre 5.36 [64bit] embedded-python: True is64bit: True
Windows-10-10.0.19041 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19041')
Python 3.8.5
Windows: ('10', '10.0.19041', '', 'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: DeDRM (10, 0, 2)
calibre 5.36 [64bit] embedded-python: True is64bit: True
Windows-10-10.0.19041 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19041')
Python 3.8.5
Windows: ('10', '10.0.19041', '', 'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: DeDRM (10, 0, 2)
Turning on automatic hidpi scaling
devicePixelRatio: 2.0
logicalDpi: 108.0 x 108.0
physicalDpi: 81.68844221105527 x 81.64285714285714
Using calibre Qt style: True
[0.00] Starting up...
[0.01] Showing splash screen...
[0.66] splash screen shown
[0.66] Initializing db...
[0.73] db initialized
[0.73] Constructing main UI...
[1.45] main UI initialized...
[1.45] Hiding splash screen
Starting QuickView
DeDRM v10.0.2: Trying to decrypt Living for the Future.pdf
DeDRM v10.0.2: Living for the Future.pdf is a PDF ebook for UUID d7467447-9d3e-4e34-8f74-83fdd17b417b
DeDRM v10.0.2: Trying encryption key default_key
This seems to be an Adobe ADEPT PDF with Adobe's new DRM
This DRM cannot be removed yet.
Try getting your distributor to give you a new ACSM file, then open that in an old version of ADE (2.0).
If your book distributor is not enforcing the new DRM yet, this will give you a copy with the old DRM.
DeDRM v10.0.2: Book uses unsupported (too new) Adobe DRM.
DeDRM v10.0.2: Finished after 0.1 seconds
Traceback (most recent call last):
File "calibre\customize\ui.py", line 432, in get_file_type_metadata
File "calibre\customize\builtins.py", line 315, in get_metadata
File "calibre\ebooks\metadata\pdf.py", line 124, in get_metadata
ValueError: Could not read info dict from PDF
Syntax Error: Couldn't find the 'EBX_HANDLER' security handler
pdfinfo errored out with return code: 1
[8.50] splash screen hidden
[8.50] Started up in 8.50 seconds with 58 books
stdout+stderr from file dialog helper: [b'', b'']
piped data from file dialog helper: [b'\x8d\x1f\xb9k\x1fG$5\xbc\xad\x08\x0b\xf2\xc2\xd6!\xbb\t\xca\xb3dE\xc6y\x7fz\xa9E\x0f\xa1\xf0\x1e', b'C:\Users\dnewh\Documents\My Digital Editions\Living for the Future.pdf']
Added Living for the Future to db in: 0.2
Added 1 books in 1.0 seconds
Ubuntu 18.04, Calibre 5.32, DRM not removed.
Plugin DeDRM 10.0.2
.epub from italian public library.
screenshot of Calibre response
https://i.ibb.co/LPGVHDN/drm.png
Any help please?
Thanks
Alex
Hi, is my first day using this plugin so maybe I'm doing somethign wrong.
I downloaded 2 eBooks from the Kindle 1.26 version on PC and the first one (Dune) was in FKZ and the DRM removal was success full, but the second one (Dark Souls. Beyond the Grave - Volume 2) is in format FKZ-ZIP and this one failed when I tried to convert in AWZ3.
After that I tried with other few books that I have on Amazon and all of them were FKZ-ZIP, so I tried with those ones too and nothing. I always get the error with the FKZ-ZIP format eBooks.
Someone can help me or there's a known solution for this?
v5.34 Portable
v10.0.2
1.26
calibre Registro de depuración
calibre 5.34 Portable embedded-python: True is64bit: False
Windows-10-10.0.19041 Windows ('32bit', 'WindowsPE')
32bit process running on 64bit windows
('Windows', '10', '10.0.19041')
Python 3.8.5
Windows: ('10', '10.0.19041', '', 'Multiprocessor Free')
Interface language: es
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 46, 0) && DeDRM (10, 0, 2) && Package KFX (from KFX Input) (1, 46, 0) && KFX metadata reader (from KFX Input) (1, 46, 0) && KFX Input (1, 46, 0) && Kindle Collections (1, 7, 29) && Kindle hi-res covers (0, 5, 0)
calibre 5.34 Portable embedded-python: True is64bit: False
Windows-10-10.0.19041 Windows ('32bit', 'WindowsPE')
32bit process running on 64bit windows
('Windows', '10', '10.0.19041')
Python 3.8.5
Windows: ('10', '10.0.19041', '', 'Multiprocessor Free')
Interface language: es
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 46, 0) && DeDRM (10, 0, 2) && Package KFX (from KFX Input) (1, 46, 0) && KFX metadata reader (from KFX Input) (1, 46, 0) && KFX Input (1, 46, 0) && Kindle Collections (1, 7, 29) && Kindle hi-res covers (0, 5, 0)
Turning on automatic hidpi scaling
devicePixelRatio: 1.0
logicalDpi: 96.0 x 96.0
physicalDpi: 101.6 x 101.6
Using calibre Qt style: True
[0.00] Starting up...
[0.00] Showing splash screen...
[0.41] splash screen shown
[0.41] Initializing db...
[0.41] db initialized
[0.41] Constructing main UI...
[0.95] main UI initialized...
[0.95] Hiding splash screen
Starting QuickView
Gather KFX-ZIP (from KFX Input) 1.46.0: Importing C:\Users\Jorge\Documents\My Kindle Content\B07NWPP5LJ_EBOK\B07NWPP5LJ_EBOK.azw
Gather KFX-ZIP (from KFX Input): Gathered 5 file(s) as C:\Users\Jorge\AppData\Local\Temp\calibre__jt7i_33\mcekg9rq.kfx-zip
DeDRM v10.0.2: Trying to decrypt mcekg9rq.kfx-zip
Using Library AlfCrypto DLL/DYLIB/SO
Using Library AlfCrypto DLL/DYLIB/SO
Decrypting KFX-ZIP ebook: mcekg9rq
Got DSN key from database default_key
Found 1 keys to try after 0.1 seconds
Decrypting KFX DRM voucher: amzn1.drm-voucher.v1.8921bba6-7e27-4fbb-a562-84b399ba74ec.voucher
Traceback (most recent call last):
File "calibre_plugins.dedrm.kfxdedrm", line 83, in decrypt_voucher
File "D:\Calibre Portable\Calibre Settings\plugins\DeDRM.zip\ion.py", line 879, in decryptvoucher
File "D:\Calibre Portable\Calibre Settings\plugins\DeDRM.zip\ion.py", line 758, in pkcs7unpad
File "D:\Calibre Portable\Calibre Settings\plugins\DeDRM.zip\ion.py", line 98, in _assert
Exception: Incorrect padding - Wrong key
Traceback (most recent call last):
File "calibre_plugins.dedrm.kfxdedrm", line 83, in decrypt_voucher
File "D:\Calibre Portable\Calibre Settings\plugins\DeDRM.zip\ion.py", line 879, in decryptvoucher
File "D:\Calibre Portable\Calibre Settings\plugins\DeDRM.zip\ion.py", line 758, in pkcs7unpad
File "D:\Calibre Portable\Calibre Settings\plugins\DeDRM.zip\ion.py", line 98, in _assert
Exception: Incorrect padding - Wrong key
DeDRM v10.0.2: Failed to decrypt with error: Failed to decrypt KFX DRM voucher with any key
DeDRM v10.0.2: Looking for new default Kindle Key after 0.1 seconds
searching for kinfoFiles in C:\Users\Jorge\AppData\Local
Found K4PC 1.25+ kinf2018 file: C:\Users\Jorge\AppData\Local\Amazon\Kindle\storage\.kinf2018
[12.53] splash screen hidden
[12.53] Started up in 12.53 seconds with 53 books
stdout+stderr from file dialog helper: [b'', b'']
piped data from file dialog helper: [b'\xe4r\xf1\x13\xe2F\x13`\x18\xc5\x1e#\xc6]+9\xce\x95\xf1\x15\xf1.\xd3-\x8e\xbc\xef\x9c\x87j\xfd\x12', b'C:\\Users\\Jorge\\Documents\\My Kindle Content\\B07NWPP5LJ_EBOK\\B07NWPP5LJ_EBOK.azw']
Decrypted key file using IDString '4029591085' and UserName 'Jorge'
DeDRM v10.0.2: Found 1 new key
Decrypting KFX-ZIP ebook: mcekg9rq
Got DSN key from database default_key_1
Found 1 keys to try after 2.7 seconds
Decrypting KFX DRM voucher: amzn1.drm-voucher.v1.8921bba6-7e27-4fbb-a562-84b399ba74ec.voucher
Traceback (most recent call last):
File "calibre_plugins.dedrm.__init__", line 795, in KindleMobiDecrypt
File "calibre_plugins.dedrm.k4mobidedrm", line 244, in GetDecryptedBook
File "calibre_plugins.dedrm.kfxdedrm", line 45, in processBook
File "calibre_plugins.dedrm.kfxdedrm", line 89, in decrypt_voucher
Exception: Failed to decrypt KFX DRM voucher with any key
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "calibre_plugins.dedrm.kfxdedrm", line 83, in decrypt_voucher
File "D:\Calibre Portable\Calibre Settings\plugins\DeDRM.zip\ion.py", line 879, in decryptvoucher
File "D:\Calibre Portable\Calibre Settings\plugins\DeDRM.zip\ion.py", line 758, in pkcs7unpad
File "D:\Calibre Portable\Calibre Settings\plugins\DeDRM.zip\ion.py", line 98, in _assert
Exception: Incorrect padding - Wrong key
Traceback (most recent call last):
File "calibre_plugins.dedrm.__init__", line 795, in KindleMobiDecrypt
File "calibre_plugins.dedrm.k4mobidedrm", line 244, in GetDecryptedBook
File "calibre_plugins.dedrm.kfxdedrm", line 45, in processBook
File "calibre_plugins.dedrm.kfxdedrm", line 89, in decrypt_voucher
Exception: Failed to decrypt KFX DRM voucher with any key
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "calibre_plugins.dedrm.kfxdedrm", line 83, in decrypt_voucher
File "D:\Calibre Portable\Calibre Settings\plugins\DeDRM.zip\ion.py", line 879, in decryptvoucher
File "D:\Calibre Portable\Calibre Settings\plugins\DeDRM.zip\ion.py", line 758, in pkcs7unpad
File "D:\Calibre Portable\Calibre Settings\plugins\DeDRM.zip\ion.py", line 98, in _assert
Exception: Incorrect padding - Wrong key
DeDRM v10.0.2: Ultimately failed to decrypt after 2.7 seconds. Read the FAQs at Harper's repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
Package KFX (from KFX Input) 1.46.0: Packaging C:\Users\Jorge\AppData\Local\Temp\calibre__jt7i_33\mcekg9rq.kfx-zip
Processing container: B07NWPP5LJ_EBOK.azw
KFX metadata reader (from KFX Input) activated for C:\Users\Jorge\AppData\Local\Temp\calibre__jt7i_33\0i0t2uc0_add_books\0\B07NWPP5LJ_EBOK.kfx-zip
Running file type plugin DeDRM failed with traceback:
Traceback (most recent call last):
File "calibre_plugins.dedrm.__init__", line 795, in KindleMobiDecrypt
File "calibre_plugins.dedrm.k4mobidedrm", line 244, in GetDecryptedBook
File "calibre_plugins.dedrm.kfxdedrm", line 45, in processBook
File "calibre_plugins.dedrm.kfxdedrm", line 89, in decrypt_voucher
Exception: Failed to decrypt KFX DRM voucher with any key
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "calibre\customize\ui.py", line 175, in _run_filetype_plugins
File "calibre_plugins.dedrm.__init__", line 888, in run
File "calibre_plugins.dedrm.__init__", line 838, in KindleMobiDecrypt
calibre_plugins.dedrm.DeDRMError: DeDRM v10.0.2: Ultimately failed to decrypt after 2.7 seconds. Read the FAQs at Harper's repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
Running file type plugin Package KFX (from KFX Input) failed with traceback:
Traceback (most recent call last):
File "calibre\customize\ui.py", line 175, in _run_filetype_plugins
File "calibre_plugins.kfx_input.package_filetype", line 21, in run
File "calibre_plugins.kfx_input.package_filetype", line 32, in run_kfx
File "calibre_plugins.kfx_input.kfxlib.yj_book", line 84, in convert_to_single_kfx
File "calibre_plugins.kfx_input.kfxlib.yj_book", line 211, in decode_book
File "calibre_plugins.kfx_input.kfxlib.yj_book", line 318, in get_container
calibre_plugins.kfx_input.kfxlib.utilities.KFXDRMError: Book conAdded Dark Souls. Beyond the Grave - Volume 2: Bloodborne & Dark Souls III to db in: 6.0
Added 1 books in 9.2 seconds
I attempt to install the 10.0.2 zip via Calibre's "preferences -> plugins -> load plugin from file" menu, and Calibre spits out:
The plugin in '/{path_omitted}/DeDRM_tools_10.0.2.zip' is invalid. It does not contain a top-level init.py file
Calibre is v5.34 on Linux.
Any insights?
calibre, version 5.4.2
FEJL: Uhåndteret undtagelse: InvalidPlugin:The plugin in '/tmp/DeDRM_tools_10.0.2.zip' is invalid. It does not contain a top-level init.py file
calibre 5.4.2 embedded-python: True is64bit: True
Linux-5.4.0-96-lowlatency-x86_64-with-glibc2.2.5 Linux ('64bit', 'ELF')
('Linux', '5.4.0-96-lowlatency', '#109-Ubuntu SMP PREEMPT Wed Jan 12 17:51:01 UTC 2022')
Python 3.8.5
Interface language: da
Successfully initialized third party plugins: KindleUnpack - The Plugin (0, 75, 0)
Traceback (most recent call last):
File "calibre/gui2/preferences/plugins.py", line 317, in add_plugin
File "calibre/customize/ui.py", line 472, in add_plugin
File "calibre/customize/ui.py", line 61, in load_plugin
File "calibre/customize/zipplugin.py", line 276, in load
File "calibre/customize/zipplugin.py", line 371, in _locate_code
calibre.customize.InvalidPlugin: The plugin in '/tmp/DeDRM_tools_10.0.2.zip' is invalid. It does not contain a top-level init.py file
5.4.2
not running
No response
......
Standalone tools were removed at 92bf51b. They are useful to execute batch process decrypting the whole library.
My configuration using Amazon Kindle v1.26 and Calibre 5.35 suddenly stopped working and it looks like Amazon was forcing KFX. If anyone else has this issue give this plugin by jhowell a try: https://www.mobileread.com/forums/showthread.php?t=291290
Once I had this installed I was able to continue converting. I can't find an explicit licence for the code, but perhaps jhowell can be contacted so the plugin can be added to the repository?
All recent .mobi ebooks bought from Amazon recently do not get decrypted when added to Calibre.
Platform is: Win10, Calibre 5.39, latest noDrm release (10.0.2), Kindle for PC 1.17.0
5.39
v10.0.2
1.17.0
Paste log output here.
This line: https://github.com/noDRM/DeDRM_tools/blob/v10.0.2/DeDRM_plugin/kindlekey.py#L1190 , causes the following message to be printed: Python is loading libcrypto in an unsafe way
. After that, the process is promptly terminated by the OS.
Moreover, /usr/lib/libcrypto.dylib
does not even exist on M1 Macs.
It might be simpler to remove that portion of code and use pycryptodome/pure-python code as the data to decrypt is very small anyway.
Hi, I'm using Kindle app 1.26.1 (55093), the latest Calibre 5.40, and the latest DRM tools 10.0.2 but am getting this error when trying to convert any .azw files to EPUB from this Exposure book series only (all other books I've tried convert fine):
ERROR: KFX conversion failed:
Cannot convert Ms. Mirage (Exposure collection)
KeyError('$176')
Tried to de-drm books from B&N today and it mostly did not work.
Out of the 7, 2 were DRM-free, 1 was taken care of by De-DRM and the other 3 did not work. 6 were epubs and 1 is a PDF.
When I first got them (well, 6 of the 7) in 2021, I was able to de-DRM them with no problem. Now, clearly, something has changed.
The log I'm including here is for the PDF. I can include the epub one as well.
5.38
10.0.2
No response
calibre Debug log
calibre 5.38 [64bit] embedded-python: True is64bit: True
Windows-10-10.0.19041 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19041')
Python 3.8.5
Windows: ('10', '10.0.19041', '', 'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: DeDRM (10, 0, 2) && Count Pages (1, 11, 2) && KindleUnpack - The Plugin (0, 83, 1) && Obok DeDRM (10, 0, 0)
calibre 5.38 [64bit] embedded-python: True is64bit: True
Windows-10-10.0.19041 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19041')
Python 3.8.5
Windows: ('10', '10.0.19041', '', 'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: DeDRM (10, 0, 2) && Count Pages (1, 11, 2) && KindleUnpack - The Plugin (0, 83, 1) && Obok DeDRM (10, 0, 0)
Turning on automatic hidpi scaling
devicePixelRatio: 1.0
logicalDpi: 96.0 x 96.0
physicalDpi: 141.7674418604651 x 142.13471502590673
Using calibre Qt style: True
[0.00] Starting up...
[0.00] Initializing db...
[0.05] db initialized
[0.05] Constructing main UI...
DEBUG: 0.0 obok::utilities.py - loading translations
DEBUG: 0.0 obok::dialogs.py - loading translations
DEBUG: 0.0 obok::config.py - loading translations
DEBUG: 0.0 obok::action_err.py - loading translations
[0.97] main UI initialized...
[0.97] Started up in 0.97 seconds with 1206 books
Starting QuickView
DeDRM v10.0.2: Trying to decrypt 9781454900955.pdf
DeDRM v10.0.2: 9781454900955.pdf is a PDF ebook
DeDRM v10.0.2: Trying encryption key default_key
DeDRM v10.0.2: Exception when decrypting after 0.1 seconds
Traceback (most recent call last):
File "calibre_plugins.dedrm.__init__", line 636, in PDFDecrypt
File "calibre_plugins.dedrm.ineptpdf", line 2322, in decryptBook
File "calibre_plugins.dedrm.ineptpdf", line 2128, in __init__
File "calibre_plugins.dedrm.ineptpdf", line 1504, in initialize
File "calibre_plugins.dedrm.ineptpdf", line 1711, in initialize_ebx_inept
File "calibre_plugins.dedrm.ineptpdf", line 399, in decrypt
File "Crypto\Cipher\PKCS1_v1_5.py", line 165, in decrypt
ValueError: Ciphertext with incorrect length.
DeDRM v10.0.2: Failed to decrypt with key default_key after 0.1 seconds
DeDRM v10.0.2: Trying encryption key default_key_2
DeDRM v10.0.2: Exception when decrypting after 0.1 seconds
Traceback (most recent call last):
File "calibre_plugins.dedrm.__init__", line 636, in PDFDecrypt
File "calibre_plugins.dedrm.ineptpdf", line 2322, in decryptBook
File "calibre_plugins.dedrm.ineptpdf", line 2128, in __init__
File "calibre_plugins.dedrm.ineptpdf", line 1504, in initialize
File "calibre_plugins.dedrm.ineptpdf", line 1711, in initialize_ebx_inept
File "calibre_plugins.dedrm.ineptpdf", line 399, in decrypt
File "Crypto\Cipher\PKCS1_v1_5.py", line 165, in decrypt
ValueError: Ciphertext with incorrect length.
DeDRM v10.0.2: Failed to decrypt with key default_key_2 after 0.1 seconds
DeDRM v10.0.2: Looking for new default Adobe Digital Editions Keys after 0.1 seconds
Found 1 keys
Traceback (most recent call last):
File "calibre_plugins.dedrm.config", line 35, in checkForDeACSMkeys
ModuleNotFoundError: No module named 'calibre_plugins.deacsm'
DeDRM v10.0.2: Trying a new default key
DeDRM v10.0.2: Exception when decrypting after 0.2 seconds
Traceback (most recent call last):
File "calibre_plugins.dedrm.__init__", line 712, in PDFDecrypt
File "calibre_plugins.dedrm.ineptpdf", line 2322, in decryptBook
File "calibre_plugins.dedrm.ineptpdf", line 2128, in __init__
File "calibre_plugins.dedrm.ineptpdf", line 1504, in initialize
File "calibre_plugins.dedrm.ineptpdf", line 1711, in initialize_ebx_inept
File "calibre_plugins.dedrm.ineptpdf", line 399, in decrypt
File "Crypto\Cipher\PKCS1_v1_5.py", line 165, in decrypt
ValueError: Ciphertext with incorrect length.
DeDRM v10.0.2: Failed to decrypt with new default key after 0.2 seconds
DeDRM v10.0.2: Trying Encryption key BNkey
DeDRM v10.0.2: Exception when decrypting after 0.2 seconds
Traceback (most recent call last):
File "calibre_plugins.dedrm.__init__", line 748, in PDFDecrypt
File "calibre_plugins.dedrm.ineptpdf", line 2322, in decryptBook
File "calibre_plugins.dedrm.ineptpdf", line 2128, in __init__
File "calibre_plugins.dedrm.ineptpdf", line 1506, in initialize
File "calibre_plugins.dedrm.ineptpdf", line 1650, in initialize_ebx_ignoble
AttributeError: 'str' object has no attribute 'decode'
DeDRM v10.0.2: Failed to decrypt with key BNkey after 0.2 seconds
DeDRM v10.0.2: Ultimately failed to decrypt after 0.2 seconds. Read the FAQs at Harper's repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
Running file type plugin DeDRM failed with traceback:
Traceback (most recent call last):
File "calibre\customize\ui.py", line 175, in _run_filetype_plugins
File "calibre_plugins.dedrm.__init__", line 895, in run
File "calibre_plugins.dedrm.__init__", line 770, in PDFDecrypt
calibre_plugins.dedrm.DeDRMError: DeDRM v10.0.2: Ultimately failed to decrypt after 0.2 seconds. Read the FAQs at Harper's repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
Traceback (most recent call last):
File "calibre\customize\ui.py", line 432, in get_file_type_metadata
File "calibre\customize\builtins.py", line 315, in get_metadata
File "calibre\ebooks\metadata\pdf.py", line 124, in get_metadata
ValueError: Could not read info dict from PDF
Syntax Error: Couldn't find the 'EBX_HANDLER' security handler
pdfinfo errored out with return code: 1
Debugging DND event
application/x-qt-windows-mime;value="Shell IDList Array" 680 b'\x01\x00\x00\x00\x0c\x00\x00\x006\x02\x00\x00\x14\x00\x1fDG\x1a\x03Yr?\xa7D\x89\xc5U\x95\xfek0\xee\x82\x00t\x00\x1c\x00CFSF\x16\x001\x00\x00\x00\x00\x00*Q+s\x12\x00AppData\x00\x00\x00t\x1aY^\x96\xdf\xd3H\x8dg\x173\xbc\xee(\xba\xc5\xcd\xfa\xdf\x9fgVA\x89G\xc5\xc7k\xc0\xb6\x7f@\x00\t\x00\x04\x00\xef\xbe*Q+s*Q\x84s.\x00\x00\x00\x91\x7f\x00\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00z3Y\x00A\x00p\x00p\x00D\x00a\x00t\x00a\x00\x00\x00B\x00P\x001\x00\x00\x00\x00\x00EQ\xa6\x19\x10\x00Local\x00<\x00\t\x00\x04\x00\xef\xbe*Q+sEQ\xa6\x19.\x00\x00\x00\xab\x7f\x00\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00?\x1d\x14\x01L\x00o\x00c\x00a\x00l\x00\x00\x00\x14\x00Z\x001\x00\x00\x00\x00\x00CQ\x16\x10\x10\x00Packages\x00\x00B\x00\t\x00\x04\x00\xef\xbe*Q\xb2sCQ\x16\x10.\x00\x00\x00\xf0\t\x00\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00'
application/x-qt-windows-mime;value="UsingDefaultDragImage" 4 b'\x01\x00\x00\x00'
application/x-qt-windows-mime;value="DragImageBits" 36888 b'`\x00\x00\x00`\x00\x00\x000\x00\x00\x00Y\x00\x00\x00\xc7\x16\x05\x07\xff\xff\xff\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
application/x-qt-windows-mime;value="DragContext" 16 b'\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
application/x-qt-windows-mime;value="DragSourceHelperFlags" 4 b'\x01\x00\x00\x00'
application/x-qt-windows-mime;value="InShellDragLoop" 4 b'\x01\x00\x00\x00'
text/uri-list 107 b'file:///C:/Users/----/AppData/Local/Packages/BarnesNoble.Nook_ahnzqzva31enc/LocalState/9781454900955.pdf\r\n'
application/x-qt-windows-mime;value="FileName" 73 b'C:\\Users\\-----\\AppData\\Local\\Packages\\BARNES~1.NOO\\LOCALS~1\\978145~1.PDF\x00'
application/x-qt-windows-mime;value="FileContents" 0 b''
application/x-qt-windows-mime;value="FileNameW" 196 b'C\x00:\x00\\\x00U\x00s\x00e\x00r\x00s\x00\\\x00c\x00j\x00l\x00e\x00n\x00\\\x00A\x00p\x00p\x00D\x00a\x00t\x00a\x00\\\x00L\x00o\x00c\x00a\x00l\x00\\\x00P\x00a\x00c\x00k\x00a\x00g\x00e\x00s\x00\\\x00B\x00a\x00r\x00n\x00e\x00s\x00N\x00o\x00b\x00l\x00e\x00.\x00N\x00o\x00o\x00k\x00_\x00a\x00h\x00n\x00z\x00q\x00z\x00v\x00a\x003\x001\x00e\x00n\x00c\x00\\\x00L\x00o\x00c\x00a\x00l\x00S\x00t\x00a\x00t\x00e\x00\\\x009\x007\x008\x001\x004\x005\x004\x009\x000\x000\x009\x005\x005\x00.\x00p\x00d\x00f\x00\x00\x00'
application/x-qt-windows-mime;value="FileGroupDescriptorW" 596 b'\x01\x00\x00\x00l\x00\x00\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00 \x00\x00\x00\x00\xcd\x8eU\xb70\xd8\x01\x00\x00\x00\x00\x00\x00\x00\x00K[\xc4U\xb70\xd8\x01\x00\x00\x00\x00\xdf\x951\x029\x007\x008\x001\x004\x005\x004\x009\x000\x000\x009\x005\x005\x00.\x00p\x00d\x00f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
Firefox rurl: None None
URLS: ['file:///C:/Users/----/AppData/Local/Packages/BarnesNoble.Nook_ahnzqzva31enc/LocalState/9781454900955.pdf']
Paths: ['C:/Users/---/AppData/Local/Packages/BarnesNoble.Nook_ahnzqzva31enc/LocalState/9781454900955.pdf']
Extensions: frozenset({'pdf'})
Added 9781454900955 to db in: 0.2
Added 1 books in 0.9 seconds
Trying to open a file that was not authorized with my Adobe ID (needs some sort of vendor ID?). Keeps erroring with the provided log output.
5.12
10.0.2
No response
calibre, version 5.12.0
ERROR: Loading book failed: Failed to open the book at C:\Unknown.pdf. Click "Show details" for more info.
Failed to convert book: C:\Unknown.pdf with error:
DeDRM v10.0.2: Trying to decrypt Unknown.pdf
DeDRM v10.0.2: Unknown.pdf is a PDF ebook for UUID 269417a0-1db3-47a1-90ff-1705cfd577f2
DeDRM v10.0.2: Looking for new default Adobe Digital Editions Keys after 0.5 seconds
Found 1 keys
Traceback (most recent call last):
File "calibre_plugins.dedrm.config", line 35, in checkForDeACSMkeys
ModuleNotFoundError: No module named 'calibre_plugins.deacsm'
DeDRM v10.0.2: Trying a new default key
DeDRM v10.0.2: Exception when decrypting after 0.9 seconds
Traceback (most recent call last):
File "calibre_plugins.dedrm.__init__", line 712, in PDFDecrypt
File "calibre_plugins.dedrm.ineptpdf", line 2322, in decryptBook
File "calibre_plugins.dedrm.ineptpdf", line 2128, in __init__
File "calibre_plugins.dedrm.ineptpdf", line 1504, in initialize
File "calibre_plugins.dedrm.ineptpdf", line 1713, in initialize_ebx_inept
TypeError: object of type 'int' has no len()
DeDRM v10.0.2: Failed to decrypt with new default key after 0.9 seconds
DeDRM v10.0.2: Ultimately failed to decrypt after 0.9 seconds. Read the FAQs at Harper's repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
Syntax Error: Couldn't find the 'EBX_HANDLER' security handler
pdfinfo errored out with return code: 1
InputFormatPlugin: PDF Input running
on C:\Unknown.pdf
Failed to run pipe worker with command: from calibre.srv.render_book import viewer_main; viewer_main()
Traceback (most recent call last):
File "calibre\customize\ui.py", line 428, in get_file_type_metadata
File "calibre\customize\builtins.py", line 346, in get_metadata
File "calibre\ebooks\metadata\pdf.py", line 126, in get_metadata
ValueError: Could not read info dict from PDF
Running file type plugin DeDRM failed with traceback:
Traceback (most recent call last):
File "calibre\customize\ui.py", line 172, in _run_filetype_plugins
File "calibre_plugins.dedrm.__init__", line 895, in run
File "calibre_plugins.dedrm.__init__", line 770, in PDFDecrypt
calibre_plugins.dedrm.DeDRMError: DeDRM v10.0.2: Ultimately failed to decrypt after 0.9 seconds. Read the FAQs at Harper's repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
Traceback (most recent call last):
File "runpy.py", line 194, in _run_module_as_main
File "runpy.py", line 87, in _run_code
File "site.py", line 82, in <module>
File "site.py", line 77, in main
File "site.py", line 49, in run_entry_point
File "calibre\utils\ipc\worker.py", line 197, in main
File "<string>", line 1, in <module>
File "calibre\srv\render_book.py", line 867, in viewer_main
File "calibre\srv\render_book.py", line 858, in render_for_viewer
File "calibre\srv\render_book.py", line 835, in render
File "calibre\ebooks\oeb\iterator\book.py", line 63, in extract_book
File "calibre\customize\conversion.py", line 245, in __call__
File "calibre\ebooks\conversion\plugins\pdf_input.py", line 54, in convert
File "calibre\ebooks\pdf\pdftohtml.py", line 83, in pdftohtml
calibre.ebooks.ConversionError: pdftohtml failed with return code: 1
Syntax Error: Couldn't find the 'EBX_HANDLER' security handler
When I attempt to install DeDRM plugin I receive the following error
ModuleNotFoundError: No module named '__version'
Any idea how to correct this?
A couple of notes: The documentation indicates when I extract the DeDRM_tools-master.zip file I will find a DeDRM_Plugin.zip file that I will install via Calibre, however when I unzip the master file I don't actually have a a DEDRM_Plugin.zip file but I do have a directory named DeDRM_plugin. In order to get Calibre to install the plugin I have zipped the DeDRM_plugin directory. This appears to work except when I attempt to install I get the preceding error.
5.38.0
V 10.0.0
1.17.1
Paste log output here.
```calibre, version 5.38.0
ERROR: Unhandled exception: <b>ModuleNotFoundError</b>:No module named '__version'
calibre 5.38 embedded-python: True is64bit: False
Windows-10-10.0.22000 Windows ('32bit', 'WindowsPE')
32bit process running on 64bit windows
('Windows', '10', '10.0.22000')
Python 3.8.5
Windows: ('10', '10.0.22000', '', 'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 47, 0) && DeDRM (7, 2, 1) && Package KFX (from KFX Input) (1, 47, 0) && KFX metadata reader (from KFX Input) (1, 47, 0) && KFX Input (1, 47, 0)
Traceback (most recent call last):
File "calibre\gui2\preferences\plugins.py", line 326, in add_plugin
File "calibre\customize\ui.py", line 476, in add_plugin
File "calibre\customize\ui.py", line 64, in load_plugin
File "calibre\customize\zipplugin.py", line 290, in load
File "polyglot\builtins.py", line 123, in reload
File "importlib\__init__.py", line 169, in reload
File "<frozen importlib._bootstrap>", line 604, in _exec
File "calibre\customize\zipplugin.py", line 191, in exec_module
File "calibre_plugins.dedrm.__init__", line 97, in <module>
ModuleNotFoundError: No module named '__version'
On January 4th, Readium has issued a DMCA takedown request for this repository and its forks, because it contained, by their definition, code to "illegally access ebooks protected by copyright". Even though I don't think that that's true (in order to access books using this plugin you need to have legal access credentials and keys ...), I had to comply with this request in order to be able to keep this repository and to prevent legal issues.
This means:
lcpdedrm.py
file in this repository (SHA256sum 830624873b836a95b2c7902c71d4f6712f92835c6e2fb2ae44f96ee8de2e77db
) has been replaced with one that just prints an error message upon encountering an LCP-protected book.lcpdedrm.py
file.GitHub and Readium are now reviewing this repository again to see if they are happy with the current state - I don't expect there to be any issues, as I've implemented all the changes they suggested, so I hope that this repository will now stay available.
Every time I try to convert this ebook I bought from Amazon, I get the same error, telling me that it can't find a key and can't decrypt. I'm not sure what happened, I converted one book, then went to do this one, and it doesn't work. I can convert other books fine, it's only this title that is creating the error. Here is a link to the book in question.
5.36.0
v10.0.2
No response
DeDRM v10.0.2: Trying to decrypt The Perfect Match_ A Valentine's Day Novella.azw3
Using Library AlfCrypto Python
Using Library AlfCrypto Python
MobiDeDrm v1.0.
Copyright © 2008-2020 The Dark Reverser, Apprentice Harper et al.
Decrypting Kindle Format 8 ebook: The Perfect Match: A Valentine's Day Novella
Found 0 keys to try after 0.3 seconds
Crypto Type is: 2
DeDRM v10.0.2: Failed to decrypt with error: No key found in 0 PIDs tried.
DeDRM v10.0.2: Looking for new default Kindle Key after 0.3 seconds
No k4Mac kindle-info/rainier/kinf2011 files have been found.
DeDRM v10.0.2: Ultimately failed to decrypt after 0.3 seconds. Read the FAQs at Harper's repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
Running file type plugin DeDRM failed with traceback:
Traceback (most recent call last):
File "calibre_plugins.dedrm.__init__", line 795, in KindleMobiDecrypt
book = k4mobidedrm.GetDecryptedBook(path_to_ebook,kindleDatabases,androidFiles,serials,pids,self.starttime)
File "calibre_plugins.dedrm.k4mobidedrm", line 244, in GetDecryptedBook
mb.processBook(totalpids)
File "calibre_plugins.dedrm.mobidedrm", line 500, in processBook
raise DrmException("No key found in {0:d} PIDs tried.".format(len(goodpids)))
calibre_plugins.dedrm.mobidedrm.DrmException: No key found in 0 PIDs tried.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "calibre/customize/ui.py", line 175, in _run_filetype_plugins
File "calibre_plugins.dedrm.__init__", line 888, in run
decrypted_ebook = self.KindleMobiDecrypt(path_to_ebook)
File "calibre_plugins.dedrm.__init__", line 838, in KindleMobiDecrypt
raise DeDRMError("{0} v{1}: Ultimately failed to decrypt after {2:.1f} seconds. Read the FAQs at Harper's repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md".format(PLUGIN_NAME, PLUGIN_VERSION,time.time()-self.starttime))
calibre_plugins.dedrm.DeDRMError: DeDRM v10.0.2: Ultimately failed to decrypt after 0.3 seconds. Read the FAQs at Harper's repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
DeDRM v10.0.2: Trying to decrypt The Perfect Match_ A Valentine's Day Novella.azw3
MobiDeDrm v1.0.
Copyright © 2008-2020 The Dark Reverser, Apprentice Harper et al.
Decrypting Kindle Format 8 ebook: The Perfect Match: A Valentine's Day Novella
Found 0 keys to try after 0.0 seconds
Crypto Type is: 2
DeDRM v10.0.2: Failed to decrypt with error: No key found in 0 PIDs tried.
DeDRM v10.0.2: Looking for new default Kindle Key after 0.0 seconds
No k4Mac kindle-info/rainier/kinf2011 files have been found.
DeDRM v10.0.2: Ultimately failed to decrypt after 0.0 seconds. Read the FAQs at Harper's repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
Running file type plugin DeDRM failed with traceback:
Traceback (most recent call last):
File "calibre_plugins.dedrm.__init__", line 795, in KindleMobiDecrypt
book = k4mobidedrm.GetDecryptedBook(path_to_ebook,kindleDatabases,androidFiles,serials,pids,self.starttime)
File "calibre_plugins.dedrm.k4mobidedrm", line 244, in GetDecryptedBook
mb.processBook(totalpids)
File "calibre_plugins.dedrm.mobidedrm", line 500, in processBook
raise DrmException("No key found in {0:d} PIDs tried.".format(len(goodpids)))
calibre_plugins.dedrm.mobidedrm.DrmException: No key found in 0 PIDs tried.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "calibre/customize/ui.py", line 175, in _run_filetype_plugins
File "calibre_plugins.dedrm.__init__", line 888, in run
decrypted_ebook = self.KindleMobiDecrypt(path_to_ebook)
File "calibre_plugins.dedrm.__init__", line 838, in KindleMobiDecrypt
raise DeDRMError("{0} v{1}: Ultimately failed to decrypt after {2:.1f} seconds. Read the FAQs at Harper's repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md".format(PLUGIN_NAME, PLUGIN_VERSION,time.time()-self.starttime))
calibre_plugins.dedrm.DeDRMError: DeDRM v10.0.2: Ultimately failed to decrypt after 0.0 seconds. Read the FAQs at Harper's repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
1% Converting input to HTML...
InputFormatPlugin: MOBI Input running
on /Users/vi/Downloads/The Perfect Match_ A Valentine's Day Novella.azw3
Found KF8 MOBI of type 'standalone'
Traceback (most recent call last):
File "runpy.py", line 194, in _run_module_as_main
File "runpy.py", line 87, in _run_code
File "site.py", line 39, in <module>
File "site.py", line 35, in main
File "calibre/ebooks/conversion/cli.py", line 419, in main
File "calibre/ebooks/conversion/plumber.py", line 1108, in run
File "calibre/customize/conversion.py", line 242, in __call__
File "calibre/ebooks/conversion/plugins/mobi_input.py", line 44, in convert
File "calibre/ebooks/mobi/reader/mobi8.py", line 85, in __call__
File "calibre/ebooks/mobi/reader/mobi6.py", line 162, in check_for_drm
calibre.ebooks.DRMError: The Perfect Match: A Valentine's Day Novella
The PDF adjustments are weird. There is the possibility to manually crop de margins but it is kinda tough, specially if they are scanned books, I would like to know if it was possible to implement koreader like feature for Plato reader to automatically crop de margins, otherwiser this is the perfect reader for me, thanks for your work! <3
@Daniele has caught typo in kindlekey.py that breaks key retrieval, causing decryption on new installations of Kindle for Mac using DeDRM 7.2.1 to fail. Same is happening with v10.0.1.
Please see Pull request #1936 in Apprentice Harper's repo
In a nutshell: v10.0.1 kindlekey.py line 1529 should be b'DSN',\
rather than b'DSN'
I tested this on my Mac and correction fixes problem. Thank you for considering this revision.
I have the latest tools properly installed in Calibre. This is not a KFX book and I have previously converted azw3 books without error. But this one seems to be different. I will attach the log file from Calibre's debug mode.
tmpdfxdxjir.txt
Book is "Normaling Next, " Olu Brown
I cannot get the output for an ebook I am trying to deDRM to appear non-corrupted. Any pointers in the right direction would be greatly appreciated.
.azw
and .mbpV2
..azw
file into Calibre and tried various conversions.No matter what, output will always look like this. The coverpage is intact, though.
5.36
v10.0.2
1.30
Convert book 1 of 1 (A que si! (World Languages))
DeDRM v10.0.2: Trying to decrypt wuh1d4xb.mobi
Using Library AlfCrypto Python
Using Library AlfCrypto Python
MobiDeDrm v1.0.
Copyright © 2008-2020 The Dark Reverser, Apprentice Harper et al.
Decrypting Mobipocket 4 ebook: A que si! (World Languages)
Got DSN key from database default_key
Found 4 keys to try after 0.1 seconds
Crypto Type is: 0
This book is not encrypted.
Decryption succeeded after 0.1 seconds
DeDRM v10.0.2: Finished after 0.1 seconds
Conversion options changed from defaults:
output_profile: 'generic_eink'
read_metadata_from_opf: '/var/folders/br/0rz9b0716cxgjdybdyb4qvzh0000gn/C/calibre_5.31.0_tmp_adysy3n6/rk1obekf.opf'
cover: '/var/folders/br/0rz9b0716cxgjdybdyb4qvzh0000gn/C/calibre_5.31.0_tmp_adysy3n6/rotmc5f6.jpeg'
verbose: 2
Resolved conversion options
calibre version: 5.31.0
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0.0,
'book_producer': None,
'change_justification': 'original',
'chapter': "//*[((name()='h1' or name()='h2') and re:test(., "
"'\\s*((chapter|book|section|part)\\s+)|((prolog|prologue|epilogue)(\\s+|$))', "
"'i')) or @class = 'chapter']",
'chapter_mark': 'pagebreak',
'comments': None,
'cover': '/var/folders/br/0rz9b0716cxgjdybdyb4qvzh0000gn/C/calibre_5.31.0_tmp_adysy3n6/rotmc5f6.jpeg',
'debug_pipeline': None,
'dehyphenate': True,
'delete_blank_paragraphs': True,
'disable_font_rescaling': False,
'dont_compress': False,
'duplicate_links_in_toc': False,
'embed_all_fonts': False,
'embed_font_family': None,
'enable_heuristics': False,
'expand_css': False,
'extra_css': None,
'extract_to': None,
'filter_css': '',
'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 0x11a185070>,
'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': 'old',
'mobi_ignore_margins': False,
'mobi_keep_original_images': False,
'mobi_toc_at_start': False,
'no_chapters_in_toc': False,
'no_inline_navbars': False,
'no_inline_toc': False,
'output_profile': <calibre.customize.profiles.GenericEink object at 0x11a185370>,
'page_breaks_before': "//*[name()='h1' or name()='h2']",
'personal_doc': '[PDOC]',
'prefer_author_sort': False,
'prefer_metadata_cover': False,
'pretty_print': False,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': '/var/folders/br/0rz9b0716cxgjdybdyb4qvzh0000gn/C/calibre_5.31.0_tmp_adysy3n6/rk1obekf.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': '',
'search_replace': '[]',
'series': None,
'series_index': None,
'share_not_sync': False,
'smarten_punctuation': False,
'sr1_replace': None,
'sr1_search': None,
'sr2_replace': None,
'sr2_search': None,
'sr3_replace': None,
'sr3_search': None,
'start_reading_at': None,
'subset_embedded_fonts': False,
'tags': None,
'timestamp': None,
'title': None,
'title_sort': None,
'toc_filter': None,
'toc_threshold': 6,
'toc_title': None,
'transform_css_rules': '[]',
'unsmarten_punctuation': False,
'unwrap_lines': True,
'use_auto_toc': False,
'verbose': 2}
DeDRM v10.0.2: Trying to decrypt trkzc8fn.mobi
MobiDeDrm v1.0.
Copyright © 2008-2020 The Dark Reverser, Apprentice Harper et al.
Decrypting Mobipocket 4 ebook: A que si! (World Languages)
Got DSN key from database default_key
Found 4 keys to try after 0.0 seconds
Crypto Type is: 0
This book is not encrypted.
Decryption succeeded after 0.0 seconds
DeDRM v10.0.2: Finished after 0.0 seconds
InputFormatPlugin: MOBI Input running
on /var/folders/br/0rz9b0716cxgjdybdyb4qvzh0000gn/C/calibre_5.31.0_tmp_adysy3n6/k17d2dph.mobi
Extracting text...
Adding anchors...
Extracting images...
Cleaning up HTML...
Parsing HTML...
Malformed markup, parsing using html5-parser
Converting style information to CSS...
Creating OPF...
Parsing all content...
Parsing index.html ...
Initial parse failed, using more forgiving parsers
Parsing index.html as HTML
HTML 5 parsing failed, falling back to older parsers
Traceback (most recent call last):
File "calibre/ebooks/oeb/parse_utils.py", line 211, in parse_html
File "calibre/utils/xml_parse.py", line 27, in safe_xml_fromstring
File "src/lxml/etree.pyx", line 3237, in lxml.etree.fromstring
File "src/lxml/parser.pxi", line 1896, in lxml.etree._parseMemoryDocument
File "src/lxml/parser.pxi", line 1777, in lxml.etree._parseDoc
File "src/lxml/parser.pxi", line 1082, in lxml.etree._BaseParser._parseUnicodeDoc
File "src/lxml/parser.pxi", line 615, in lxml.etree._ParserContext._handleParseResultDoc
File "src/lxml/parser.pxi", line 725, in lxml.etree._handleParseResult
File "src/lxml/parser.pxi", line 654, in lxml.etree._raiseParseError
File "<string>", line 22
lxml.etree.XMLSyntaxError: Attribute _ redefined, line 22, column 474
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "calibre/ebooks/oeb/parse_utils.py", line 218, in parse_html
File "calibre/utils/xml_parse.py", line 27, in safe_xml_fromstring
File "src/lxml/etree.pyx", line 3237, in lxml.etree.fromstring
File "src/lxml/parser.pxi", line 1896, in lxml.etree._parseMemoryDocument
File "src/lxml/parser.pxi", line 1777, in lxml.etree._parseDoc
File "src/lxml/parser.pxi", line 1082, in lxml.etree._BaseParser._parseUnicodeDoc
File "src/lxml/parser.pxi", line 615, in lxml.etree._ParserContext._handleParseResultDoc
File "src/lxml/parser.pxi", line 725, in lxml.etree._handleParseResult
File "src/lxml/parser.pxi", line 654, in lxml.etree._raiseParseError
File "<string>", line 22
lxml.etree.XMLSyntaxError: Attribute _ redefined, line 22, column 474
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "calibre/ebooks/oeb/parse_utils.py", line 224, in parse_html
File "calibre/ebooks/oeb/parse_utils.py", line 105, in html5_parse
ValueError: HTML 5 parsing resulted in a tree with nesting depth > 100
Forcing index.html into XHTML namespace
Parsing styles.css ...
Generating default TOC from spine...
Merging user specified metadata...
Detecting structure...
Auto generated TOC with 0 entries.
Flattening CSS and remapping font sizes...
Source base font size is 12.00000pt
Removing fake margins...
Cleaning up manifest...
Trimming unused files from manifest...
Trimming 'images/00002.jpg' from manifest
Trimming 'images/00001.jpg' from manifest
Creating MOBI Output...
Serializing resources...
Creating MOBI 6 output
Applying case-transforming CSS...
Parsing manglecase.css ...
Rasterizing SVG images...
Converting XHTML to Mobipocket markup...
Serializing markup content...
Compressing markup content...
No TOC, MOBI index not generated
MOBI output written to /var/folders/br/0rz9b0716cxgjdybdyb4qvzh0000gn/C/calibre_5.31.0_tmp_adysy3n6/un27so6_.mobi
I can't decrypt any books anymore for some reason. It did work before. Not sure what exactly broke it.
QLayout::addChildLayout: layout "" already has a parent
Gather KFX-ZIP (from KFX Input) 1.46.0: Importing /home/marc/Downloads/Kindle/B07CTBBGZF_EBOK/B07CTBBGZF_EBOK.azw
Gather KFX-ZIP (from KFX Input): File is not KFX format
DeDRM v10.0.2: Trying to decrypt B07CTBBGZF_EBOK.azw
Using Library AlfCrypto DLL/DYLIB/SO
Using Library AlfCrypto DLL/DYLIB/SO
MobiDeDrm v1.0.
Copyright © 2008-2020 The Dark Reverser, Apprentice Harper et al.
Decrypting Kindle Format 8 ebook: Demon Slayer: Kimetsu no Yaiba, Vol. 1
Error getting PIDs from database default_key: list indices must be integers or slices, not str
Traceback (most recent call last):
File "calibre_plugins.dedrm.kgenpids", line 299, in getPidList
pidlst.extend(map(bytes,getK4Pids(md1, md2, kDatabase)))
File "calibre_plugins.dedrm.kgenpids", line 209, in getK4Pids
kindleAccountToken = bytearray.fromhex((kindleDatabase[1])['kindle.account.tokens'])
TypeError: list indices must be integers or slices, not str
Found 0 keys to try after 0.2 seconds
Crypto Type is: 2
DeDRM v10.0.2: Failed to decrypt with error: No key found in 0 PIDs tried.
DeDRM v10.0.2: Looking for new default Kindle Key after 0.2 seconds
0d00:fixme:kernelbase:AppPolicyGetProcessTerminationMethod FFFFFFFA, 0032F558
DeDRM v10.0.2: Python3 exec found as wine py.exe -3
DeDRM v10.0.2: Running kindlekey.py under Wine
kindlekey.py v3.0
Copyright © 2010-2020 by some_updates, Apprentice Harper et al.
searching for kinfoFiles in C:\users\marc\AppData\Local
Found K4PC 1.25+ kinf2018 file: C:\users\marc\AppData\Local\Amazon\Kindle\storage\.kinf2018
Decrypted key file using IDString '1603539353' and UserName 'marc'
Saved a key to D:\home\marc\.config\calibre\plugins\DeDRM\libraryfiles\winekeysdir\kindlekey1.k4i
0d20:fixme:kernelbase:AppPolicyGetProcessTerminationMethod FFFFFFFA, 0032F558
DeDRM v10.0.2: Found and decrypted 1 key file
DeDRM v10.0.2: Found 1 new key
MobiDeDrm v1.0.
Copyright © 2008-2020 The Dark Reverser, Apprentice Harper et al.
Decrypting Kindle Format 8 ebook: Demon Slayer: Kimetsu no Yaiba, Vol. 1
Error getting PIDs from database default_key_2: list indices must be integers or slices, not str
Traceback (most recent call last):
File "calibre_plugins.dedrm.__init__", line 795, in KindleMobiDecrypt
book = k4mobidedrm.GetDecryptedBook(path_to_ebook,kindleDatabases,androidFiles,serials,pids,self.starttime)
File "calibre_plugins.dedrm.k4mobidedrm", line 244, in GetDecryptedBook
mb.processBook(totalpids)
File "calibre_plugins.dedrm.mobidedrm", line 500, in processBook
raise DrmException("No key found in {0:d} PIDs tried.".format(len(goodpids)))
calibre_plugins.dedrm.mobidedrm.DrmException: No key found in 0 PIDs tried.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "calibre_plugins.dedrm.kgenpids", line 299, in getPidList
pidlst.extend(map(bytes,getK4Pids(md1, md2, kDatabase)))
File "calibre_plugins.dedrm.kgenpids", line 209, in getK4Pids
kindleAccountToken = bytearray.fromhex((kindleDatabase[1])['kindle.account.tokens'])
TypeError: list indices must be integers or slices, not str
Found 0 keys to try after 4.7 seconds
Crypto Type is: 2
DeDRM v10.0.2: Ultimately failed to decrypt after 4.7 seconds. Read the FAQs at Harper's repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
Running file type plugin DeDRM failed with traceback:
Traceback (most recent call last):
File "calibre_plugins.dedrm.__init__", line 795, in KindleMobiDecrypt
book = k4mobidedrm.GetDecryptedBook(path_to_ebook,kindleDatabases,androidFiles,serials,pids,self.starttime)
File "calibre_plugins.dedrm.k4mobidedrm", line 244, in GetDecryptedBook
mb.processBook(totalpids)
File "calibre_plugins.dedrm.mobidedrm", line 500, in processBook
raise DrmException("No key found in {0:d} PIDs tried.".format(len(goodpids)))
calibre_plugins.dedrm.mobidedrm.DrmException: No key found in 0 PIDs tried.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/calibre/calibre/customize/ui.py", line 175, in _run_filetype_plugins
nfp = plugin.run(nfp) or nfp
File "calibre_plugins.dedrm.__init__", line 888, in run
decrypted_ebook = self.KindleMobiDecrypt(path_to_ebook)
File "calibre_plugins.dedrm.__init__", line 838, in KindleMobiDecrypt
raise DeDRMError("{0} v{1}: Ultimately failed to decrypt after {2:.1f} seconds. Read the FAQs at Harper's repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md".format(PLUGIN_NAME, PLUGIN_VERSION,time.time()-self.starttime))
calibre_plugins.dedrm.DeDRMError: DeDRM v10.0.2: Ultimately failed to decrypt after 4.7 seconds. Read the FAQs at Harper's repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
QLayout::addChildLayout: layout "" already has a parent
Gather KFX-ZIP (from KFX Input) 1.46.0: Importing /home/marc/Downloads/Kindle/B07HF4PSDQ_EBOK/B07HF4PSDQ_EBOK.azw
Gather KFX-ZIP (from KFX Input): Gathered 6 file(s) as /tmp/calibre_5.36.0_tmp__uowar79/qc35d8va.kfx-zip
DeDRM v10.0.2: Trying to decrypt qc35d8va.kfx-zip
Using Library AlfCrypto DLL/DYLIB/SO
Using Library AlfCrypto DLL/DYLIB/SO
Decrypting KFX-ZIP ebook: qc35d8va
Error getting PIDs from database default_key: list indices must be integers or slices, not str
Traceback (most recent call last):
File "calibre_plugins.dedrm.kgenpids", line 299, in getPidList
pidlst.extend(map(bytes,getK4Pids(md1, md2, kDatabase)))
File "calibre_plugins.dedrm.kgenpids", line 209, in getK4Pids
kindleAccountToken = bytearray.fromhex((kindleDatabase[1])['kindle.account.tokens'])
TypeError: list indices must be integers or slices, not str
Found 0 keys to try after 0.1 seconds
Decrypting KFX DRM voucher: amzn1.drm-voucher.v1.5da5ce61-ee06-410e-9343-13229b0aad5c.voucher
Traceback (most recent call last):
File "calibre_plugins.dedrm.kfxdedrm", line 83, in decrypt_voucher
voucher.decryptvoucher()
File "/tmp/calibre_5.36.0_tmp__uowar79/puw1uq_jplugin_unzip/ion.py", line 879, in decryptvoucher
b = pkcs7unpad(b, 16)
File "/tmp/calibre_5.36.0_tmp__uowar79/puw1uq_jplugin_unzip/ion.py", line 758, in pkcs7unpad
_assert(paddinglen > 0 and paddinglen <= blocklen, "Incorrect padding - Wrong key")
File "/tmp/calibre_5.36.0_tmp__uowar79/puw1uq_jplugin_unzip/ion.py", line 98, in _assert
raise Exception(msg)
Exception: Incorrect padding - Wrong key
DeDRM v10.0.2: Failed to decrypt with error: Failed to decrypt KFX DRM voucher with any key
DeDRM v10.0.2: Looking for new default Kindle Key after 0.1 seconds
091c:fixme:kernelbase:AppPolicyGetProcessTerminationMethod FFFFFFFA, 0032F558
DeDRM v10.0.2: Python3 exec found as wine py.exe -3
DeDRM v10.0.2: Running kindlekey.py under Wine
kindlekey.py v3.0
Copyright © 2010-2020 by some_updates, Apprentice Harper et al.
searching for kinfoFiles in C:\users\marc\AppData\Local
Found K4PC 1.25+ kinf2018 file: C:\users\marc\AppData\Local\Amazon\Kindle\storage\.kinf2018
Decrypted key file using IDString '1603539353' and UserName 'marc'
Saved a key to D:\home\marc\.config\calibre\plugins\DeDRM\libraryfiles\winekeysdir\kindlekey1.k4i
093c:fixme:kernelbase:AppPolicyGetProcessTerminationMethod FFFFFFFA, 0032F558
DeDRM v10.0.2: Found and decrypted 1 key file
DeDRM v10.0.2: Found 1 new key
Decrypting KFX-ZIP ebook: qc35d8va
Error getting PIDs from database default_key_2: list indices must be integers or slices, not str
Traceback (most recent call last):
File "calibre_plugins.dedrm.__init__", line 795, in KindleMobiDecrypt
book = k4mobidedrm.GetDecryptedBook(path_to_ebook,kindleDatabases,androidFiles,serials,pids,self.starttime)
File "calibre_plugins.dedrm.k4mobidedrm", line 244, in GetDecryptedBook
mb.processBook(totalpids)
File "calibre_plugins.dedrm.kfxdedrm", line 45, in processBook
self.decrypt_voucher(totalpids)
File "calibre_plugins.dedrm.kfxdedrm", line 89, in decrypt_voucher
raise Exception("Failed to decrypt KFX DRM voucher with any key")
Exception: Failed to decrypt KFX DRM voucher with any key
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "calibre_plugins.dedrm.kgenpids", line 299, in getPidList
pidlst.extend(map(bytes,getK4Pids(md1, md2, kDatabase)))
File "calibre_plugins.dedrm.kgenpids", line 209, in getK4Pids
kindleAccountToken = bytearray.fromhex((kindleDatabase[1])['kindle.account.tokens'])
TypeError: list indices must be integers or slices, not str
Found 0 keys to try after 4.6 seconds
Decrypting KFX DRM voucher: amzn1.drm-voucher.v1.5da5ce61-ee06-410e-9343-13229b0aad5c.voucher
Traceback (most recent call last):
File "calibre_plugins.dedrm.__init__", line 795, in KindleMobiDecrypt
book = k4mobidedrm.GetDecryptedBook(path_to_ebook,kindleDatabases,androidFiles,serials,pids,self.starttime)
File "calibre_plugins.dedrm.k4mobidedrm", line 244, in GetDecryptedBook
mb.processBook(totalpids)
File "calibre_plugins.dedrm.kfxdedrm", line 45, in processBook
self.decrypt_voucher(totalpids)
File "calibre_plugins.dedrm.kfxdedrm", line 89, in decrypt_voucher
raise Exception("Failed to decrypt KFX DRM voucher with any key")
Exception: Failed to decrypt KFX DRM voucher with any key
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "calibre_plugins.dedrm.kfxdedrm", line 83, in decrypt_voucher
voucher.decryptvoucher()
File "/tmp/calibre_5.36.0_tmp__uowar79/puw1uq_jplugin_unzip/ion.py", line 879, in decryptvoucher
b = pkcs7unpad(b, 16)
File "/tmp/calibre_5.36.0_tmp__uowar79/puw1uq_jplugin_unzip/ion.py", line 758, in pkcs7unpad
_assert(paddinglen > 0 and paddinglen <= blocklen, "Incorrect padding - Wrong key")
File "/tmp/calibre_5.36.0_tmp__uowar79/puw1uq_jplugin_unzip/ion.py", line 98, in _assert
raise Exception(msg)
Exception: Incorrect padding - Wrong key
DeDRM v10.0.2: Ultimately failed to decrypt after 4.6 seconds. Read the FAQs at Harper's repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
Running file type plugin DeDRM failed with traceback:
Traceback (most recent call last):
File "calibre_plugins.dedrm.__init__", line 795, in KindleMobiDecrypt
book = k4mobidedrm.GetDecryptedBook(path_to_ebook,kindleDatabases,androidFiles,serials,pids,self.starttime)
File "calibre_plugins.dedrm.k4mobidedrm", line 244, in GetDecryptedBook
mb.processBook(totalpids)
File "calibre_plugins.dedrm.kfxdedrm", line 45, in processBook
self.decrypt_voucher(totalpids)
File "calibre_plugins.dedrm.kfxdedrm", line 89, in decrypt_voucher
raise Exception("Failed to decrypt KFX DRM voucher with any key")
Exception: Failed to decrypt KFX DRM voucher with any key
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/calibre/calibre/customize/ui.py", line 175, in _run_filetype_plugins
nfp = plugin.run(nfp) or nfp
File "calibre_plugins.dedrm.__init__", line 888, in run
decrypted_ebook = self.KindleMobiDecrypt(path_to_ebook)
File "calibre_plugins.dedrm.__init__", line 838, in KindleMobiDecrypt
raise DeDRMError("{0} v{1}: Ultimately failed to decrypt after {2:.1f} seconds. Read the FAQs at Harper's repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md".format(PLUGIN_NAME, PLUGIN_VERSION,time.time()-self.starttime))
calibre_plugins.dedrm.DeDRMError: DeDRM v10.0.2: Ultimately failed to decrypt after 4.6 seconds. Read the FAQs at Harper's repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
Package KFX (from KFX Input) 1.46.0: Packaging /tmp/calibre_5.36.0_tmp__uowar79/qc35d8va.kfx-zip
Processing container: B07HF4PSDQ_EBOK.azw
Running file type plugin Package KFX (from KFX Input) failed with traceback:
Traceback (most recent call last):
File "/usr/lib/calibre/calibre/customize/ui.py", line 175, in _run_filetype_plugins
nfp = plugin.run(nfp) or nfp
File "calibre_plugins.kfx_input.package_filetype", line 21, in run
return self.run_kfx(path_to_ebook)
File "calibre_plugins.kfx_input.package_filetype", line 32, in run_kfx
kfx_data = YJ_Book(path_to_ebook).convert_to_single_kfx()
File "calibre_plugins.kfx_input.kfxlib.yj_book", line 84, in convert_to_single_kfx
self.decode_book()
File "calibre_plugins.kfx_input.kfxlib.yj_book", line 211, in decode_book
container = self.get_container(datafile)
File "calibre_plugins.kfx_input.kfxlib.yj_book", line 318, in get_container
raise KFXDRMError("Book container %s has DRM and cannot be converted" % datafile.name)
calibre_plugins.kfx_input.kfxlib.utilities.KFXDRMError: Book container B07HF4PSDQ_EBOK.azw has DRM and cannot be converted
KFX metadata reader (from KFX Input) activated for /tmp/calibre_5.36.0_tmp__uowar79/suqbiixq_add_books/0/B07HF4PSDQ_EBOK.kfx-zip
hello there
i hope you are doing well.
i'd like to know if you can do something about this issue?
apprenticeharper#2026
best
5.39.1
7.2.1
No response
Paste log output here.
Cloned and attempted to add plugin to calibre. As per the FAQs.md, I am unable to find the calibre plugin DeDRM_plugin.zip
from a folder called DeDRM_calibre_plugin
in the unzipped archive.
I attempted to zip the 'DeDRM_plugin' plugin within the unzipped archive, but got the following message.
calibre, version 5.35.0
ERROR: Unhandled exception: InvalidPlugin:The plugin in '/Users/smthspce/Dropbox/Mac/Downloads/DeDRM_tools-master/DeDRM_plugin.zip' is invalid. It does not contain a top-level init.py file
calibre 5.35 embedded-python: True is64bit: True
macOS-10.16-x86_64-i386-64bit Darwin ('64bit', '')
('Darwin', '21.3.0', 'Darwin Kernel Version 21.3.0: Wed Jan 5 21:37:58 PST 2022; root:xnu-8019.80.24~20/RELEASE_ARM64_T6000')
Python 3.8.5
OSX: ('10.16', ('', '', ''), 'x86_64')
Interface language: None
Successfully initialized third party plugins: DeDRM (7, 2, 1)
Traceback (most recent call last):
File "calibre/gui2/preferences/plugins.py", line 326, in add_plugin
File "calibre/customize/ui.py", line 476, in add_plugin
File "calibre/customize/ui.py", line 64, in load_plugin
File "calibre/customize/zipplugin.py", line 283, in load
File "calibre/customize/zipplugin.py", line 378, in _locate_code
calibre.customize.InvalidPlugin: The plugin in '/Users/smthspce/Dropbox/Mac/Downloads/DeDRM_tools-master/DeDRM_plugin.zip' is invalid. It does not contain a top-level init.py file
Hey all it is not possible to use this script. I can not install PyCrypto to be able to run this script . If anyone knows how to get this running please lmk. Thanks
5.36
v10.0.2
No response
Paste log output here.
Hi, I'm using Kindle app 1.26.1 (55093) which is supposedly the last version where DRM removal is possible according to Method 4 here and the latest Calibre 5.40. I installed the latest DRM tools 10.0.2 but am getting this error: https://www.screencast.com/t/L1mpkHIhvv when trying to convert .azw files downloaded from the Kindle app to EPUB.
If I go into the Plugins prefs it confirms that DeDRM 10.0.2 and KFX Input 1.47.0 are installed.
Hello,
Today I purchased a Kindle book, and for some reason it won't decrypt when I import into Calibre.
I don't recall changing anything in Calibre in the last week.
Here is the debug log from Calibre... https://paste.kodi.tv/ihepicazor.kodi
Is there anything else you might need?
Thanks
= Edit =
I tried adding another book that I downloaded a few weeks ago, and it imported and decrypted ok.
In the late oughts, Bondi Digital Publishing sold several magazine collections on DVD. The software was never good, and required hacks to get it to work without a DVD in the drive, and is now unmaintained, leaving purchasers without a way of reading their collection(s).
There has been some work on cracking the encryption on the Rolling Stone DVD collection, and it looks like the password is stored in the binaries. But the work done is not a user-friendly crack, and only works on the Rolling Stone collection (not the New Yorker or Playboy).
These DVD collections are a stationary DRM target and textbook example of how DRM hurts lawful purchasers.
Nook deDRM has just stopped working for me, after years of success. Any idea what's changed?
OS: Arch Linux
DeDRM version: 10.0.2 (the version from the AUR https://aur.archlinux.org/packages/calibre-plugin-dedrm/)
Calibre version: 5.33.2
This used to work just fine (a couple of months ago maybe, on a previous install of Arch) but now it's totally non-functional.
Fresh installs of Kindle using WINE (versions 1.30, 1.31 and 1.33). I can extract the key fine, import it into the Calibre plugin, but when I try to add a book the DRM does not get removed.
Likewise with ADE version 2.0.1.
If there's logs or something I can produce then let me know how and I'll post them.
When Calibre is running on Linux, and thus fetching ADE keys with wine
, DeDRM_tools
is unable to find the appropriate libcrypto
version with which to extract ADE keys.
Wine: wine-5.0 (Ubuntu 5.0-3ubuntu1)
Python (Linux): 3.7.11
Python (wine environment): 3.10.1
Adobe Digtal Editions: 3.0
pyopenssl
WINEPREFIX="$HOME/.wine32" WINEARCH=win32 wine /path/to/python-3.10.1.exe
WINEPREFIX="$HOME/.wine32" WINEARCH=win32 wine cmd /c python -m pip install pyopenssl
# Set windows version to Windows 8.1
WINEPREFIX="$HOME/.wine32" winecfg
WINEPREFIX="$HOME/.wine32" WINEARCH=win32 wine /path/to/ADE_3.0_Installer.exe
This issue appears to be the result of find_library
misbehaving in a wine environment. For example, one would expect the following to reveal the path to libc
, but it unable to find it.
WINEPREFIX="$HOME/.wine32" WINEARCH="win32" wine cmd /c python -c "from ctypes.util import find_library; print(find_library(\"c\"))"
=> None
5.34
v10.0.2
No response
DeDRM v10.0.2: Python3 exec found as wine py.exe -3
DeDRM v10.0.2: Running adobekey.py under Wine
adobekey.py v7.1
Copyright © 2009-2020 i♥cabbages, Apprentice Harper et al.
Traceback (most recent call last):
File "Z:\home\adriano\.config\calibre\plugins\DeDRM\libraryfiles\adobekey.py", line 713, in <module>
sys.exit(cli_main())
File "Z:\home\adriano\.config\calibre\plugins\DeDRM\libraryfiles\adobekey.py", line 627, in cli_main
keys, names = adeptkeys()
File "Z:\home\adriano\.config\calibre\plugins\DeDRM\libraryfiles\adobekey.py", line 413, in adeptkeys
raise ADEPTError("PyCrypto or OpenSSL must be installed")
__main__.ADEPTError: PyCrypto or OpenSSL must be installed
DeDRM v10.0.2: Wine subprocess call error: 1
DeDRM v10.0.2: Found and decrypted 0 key files
Traceback (most recent call last):
File "calibre_plugins.dedrm.config", line 35, in checkForDeACSMkeys
from calibre_plugins.deacsm.libadobeAccount import exportAccountEncryptionKeyDER, getAccountUUID
ModuleNotFoundError: No module named 'calibre_plugins.deacsm'
Hi, it seems that rented books have a different type of DRM or encryption that do not work with most DRM removal tools. It works with paid books, though.
https://imgur.com/a/IFKniGg
Most posts regarding rented books I can find online are from a couple of years ago: https://www.reddit.com/r/Piracy/comments/bm837l/guide_to_copy_kindle_content_to_pdf_using_calibre/emwthng/
I wonder if there is a workaround to it. You can experiment with rental trials on Amazon.
5.36
v10.0.2
1.31
No response
I've been trying to remove the DRM from an ebook I bought online but I can't get any result using the plugins. I haven't been able to find any workaround online, so I'm reporting the issue here.
I tried downloading the book with ADE and I managed to import it to calibre, but when I open it the layout is all messed up.
I tried going through Obok instead, but got the error "not added because it couldn't be decrypted".
Any ideas ? Thx.
calibre Journal de débogage
calibre 5.40 [64bit] embedded-python: True is64bit: True
Windows-10-10.0.17763 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.17763')
Python 3.8.5
Windows: ('10', '10.0.17763', '', 'Multiprocessor Free')
Interface language: fr
Successfully initialized third party plugins: DeDRM (7, 2, 1) && Obok DeDRM (7, 2, 1)
calibre 5.40 [64bit] embedded-python: True is64bit: True
Windows-10-10.0.17763 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.17763')
Python 3.8.5
Windows: ('10', '10.0.17763', '', 'Multiprocessor Free')
Interface language: fr
Successfully initialized third party plugins: DeDRM (7, 2, 1) && Obok DeDRM (7, 2, 1)
Turning on automatic hidpi scaling
devicePixelRatio: 1.0
logicalDpi: 120.0 x 120.0
physicalDpi: 141.7674418604651 x 142.13471502590673
Using calibre Qt style: True
[0.00] Starting up...
[0.00] Showing splash screen...
[2.86] splash screen shown
[2.86] Initializing db...
[2.89] db initialized
[2.89] Constructing main UI...
DEBUG: 0.0 obok::utilities.py - loading translations
DEBUG: 0.0 obok::dialogs.py - loading translations
DEBUG: 0.0 obok::config.py - loading translations
DEBUG: 0.1 obok::action_err.py - loading translations
[4.23] main UI initialized...
[4.23] Hiding splash screen
Starting QuickView
[16.34] splash screen hidden
[16.34] Started up in 16.34 seconds with 1 books
Running Obok DeDRM v7.2.1
DEBUG: 27.2 didn't find device
Obok v4.0.0
Copyright © 2012-2020 Physisticated et al.
C:\Users\Basile\AppData\Local\Temp\tmpzebt8p_q
DEBUG: 27.2 got kobodir C:\Users\Basile\AppData\Local\Kobo\Kobo Desktop Edition
Found 8 possible keys to try.
DEBUG: 30.3 BookListTableWidget:get_books - book_num: 0
DEBUG: 30.3 BookListTableWidget:get_books - book: Guide du Routard Kenya Tanzanie 2020/21
DEBUG: 30.3 InterfacePluginAction::launchObok - number of books to decrypt: 1
Obok DeDRM v7.2.1 - Decrypting Guide du Routard Kenya Tanzanie 2020/21
Trying key: b'd8b34ffd71e00b765a65ef6aa8cbcd79'
Checking text:b'\\=5\x1cW\xcd\xf0\x9a0\xf0':
Perhaps utf-8 without BOM
Bad character at 3, value 28
Decryption failed, trying next key.
Trying key: b'b2f6ceced36f76c0463a891ec78267de'
Checking text:b'\xca#\xac\x02\xd1\xc3\xefk\xbf\x88':
Perhaps utf-8 without BOM
Bad character at 0, value 202
Decryption failed, trying next key.
Trying key: b'5c6ed6d903b034b3530b8f1e7154ef1a'
Checking text:b'X\xd9\xcb\xb6\x91eZ9\x96\xa0':
Perhaps utf-8 without BOM
Bad character at 1, value 217
Decryption failed, trying next key.
Trying key: b'68a0cfb733541d6c486c10ac794e94a4'
Checking text:b'\xb2E\x83Y\x13}"\xb9z\xc5':
Perhaps utf-8 without BOM
Bad character at 0, value 178
Decryption failed, trying next key.
Trying key: b'cde6e84c4b520cd46a59a63deae7e900'
Checking text:b'Gd\xb0,C\xbb\xfe\x82\x9d\xd6':
Perhaps utf-8 without BOM
Bad character at 2, value 176
Decryption failed, trying next key.
Trying key: b'276128d1faca09b7db00dc3d41b392a3'
Checking text:b'%g$W\x8b\x12Zt\xc4\xf6':
Perhaps utf-8 without BOM
Bad character at 4, value 139
Decryption failed, trying next key.
Trying key: b'66e5c7f8734239de1f919273de168d84'
Checking text:b'S2\x05\xb5\xc1dad\xa1\x00':
Perhaps utf-8 without BOM
Bad character at 2, value 5
Decryption failed, trying next key.
Trying key: b'e53bda694614e99c7a46f771b1bf9826'
Checking text:b'\x14T\x13\xd1\x90\xa9|\x1c\xec\x8e':
Perhaps utf-8 without BOM
Bad character at 0, value 20
Decryption failed, trying next key.
Obok DeDRM v7.2.1 - Couldn't decrypt Guide du Routard Kenya Tanzanie 2020/21
DEBUG: 30.5 DecryptAddProgressDialog::do_book_action - book decryption failed: 'Guide du Routard Kenya Tanzanie 2020/21'
Obok DeDRM v7.2.1 - wrapping up results.
I recently tried to convert a manga I got from Kobo to be able to read it in another reader app. However, I get errors and the conversion fails. It is not only the one book, the next one in the sequel gets the same errors.
I have tried it both on macOS 12.2.1 as well as Windows 10. I get the same errors for both. Neither Obok works nor DeDRM via Adobe Digital Editions.
5.37
v.10.0.0
No response
calibre, version 5.37.0
ERROR: Loading book failed: Failed to open the book at [Path]. Click "Show details" for more info.
Failed to convert book: [Path] with error:
DeDRM v10.0.2: Trying to decrypt [Filename]
DeDRM v10.0.2: Verifying zip archive integrity
DeDRM v10.0.2: “[Filename]” is neither an Adobe Adept nor a Barnes & Noble encrypted ePub
DeDRM v10.0.2: Finished after 2.2 seconds
InputFormatPlugin: EPUB Input running
on /var/folders/nf/s70ywbcn4cjcphy4y6m2bgdm0000gn/C/calibre_5.37.0_tmp_0ux1v8ix/jogxy3aw.epub
Failed to run pipe worker with command: from calibre.srv.render_book import viewer_main; viewer_main()
Traceback (most recent call last):
File "runpy.py", line 194, in _run_module_as_main
File "runpy.py", line 87, in _run_code
File "site.py", line 39, in <module>
File "site.py", line 35, in main
File "calibre/utils/ipc/worker.py", line 196, in main
File "<string>", line 1, in <module>
File "calibre/srv/render_book.py", line 823, in viewer_main
File "calibre/srv/render_book.py", line 814, in render_for_viewer
File "calibre/srv/render_book.py", line 792, in render
File "calibre/srv/render_book.py", line 605, in process_exploded_book
File "calibre/srv/render_book.py", line 264, in create_cover_page
File "calibre/srv/render_book.py", line 217, in find_epub_cover
File "calibre/ebooks/oeb/polish/cover.py", line 284, in find_cover_image_in_page
File "src/lxml/xpath.pxi", line 430, in lxml.etree.XPath.__call__
File "src/lxml/apihelpers.pxi", line 41, in lxml.etree._documentOrRaise
TypeError: Invalid input object: bytes
Hi! Sorry, I'm trying to install the Calibre plugin, but there is no DeDRM_plugin.zip file in the unzipped DeDRM_tools-master folder.
Am I crazy and missing something (so sorry if I am)?
5.32
v10.0.0
No response
Traceback (most recent call last):
File "runpy.py", line 194, in _run_module_as_main
File "runpy.py", line 87, in _run_code
File "site.py", line 39, in <module>
File "site.py", line 35, in main
File "calibre/customize/ui.py", line 828, in main
File "calibre/customize/ui.py", line 476, in add_plugin
File "calibre/customize/ui.py", line 64, in load_plugin
File "calibre/customize/zipplugin.py", line 281, in load
calibre.customize.PluginNotFound: Cannot access 'DeDRM_plugin.zip'
I noticed that that watermark hex is still hidden in epubs I thought this was removed with your fork? I enabled remove watermark but in epub file on content.opf there is still hidden watermark.
4.23
10.0.2
No response
No Log
I tried to import and remove DRM for some manga with size of about 500MB (Amazon Kindle AZW3
format), finding the plugin is failing due to MemoryError
. Here is the log:
Extensions: frozenset({'azw3'})
Decrypted key file using IDString '2024375763' and UserName ''
DeDRM v10.0.2: Found 1 new key
MobiDeDrm v1.0.
Copyright © 2008-2020 The Dark Reverser, Apprentice Harper et al.
DeDRM v10.0.2: Ultimately failed to decrypt after 3.8 seconds. Read the FAQs at Harper's repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
Running file type plugin DeDRM failed with traceback:
Traceback (most recent call last):
File "calibre_plugins.dedrm.mobidedrm", line 331, in __init__
File "calibre_plugins.dedrm.mobidedrm", line 392, in patchSection
File "calibre_plugins.dedrm.mobidedrm", line 382, in patch
MemoryError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "calibre_plugins.dedrm.__init__", line 795, in KindleMobiDecrypt
File "calibre_plugins.dedrm.k4mobidedrm", line 223, in GetDecryptedBook
File "calibre_plugins.dedrm.mobidedrm", line 341, in __init__
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "calibre\customize\ui.py", line 175, in _run_filetype_plugins
File "calibre_plugins.dedrm.__init__", line 888, in run
File "calibre_plugins.dedrm.__init__", line 838, in KindleMobiDecrypt
calibre_plugins.dedrm.DeDRMError: DeDRM v10.0.2: Ultimately failed to decrypt after 3.8 seconds. Read the FAQs at Harper's repository: https://github.com/apprenticeharper/DeDRM_tools/blob/maAdded
My system has 16GB of RAM. I tried to close as much running software as possible, leaving the available memory to be at least 4.2GB, but this did not help. I suspect that available memory is not the problem because the operating system will use page files to ensure that the software has enough memory to address. Does Calibre have memory limitations for the extension? I tried some search but didn't find any documentation.
Thank you for merging the pull requests that have long been pending and making other needed changes to this project. While I do not agree with everything you are doing, on the whole I think this fork is a good thing.
There are already some new pull requests since your first release. Perhaps the idea that contributed changes might make into a release has stimulated interest. I am curious about your plans for the frequency of new releases going forward. Do you plan on having another release soon?
I am also interested to learn whether you intend this to be a short term project or if you are committed to this in the longer term.
Hi. Can anyone extend this code to remove hardened DRM of ACSM files? I can support him to works on it. Thanks
5.32
v10
No response
No response
Hello
I tried to do everything right:
I should add this is a book I purchased for my Kindle.
I don't understand what I missed.
Note : I'm puzzled because I see in the log that it's talking about K4PC although I deinstalled it before doing all of the above.
I hope someone can help.
5.34
10.0.2
No response
stdout+stderr from file dialog helper: [b'', b'']
piped data from file dialog helper: [b'+\x99\6\xb6\x87\xcd\x8a\x18\x9d\x84\x8b\xaf\xe4m\x95\xa6\xbc\xc9w\x83aj\xee9\xb2\x83\x7f\xd6\xc7]\x87', b'C:\Users\AD\Downloads\Band 1&2 - Das gro\xc3\x9fe Buch der EAV_ Grundlagen und praktische Anwendungen (German Edition).azw3']
DeDRM v10.0.2: Trying to decrypt Band 1&2 - Das große Buch der EAV_ Grundlagen und praktische Anwendungen (German Edition).azw3
Using Library AlfCrypto DLL/DYLIB/SO
Using Library AlfCrypto DLL/DYLIB/SO
MobiDeDrm v1.0.
Copyright © 2008-2020 The Dark Reverser, Apprentice Harper et al.
Decrypting Kindle Format 8 ebook: Band 1&2 - Das große Buch der EAV: Grundlagen und praktische Anwendungen (German Edition)
Found 2 keys to try after 0.1 seconds
Crypto Type is: 2
DeDRM v10.0.2: Failed to decrypt with error: No key found in 2 PIDs tried.
DeDRM v10.0.2: Looking for new default Kindle Key after 0.1 seconds
searching for kinfoFiles in C:\Users\AD\AppData\Local
Found K4PC 1.25+ kinf2018 file: C:\Users\AD\AppData\Local\Amazon\Kindle\storage.kinf2018
Decrypted key file using IDString '418257257' and UserName 'AD'
DeDRM v10.0.2: Found 1 new key
MobiDeDrm v1.0.
Copyright © 2008-2020 The Dark Reverser, Apprentice Harper et al.
Decrypting Kindle Format 8 ebook: Band 1&2 - Das große Buch der EAV: Grundlagen und praktische Anwendungen (German Edition)
Got DSN key from database default_key_1
Found 4 keys to try after 2.5 seconds
Crypto Type is: 2
DeDRM v10.0.2: Ultimately failed to decrypt after 2.5 seconds. Read the FAQs at Harper's repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
Added Band 1&2 - Das große Buch der EAV: Grundlagen und praktische Anwendungen (German Edition) to db in: 0.1
Added 1 books in 3.0 seconds
Hello
Pretty much what the title says, I've tried to de-drm a kindle ebook, but it doesn't seem to be working.
4.17
10.0.2
1.17.0
calibre 4.17 embedded-python: True is64bit: False
Windows-7-6.1.7601-SP1 Windows ('32bit', 'WindowsPE')
32bit process running on 64bit windows
('Windows', '7', '6.1.7601')
Python 2.7.16+
Windows: ('7', '6.1.7601', 'SP1', u'Multiprocessor Free')
Interface language: pt_BR
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 41, 0) && DeDRM (10, 0, 2) && Package KFX
(from KFX Input) (1, 41, 0) && KFX metadata reader (from KFX Input) (1, 41, 0) && KFX Input (1, 41, 0)
calibre 4.17 embedded-python: True is64bit: False
Windows-7-6.1.7601-SP1 Windows ('32bit', 'WindowsPE')
32bit process running on 64bit windows
('Windows', '7', '6.1.7601')
Python 2.7.16+
Windows: ('7', '6.1.7601', 'SP1', u'Multiprocessor Free')
Interface language: pt_BR
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 41, 0) && DeDRM (10, 0, 2) && Package KFX
(from KFX Input) (1, 41, 0) && KFX metadata reader (from KFX Input) (1, 41, 0) && KFX Input (1, 41, 0)
Turning on automatic hidpi scaling
devicePixelRatio: 1.0
logicalDpi: 96.0 x 96.0
physicalDpi: 72.0567375887 x 71.8867924528
Using calibre Qt style: True
[0.00] Starting up...
[0.00] Showing splash screen...
[0.39] splash screen shown
[0.39] Initializing db...
[0.41] db initialized
[0.41] Constructing main UI...
[7.79] main UI initialized...
[7.79] Hiding splash screen
[102.99] splash screen hidden
[102.99] Started up in 102.99 seconds with 435 books
stdout+stderr from file dialog helper: ['', '']
piped data from file dialog helper: ['\xb1\xb3\xea5\xb6wO7\xf3\xfa\xc6\xbaD
\xa8\xd8\x86\x12\x06\xb4\xb1\xb7\xf5\xb4\x85\xc3\x93\xea\x8f\xa3\x91\x04\xb0', 'C:\\Users\\Win 3\\Desktop\
\B092335C53_EBOK.azw']
Gather KFX-ZIP (from KFX Input) 1.41.0: Importing C:\Users\Win 3\Desktop\B092335C53_EBOK.azw
Gather KFX-ZIP (from KFX Input): File is not KFX format
DeDRM v10.0.2: Trying to decrypt B092335C53_EBOK.azw
Running file type plugin DeDRM failed with traceback:
Traceback (most recent call last):
File "site-packages\calibre\customize\ui.py", line 172, in _run_filetype_plugins
File "calibre_plugins.dedrm.__init__", line 888, in run
File "calibre_plugins.dedrm.__init__", line 782, in KindleMobiDecrypt
File "site-packages\calibre\customize\zipplugin.py", line 185, in load_module
File "calibre_plugins.dedrm.k4mobidedrm", line 72, in <module>
ImportError: No module named html.entities
C:\Program Files (x86)\Calibre2\\app\pylib.zip\dateutil\parser\_parser.py:1177: UnicodeWarning: Unicode equal comparison
failed to convert both arguments to Unicode - interpreting them as being unequal
Running calibre on linux, all plugins and software are up to date, but still fails to decrypt DRM.
5.33.2
v10.0.2
5.14.1 (Kindle Paperwhite 10th Gen)
calibre Debug log
calibre 5.33.2 embedded-python: False is64bit: True
Linux-5.16.12-200.fc35.x86_64-x86_64-with-glibc2.34 Linux ('64bit', 'ELF')
('Linux', '5.16.12-200.fc35.x86_64', '#1 SMP PREEMPT Wed Mar 2 19:06:17 UTC 2022')
Python 3.10.2
Interface language: None
Successfully initialized third party plugins: DeDRM (10, 0, 2)
calibre 5.33.2 embedded-python: False is64bit: True
Linux-5.16.12-200.fc35.x86_64-x86_64-with-glibc2.34 Linux ('64bit', 'ELF')
('Linux', '5.16.12-200.fc35.x86_64', '#1 SMP PREEMPT Wed Mar 2 19:06:17 UTC 2022')
Python 3.10.2
Interface language: None
Successfully initialized third party plugins: DeDRM (10, 0, 2)
Turning on automatic hidpi scaling
devicePixelRatio: 1.0
logicalDpi: 96.0 x 96.0
physicalDpi: 168.1655172413793 x 161.36470588235292
Using calibre Qt style: True
[0.00] Starting up...
[0.00] Showing splash screen...
[0.03] splash screen shown
[0.03] Initializing db...
[0.03] db initialized
[0.03] Constructing main UI...
[1.03] main UI initialized...
[1.03] Hiding splash screen
Starting QuickView
DeDRM v10.0.2: Trying to decrypt Dune.azw3
Using Library AlfCrypto DLL/DYLIB/SO
Using Library AlfCrypto DLL/DYLIB/SO
Running file type plugin DeDRM failed with traceback:
Traceback (most recent call last):
File "calibre_plugins.dedrm.kfxdedrm", line 18, in
from ion import DrmIon, DrmIonVoucher
File "/tmp/calibre_5.33.2_tmp_xrrzorgr/v46h_2v2plugin_unzip/ion.py", line 33, in
from Crypto.Cipher import AES
ModuleNotFoundError: No module named 'Crypto'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib64/calibre/calibre/customize/ui.py", line 175, in _run_filetype_plugins
nfp = plugin.run(nfp) or nfp
File "calibre_plugins.dedrm.init", line 888, in run
decrypted_ebook = self.KindleMobiDecrypt(path_to_ebook)
File "calibre_plugins.dedrm.init", line 782, in KindleMobiDecrypt
import calibre_plugins.dedrm.k4mobidedrm
File "/usr/lib64/calibre/calibre/customize/zipplugin.py", line 191, in exec_module
exec(compiled, module.dict)
File "calibre_plugins.dedrm.k4mobidedrm", line 88, in
from calibre_plugins.dedrm import kfxdedrm
File "/usr/lib64/calibre/calibre/customize/zipplugin.py", line 191, in exec_module
exec(compiled, module.dict)
File "calibre_plugins.dedrm.kfxdedrm", line 20, in
from calibre_plugins.dedrm.ion import DrmIon, DrmIonVoucher
File "/usr/lib64/calibre/calibre/customize/zipplugin.py", line 191, in exec_module
exec(compiled, module.dict)
File "calibre_plugins.dedrm.ion", line 33, in
from Crypto.Cipher import AES
ModuleNotFoundError: No module named 'Crypto'
[9.49] splash screen hidden
[9.49] Started up in 9.49 seconds with 0 books
Added Dune to db in: 0.2
Added 1 books in 1.2 seconds
Worker Launch took: 0.00 seconds
Job: 0 Convert book 1 of 1 (Dune) finished
Convert book 1 of 1 (Dune)
DeDRM v10.0.2: Trying to decrypt y8j7zqzc.azw3
Using Library AlfCrypto DLL/DYLIB/SO
Using Library AlfCrypto DLL/DYLIB/SO
Running file type plugin DeDRM failed with traceback:
Traceback (most recent call last):
File "calibre_plugins.dedrm.kfxdedrm", line 18, in
from ion import DrmIon, DrmIonVoucher
File "/tmp/calibre_5.33.2_tmp_xrrzorgr/m2xo3ozcplugin_unzip/ion.py", line 33, in
from Crypto.Cipher import AES
ModuleNotFoundError: No module named 'Crypto'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib64/calibre/calibre/customize/ui.py", line 175, in _run_filetype_plugins
nfp = plugin.run(nfp) or nfp
File "calibre_plugins.dedrm.__init__", line 888, in run
decrypted_ebook = self.KindleMobiDecrypt(path_to_ebook)
File "calibre_plugins.dedrm.__init__", line 782, in KindleMobiDecrypt
import calibre_plugins.dedrm.k4mobidedrm
File "/usr/lib64/calibre/calibre/customize/zipplugin.py", line 191, in exec_module
exec(compiled, module.__dict__)
File "calibre_plugins.dedrm.k4mobidedrm", line 88, in <module>
from calibre_plugins.dedrm import kfxdedrm
File "/usr/lib64/calibre/calibre/customize/zipplugin.py", line 191, in exec_module
exec(compiled, module.__dict__)
File "calibre_plugins.dedrm.kfxdedrm", line 20, in <module>
from calibre_plugins.dedrm.ion import DrmIon, DrmIonVoucher
File "/usr/lib64/calibre/calibre/customize/zipplugin.py", line 191, in exec_module
exec(compiled, module.__dict__)
File "calibre_plugins.dedrm.ion", line 33, in <module>
from Crypto.Cipher import AES
ModuleNotFoundError: No module named 'Crypto'
Conversion options changed from defaults:
read_metadata_from_opf: '/tmp/calibre_5.33.2_tmp_xrrzorgr/jx6n1k3b.opf'
verbose: 2
cover: '/tmp/calibre_5.33.2_tmp_xrrzorgr/k14_mk7y.jpeg'
output_profile: 'kindle'
Resolved conversion options
calibre version: 5.33.2
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0.0,
'book_producer': None,
'change_justification': 'original',
'chapter': "//*[((name()='h1' or name()='h2') and re:test(., "
"'\\s*((chapter|book|section|part)\\s+)|((prolog|prologue|epilogue)(\\s+|$))', "
"'i')) or @class = 'chapter']",
'chapter_mark': 'pagebreak',
'comments': None,
'cover': '/tmp/calibre_5.33.2_tmp_xrrzorgr/k14_mk7y.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,
'epub_version': '2',
'expand_css': False,
'extra_css': None,
'extract_to': None,
'filter_css': '',
'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 0x7fe710f2ace0>,
'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.KindleOutput object at 0x7fe710f283a0>,
'page_breaks_before': "//*[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': '/tmp/calibre_5.33.2_tmp_xrrzorgr/jx6n1k3b.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': '',
'search_replace': '[]',
'series': None,
'series_index': None,
'smarten_punctuation': False,
'sr1_replace': None,
'sr1_search': None,
'sr2_replace': None,
'sr2_search': None,
'sr3_replace': None,
'sr3_search': None,
'start_reading_at': None,
'subset_embedded_fonts': False,
'tags': None,
'timestamp': None,
'title': None,
'title_sort': None,
'toc_filter': None,
'toc_threshold': 6,
'toc_title': None,
'transform_css_rules': '[]',
'transform_html_rules': '[]',
'unsmarten_punctuation': False,
'unwrap_lines': True,
'use_auto_toc': False,
'verbose': 2}
DeDRM v10.0.2: Trying to decrypt y8j7zqzc.azw3
Running file type plugin DeDRM failed with traceback:
Traceback (most recent call last):
File "calibre_plugins.dedrm.kfxdedrm", line 18, in <module>
from ion import DrmIon, DrmIonVoucher
File "/tmp/calibre_5.33.2_tmp_xrrzorgr/otfejwygplugin_unzip/ion.py", line 33, in <module>
from Crypto.Cipher import AES
ModuleNotFoundError: No module named 'Crypto'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib64/calibre/calibre/customize/ui.py", line 175, in _run_filetype_plugins
nfp = plugin.run(nfp) or nfp
File "calibre_plugins.dedrm.__init__", line 888, in run
decrypted_ebook = self.KindleMobiDecrypt(path_to_ebook)
File "calibre_plugins.dedrm.__init__", line 782, in KindleMobiDecrypt
import calibre_plugins.dedrm.k4mobidedrm
File "/usr/lib64/calibre/calibre/customize/zipplugin.py", line 191, in exec_module
exec(compiled, module.__dict__)
File "calibre_plugins.dedrm.k4mobidedrm", line 88, in <module>
from calibre_plugins.dedrm import kfxdedrm
File "/usr/lib64/calibre/calibre/customize/zipplugin.py", line 191, in exec_module
exec(compiled, module.__dict__)
File "calibre_plugins.dedrm.kfxdedrm", line 20, in <module>
from calibre_plugins.dedrm.ion import DrmIon, DrmIonVoucher
File "/usr/lib64/calibre/calibre/customize/zipplugin.py", line 191, in exec_module
exec(compiled, module.__dict__)
File "calibre_plugins.dedrm.ion", line 33, in <module>
from Crypto.Cipher import AES
ModuleNotFoundError: No module named 'Crypto'
InputFormatPlugin: MOBI Input running
on /tmp/calibre_5.33.2_tmp_xrrzorgr/y8j7zqzc.azw3
Found KF8 MOBI of type 'standalone'
Traceback (most recent call last):
File "/usr/bin/calibre-parallel", line 21, in <module>
sys.exit(main())
File "/usr/lib64/calibre/calibre/utils/ipc/worker.py", line 215, in main
result = func(*args, **kwargs)
File "/usr/lib64/calibre/calibre/gui2/convert/gui_conversion.py", line 41, in gui_convert_override
gui_convert(input, output, recommendations, notification=notification,
File "/usr/lib64/calibre/calibre/gui2/convert/gui_conversion.py", line 28, in gui_convert
plumber.run()
File "/usr/lib64/calibre/calibre/ebooks/conversion/plumber.py", line 1111, in run
self.oeb = self.input_plugin(stream, self.opts,
File "/usr/lib64/calibre/calibre/customize/conversion.py", line 244, in __call__
ret = self.convert(stream, options, file_ext,
File "/usr/lib64/calibre/calibre/ebooks/conversion/plugins/mobi_input.py", line 44, in convert
opf = os.path.abspath(mr())
File "/usr/lib64/calibre/calibre/ebooks/mobi/reader/mobi8.py", line 85, in __call__
self.mobi6_reader.check_for_drm()
File "/usr/lib64/calibre/calibre/ebooks/mobi/reader/mobi6.py", line 162, in check_for_drm
raise DRMError(name)
calibre.ebooks.DRMError: Dune
First thanks for your hard work. I was wondering if there is any way you could include Vitalsource DRM. This bookstore has a lot of important books which are not in other places like amazon or Kobo specially from T&F. I would love to read them in Kindle. Thanks Once Again.
Hi all, I've probably missed something fairly obvious here while setting this up.
I downloaded the azw3 file from Amazon with the "Download & Transfer via USB" in the "Manage digital content" section of my account. I also have added my Kindle Paperwhite's serial number inside the configuration for DeDRM.
I also tried downloading the ebook with Kindle for PC 1.17 and the same error occurs.
It seems to be throwing an IndexError instead of one of the other exceptions I see others encountering in their issues.
IndexError: Replacement index 1 out of range for positional args tuple
OS: Windows 10
Calibre version: 5.34
DeDRM version: 10.0.2
Debug log output
calibre Debug log
calibre 5.34 [64bit] embedded-python: True is64bit: True
Windows-10-10.0.19041 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19041')
Python 3.8.5
Windows: ('10', '10.0.19041', '', 'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 46, 0) && DeDRM (10, 0, 2) && Package KFX (from KFX Input) (1, 46, 0) && KFX metadata reader (from KFX Input) (1, 46, 0) && KFX Input (1, 46, 0) && Obok DeDRM (10, 0, 0)
calibre 5.34 [64bit] embedded-python: True is64bit: True
Windows-10-10.0.19041 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19041')
Python 3.8.5
Windows: ('10', '10.0.19041', '', 'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 46, 0) && DeDRM (10, 0, 2) && Package KFX (from KFX Input) (1, 46, 0) && KFX metadata reader (from KFX Input) (1, 46, 0) && KFX Input (1, 46, 0) && Obok DeDRM (10, 0, 0)
Turning on automatic hidpi scaling
devicePixelRatio: 1.0
logicalDpi: 96.0 x 96.0
physicalDpi: 95.6235294117647 x 94.59310344827585
Using calibre Qt style: True
[0.00] Starting up...
[0.00] Showing splash screen...
[0.47] splash screen shown
[0.47] Initializing db...
[0.47] db initialized
[0.47] Constructing main UI...
DEBUG: 0.0 obok::utilities.py - loading translations
DEBUG: 0.0 obok::dialogs.py - loading translations
DEBUG: 0.0 obok::config.py - loading translations
DEBUG: 0.0 obok::action_err.py - loading translations
[0.95] main UI initialized...
[0.95] Hiding splash screen
Starting QuickView
DeDRM v10.0.2: Trying to decrypt Assistive Technologies- E-Book.azw3
Using Library AlfCrypto DLL/DYLIB/SO
Using Library AlfCrypto DLL/DYLIB/SO
MobiDeDrm v1.0.
Copyright © 2008-2020 The Dark Reverser, Apprentice Harper et al.
Decrypting Kindle Format 8 ebook: Assistive Technologies- E-Book
Found 0 keys to try after 0.1 seconds
Crypto Type is: 2
DeDRM v10.0.2: Failed to decrypt with error: Replacement index 1 out of range for positional args tuple
DeDRM v10.0.2: Looking for new default Kindle Key after 0.1 seconds
searching for kinfoFiles in C:\Users\Steven\AppData\Local
Found K4PC 1.9+ kinf2011 file: C:\Users\Steven\AppData\Local\Amazon\Kindle\storage\.kinf2011
Decrypted key file using IDString '3231205406' and UserName 'Steven'
DeDRM v10.0.2: Found 1 new key
MobiDeDrm v1.0.
Copyright © 2008-2020 The Dark Reverser, Apprentice Harper et al.
Decrypting Kindle Format 8 ebook: Assistive Technologies- E-Book
Got DSN key from database default_key_1
Found 4 keys to try after 0.2 seconds
Crypto Type is: 2
DeDRM v10.0.2: Ultimately failed to decrypt after 0.2 seconds. Read the FAQs at Harper's repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
Running file type plugin DeDRM failed with traceback:
Traceback (most recent call last):
File "calibre_plugins.dedrm.__init__", line 795, in KindleMobiDecrypt
File "calibre_plugins.dedrm.k4mobidedrm", line 244, in GetDecryptedBook
File "calibre_plugins.dedrm.mobidedrm", line 464, in processBook
IndexError: Replacement index 1 out of range for positional args tuple
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "calibre\customize\ui.py", line 175, in _run_filetype_plugins
File "calibre_plugins.dedrm.__init__", line 888, in run
File "calibre_plugins.dedrm.__init__", line 838, in KindleMobiDecrypt
calibre_plugins.dedrm.DeDRMError: DeDRM v10.0.2: Ultimately failed to decrypt after 0.2 seconds. Read the FAQs at Harper's repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
[5.41] splash screen hidden
[5.41] Started up in 5.41 seconds with 3 books
stdout+stderr from file dialog helper: [b'', b'']
piped data from file dialog helper: [b'\x12\xd0\x93\xc9\x1bW\xf7 j\x860\\\xc9)>1`\x95h\x85\xf6g;\x1f\x8d\x95;\x04\xec\xf0\xdd\xe5', b'C:\\Users\\Steven\\Downloads\\Assistive Technologies- E-Book.azw3']
Added Assistive Technologies- E-Book to db in: 0.1
Added 1 books in 0.6 seconds
Thanks for taking the time to look over all this!
I'd like to use the epubwatermark.py script to remove any watermark from my EPUB books. I really prefer to run the script directly from the command line and avoid using Calibre.
I tried running the script as follows:
python epubwatermark.py test.epub
Unfortunately it seems the script doesn't do anything on the EPUB book I pass as an argument. It shows no output at all, and the exit status is zero. But the checksum of the EPUB book is the same as before...
Am I using the script in the wrong way?
none
10.0.2
No response
No response
Can't install the DeDRM_plugin. I get: ModuleNotFoundError: No module named '__version'
Details:
calibre, version 5.40.0
ERROR: Unhandled exception: ModuleNotFoundError:No module named '__version'
calibre 5.40 [64bit] embedded-python: True is64bit: True
Windows-8.1-6.3.9600 Windows ('64bit', 'WindowsPE')
('Windows', '8.1', '6.3.9600')
Python 3.8.5
Windows: ('8.1', '6.3.9600', '', 'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: Obok DeDRM (10, 0, 0)
Traceback (most recent call last):
File "calibre\gui2\preferences\plugins.py", line 326, in add_plugin
File "calibre\customize\ui.py", line 476, in add_plugin
File "calibre\customize\ui.py", line 64, in load_plugin
File "calibre\customize\zipplugin.py", line 292, in load
File "importlib_init_.py", line 127, in import_module
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "calibre\customize\zipplugin.py", line 191, in exec_module
File "calibre_plugins.dedrm.init", line 98, in
ModuleNotFoundError: No module named '__version'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.