Trying to using this plugin to remove DRM. I've installed it using calibre-customize, added the kindle serial number to /root/.config/calibre/plugins/dedrm.json but I am getting the following error. Seems to be missing something on the python side?
DeDRM v7.0.3: Trying to decrypt The Effective Air Fryer Cookbook The Ultimate Guide Inclusive of 150 Healthy Recipes - Unknown.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 15, in
from ion import DrmIon, DrmIonVoucher
File "/tmp/calibre_5.3.0_tmp_lax7u2ao/i7nox4c2plugin_unzip/ion.py", line 33, in
from Crypto.Cipher import AES
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "bypy-importer.py", line 154, in exec_module
File "Crypto/Cipher/init.py", line 27, in
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "bypy-importer.py", line 154, in exec_module
File "Crypto/Cipher/_mode_ecb.py", line 35, in
File "Crypto/Util/_raw_api.py", line 308, in load_pycryptodome_raw_lib
OSError: Cannot load native module 'Crypto.Cipher._raw_ecb': Trying '_raw_ecb.cpython-38-x86_64-linux-gnu.so': /opt/calibre/lib/calibre-extensions/python-lib.bypy.frozen/Crypto/Util/../Cipher/_raw_ecb.cpython-38-x86_64-linux-gnu.so: cannot open shared object file: Not a directory, Trying '_raw_ecb.abi3.so': /opt/calibre/lib/calibre-extensions/python-lib.bypy.frozen/Crypto/Util/../Cipher/_raw_ecb.abi3.so: cannot open shared object file: Not a directory, Trying '_raw_ecb.so': /opt/calibre/lib/calibre-extensions/python-lib.bypy.frozen/Crypto/Util/../Cipher/_raw_ecb.so: cannot open shared object file: Not a directory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "calibre/customize/ui.py", line 172, in _run_filetype_plugins
File "calibre_plugins.dedrm.init", line 630, in run
decrypted_ebook = self.KindleMobiDecrypt(path_to_ebook)
File "calibre_plugins.dedrm.init", line 524, in KindleMobiDecrypt
import calibre_plugins.dedrm.k4mobidedrm
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 184, in exec_module
File "calibre_plugins.dedrm.k4mobidedrm", line 88, in
from calibre_plugins.dedrm import kfxdedrm
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 184, in exec_module
File "calibre_plugins.dedrm.kfxdedrm", line 17, in
from calibre_plugins.dedrm.ion import DrmIon, DrmIonVoucher
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 184, in exec_module
File "calibre_plugins.dedrm.ion", line 33, in
from Crypto.Cipher import AES
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "bypy-importer.py", line 154, in exec_module
File "Crypto/Cipher/init.py", line 27, in
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "bypy-importer.py", line 154, in exec_module
File "Crypto/Cipher/_mode_ecb.py", line 35, in
File "Crypto/Util/_raw_api.py", line 308, in load_pycryptodome_raw_lib
OSError: Cannot load native module 'Crypto.Cipher._raw_ecb': Trying '_raw_ecb.cpython-38-x86_64-linux-gnu.so': /opt/calibre/lib/calibre-extensions/python-lib.bypy.frozen/Crypto/Util/../Cipher/_raw_ecb.cpython-38-x86_64-linux-gnu.so: cannot open shared object file: Not a directory, Trying '_raw_ecb.abi3.so': /opt/calibre/lib/calibre-extensions/python-lib.bypy.frozen/Crypto/Util/../Cipher/_raw_ecb.abi3.so: cannot open shared object file: Not a directory, Trying '_raw_ecb.so': /opt/calibre/lib/calibre-extensions/python-lib.bypy.frozen/Crypto/Util/../Cipher/_raw_ecb.so: cannot open shared object file: Not a directory
DeDRM v7.0.3: Trying to decrypt The Effective Air Fryer Cookbook The Ultimate Guide Inclusive of 150 Healthy Recipes - Unknown.azw3
Running file type plugin DeDRM failed with traceback:
Traceback (most recent call last):
File "calibre_plugins.dedrm.kfxdedrm", line 15, in
from ion import DrmIon, DrmIonVoucher
File "/tmp/calibre_5.3.0_tmp_lax7u2ao/odikxtx1plugin_unzip/ion.py", line 33, in
from Crypto.Cipher import AES
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "bypy-importer.py", line 154, in exec_module
File "Crypto/Cipher/init.py", line 27, in
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "bypy-importer.py", line 154, in exec_module
File "Crypto/Cipher/_mode_ecb.py", line 35, in
File "Crypto/Util/_raw_api.py", line 308, in load_pycryptodome_raw_lib
OSError: Cannot load native module 'Crypto.Cipher._raw_ecb': Trying '_raw_ecb.cpython-38-x86_64-linux-gnu.so': /opt/calibre/lib/calibre-extensions/python-lib.bypy.frozen/Crypto/Util/../Cipher/_raw_ecb.cpython-38-x86_64-linux-gnu.so: cannot open shared object file: Not a directory, Trying '_raw_ecb.abi3.so': /opt/calibre/lib/calibre-extensions/python-lib.bypy.frozen/Crypto/Util/../Cipher/_raw_ecb.abi3.so: cannot open shared object file: Not a directory, Trying '_raw_ecb.so': /opt/calibre/lib/calibre-extensions/python-lib.bypy.frozen/Crypto/Util/../Cipher/_raw_ecb.so: cannot open shared object file: Not a directory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "calibre/customize/ui.py", line 172, in _run_filetype_plugins
File "calibre_plugins.dedrm.init", line 630, in run
decrypted_ebook = self.KindleMobiDecrypt(path_to_ebook)
File "calibre_plugins.dedrm.init", line 524, in KindleMobiDecrypt
import calibre_plugins.dedrm.k4mobidedrm
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 184, in exec_module
File "calibre_plugins.dedrm.k4mobidedrm", line 88, in
from calibre_plugins.dedrm import kfxdedrm
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 184, in exec_module
File "calibre_plugins.dedrm.kfxdedrm", line 17, in
from calibre_plugins.dedrm.ion import DrmIon, DrmIonVoucher
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 184, in exec_module
File "calibre_plugins.dedrm.ion", line 33, in
from Crypto.Cipher import AES
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "bypy-importer.py", line 154, in exec_module
File "Crypto/Cipher/init.py", line 27, in
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "bypy-importer.py", line 154, in exec_module
File "Crypto/Cipher/_mode_ecb.py", line 35, in
File "Crypto/Util/_raw_api.py", line 308, in load_pycryptodome_raw_lib
OSError: Cannot load native module 'Crypto.Cipher._raw_ecb': Trying '_raw_ecb.cpython-38-x86_64-linux-gnu.so': /opt/calibre/lib/calibre-extensions/python-lib.bypy.frozen/Crypto/Util/../Cipher/_raw_ecb.cpython-38-x86_64-linux-gnu.so: cannot open shared object file: Not a directory, Trying '_raw_ecb.abi3.so': /opt/calibre/lib/calibre-extensions/python-lib.bypy.frozen/Crypto/Util/../Cipher/_raw_ecb.abi3.so: cannot open shared object file: Not a directory, Trying '_raw_ecb.so': /opt/calibre/lib/calibre-extensions/python-lib.bypy.frozen/Crypto/Util/../Cipher/_raw_ecb.so: cannot open shared object file: Not a directory
1% Converting input to HTML...
InputFormatPlugin: MOBI Input running
on /books/Unknown/The Effective Air Fryer Cookbook The Ultimate Guide Inclusive of 150 Healthy Recipes (439)/The Effective Air Fryer Cookbook The Ultimate Guide Inclusive of 150 Healthy Recipes - Unknown.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 45, in
File "site.py", line 41, in main
File "calibre/ebooks/conversion/cli.py", line 401, in main
File "calibre/ebooks/conversion/plumber.py", line 1108, in run
File "calibre/customize/conversion.py", line 245, in call
File "calibre/ebooks/conversion/plugins/mobi_input.py", line 47, in convert
File "calibre/ebooks/mobi/reader/mobi8.py", line 86, in call
File "calibre/ebooks/mobi/reader/mobi6.py", line 158, in check_for_drm