noDRM / DeDRM_tools

DeDRM tools for ebooks
7.35k stars 323 forks source link

After kindle for PC was updated today, can't remove DRM. #592

Closed luigirovatti closed 3 months ago

luigirovatti commented 3 months ago

Question / bug report

I let kindle for pc update itself, then downloaded one ebook from the ones i bought on the windows app. Then i picked up the file and transferred it to calibre. It showed as kfx-zip. I have the latest nodrm drm plugin 10.0.9. I run calibre 7.16.0 on windows 11. I also have kfx input plugin 2.15. I don't know if you have the same issue, the update was made in the last hours.

However, from my contents and devices, it's still possible to download azw3. Just not from kindle for pc.

Which version of Calibre are you running?

7.16

Which version of the DeDRM plugin are you running?

10.0.9

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

5.16.9

Log output

Converti libro 1 di 1 (The Lost Colony Ship: A Wild Military Science Fiction Adventure (Aeon 14: The Orion War))
DeDRM v10.0.9: Trying to decrypt wpd7ivhe.kfx-zip
Decrypting KFX-ZIP ebook: wpd7ivhe
Got DSN key from database default_key
Got DSN key from database default_key_2
Found 2 keys to try after 0.5 seconds
Decrypting KFX DRM voucher: amzn1.drm-voucher.v1.8714d102-2d05-4e0e-846a-027f4b99fe57.voucher
Traceback (most recent call last):
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 105, in decrypt_voucher
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 1417, in parse
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 126, in _assert
Exception: Unknown type encountered in envelope, expected VoucherEnvelope
Traceback (most recent call last):
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 105, in decrypt_voucher
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 1417, in parse
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 126, in _assert
Exception: Unknown type encountered in envelope, expected VoucherEnvelope
Traceback (most recent call last):
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 105, in decrypt_voucher
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 1417, in parse
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 126, in _assert
Exception: Unknown type encountered in envelope, expected VoucherEnvelope
DeDRM v10.0.9: Failed to decrypt with error: Failed to decrypt KFX DRM voucher with any key
Traceback (most recent call last):
  File "calibre_plugins.dedrm.__init__", line 937, in KindleMobiDecrypt
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\k4mobidedrm.py", line 204, in GetDecryptedBook
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 68, in processBook
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 112, in decrypt_voucher
Exception: Failed to decrypt KFX DRM voucher with any key
DeDRM v10.0.9: Looking for new default Kindle Key after 0.5 seconds
searching for kinfoFiles in C:\Users\luigi\AppData\Local
Found K4PC 1.25+ kinf2018 file: C:\Users\luigi\AppData\Local\Amazon\Kindle\storage\.kinf2018
Decrypted key file using IDString '3699311243' and UserName 'luigi'
DeDRM v10.0.9: Found 1 new key
Decrypting KFX-ZIP ebook: wpd7ivhe
Got DSN key from database key_0
Found 1 keys to try after 0.8 seconds
Decrypting KFX DRM voucher: amzn1.drm-voucher.v1.8714d102-2d05-4e0e-846a-027f4b99fe57.voucher
Traceback (most recent call last):
  File "calibre_plugins.dedrm.__init__", line 937, in KindleMobiDecrypt
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\k4mobidedrm.py", line 204, in GetDecryptedBook
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 68, in processBook
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 112, in decrypt_voucher
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 "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 105, in decrypt_voucher
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 1417, in parse
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 126, in _assert
Exception: Unknown type encountered in envelope, expected VoucherEnvelope
Traceback (most recent call last):
  File "calibre_plugins.dedrm.__init__", line 937, in KindleMobiDecrypt
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\k4mobidedrm.py", line 204, in GetDecryptedBook
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 68, in processBook
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 112, in decrypt_voucher
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 "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 105, in decrypt_voucher
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 1417, in parse
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 126, in _assert
Exception: Unknown type encountered in envelope, expected VoucherEnvelope
Traceback (most recent call last):
  File "calibre_plugins.dedrm.__init__", line 937, in KindleMobiDecrypt
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\k4mobidedrm.py", line 204, in GetDecryptedBook
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 68, in processBook
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 112, in decrypt_voucher
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_plugins.dedrm.__init__", line 974, in KindleMobiDecrypt
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\k4mobidedrm.py", line 204, in GetDecryptedBook
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 68, in processBook
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 112, in decrypt_voucher
Exception: Failed to decrypt KFX DRM voucher with any key
DeDRM v10.0.9: Ultimately failed to decrypt after 0.8 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 937, in KindleMobiDecrypt
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\k4mobidedrm.py", line 204, in GetDecryptedBook
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 68, in processBook
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 112, in decrypt_voucher
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 199, in _run_filetype_plugins
  File "calibre_plugins.dedrm.__init__", line 1039, in run
  File "calibre_plugins.dedrm.__init__", line 990, in KindleMobiDecrypt
calibre_plugins.dedrm.DeDRMError: DeDRM v10.0.9: Ultimately failed to decrypt after 0.8 seconds. Read the FAQs at noDRM's repository: https://github.com/noDRM/DeDRM_tools/blob/master/FAQs.md
Conversion options changed from defaults:
  disable_font_rescaling: True
  expand_css: True
  output_profile: 'generic_eink'
  verbose: 2
  embed_all_fonts: True
  filter_css: 'font-family,'
  read_metadata_from_opf: 'C:\\Users\\luigi\\AppData\\Local\\Temp\\calibre_lcbq704l\\_b1ne7ca.opf'
  cover: 'C:\\Users\\luigi\\AppData\\Local\\Temp\\calibre_lcbq704l\\t2r6ss42.jpeg'
  remove_paragraph_spacing: True
Resolved conversion options
calibre version: 7.16.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': 'C:\\Users\\luigi\\AppData\\Local\\Temp\\calibre_lcbq704l\\t2r6ss42.jpeg',
 'debug_pipeline': None,
 'dehyphenate': True,
 'delete_blank_paragraphs': True,
 'disable_font_rescaling': True,
 'dont_split_on_page_breaks': False,
 'duplicate_links_in_toc': False,
 'embed_all_fonts': True,
 'embed_font_family': None,
 'enable_heuristics': False,
 'epub_flatten': False,
 'epub_inline_toc': False,
 'epub_max_image_size': 'none',
 'epub_toc_at_end': False,
 'epub_version': '2',
 'expand_css': True,
 'extra_css': None,
 'extract_to': None,
 'filter_css': 'font-family,',
 'fix_indents': True,
 'flow_size': 260,
 'font_size_mapping': None,
 'format_scene_breaks': True,
 'html_unwrap_factor': 0.4,
 'input_encoding': None,
 'input_profile': <calibre.customize.profiles.InputProfile object at 0x000002BE642FA8D0>,
 '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_default_epub_cover': False,
 'no_inline_navbars': False,
 'no_svg_cover': False,
 'output_profile': <calibre.customize.profiles.GenericEink object at 0x000002BE6430E1D0>,
 'page_breaks_before': '/',
 'prefer_metadata_cover': False,
 'preserve_cover_aspect_ratio': False,
 'pretty_print': True,
 'pubdate': None,
 'publisher': None,
 'rating': None,
 'read_metadata_from_opf': 'C:\\Users\\luigi\\AppData\\Local\\Temp\\calibre_lcbq704l\\_b1ne7ca.opf',
 'remove_fake_margins': True,
 'remove_first_image': False,
 'remove_paragraph_spacing': True,
 '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': '[]',
 'unsmarten_punctuation': False,
 'unwrap_lines': True,
 'use_auto_toc': False,
 'verbose': 2}
DeDRM v10.0.9: Trying to decrypt wpd7ivhe.kfx-zip
Decrypting KFX-ZIP ebook: wpd7ivhe
Got DSN key from database default_key
Got DSN key from database default_key_2
Found 2 keys to try after 0.0 seconds
Decrypting KFX DRM voucher: amzn1.drm-voucher.v1.8714d102-2d05-4e0e-846a-027f4b99fe57.voucher
Traceback (most recent call last):
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 105, in decrypt_voucher
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 1417, in parse
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 126, in _assert
Exception: Unknown type encountered in envelope, expected VoucherEnvelope
Traceback (most recent call last):
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 105, in decrypt_voucher
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 1417, in parse
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 126, in _assert
Exception: Unknown type encountered in envelope, expected VoucherEnvelope
Traceback (most recent call last):
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 105, in decrypt_voucher
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 1417, in parse
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 126, in _assert
Exception: Unknown type encountered in envelope, expected VoucherEnvelope
DeDRM v10.0.9: Failed to decrypt with error: Failed to decrypt KFX DRM voucher with any key
Traceback (most recent call last):
  File "calibre_plugins.dedrm.__init__", line 937, in KindleMobiDecrypt
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\k4mobidedrm.py", line 204, in GetDecryptedBook
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 68, in processBook
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 112, in decrypt_voucher
Exception: Failed to decrypt KFX DRM voucher with any key
DeDRM v10.0.9: Looking for new default Kindle Key after 0.0 seconds
searching for kinfoFiles in C:\Users\luigi\AppData\Local
Found K4PC 1.25+ kinf2018 file: C:\Users\luigi\AppData\Local\Amazon\Kindle\storage\.kinf2018
Decrypted key file using IDString '3699311243' and UserName 'luigi'
DeDRM v10.0.9: Found 1 new key
Decrypting KFX-ZIP ebook: wpd7ivhe
Got DSN key from database key_0
Found 1 keys to try after 0.3 seconds
Decrypting KFX DRM voucher: amzn1.drm-voucher.v1.8714d102-2d05-4e0e-846a-027f4b99fe57.voucher
Traceback (most recent call last):
  File "calibre_plugins.dedrm.__init__", line 937, in KindleMobiDecrypt
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\k4mobidedrm.py", line 204, in GetDecryptedBook
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 68, in processBook
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 112, in decrypt_voucher
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 "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 105, in decrypt_voucher
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 1417, in parse
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 126, in _assert
Exception: Unknown type encountered in envelope, expected VoucherEnvelope
Traceback (most recent call last):
  File "calibre_plugins.dedrm.__init__", line 937, in KindleMobiDecrypt
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\k4mobidedrm.py", line 204, in GetDecryptedBook
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 68, in processBook
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 112, in decrypt_voucher
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 "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 105, in decrypt_voucher
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 1417, in parse
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 126, in _assert
Exception: Unknown type encountered in envelope, expected VoucherEnvelope
Traceback (most recent call last):
  File "calibre_plugins.dedrm.__init__", line 937, in KindleMobiDecrypt
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\k4mobidedrm.py", line 204, in GetDecryptedBook
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 68, in processBook
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 112, in decrypt_voucher
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_plugins.dedrm.__init__", line 974, in KindleMobiDecrypt
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\k4mobidedrm.py", line 204, in GetDecryptedBook
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 68, in processBook
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 112, in decrypt_voucher
Exception: Failed to decrypt KFX DRM voucher with any key
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 937, in KindleMobiDecrypt
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\k4mobidedrm.py", line 204, in GetDecryptedBook
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 68, in processBook
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 112, in decrypt_voucher
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 199, in _run_filetype_plugins
  File "calibre_plugins.dedrm.__init__", line 1039, in run
  File "calibre_plugins.dedrm.__init__", line 990, in KindleMobiDecrypt
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
InputFormatPlugin: KFX Input running
on C:\Users\luigi\AppData\Local\Temp\calibre_lcbq704l\wpd7ivhe.kfx-zip
Software versions: KFX Input 2.15.0, calibre 7.16, Windows-10-10.0.22000-SP0
KFX Input plugin help is available at https://www.mobileread.com/forums/showthread.php?t=291290
Converting C:\Users\luigi\AppData\Local\Temp\calibre_lcbq704l\wpd7ivhe.kfx-zip
Processing container: B01M29901Q_EBOK.azw
Traceback (most recent call last):
  File "calibre_plugins.kfx_input.__init__", line 102, in convert
  File "calibre_plugins.kfx_input.kfxlib.yj_book", line 212, in decode_book
  File "calibre_plugins.kfx_input.kfxlib.yj_book", line 321, in get_container
calibre_plugins.kfx_input.kfxlib.utilities.KFXDRMError: Book container B01M29901Q_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 83, in <module>
  File "site.py", line 78, in main
  File "site.py", line 50, in run_entry_point
  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 1129, in run
  File "calibre\customize\conversion.py", line 245, in __call__
  File "calibre_plugins.kfx_input.__init__", line 122, in convert
calibre.ebooks.DRMError: This book has DRM!
ElleKayEm commented 3 months ago

This was downloaded with Kindle for PC which is on the same computer and user as calibre/DeDRM?

luigirovatti commented 3 months ago

Yes to all of the above.

ElleKayEm commented 3 months ago

Let's see a debug log of adding the book to calibre.

luigirovatti commented 3 months ago
ApplicationPaletteChange event ignored
Using calibre Qt style: True
ApplicationPaletteChange event received
Traceback (most recent call last):
  File "calibre\gui2\ui.py", line 147, in __init__
  File "calibre\gui2\ui.py", line 165, in init_iaction
  File "calibre\customize\__init__.py", line 659, in load_actual_plugin
  File "importlib\__init__.py", line 126, in import_module
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "calibre\customize\zipplugin.py", line 198, in exec_module
  File "calibre\customize\zipplugin.py", line 194, in get_code
  File "calibre_plugins.savetoformat.savetoformataction", line 53
    print 'Default saving'
    ^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
EpubMerge: DEBUG: 2024-08-07 00:53:08,641: calibre_plugins.epubmerge.epubmerge_plugin(156): macmenuhack file_path:C:\Users\luigi\AppData\Roaming\calibre\plugins\fanficfare_macmenuhack.txt
FFF: DEBUG: 2024-08-07 00:53:08,685: calibre_plugins.fanficfare_plugin.fff_plugin(217): Plugin FanFicFare macmenuhack file_path:C:\Users\luigi\AppData\Roaming\calibre\plugins\fanficfare_macmenuhack.txt
calibre Log di debug
calibre 7.16  embedded-python: True
Windows-10-10.0.22000-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.22000')
Python 3.11.5
Windows: ('10', '10.0.22000', 'SP0', 'Multiprocessor Free')
Interface language: it
EXE path: C:\Program Files\Calibre2\calibre-debug.exe
Successfully initialized third party plugins: DeACSM (0, 0, 16) && Gather KFX-ZIP (from KFX Input) (2, 15, 0) && DeDRM (10, 0, 9) && Package KFX (from KFX Input) (2, 15, 0) && EpubMerge (3, 1, 0) && EpubSplit (3, 8, 0) && FanFicFare (4, 37, 0) && KFX metadata reader (from KFX Input) (2, 15, 0) && From KFX (2, 15, 0) && KFX Input (2, 15, 0) && KindleUnpack - The Plugin (0, 83, 1) && Save To Format (0, 0, 6)
calibre 7.16  embedded-python: True
Windows-10-10.0.22000-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.22000')
Python 3.11.5
Windows: ('10', '10.0.22000', 'SP0', 'Multiprocessor Free')
Interface language: it
EXE path: C:\Program Files\Calibre2\calibre-debug.exe
Successfully initialized third party plugins: DeACSM (0, 0, 16) && Gather KFX-ZIP (from KFX Input) (2, 15, 0) && DeDRM (10, 0, 9) && Package KFX (from KFX Input) (2, 15, 0) && EpubMerge (3, 1, 0) && EpubSplit (3, 8, 0) && FanFicFare (4, 37, 0) && KFX metadata reader (from KFX Input) (2, 15, 0) && From KFX (2, 15, 0) && KFX Input (2, 15, 0) && KindleUnpack - The Plugin (0, 83, 1) && Save To Format (0, 0, 6)
QPA platform: windows
devicePixelRatio: 1.0
logicalDpi: 96.0 x 96.0
physicalDpi: 81.55183946488295 x 81.64285714285714
[0.00] Starting up...
[0.00] Showing splash screen...
[0.17] splash screen shown
[0.17] Initializing db...
[0.19] db initialized
[0.19] Constructing main UI...
[2.36] GUI main window shown
[2.51] main UI initialized...
[2.51] Hiding splash screen
[6.48] splash screen hidden
[6.48] Started up in 6.48 seconds with 37 books
Gather KFX-ZIP (from KFX Input) 2.15.0: Importing C:/Users/luigi/Documents/My Kindle Content/B01M29901Q_EBOK/B01M29901Q_EBOK.azw
Gather KFX-ZIP (from KFX Input): Gathered 3 file(s) as C:\Users\luigi\AppData\Local\Temp\calibre_lfcnn45t\7em6kh70.kfx-zip
DeDRM v10.0.9: Trying to decrypt 7em6kh70.kfx-zip
Decrypting KFX-ZIP ebook: 7em6kh70
Got DSN key from database default_key
Got DSN key from database default_key_2
Found 2 keys to try after 0.5 seconds
Decrypting KFX DRM voucher: amzn1.drm-voucher.v1.8714d102-2d05-4e0e-846a-027f4b99fe57.voucher
Traceback (most recent call last):
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 105, in decrypt_voucher
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 1417, in parse
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 126, in _assert
Exception: Unknown type encountered in envelope, expected VoucherEnvelope
Traceback (most recent call last):
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 105, in decrypt_voucher
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 1417, in parse
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 126, in _assert
Exception: Unknown type encountered in envelope, expected VoucherEnvelope
Traceback (most recent call last):
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 105, in decrypt_voucher
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 1417, in parse
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 126, in _assert
Exception: Unknown type encountered in envelope, expected VoucherEnvelope
DeDRM v10.0.9: Failed to decrypt with error: Failed to decrypt KFX DRM voucher with any key
Traceback (most recent call last):
  File "calibre_plugins.dedrm.__init__", line 937, in KindleMobiDecrypt
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\k4mobidedrm.py", line 204, in GetDecryptedBook
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 68, in processBook
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 112, in decrypt_voucher
Exception: Failed to decrypt KFX DRM voucher with any key
DeDRM v10.0.9: Looking for new default Kindle Key after 0.5 seconds
searching for kinfoFiles in C:\Users\luigi\AppData\Local
Found K4PC 1.25+ kinf2018 file: C:\Users\luigi\AppData\Local\Amazon\Kindle\storage\.kinf2018
Decrypted key file using IDString '3699311243' and UserName 'luigi'
DeDRM v10.0.9: Found 1 new key
Decrypting KFX-ZIP ebook: 7em6kh70
Got DSN key from database key_0
Found 1 keys to try after 0.7 seconds
Decrypting KFX DRM voucher: amzn1.drm-voucher.v1.8714d102-2d05-4e0e-846a-027f4b99fe57.voucher
Traceback (most recent call last):
  File "calibre_plugins.dedrm.__init__", line 937, in KindleMobiDecrypt
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\k4mobidedrm.py", line 204, in GetDecryptedBook
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 68, in processBook
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 112, in decrypt_voucher
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 "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 105, in decrypt_voucher
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 1417, in parse
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 126, in _assert
Exception: Unknown type encountered in envelope, expected VoucherEnvelope
Traceback (most recent call last):
  File "calibre_plugins.dedrm.__init__", line 937, in KindleMobiDecrypt
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\k4mobidedrm.py", line 204, in GetDecryptedBook
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 68, in processBook
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 112, in decrypt_voucher
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 "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 105, in decrypt_voucher
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 1417, in parse
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 126, in _assert
Exception: Unknown type encountered in envelope, expected VoucherEnvelope
Traceback (most recent call last):
  File "calibre_plugins.dedrm.__init__", line 937, in KindleMobiDecrypt
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\k4mobidedrm.py", line 204, in GetDecryptedBook
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 68, in processBook
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 112, in decrypt_voucher
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_plugins.dedrm.__init__", line 974, in KindleMobiDecrypt
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\k4mobidedrm.py", line 204, in GetDecryptedBook
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 68, in processBook
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 112, in decrypt_voucher
Exception: Failed to decrypt KFX DRM voucher with any key
DeDRM v10.0.9: Ultimately failed to decrypt after 0.7 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 937, in KindleMobiDecrypt
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\k4mobidedrm.py", line 204, in GetDecryptedBook
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 68, in processBook
  File "C:\Users\luigi\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 112, in decrypt_voucher
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 199, in _run_filetype_plugins
  File "calibre_plugins.dedrm.__init__", line 1039, in run
  File "calibre_plugins.dedrm.__init__", line 990, in KindleMobiDecrypt
calibre_plugins.dedrm.DeDRMError: DeDRM v10.0.9: Ultimately failed to decrypt after 0.7 seconds. Read the FAQs at noDRM's repository: https://github.com/noDRM/DeDRM_tools/blob/master/FAQs.md
Package KFX (from KFX Input) 2.15.0: Packaging C:\Users\luigi\AppData\Local\Temp\calibre_lfcnn45t\7em6kh70.kfx-zip
Processing container: B01M29901Q_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 199, in _run_filetype_plugins
  File "calibre_plugins.kfx_input.package_filetype", line 23, in run
  File "calibre_plugins.kfx_input.package_filetype", line 34, in package_kfx
  File "calibre_plugins.kfx_input.kfxlib.yj_book", line 79, in convert_to_single_kfx
  File "calibre_plugins.kfx_input.kfxlib.yj_book", line 212, in decode_book
  File "calibre_plugins.kfx_input.kfxlib.yj_book", line 321, in get_container
calibre_plugins.kfx_input.kfxlib.utilities.KFXDRMError: Book container B01M29901Q_EBOK.azw has DRM and cannot be converted
KFX metadata reader (from KFX Input) activated for C:\Users\luigi\AppData\Local\Temp\calibre_lfcnn45t\uaqrgr47_add_books\0\B01M29901Q_EBOK.kfx-zip
ElleKayEm commented 3 months ago

Not sure what the issue is because that book should not have the hardened DRM that DeDRM cannot handle. If you can use one of the methods for downloading the book in non-kfx format, it will already be DRM-free.

luigirovatti commented 3 months ago

I just wanted to ask if there was anything I could've done to dedrm the ebook got through kindle for pc. It happened after the last update of the app, so I think it's a issue.

ElleKayEm commented 3 months ago

This has still been working with recent versions of Kindle for PC. What version do you have?

luigirovatti commented 3 months ago

2.4.1 (70946)

ElleKayEm commented 3 months ago

Could be that's the issue. The version which can currently still be downloaded from Amazon is 2.4.0 (KindleForPC-installer-2.4.70904.exe). That was reported as working with DeDRM 10.0.9 and KFX Input, but looks like yours updated to a newer version.

luigirovatti commented 3 months ago

What do you suggest? That i download 2.4.0 for now?

ElleKayEm commented 3 months ago

You could try that. Let us know if it works.

luigirovatti commented 3 months ago

Yeah, it works. It's obvious there's a discrepancy between the automatic update on the app and the version of the app downloadable from the website. I suggest you don't rely too much on that, but on the update.

ElleKayEm commented 3 months ago

Personally, I'm sticking with non-kfx and epubs from elsewhere.

luigirovatti commented 3 months ago

Thank you for your time. Feel free to close the question.

ElleKayEm commented 3 months ago

I cannot. You can go ahead.