Skip to content

No longer able to remove DRM from Kindle eBook #1045

Description

@proulxf012

Question / bug report

I tried to DeDRMed 2 books today from my Kindle. Between the 2, my Kindle updated. Every thing worked OK for the first book but I was not able to remove the DRM from the second book, after the update. I followed the troubleshooting instructions.
I am running Calibre 9.13 on a laptop running on Linux Mint 22.3 Cinnamon with a French interface. Was working good before the Kindle update.

Which version of Calibre are you running?

9.13

Which version of the DeDRM plugin are you running?

v10.0.30

If applicable, which version of the Kindle software are you running?

Kindle 5.18.2.1.1 (4821110015)

Log output

Paste log output here.
```ApplicationPaletteChange event ignored
Using calibre Qt style: True
calibre_plugins.obok_dedrm.obok.obok:432: SyntaxWarning: "\s" is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\s"? A raw string is also an option.
calibre_plugins.obok_dedrm.obok.obok:432: SyntaxWarning: "\-" is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\-"? A raw string is also an option.
calibre_plugins.obok_dedrm.obok.obok:432: SyntaxWarning: "\s" is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\s"? A raw string is also an option.
calibre_plugins.obok_dedrm.obok.obok:446: SyntaxWarning: "\s" is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\s"? A raw string is also an option.
calibre_plugins.obok_dedrm.obok.obok:446: SyntaxWarning: "\s" is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\s"? A raw string is also an option.
calibre_plugins.obok_dedrm.obok.obok:456: SyntaxWarning: "\s" is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\s"? A raw string is also an option.
calibre_plugins.obok_dedrm.obok.obok:456: SyntaxWarning: "\s" is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\s"? A raw string is also an option.
calibre_plugins.obok_dedrm.obok.obok:463: SyntaxWarning: "\s" is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\s"? A raw string is also an option.
calibre_plugins.obok_dedrm.obok.obok:463: SyntaxWarning: "\s" is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\s"? A raw string is also an option.
calibre_plugins.obok_dedrm.obok.obok:662: SyntaxWarning: "\s" is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\s"? A raw string is also an option.
calibre Journal de débogage
calibre 9.13  embedded-python: True
Linux-7.0.0-29-generic-x86_64-with-glibc2.39 Linux ('64bit', 'ELF')
('Linux', '7.0.0-29-generic', '#29~24.04.2-Ubuntu SMP PREEMPT_DYNAMIC Wed Aug 12 17:25:56 UTC 2')
Python 3.14.6
Linux: Linux Mint 22.3
Interface language: fr
EXE path: /opt/calibre/bin/calibre-debug
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (2, 33, 0) && DeDRM (10, 0, 30) && Package KFX (from KFX Input) (2, 33, 0) && KFX metadata reader (from KFX Input) (2, 33, 0) && From KFX (2, 33, 0) && KFX Input (2, 33, 0) && Kobo Utilities (2, 28, 2) && Obok DeDRM (10, 0, 9)
calibre 9.13  embedded-python: True
Linux-7.0.0-29-generic-x86_64-with-glibc2.39 Linux ('64bit', 'ELF')
('Linux', '7.0.0-29-generic', '#29~24.04.2-Ubuntu SMP PREEMPT_DYNAMIC Wed Aug 12 17:25:56 UTC 2')
Python 3.14.6
Linux: Linux Mint 22.3
Interface language: fr
EXE path: /opt/calibre/bin/calibre-debug
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (2, 33, 0) && DeDRM (10, 0, 30) && Package KFX (from KFX Input) (2, 33, 0) && KFX metadata reader (from KFX Input) (2, 33, 0) && From KFX (2, 33, 0) && KFX Input (2, 33, 0) && Kobo Utilities (2, 28, 2) && Obok DeDRM (10, 0, 9)
QPA platform: xcb
devicePixelRatio: 1.1979166666666667
logicalDpi: 96.0 x 96.0
physicalDpi: 131.76763754045308 x 132.43236994219652
[0.00] Starting up...
[0.00] Showing splash screen...
[1.14] splash screen shown
[1.14] Initializing db...
[1.20] db initialized
[1.20] Constructing main UI...
[1.91] [DEBUG] [koboutilities.config:<module>:74] CreateNewCustomColumn is supported
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
[2.05] [DEBUG] [koboutilities.action:KoboUtilitiesAction.genesis:127] Running in optimized mode
[2.27] GUI main window shown
[2.29] [DEBUG] [koboutilities.action:KoboUtilitiesAction.initialization_complete:131] Plugin config:  {
    "BookmarkOptions": {
        "backgroundJob": false,
        "clearIfUnread": false,
        "doNotStoreIfReopened": false,
        "rating": true,
        "readingStatus": true,
        "setDateToNow": true,
        "storeBookmarks": true,
        "storeIfMoreRecent": false
    },
    "Devices": {},
    "MetadataOptions": {
        "author": false,
        "authourSort": false,
        "description": false,
        "descriptionTemplate": "",
        "descriptionUseTemplate": false,
        "isbn": false,
        "language": false,
        "published_date": false,
        "publisher": false,
        "rating": false,
        "readingStatus": -1,
        "reading_direction": "Default",
        "resetPosition": false,
        "series": false,
        "setRreadingStatus": false,
        "set_reading_direction": false,
        "set_sync_date": false,
        "subtitle": false,
        "subtitleTemplate": "",
        "sync_date_library_date": "timestamp",
        "title": false,
        "titleSort": false,
        "update_KoboEpubs": false,
        "usePlugboard": false
    },
    "ReadingOptions": {
        "doNotUpdateIfSet": false,
        "lockMargins": false,
        "readingAlignment": "Off",
        "readingFontFamily": "Georgia",
        "readingFontSize": 22,
        "readingLeftMargin": 3,
        "readingLineHeight": 1.3,
        "readingRightMargin": 3,
        "updateConfigFile": false
    },
    "_version": 3,
    "backupAnnotations": {
        "dest_directory": ""
    },
    "backupOptionsStore": {
        "backupCopiesToKeepSpin": 5,
        "backupDestDirectory": "/home/proulxf012/Kobo backups",
        "backupEachCOnnection": false,
        "doDailyBackp": false
    },
    "cleanImagesDir": {
        "delete_extra_covers": false
    },
    "commonOptionsStore": {
        "buttonActionDevice": "",
        "buttonActionLibrary": "",
        "individualDeviceOptions": false
    },
    "coverUpload": {
        "blackandwhite": false,
        "dithered_covers": false,
        "keep_cover_aspect": false,
        "kepub_covers": false,
        "letterbox": false,
        "letterbox_color": "#000000",
        "png_covers": false
    },
    "fixDuplicatesOptionsStore": {
        "keepNewestShelf": true,
        "purgeShelves": false
    },
    "getShelvesOptionStore": {
        "allBooks": true,
        "replaceShelves": true
    },
    "removeAnnotations": {
        "removeAnnotAction": 0
    },
    "removeCovers": {
        "kepub_covers": false,
        "remove_fullsize_covers": false
    },
    "setRelatedBooksOptionsStore": {
        "relatedBooksType": 0
    }
}
[2.29] [DEBUG] [koboutilities.config:get_library_config:665] library_config: {
    "SchemaVersion": 1,
    "profiles": {},
    "readingPositionChangesStore": {
        "selectBooksInLibrary": false,
        "updeateGoodreadsProgress": false
    },
    "shelvesColumn": null
}
[2.29] [DEBUG] [koboutilities.action:KoboUtilitiesAction.set_toolbar_button_tooltip:199] setting to text='Utilities to use with Kobo ereaders

Pilote : KoboTouch'
[2.38] main UI initialized...
[2.38] Hiding splash screen
[2.38] splash screen hidden
[2.38] Started up in 2.38 seconds with 293 books
Gather KFX-ZIP (from KFX Input) 2.33.0: Importing /media/proulxf012/Kindle/documents/Downloads/Items01/Far Horizons_ All New Tales From The Greatest Worlds of Science Fiction (Galactic Center) (English Edition)_B000FCKM42.kfx
Gather KFX-ZIP (from KFX Input): Gathered 4 file(s) as /tmp/calibre-9aop0ifg/_n4zok4x.kfx-zip
DeDRM v10.0.30: Trying to decrypt _n4zok4x.kfx-zip

Found device nodes: /dev/sda None None
Syncing cover thumbnails to workaround amazon cover bug
[7.44] [DEBUG] [koboutilities.action:KoboUtilitiesAction._on_device_connection_changed:204] Connection changed; is_connected: True
[7.44] [DEBUG] [koboutilities.action:get_device:958] Connected device: <calibre.devices.kindle.driver.KINDLE2 object at 0x7db3925256a0>
[7.44] [DEBUG] [koboutilities.action:get_device:960] No supported Kobo device appears to be connected
[7.44] [DEBUG] [koboutilities.action:KoboUtilitiesAction.set_toolbar_button_tooltip:199] setting to text='Utilities to use with Kobo ereaders

Pilote : KoboTouch'
Job: 0 Lit les informations du périphérique started
DeviceJob: 0 Lit les informations du périphérique done, calling callback
DeviceJob: 0 Lit les informations du périphérique callback returned
Job: 1 Définir l'information de bibliothèque started
DeviceJob: 1 Définir l'information de bibliothèque done, calling callback
DeviceJob: 1 Définir l'information de bibliothèque callback returned
Job: 2 Lit la liste des livres à partir du périphérique connecté started
DEBUG:    0.0 USBMS: Fetching list of books from device. Device= KINDLE2 oncard= None
DEBUG:    0.0 USBMS: dirs are: /media/proulxf012/Kindle/ documents
DEBUG:    0.0 USBMS: scan from root False /media/proulxf012/Kindle/documents
DEBUG:    0.0 USBMS: count found in cache: 62, count of files in metadata: 62, need_sync: False
DEBUG:    0.0 USBMS: Finished fetching list of books from device. oncard= None
DEBUG:    0.0 USBMS: Fetching list of books from device. Device= KINDLE2 oncard= carda
DEBUG:    0.0 USBMS: Fetching list of books from device. Device= KINDLE2 oncard= cardb
DeviceJob: 2 Lit la liste des livres à partir du périphérique connecté done, calling callback
DEBUG:    0.0 DeviceJob: metadata_downloaded: Starting set_books_in_library
DEBUG:    0.0 DeviceJob: set_books_in_library: books to process= 62
DEBUG:    0.1 DeviceJob: set_books_in_library finished: time= 0.019418716430664062
DEBUG:    0.1 DeviceJob: metadata_downloaded: updating views
DEBUG:    0.1 DeviceJob: metadata_downloaded: syncing
DEBUG:    0.1 DeviceJob: metadata_downloaded: refreshing ondevice
DEBUG:    0.1 DeviceJob: metadata_downloaded: sending metadata_available signal
[7.70] [DEBUG] [koboutilities.action:KoboUtilitiesAction._on_device_metadata_available:215] Start
[7.70] [DEBUG] [koboutilities.action:get_device:958] Connected device: <calibre.devices.kindle.driver.KINDLE2 object at 0x7db3925256a0>
[7.70] [DEBUG] [koboutilities.action:get_device:960] No supported Kobo device appears to be connected
[7.70] [DEBUG] [koboutilities.action:KoboUtilitiesAction.set_toolbar_button_tooltip:199] setting to text='Utilities to use with Kobo ereaders

Pilote : KoboTouch'
[7.70] [DEBUG] [koboutilities.action:KoboUtilitiesAction.set_toolbar_button_tooltip:199] setting to text='Utilities to use with Kobo ereaders

Pilote : KoboTouch'
DeviceJob: 2 Lit la liste des livres à partir du périphérique connecté callback returned
Job: 0 Lit les informations du périphérique finished
Pas de détail disponible.
Job: 2 Lit la liste des livres à partir du périphérique connecté finished
Pas de détail disponible.
Job: 1 Définir l'information de bibliothèque finished
Pas de détail disponible.
['zenity', '--modal', '--file-selection', '--title=Livres sélectionnés', '--separator=\n', '--attach=65011731', '--filename=/media/proulxf012/Kindle/documents/Downloads/Items01/.fgdfg.gdfhjdhf*&^839', '--file-filter=Livres | *.lrf *.rtf *.lit *.txt *.txtz *.text *.htm *.xhtm *.html *.htmlz *.xhtml *.pdf *.pdb *.updb *.pdr *.prc *.mobi *.azw *.doc *.epub *.fb2 *.fbz *.djv *.djvu *.lrx *.cbr *.cb7 *.cbz *.cbc *.oebzip *.rb *.imp *.odt *.chm *.tpz *.azw1 *.pml *.pmlz *.mbp *.tan *.snb *.xps *.oxps *.azw4 *.book *.zbf *.pobi *.docx *.docm *.md *.textile *.markdown *.ibook *.ibooks *.iba *.azw3 *.ps *.kepub *.kfx *.kpf *.azw8 *.kfx-zip', '--file-filter=Livres EPUB | *.epub *.kepub', '--file-filter=Livres Kindle | *.mobi *.prc *.azw *.azw3 *.kfx *.tpz *.azw1 *.azw4', '--file-filter=Livres PDF | *.pdf *.azw4', '--file-filter=Livres HTML | *.htm *.html *.xhtm *.xhtml', '--file-filter=Livres LIT | *.lit', '--file-filter=Livres texte | *.txt *.text *.rtf *.md *.markdown *.textile *.txtz', '--file-filter=Bandes Dessinées | *.cbz *.cbr *.cbc *.cb7', '--file-filter=Archives | *.zip *.rar *.7z', '--file-filter=Fichiers du traitement de texte | *.odt *.doc *.docx', '--file-filter=Tous les fichiers | *', '--multiple']
Decrypting KFX-ZIP ebook: _n4zok4x
Found 1 keys to try after 0.4 seconds
Decrypting KFX DRM voucher: voucher
Envelope version com.amazon.drm.VoucherEnvelope@11.0
Got 0 shared key candidates {} amzn1.drm-voucher.v1.1b0dff5b-4bb1-484a-bc49-686a657b5d6a
Lock parameters used: ['ACCOUNT_SECRET', 'CLIENT_ID']
Decryption failed, trying next fallback 
Decryption failed, trying next fallback 
Decryption failed, trying next fallback 
Decryption failed, trying next fallback 
Decryption failed, trying next fallback 
Decryption failed, trying next fallback 
Decryption failed, trying next fallback 
Decryption failed, trying next fallback 
Decryption failed, trying next fallback 
Decryption failed, trying next fallback 
Decryption failed, trying next fallback 
Decryption failed, trying next fallback 
Decryption failed, trying next fallback 
Failed all decryption attempts and no key candidate available
Traceback (most recent call last):
  File "/home/proulxf012/.config/calibre/plugins/DeDRM.zip/kfxdedrm.py", line 112, in decrypt_voucher
    voucher.decryptvoucher()
    ~~~~~~~~~~~~~~~~~~~~~~^^
  File "/home/proulxf012/.config/calibre/plugins/DeDRM.zip/ion.py", line 1422, in decryptvoucher
    raise lastexception
  File "/home/proulxf012/.config/calibre/plugins/DeDRM.zip/ion.py", line 1406, in decryptvoucher
    b = pkcs7unpad(b, 16)
  File "/home/proulxf012/.config/calibre/plugins/DeDRM.zip/ion.py", line 788, in pkcs7unpad
    _assert(paddinglen > 0 and paddinglen <= blocklen, "Incorrect padding - Wrong key")
    ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/proulxf012/.config/calibre/plugins/DeDRM.zip/ion.py", line 126, in _assert
    raise Exception(msg)
Exception: Incorrect padding - Wrong key
Envelope version com.amazon.drm.VoucherEnvelope@11.0
Got 0 shared key candidates {} amzn1.drm-voucher.v1.1b0dff5b-4bb1-484a-bc49-686a657b5d6a
Lock parameters used: ['ACCOUNT_SECRET', 'CLIENT_ID']
Decryption failed, trying next fallback 
Decryption failed, trying next fallback 
Decryption failed, trying next fallback 
Decryption failed, trying next fallback 
Decryption failed, trying next fallback 
Decryption failed, trying next fallback 
Decryption failed, trying next fallback 
Decryption failed, trying next fallback 
Decryption failed, trying next fallback 
Decryption failed, trying next fallback 
Decryption failed, trying next fallback 
Decryption failed, trying next fallback 
Decryption failed, trying next fallback 
Failed all decryption attempts and no key candidate available
Traceback (most recent call last):
  File "/home/proulxf012/.config/calibre/plugins/DeDRM.zip/kfxdedrm.py", line 112, in decrypt_voucher
    voucher.decryptvoucher()
    ~~~~~~~~~~~~~~~~~~~~~~^^
  File "/home/proulxf012/.config/calibre/plugins/DeDRM.zip/ion.py", line 1422, in decryptvoucher
    raise lastexception
  File "/home/proulxf012/.config/calibre/plugins/DeDRM.zip/ion.py", line 1406, in decryptvoucher
    b = pkcs7unpad(b, 16)
  File "/home/proulxf012/.config/calibre/plugins/DeDRM.zip/ion.py", line 789, in pkcs7unpad
    _assert(msg[-paddinglen:] == bchr(paddinglen) * paddinglen, "Incorrect padding - Wrong key")
    ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/proulxf012/.config/calibre/plugins/DeDRM.zip/ion.py", line 126, in _assert
    raise Exception(msg)
Exception: Incorrect padding - Wrong key
Failed to decrypt KFX DRM voucher with any key... Hoping that keylist has a book key. 
Decrypting KFX DRMION: Far Horizons_ All New Tales From The Greatest Worlds of Science Fiction (Galactic Center) (English Edition)_B000FCKM42.kfx
DeDRM v10.0.30: Failed to decrypt with error: Incorrect AES key length (0 bytes)
Traceback (most recent call last):
  File "calibre_plugins.dedrm.__init__", line 950, in KindleMobiDecrypt
    book = k4mobidedrm.GetDecryptedBook(path_to_ebook,kindleDatabases,androidFiles,serials,pids,self.starttime,dedrmprefs["kindleextrakeyfile"], dedrmprefs["remove_watermarks"])
  File "/home/proulxf012/.config/calibre/plugins/DeDRM.zip/k4mobidedrm.py", line 204, in GetDecryptedBook
    mb.processBook(totalpids)
    ~~~~~~~~~~~~~~^^^^^^^^^^^
  File "/home/proulxf012/.config/calibre/plugins/DeDRM.zip/kfxdedrm.py", line 75, in processBook
    DrmIon(BytesIO(data[8:-8]), lambda name: self.voucher,self.skeylist).parse(outfile)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
  File "/home/proulxf012/.config/calibre/plugins/DeDRM.zip/ion.py", line 1618, in parse
    self.processpage(ct, civ, outpages, decompress, decrypt)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/proulxf012/.config/calibre/plugins/DeDRM.zip/ion.py", line 1647, in processpage
    aes = AES.new(self.key[:16], AES.MODE_CBC, civ[:16])
  File "Crypto/Cipher/AES.py", line 229, in new
  File "Crypto/Cipher/__init__.py", line 52, in _create_cipher
  File "Crypto/Cipher/_mode_cbc.py", line 274, in _create_cbc_cipher
  File "Crypto/Cipher/AES.py", line 91, in _create_base_cipher
ValueError: Incorrect AES key length (0 bytes)
DeDRM v10.0.30: Looking for new default Kindle Key after 0.5 seconds
DeDRM v10.0.30: Exception when getting default Kindle Key after 0.5 seconds
Traceback (most recent call last):
  File "calibre_plugins.dedrm.__init__", line 950, in KindleMobiDecrypt
    book = k4mobidedrm.GetDecryptedBook(path_to_ebook,kindleDatabases,androidFiles,serials,pids,self.starttime,dedrmprefs["kindleextrakeyfile"], dedrmprefs["remove_watermarks"])
  File "/home/proulxf012/.config/calibre/plugins/DeDRM.zip/k4mobidedrm.py", line 204, in GetDecryptedBook
    mb.processBook(totalpids)
    ~~~~~~~~~~~~~~^^^^^^^^^^^
  File "/home/proulxf012/.config/calibre/plugins/DeDRM.zip/kfxdedrm.py", line 75, in processBook
    DrmIon(BytesIO(data[8:-8]), lambda name: self.voucher,self.skeylist).parse(outfile)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
  File "/home/proulxf012/.config/calibre/plugins/DeDRM.zip/ion.py", line 1618, in parse
    self.processpage(ct, civ, outpages, decompress, decrypt)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/proulxf012/.config/calibre/plugins/DeDRM.zip/ion.py", line 1647, in processpage
    aes = AES.new(self.key[:16], AES.MODE_CBC, civ[:16])
  File "Crypto/Cipher/AES.py", line 229, in new
  File "Crypto/Cipher/__init__.py", line 52, in _create_cipher
  File "Crypto/Cipher/_mode_cbc.py", line 274, in _create_cbc_cipher
  File "Crypto/Cipher/AES.py", line 91, in _create_base_cipher
ValueError: Incorrect AES key length (0 bytes)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "calibre_plugins.dedrm.__init__", line 971, in KindleMobiDecrypt
    defaultkeys, defaultnames = WineGetKeys(scriptpath, ".k4i",dedrmprefs['kindlewineprefix'])
                                ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/proulxf012/.config/calibre/plugins/DeDRM.zip/wineutils.py", line 97, in WineGetKeys
    pyexec = WinePythonCLI(wineprefix)
  File "/home/proulxf012/.config/calibre/plugins/DeDRM.zip/wineutils.py", line 60, in __init__
    self.check_call(["-c", self.py3_test])
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/proulxf012/.config/calibre/plugins/DeDRM.zip/wineutils.py", line 85, in check_call
    subprocess.check_call(self.python_exec + cli_args, env=env_dict,
    ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                          stdin=None, stdout=sys.stdout,
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                          stderr=subprocess.STDOUT, close_fds=False,
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                          bufsize=1)
                          ^^^^^^^^^^
  File "subprocess.py", line 415, in check_call
  File "subprocess.py", line 396, in call
  File "subprocess.py", line 1039, in __init__
  File "subprocess.py", line 1990, in _execute_child
FileNotFoundError: [Errno 2] Aucun fichier ou dossier de ce nom: 'wine'
DeDRM v10.0.30: Ultimately failed to decrypt after 0.5 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 950, in KindleMobiDecrypt
    book = k4mobidedrm.GetDecryptedBook(path_to_ebook,kindleDatabases,androidFiles,serials,pids,self.starttime,dedrmprefs["kindleextrakeyfile"], dedrmprefs["remove_watermarks"])
  File "/home/proulxf012/.config/calibre/plugins/DeDRM.zip/k4mobidedrm.py", line 204, in GetDecryptedBook
    mb.processBook(totalpids)
    ~~~~~~~~~~~~~~^^^^^^^^^^^
  File "/home/proulxf012/.config/calibre/plugins/DeDRM.zip/kfxdedrm.py", line 75, in processBook
    DrmIon(BytesIO(data[8:-8]), lambda name: self.voucher,self.skeylist).parse(outfile)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
  File "/home/proulxf012/.config/calibre/plugins/DeDRM.zip/ion.py", line 1618, in parse
    self.processpage(ct, civ, outpages, decompress, decrypt)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/proulxf012/.config/calibre/plugins/DeDRM.zip/ion.py", line 1647, in processpage
    aes = AES.new(self.key[:16], AES.MODE_CBC, civ[:16])
  File "Crypto/Cipher/AES.py", line 229, in new
  File "Crypto/Cipher/__init__.py", line 52, in _create_cipher
  File "Crypto/Cipher/_mode_cbc.py", line 274, in _create_cbc_cipher
  File "Crypto/Cipher/AES.py", line 91, in _create_base_cipher
ValueError: Incorrect AES key length (0 bytes)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "calibre/customize/ui.py", line 253, in _run_filetype_plugins
  File "calibre_plugins.dedrm.__init__", line 1052, in run
    decrypted_ebook = self.KindleMobiDecrypt(path_to_ebook)
  File "calibre_plugins.dedrm.__init__", line 1003, 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.30: Ultimately failed to decrypt after 0.5 seconds. Read the FAQs at noDRM's repository: https://github.com/noDRM/DeDRM_tools/blob/master/FAQs.md
Package KFX (from KFX Input) 2.33.0: Packaging /tmp/calibre-9aop0ifg/_n4zok4x.kfx-zip
Processing container: CR!J5WNZZ69T50AV5FWTVSBB4BW185Z.kfx
Processing container: Far Horizons_ All New Tales From The Greatest Worlds of Science Fiction (Galactic Center) (English Edition)_B000FCKM42.kfx
Running file type plugin Package KFX (from KFX Input) failed with traceback:
Traceback (most recent call last):
  File "calibre/customize/ui.py", line 253, 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 215, in decode_book
    container = self.get_container(datafile)
  File "calibre_plugins.kfx_input.kfxlib.yj_book", line 339, 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 Far Horizons_ All New Tales From The Greatest Worlds of Science Fiction (Galactic Center) (English Edition)_B000FCKM42.kfx has DRM and cannot be converted
KFX metadata reader (from KFX Input) activated for /tmp/calibre-9aop0ifg/1avuqigp_add_books/0/Far Horizons_ All New Tales From The Greatest Worlds of Science Fiction (Galactic Center) (English Edition)_B000FCKM42.kfx-zip
Failed to count pages in book: 297 KFX-ZIP because it is DRM locked
Added Far Horizons: All New Tales From The Greatest Worlds of Science Fiction (Galactic Center) to db in: 0.2
Added 1 books in 1.7 seconds
[33.82] Shutdown starting...
[33.86] Shutdown message shown...
[33.86] Grid view shutdown
[33.86] Bookshelf view shutdown
[33.87] Actions shutdown
[34.07] Various services shutdown
[34.07] Metadata backup shutdown
[34.28] Current database closed
[34.29] Windows hidden
[34.32] Waiting for overseers, mdns, and live to shutdown
[34.32] Waiting for device manager to shutdown
[34.32] Shutdown complete in 0.50, quitting...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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