Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DRM not removed. #725

Open
CalicoPantsDotCom opened this issue Feb 15, 2025 · 11 comments
Open

DRM not removed. #725

CalicoPantsDotCom opened this issue Feb 15, 2025 · 11 comments

Comments

@CalicoPantsDotCom
Copy link

calibre, version 7.26.0

ApplicationPaletteChange event ignored
Using calibre Qt style: True
qt.gui.imageio: libpng warning: iCCP: known incorrect sRGB profile
2025-02-15 17:42:18.329 calibre-debug[62171:4839466] +[IMKClient subclass]: chose IMKClient_Modern
2025-02-15 17:42:18.329 calibre-debug[62171:4839466] +[IMKInputSession subclass]: chose IMKInputSession_Modern
calibre Debug log
calibre 7.26 embedded-python: True
macOS-15.3-arm64-arm-64bit Darwin ('64bit', '')
('Darwin', '24.3.0', 'Darwin Kernel Version 24.3.0: Thu Jan 2 20:24:23 PST 2025; root:xnu-11215.81.43/RELEASE_ARM64_T6020')
Python 3.11.5
OSX: ('15.3', ('', '', ''), 'arm64')
Interface language: None
EXE path: /Applications/calibre.app/Contents/MacOS/calibre-debug
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (2, 19, 0) && DeDRM (10, 0, 9) && Package KFX (from KFX Input) (2, 19, 0) && KFX metadata reader (from KFX Input) (2, 19, 0) && From KFX (2, 19, 0) && KFX Input (2, 19, 0) && Set KFX metadata (from KFX Output) (2, 13, 0) && KFX Output (2, 13, 0)
calibre 7.26 embedded-python: True
macOS-15.3-arm64-arm-64bit Darwin ('64bit', '')
('Darwin', '24.3.0', 'Darwin Kernel Version 24.3.0: Thu Jan 2 20:24:23 PST 2025; root:xnu-11215.81.4
3/RELEASE_ARM64_T6020')
Python 3.11.5
OSX: ('15.3', ('', '', ''), 'arm64')
Interface language: None
EXE path: /Applications/calibre.app/Contents/MacOS/calibre-debug
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (2, 19, 0) && DeDRM (10, 0, 9) && Package KFX (from KFX Input) (2, 19, 0) && KFX metadata reader (from KFX Input) (2, 19, 0) && From KFX (2, 19, 0) && KFX Input (2, 19, 0) && Set KFX metadata (from KFX Output) (2, 13, 0) && KFX Output (2, 13, 0)
QPA platform: cocoa
devicePixelRatio: 2.0
logicalDpi: 72.0 x 72.0
physicalDpi: 127.50000191485792 x 127.50000191485789
[0.00] Starting up...
[0.02] Showing splash screen...
[1.19] splash screen shown
[1.19] Initializing db...
[1.20] db initialized
[1.20] Constructing main UI...
[1.69] GUI main window shown
[1.71] main UI initialized...
[1.71] Hiding splash screen
[1.76] splash screen hidden
[1.76] Started up in 1.76 seconds with 152 books
2025-02-15 17:42:35.746 calibre-debug[62171:4839466] The class 'NSOpenPanel' overrides the method identifier. This method is implemented by class 'NSWindow'
Gather KFX-ZIP (from KFX Input) 2.19.0: Importing /Users/sotobase/Documents/My Kindle Content/B0C39XSMWN_EBOK/B0C39XSMWN_EBOK.azw
Gather KFX-ZIP (from KFX Input): Gathered 4 file(s) as /var/folders/zd/r0m2lyds4hdg4dvn23tcqvdc0000gn/C/calibre_7.26.0_tmp_lhm_0sk_/ttqcg2x3.kfx-zip
DeDRM v10.0.9: Trying to decrypt ttqcg2x3.kfx-zip
Decrypting KFX-ZIP ebook: ttqcg2x3
Found 0 keys to try after 0.3 seconds
Decrypting KFX DRM voucher: amzn1.drm-voucher.v1.2abe10d9-1d6e-454a-a120-671b25ed98c5.voucher
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
Traceback (most recent call last):
File "/Users/sotobase/Library/Preferences/calibre/plugins/DeDRM.zip/kfxdedrm.py", line 105, in decrypt_voucher
voucher.decryptvoucher()
File "/Users/sotobase/Library/Preferences/calibre/plugins/DeDRM.zip/ion.py", line 1368, in decryptvoucher
raise ex
^^
UnboundLocalError: cannot access local variable 'ex' where it is not associated with a value
DeDRM v10.0.9: Failed to decrypt with error: Failed to decrypt KFX DRM voucher with any key
DeDRM v10.0.9: Looking for new default Kindle Key after 0.3 seconds
No k4Mac kindle-info/rainier/kinf2011 files have been found.
DeDRM v10.0.9: Ultimately failed to decrypt after 0.3 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 931, in KindleMobiDecrypt
book = k4mobidedrm.GetDecryptedBook(path_to_ebook,kindleDatabases,androidFiles,serials,pids,self.starttime)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/sotobase/Library/Preferences/calibre/plugins/DeDRM.zip/k4mobidedrm.py", line 203, in GetDecryptedBook
mb.processBook(totalpids)
File "/Users/sotobase/Library/Preferences/calibre/plugins/DeDRM.zip/kfxdedrm.py", line 67, in processBook
self.decrypt_voucher(totalpids)
File "/Users/sotobase/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 200, in run_filetype_plugins
File "calibre_plugins.dedrm.init", line 1030, in run
decrypted_ebook = self.KindleMobiDecrypt(path_to_ebook)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "calibre_plugins.dedrm.init", line 981, 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.9: Ultimately failed to decrypt after 0.3 seconds. Read the FAQs at noDRM's repository: https://github.com/noDRM/DeDRM_tools/blob/master/FAQs.md
Package KFX (from KFX Input) 2.19.0: Packaging /var/folders/zd/r0m2lyds4hdg4dvn23tcqvdc0000gn/C/calibre_7.26.0_tmp_lhm_0sk
/ttqcg2x3.kfx-zip
Processing container: B0C39XSMWN_EBOK.azw
Running file type plugin Package KFX (from KFX Input) failed with traceback:
Traceback (most recent call last):
File "calibre/customize/ui.py", line 200, 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 80, in convert_to_single_kfx
self.decode_book()
File "calibre_plugins.kfx_input.kfxlib.yj_book", line 214, in decode_book
container = self.get_container(datafile)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "calibre_plugins.kfx_input.kfxlib.yj_book", line 332, 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 B0C39XSMWN_EBOK.azw has DRM and cannot be converted
KFX metadata reader (from KFX Input) activated for /var/folders/zd/r0m2lyds4hdg4dvn23tcqvdc0000gn/C/calibre_7.26.0_tmp_lhm_0sk
/wjk54nxr_add_books/0/B0C39XSMWN_EBOK.kfx-zip
Added Olivetti to db in: 0.0
Added 1 books in 0.8 seconds
qt.qpa.fonts: Populating font family aliases took 51 ms. Replace uses of missing font family "Times" with one that exists to avoid this cost.
Failed to request permission for showing notification: The operation couldn’t be completed. (UNErrorDomain error 1.)
Worker Launch took: 0.04 seconds
Job: 0 Convert book 1 of 1 (Olivetti) finished
Convert book 1 of 1 (Olivetti)
DeDRM v10.0.9: Trying to decrypt c00hlnh9.kfx-zip
Decrypting KFX-ZIP ebook: c00hlnh9
Found 0 keys to try after 0.3 seconds
Decrypting KFX DRM voucher: amzn1.drm-voucher.v1.2abe10d9-1d6e-454a-a120-671b25ed98c5.voucher
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
Traceback (most recent call last):
File "/Users/sotobase/Library/Preferences/calibre/plugins/DeDRM.zip/kfxdedrm.py", line 105, in decrypt_voucher
voucher.decryptvoucher()
File "/Users/sotobase/Library/Preferences/calibre/plugins/DeDRM.zip/ion.py", line 1368, in decryptvoucher
raise ex
^^
UnboundLocalError: cannot access local variable 'ex' where it is not associated with a value
DeDRM v10.0.9: Failed to decrypt with error: Failed to decrypt KFX DRM voucher with any key
DeDRM v10.0.9: Looking for new default Kindle Key after 0.3 seconds
No k4Mac kindle-info/rainier/kinf2011 files have been found.
DeDRM v10.0.9: Ultimately failed to decrypt after 0.3 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 931, in KindleMobiDecrypt
book = k4mobidedrm.GetDecryptedBook(path_to_ebook,kindleDatabases,androidFiles,serials,pids,self.starttime)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/sotobase/Library/Preferences/calibre/plugins/DeDRM.zip/k4mobidedrm.py", line 203, in GetDecryptedBook
mb.processBook(totalpids)
File "/Users/sotobase/Library/Preferences/calibre/plugins/DeDRM.zip/kfxdedrm.py", line 67, in processBook
self.decrypt_voucher(totalpids)
File "/Users/sotobase/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 200, in _run_filetype_plugins
  File "calibre_plugins.dedrm.__init__", line 1030, in run
    decrypted_ebook = self.KindleMobiDecrypt(path_to_ebook)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "calibre_plugins.dedrm.__init__", line 981, 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.9: Ultimately failed to decrypt after 0.3 seconds. Read the FAQs at noDRM's repository: https://github.com/noDRM/DeDRM_tools/blob/master/FAQs.md
Conversion options changed from defaults:
  cover: '/var/folders/zd/r0m2lyds4hdg4dvn23tcqvdc0000gn/C/calibre_7.26.0_tmp_lhm_0sk_/6qcxhlcb.jpeg'
  read_metadata_from_opf: '/var/folders/zd/r0m2lyds4hdg4dvn23tcqvdc0000gn/C/calibre_7.26.0_tmp_lhm_0sk_/p8xdhrl6.opf'
  verbose: 2
  pdf_mono_family: 'Menlo'
  pdf_serif_family: '.Times Fallback'
  output_profile: 'generic_eink'
Resolved conversion options
calibre version: 7.26.0
{'add_alt_text_to_img': False,
 '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/zd/r0m2lyds4hdg4dvn23tcqvdc0000gn/C/calibre_7.26.0_tmp_lhm_0sk_/6qcxhlcb.jpeg',
 'custom_size': None,
 'debug_pipeline': None,
 'dehyphenate': True,
 'delete_blank_paragraphs': True,
 'disable_font_rescaling': False,
 'duplicate_links_in_toc': False,
 'embed_all_fonts': False,
 'embed_font_family': None,
 'enable_heuristics': False,
 'expand_css': False,
 'extra_css': 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 0x1077fa890>,
 '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_inline_navbars': False,
 'output_profile': <calibre.customize.profiles.GenericEink object at 0x110f18c50>,
 'page_breaks_before': '/',
 'paper_size': 'letter',
 'pdf_add_toc': False,
 'pdf_default_font_size': 20,
 'pdf_footer_template': None,
 'pdf_header_template': None,
 'pdf_hyphenate': False,
 'pdf_mark_links': False,
 'pdf_mono_family': 'Menlo',
 'pdf_mono_font_size': 16,
 'pdf_no_cover': False,
 'pdf_odd_even_offset': 0.0,
 'pdf_page_margin_bottom': 72.0,
 'pdf_page_margin_left': 72.0,
 'pdf_page_margin_right': 72.0,
 'pdf_page_margin_top': 72.0,
 'pdf_page_number_map': None,
 'pdf_page_numbers': False,
 'pdf_sans_family': 'Helvetica',
 'pdf_serif_family': '.Times Fallback',
 'pdf_standard_font': 'serif',
 'pdf_use_document_margins': False,
 'prefer_metadata_cover': False,
 'preserve_cover_aspect_ratio': False,
 'pretty_print': False,
 'pubdate': None,
 'publisher': None,
 'rating': None,
 'read_metadata_from_opf': '/var/folders/zd/r0m2lyds4hdg4dvn23tcqvdc0000gn/C/calibre_7.26.0_tmp_lhm_0sk_/p8xdhrl6.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': '[]',
 'uncompressed_pdf': False,
 'unit': 'inch',
 'unsmarten_punctuation': False,
 'unwrap_lines': True,
 'use_auto_toc': False,
 'use_profile_size': False,
 'verbose': 2}
DeDRM v10.0.9: Trying to decrypt c00hlnh9.kfx-zip
Decrypting KFX-ZIP ebook: c00hlnh9
Found 0 keys to try after 0.0 seconds
Decrypting KFX DRM voucher: amzn1.drm-voucher.v1.2abe10d9-1d6e-454a-a120-671b25ed98c5.voucher
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 
Traceback (most recent call last):
  File "/Users/sotobase/Library/Preferences/calibre/plugins/DeDRM.zip/kfxdedrm.py", line 105, in decrypt_voucher
    voucher.decryptvoucher()
  File "/Users/sotobase/Library/Preferences/calibre/plugins/DeDRM.zip/ion.py", line 1368, in decryptvoucher
    raise ex
          ^^
UnboundLocalError: cannot access local variable 'ex' where it is not associated with a value
DeDRM v10.0.9: Failed to decrypt with error: Failed to decrypt KFX DRM voucher with any key
DeDRM v10.0.9: Looking for new default Kindle Key after 0.0 seconds
No k4Mac kindle-info/rainier/kinf2011 files have been found.
DeDRM v10.0.9: Ultimately failed to decrypt after 0.0 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 931, in KindleMobiDecrypt
    book = k4mobidedrm.GetDecryptedBook(path_to_ebook,kindleDatabases,androidFiles,serials,pids,self.starttime)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/sotobase/Library/Preferences/calibre/plugins/DeDRM.zip/k4mobidedrm.py", line 203, in GetDecryptedBook
    mb.processBook(totalpids)
  File "/Users/sotobase/Library/Preferences/calibre/plugins/DeDRM.zip/kfxdedrm.py", line 67, in processBook
    self.decrypt_voucher(totalpids)
  File "/Users/sotobase/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 200, in _run_filetype_plugins
  File "calibre_plugins.dedrm.__init__", line 1030, in run
    decrypted_ebook = self.KindleMobiDecrypt(path_to_ebook)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "calibre_plugins.dedrm.__init__", line 981, 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.9: Ultimately failed to decrypt after 0.0 seconds. Read the FAQs at noDRM's repository: https://github.com/noDRM/DeDRM_tools/blob/master/FAQs.md
Path override failed for key base::DIR_APP_DICTIONARIES and path '/Applications/calibre.app/Contents/MacOS/qtwebengine_dictionaries'
InputFormatPlugin: KFX Input running
on /var/folders/zd/r0m2lyds4hdg4dvn23tcqvdc0000gn/C/calibre_7.26.0_tmp_lhm_0sk_/c00hlnh9.kfx-zip
Software versions: KFX Input 2.19.0, calibre 7.26, macOS-15.3-arm64-arm-64bit
KFX Input plugin help is available at https://www.mobileread.com/forums/showthread.php?t=291290
Converting /var/folders/zd/r0m2lyds4hdg4dvn23tcqvdc0000gn/C/calibre_7.26.0_tmp_lhm_0sk_/c00hlnh9.kfx-zip
Processing container: B0C39XSMWN_EBOK.azw
Traceback (most recent call last):
  File "calibre_plugins.kfx_input.__init__", line 101, in convert
  File "calibre_plugins.kfx_input.kfxlib.yj_book", line 214, in decode_book
  File "calibre_plugins.kfx_input.kfxlib.yj_book", line 332, in get_container
calibre_plugins.kfx_input.kfxlib.utilities.KFXDRMError: Book container B0C39XSMWN_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 198, in _run_module_as_main
  File "runpy.py", line 88, in _run_code
  File "site.py", line 42, in <module>
  File "site.py", line 38, 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 1128, in run
  File "calibre/customize/conversion.py", line 242, in __call__
  File "calibre_plugins.kfx_input.__init__", line 121, in convert
calibre.ebooks.DRMError: This book has DRM!

[257.67] Shutdown starting...
[259.94] Shutdown complete, quitting...

@ElleKayEm
Copy link

How was this downloaded? DeDRM doesn't currently work with Kindle for Mac. If this is from Kindle for PC, you'll need to use calibre/DeDRM/KFX Input on the machine it was downloaded on in order retrieve the key for that.

@shahmatdotnet
Copy link

shahmatdotnet commented Feb 18, 2025

I've run into nearly this exact error listing on my Mac. In my case I entered the serial number for my Kindle Scribe and downloaded the .kfx directly from the Scribe onto my Mac to be processed. It looks like it tried to run my serial number as a key, failed, looked for Kindle for Mac to grab a key from it, also failed, and then ended.

I know DeDRM is installed correctly and working, as I previously downloaded a batch of books and converted them from .azw3 successfully. It's just choking on .kfx for some reason.

@ElleKayEm
Copy link

You have KFX Input installed?

@shahmatdotnet
Copy link

Yes, KFX Input is installed and enabled and the "Allow import of KFX format books from Kindles" setting is checked (although I also tried without checking that once and it still didn't work). I also get the lines above about Gather KFX-ZIP running so I'm pretty sure it's using KFX Input to try to read the files.

@ElleKayEm
Copy link

You're adding the books from D:\documents\Downloads\Items01 (if D: is your Kindle)
filename should be in the form of book_title_ASIN.kfx

Leave everything in its original folder structure.

@shahmatdotnet
Copy link

Amazon made me install a utility that just opens up a file manager to the Kindle storage so I couldn't get calibre to reference that path directly, and I've never been able to get calibre to connect directly to my Scribe as a device. However, I did notice that each book had a matching .sdr folder, so I copied both the .sdr folder and the .kfx file to my Mac desktop and ran calibre on that. It won't display the KFX format for some reason (not sure if the reader just doesn't know how to render it or if I need to tweak the KFX Input plugin some more) but I can convert to epub or mobi without problems.

Thank you for the advice!

@ElleKayEm
Copy link

Oh, sorry, I was looking at my Oasis plugged into a Windows machine and forgetting about the Scribe using MTP. To read KFX in the calibre ebook viewer, go to Preferences > Behavior and check KFX in the right column of formats to use the internal viewer.

@ShadowDrakken
Copy link

I'm having the same problem; the files start off as .azw files downloading using the Windows 10 Kindle App (ver 2.4.0 70904). Drag and drop into Calibre and they get unpacked as .KFX-ZIP, I have DeDRM 10.0.3 and KFX Input 2.19.0 installed, enabled, and configured per instructions and showing up in the file types, but attempting to open or convert the files gives the DRM message. .azw files that unpack into MOBI with DRM are able to remove DRM and convert just fine; so it's something specific to the KFX-ZIP :\

@hmartinez82
Copy link

Having the same issues here. I have Kfx Input and DeDRM plugins installed. I added my Paperwhite serial number to the DeDRM plugin configuration, but the books keep being imported as KFX-ZIP in my Calibre library :(

@ElleKayEm
Copy link

ElleKayEm commented Feb 19, 2025

Update to DeDRM 10.0.9: https://github.com/noDRM/DeDRM_tools/releases/tag/v10.0.9

@ElleKayEm
Copy link

ElleKayEm commented Feb 19, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants