apprenticeharper / DeDRM_tools

DeDRM tools for ebooks
14.47k stars 1.5k forks source link

DRM and KFX Problem #628

Open PendragnJenna opened 6 years ago

PendragnJenna commented 6 years ago

I'm in the process of switching to a new computer. I had DeDRM and KFX Input working fine on my old computer, but I'm getting the cannot convert message on the new computer. Can someone please let me know what's going awry or what I'm doing wrong? Thanks!

Here's the debug log:

EpubMerge: DEBUG: 2018-09-13 13:25:00,845: calibre_plugins.epubmerge.epubmerge_plugin(152): macmenuhack file_path:/Users/username/Library/Preferences/calibre/plugins/fanficfare_macmenuhack.txt FFF: DEBUG: 2018-09-13 13:25:00,861: calibre_plugins.fanficfare_plugin.fff_plugin(207): Plugin FanFicFare macmenuhack file_path:/Users/username/Library/Preferences/calibre/plugins/fanficfare_macmenuhack.txt calibre Debug log calibre 3.31 embedded-python: True is64bit: True Darwin-17.7.0-x86_64-i386-64bit Darwin ('64bit', '') ('Darwin', '17.7.0', 'Darwin Kernel Version 17.7.0: Fri Jul 6 19:54:51 PDT 2018; root:xnu-4570.71.3~2/RELEASE_X86_64') Python 2.7.12 OSX: ('10.13.6', ('', '', ''), 'x86_64') Interface language: None Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 8, 0) && DeDRM (6, 6, 1) && Package KFX (from KFX Input) (1, 8, 0) && Set KFX metadata (from KFX Output) (1, 22, 0) && KFX Output (1, 22, 0) && Search The Internet (1, 7, 6) && Manage Series (1, 2, 8) && Goodreads (1, 1, 14) && Count Pages (1, 8, 2) && KFX metadata reader (from KFX Input) (1, 8, 0) && KFX Input (1, 8, 0) && Author Book Count (2, 1, 5) && User Category (1, 5, 3) && Consolidate All Library Metadata (2, 0, 32) && Author Book Count Hierarchy (1, 1, 8) && MultiColumnSearch (1, 0, 74) && EpubMerge (2, 3, 0) && Reading List (1, 6, 6) && FanFicFare (3, 0, 0) && Kindle covers (G) (0, 3, 0) && Find Duplicates (1, 6, 3) && EpubSplit (2, 5, 0) && Obok DeDRM (6, 5, 4) calibre 3.31 embedded-python: True is64bit: True Darwin-17.7.0-x86_64-i386-64bit Darwin ('64bit', '') ('Darwin', '17.7.0', 'Darwin Kernel Version 17.7.0: Fri Jul 6 19:54:51 PDT 2018; root:xnu-4570.71.3~2/RELEASE_X86_64') Python 2.7.12 OSX: ('10.13.6', ('', '', ''), 'x86_64') Interface language: None Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 8, 0) && DeDRM (6, 6, 1) && Package KFX (from KFX Input) (1, 8, 0) && Set KFX metadata (from KFX Output) (1, 22, 0) && KFX Output (1, 22, 0) && Search The Internet (1, 7, 6) && Manage Series (1, 2, 8) && Goodreads (1, 1, 14) && Count Pages (1, 8, 2) && KFX metadata reader (from KFX Input) (1, 8, 0) && KFX Input (1, 8, 0) && Author Book Count (2, 1, 5) && User Category (1, 5, 3) && Consolidate All Library Metadata (2, 0, 32) && Author Book Count Hierarchy (1, 1, 8) && MultiColumnSearch (1, 0, 74) && EpubMerge (2, 3, 0) && Reading List (1, 6, 6) && FanFicFare (3, 0, 0) && Kindle covers (G) (0, 3, 0) && Find Duplicates (1, 6, 3) && EpubSplit (2, 5, 0) && Obok DeDRM (6, 5, 4) devicePixelRatio: 2.0 logicalDpi: 72.0 x 72.0 physicalDpi: 128.000001922 x 127.500001915 Using calibre Qt style: True [0.00] Starting up... [0.03] Initializing db... [0.26] db initialized [0.26] 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 MCS has finished initialization... [2.55] main UI initialized... [2.55] Started up in 2.55 seconds with 4345 books Gather KFX-ZIP (from KFX Input) 1.8.0: Importing /Users/username/Documents/Calibre Auto-Add/B07H4SC7V8_EBOK.azw Gather KFX-ZIP (from KFX Input): Cannot locate some files needed for the book. KFX files must remain in their original folder structure for successful import. Gather KFX-ZIP (from KFX Input): Gathered 1 file(s) as /var/folders/r0/xvg97jzj5m109ncpr5kfj1m40000gn/C/calibre_3.31.0_tmp_qOPOLc/2qoC67.kfx-zip DeDRM v6.6.1: Trying to decrypt 2qoC67.kfx-zip Using Library AlfCrypto DLL/DYLIB/SO Decrypting KFX-ZIP ebook: 2qoC67 Found 0 keys to try after 0.0 seconds DeDRM v6.6.1: Failed to decrypt with error: The .kfx-zip archive contains an encrypted DRMION file without a DRM voucher DeDRM v6.6.1: Looking for new default Kindle Key after 0.0 seconds Found k4Mac kinf2011 file: /Users/username/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2011 Decrypted key file using IDString '55bd3db89cf1' and UserName 'username' DeDRM v6.6.1: Found 1 new key Decrypting KFX-ZIP ebook: 2qoC67 Got DSN key from database default_key_1 Found 1 keys to try after 0.4 seconds DeDRM v6.6.1: Ultimately failed to decrypt after 0.4 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 "site-packages/calibre/customize/ui.py", line 171, in _run_filetype_plugins File "calibre_plugins.dedrm.init", line 621, in run File "calibre_plugins.dedrm.init", line 571, in KindleMobiDecrypt DeDRMError: DeDRM v6.6.1: Ultimately failed to decrypt after 0.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 "site-packages/calibre/customize/ui.py", line 171, in _run_filetype_plugins File "calibre_plugins.kfx_input.package_filetype", line 22, in run File "calibre_plugins.kfx_input.package_filetype", line 35, in run_kfx File "calibre_plugins.kfx_input.kfxlib.yj_book", line 76, in convert_to_single_kfx File "calibre_plugins.kfx_input.kfxlib.yj_book", line 149, in decode_book File "calibre_plugins.kfx_input.kfxlib.yj_book", line 260, in get_container KFXDRMError: Book container B07H4SC7V8_EBOK.azw has DRM and cannot be converted 2018-09-13 13:25:30.118 Calibre[3756:411079] deliverNotificationWithTitle()

j-howell commented 6 years ago

See the error:

Gather KFX-ZIP (from KFX Input): Cannot locate some files needed for the book. KFX files must remain in their original folder structure for successful import.

It looks like you are using a configured folder to automatically add books to calibre that are added to it. That won't work with books in KFX format.

You need to add the main book file (.azw) from its original location in a subfolder of My Kindle Content. You can do that using drag and drop or "Add books from a single directory".

If instead you insist on using auto-add you can zip the contents of the book's subfolder under My Kindle Content, change the extension from .zip to .kfx-zip, and then place that in the auto-add folder.

PendragnJenna commented 6 years ago

Thank you! I'll change how I add my books.