Skip to content

DRM not removed #2443

@Brandis13

Description

@Brandis13

My environment:
Computer: iMac Late 2012, macOS Sequoia 15.7.2
Calibre: 8.15.0
DeDRM: 10.0.3

Log:

ApplicationPaletteChange event ignored
Using calibre Qt style: True
qt.gui.imageio: libpng warning: iCCP: known incorrect sRGB profile
calibre Debug log
calibre 8.15 embedded-python: True
macOS-15.7.2-x86_64-i386-64bit Darwin ('64bit', '')
('Darwin', '24.6.0', 'Darwin Kernel Version 24.6.0: Wed Oct 15 21:12:21 PDT 2025; root:xnu-11417.140.69.703.141/RELEASE_X86_64')
Python 3.11.14
OSX: ('15.7.2', ('', '', ''), 'x86_64')
Interface language: None
EXE path: /Applications/calibre.app/Contents/MacOS/calibre-debug
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (2, 27, 1) && DeDRM (10, 0, 3) && Package KFX (from KFX Input) (2, 27, 1) && KFX metadata reader (from KFX Input) (2, 27, 1) && From KFX (2, 27, 1) && KFX Input (2, 27, 1)
calibre 8.15 embedded-python: True
macOS-15.7.2-x86_64-i386-64bit Darwin ('64bit', '')
('Darwin', '24.6.0', 'Darwin Kernel Version 24.6.0: Wed Oct 15 21:12:21 PDT 2025; root:xnu-11417.140.69.703.14
1/RELEASE_X86_64')
Python 3.11.14
OSX: ('15.7.2', ('', '', ''), 'x86_64')
Interface language: None
EXE path: /Applications/calibre.app/Contents/MacOS/calibre-debug
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (2, 27, 1) && DeDRM (10, 0, 3) && Package KFX (from KFX Input) (2, 27, 1) && KFX metadata reader (from KFX Input) (2, 27, 1) && From KFX (2, 27, 1) && KFX Input (2, 27, 1)
QPA platform: cocoa
devicePixelRatio: 1.0
logicalDpi: 72.0 x 72.0
physicalDpi: 109.00000163701577 x 109.00000163701577
[0.00] Starting up...
[0.18] Showing splash screen...
[1.40] splash screen shown
[1.40] Initializing db...
[1.43] db initialized
[1.43] Constructing main UI...
[2.92] GUI main window shown
[3.03] main UI initialized...
[3.03] Hiding splash screen
[3.22] splash screen hidden
[3.22] Started up in 3.22 seconds with 39 books
Failed to request permission for showing notification: The operation couldn’t be completed. (UNErrorDomain error 1.)
Gather KFX-ZIP (from KFX Input) 2.27.1: Importing /Volumes/Kindle/documents/Adam Wins the Internet (English Edition)_B09RSTWDQL.kfx
Gather KFX-ZIP (from KFX Input): Gathered 5 file(s) as /var/folders/8c/gh6ncvvs4b90wpcj94lcdk6c0000gn/C/calibre-zpe_o8r0/srua9mpi.kfx-zip
DeDRM v10.0.3: Trying to decrypt srua9mpi.kfx-zip
Using Library AlfCrypto DLL/DYLIB/SO

{'bsd_drives': {'main': '/dev/disk13s1'},
'drives': {'main': '/Volumes/Kindle'},
'mount_map': {'/dev/disk10s1': '/System/Library/AssetsV2/com_apple_MobileAsset_PKITrustStore/purpose_auto/6dd55b0d06633a00de6f57ccb910a66a5ba2409a.asset/.AssetData',
'/dev/disk11': '/private/var/folders/8c/gh6ncvvs4b90wpcj94lcdk6c0000gn/T/tmp8o3yq407/payloads',
'/dev/disk12s1': '/Volumes/calibre-8.15.0',
'/dev/disk13s1': '/Volumes/Kindle',
'/dev/disk2s1': '/System/Volumes/Data',
'/dev/disk2s2': '/System/Volumes/Preboot',
'/dev/disk2s4': '/System/Volumes/Update/mnt1',
'/dev/disk2s4s1': '/',
'/dev/disk2s5': '/System/Volumes/Update',
'/dev/disk2s6': '/System/Volumes/VM',
'/dev/disk3s2': '/Volumes/Backup',
'/dev/disk5s2': '/Volumes/Backup extern',
'/dev/disk7s1': '/Volumes/Archiv',
'com.apple.TimeMachine.2025-12-01-221655.local@/dev/disk2s1': '/Volumes/com.apple.TimeMachine.localsnapshots/Backups.backupdb/Marcs '
'iMac/2025-12-01-221655/Macintosh '
'HD '
'- '
'Daten',
'devfs': '/dev',
'map auto_home': '/System/Volumes/Data/home'}}
Syncing cover thumbnails to workaround amazon cover bug
Job: 0 Get device information started
DeviceJob: 0 Get device information done, calling callback
DeviceJob: 0 Get device information callback returned
Job: 1 Set library information started
DeviceJob: 1 Set library information done, calling callback
DeviceJob: 1 Set library information callback returned
Job: 2 Get list of books on device started
DEBUG: 0.0 USBMS: Fetching list of books from device. Device= KINDLE2 oncard= None
DEBUG: 0.0 USBMS: dirs are: /Volumes/Kindle/ documents
DEBUG: 0.0 USBMS: scan from root False /Volumes/Kindle/documents
Job: 0 Get device information finished
No details available.
Job: 1 Set library information finished
No details available.
DEBUG: 1.1 USBMS: count found in cache: 51, count of files in metadata: 51, need_sync: False
DEBUG: 1.1 USBMS: Finished fetching list of books from device. oncard= None
DEBUG: 1.1 USBMS: Fetching list of books from device. Device= KINDLE2 oncard= carda
DEBUG: 1.1 USBMS: Fetching list of books from device. Device= KINDLE2 oncard= cardb
DeviceJob: 2 Get list of books on device done, calling callback
DEBUG: 1.1 DeviceJob: metadata_downloaded: Starting set_books_in_library
DEBUG: 1.1 DeviceJob: set_books_in_library: books to process= 51
DEBUG: 1.1 DeviceJob: set_books_in_library finished: time= 0.009542703628540039
DEBUG: 1.1 DeviceJob: metadata_downloaded: updating views
DEBUG: 1.1 DeviceJob: metadata_downloaded: syncing
DEBUG: 1.1 DeviceJob: metadata_downloaded: refreshing ondevice
DEBUG: 1.1 DeviceJob: metadata_downloaded: sending metadata_available signal
DeviceJob: 2 Get list of books on device callback returned
Job: 2 Get list of books on device finished
No details available.
Decrypting KFX-ZIP ebook: srua9mpi
Found 1 keys to try after 0.1 seconds
Decrypting KFX DRM voucher: voucher
Traceback (most recent call last):
File "/Users/marcbenz/Library/Preferences/calibre/plugins/DeDRM.zip/kfxdedrm.py", line 105, in decrypt_voucher
voucher.decryptvoucher()
File "/Users/marcbenz/Library/Preferences/calibre/plugins/DeDRM.zip/ion.py", line 886, in decryptvoucher
b = pkcs7unpad(b, 16)
^^^^^^^^^^^^^^^^^
File "/Users/marcbenz/Library/Preferences/calibre/plugins/DeDRM.zip/ion.py", line 762, in pkcs7unpad
_assert(paddinglen > 0 and paddinglen <= blocklen, "Incorrect padding - Wrong key")
File "/Users/marcbenz/Library/Preferences/calibre/plugins/DeDRM.zip/ion.py", line 102, in _assert
raise Exception(msg)
Exception: Incorrect padding - Wrong key
Traceback (most recent call last):
File "/Users/marcbenz/Library/Preferences/calibre/plugins/DeDRM.zip/kfxdedrm.py", line 105, in decrypt_voucher
voucher.decryptvoucher()
File "/Users/marcbenz/Library/Preferences/calibre/plugins/DeDRM.zip/ion.py", line 886, in decryptvoucher
b = pkcs7unpad(b, 16)
^^^^^^^^^^^^^^^^^
File "/Users/marcbenz/Library/Preferences/calibre/plugins/DeDRM.zip/ion.py", line 762, in pkcs7unpad
_assert(paddinglen > 0 and paddinglen <= blocklen, "Incorrect padding - Wrong key")
File "/Users/marcbenz/Library/Preferences/calibre/plugins/DeDRM.zip/ion.py", line 102, in _assert
raise Exception(msg)
Exception: Incorrect padding - Wrong key
DeDRM v10.0.3: Failed to decrypt with error: Failed to decrypt KFX DRM voucher with any key
DeDRM v10.0.3: Looking for new default Kindle Key after 0.1 seconds
No k4Mac kindle-info/rainier/kinf2011 files have been found.
DeDRM v10.0.3: Ultimately failed to decrypt after 0.1 seconds. Read the FAQs at noDRM's repository: https://github.com/noDRM/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 957, in KindleMobiDecrypt
book = k4mobidedrm.GetDecryptedBook(path_to_ebook,kindleDatabases,androidFiles,serials,pids,self.starttime)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/marcbenz/Library/Preferences/calibre/plugins/DeDRM.zip/k4mobidedrm.py", line 261, in GetDecryptedBook
mb.processBook(totalpids)
File "/Users/marcbenz/Library/Preferences/calibre/plugins/DeDRM.zip/kfxdedrm.py", line 67, in processBook
self.decrypt_voucher(totalpids)
File "/Users/marcbenz/Library/Preferences/calibre/plugins/DeDRM.zip/kfxdedrm.py", line 111, 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 215, in _run_filetype_plugins
File "calibre_plugins.dedrm.init", line 1056, in run
decrypted_ebook = self.KindleMobiDecrypt(path_to_ebook)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "calibre_plugins.dedrm.init", line 1007, in KindleMobiDecrypt
raise DeDRMError("{0} v{1}: Ultimately failed to decrypt after {2:.1f} seconds. Read the FAQs at noDRM's repository: https://github.com/noDRM/DeDRM_tools/blob/master/FAQs.md".format(PLUGIN_NAME, PLUGIN_VERSION,time.time()-self.starttime))
calibre_plugins.dedrm.DeDRMError: DeDRM v10.0.3: Ultimately failed to decrypt after 0.1 seconds. Read the FAQs at noDRM's repository: https://github.com/noDRM/DeDRM_tools/blob/master/FAQs.md
Package KFX (from KFX Input) 2.27.1: Packaging /var/folders/8c/gh6ncvvs4b90wpcj94lcdk6c0000gn/C/calibre-zpe_o8r0/srua9mpi.kfx-zip
Processing container: Adam Wins the Internet (English Edition)_B09RSTWDQL.kfx
Running file type plugin Package KFX (from KFX Input) failed with traceback:
Traceback (most recent call last):
File "calibre/customize/ui.py", line 215, in _run_filetype_plugins
File "calibre_plugins.kfx_input.package_filetype", line 23, in run
return self.package_kfx(path_to_ebook)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "calibre_plugins.kfx_input.package_filetype", line 34, in package_kfx
kfx_data = YJ_Book(path_to_ebook).convert_to_single_kfx()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "calibre_plugins.kfx_input.kfxlib.yj_book", line 79, in convert_to_single_kfx
self.decode_book()
File "calibre_plugins.kfx_input.kfxlib.yj_book", line 213, in decode_book
container = self.get_container(datafile)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "calibre_plugins.kfx_input.kfxlib.yj_book", line 331, 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 Adam Wins the Internet (English Edition)_B09RSTWDQL.kfx has DRM and cannot be converted
KFX metadata reader (from KFX Input) activated for /var/folders/8c/gh6ncvvs4b90wpcj94lcdk6c0000gn/C/calibre-zpe_o8r0/gu6x8kpi_add_books/0/Adam Wins the Internet (English Edition)_B09RSTWDQL.kfx-zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions