Open phoniceus opened 1 year ago
For calibre 6, update to DeDRM 10.0.3: https://github.com/noDRM/DeDRM_tools/releases/tag/v10.0.3
I should add that I downloaded the epub file from my local library via OverDrive.
Thanks so much! It's working fine.
If you're all set, you can close the issue.
I am having the same issue, but I updated all the DeDRM plug ins and it still won't work.
Using calibre Qt style: True calibre Debug log calibre 6.10 embedded-python: True macOS-13.0.1-arm64-arm-64bit Darwin ('64bit', '') ('Darwin', '22.1.0', 'Darwin Kernel Version 22.1.0: Sun Oct 9 20:14:30 PDT 2022; root:xnu-8792.41.9~2/RELEASE_ARM64_T8103') Python 3.10.1 OSX: ('13.0.1', ('', '', ''), 'arm64') Interface language: None Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 50, 0) && DeDRM (10, 0, 3) && Package KFX (from KFX Input) (1, 50, 0) && KFX metadata reader (from KFX Input) (1, 50, 0) && KFX Input (1, 50, 0) calibre 6.10 embedded-python: True macOS-13.0.1-arm64-arm-64bit Darwin ('64bit', '') ('Darwin', '22.1.0', 'Darwin Kernel Version 22.1.0: Sun Oct 9 20:14:30 PDT 2022; root:xnu-8792.41.9~2/RELEASE_ARM64_T8103') Python 3.10.1 OSX: ('13.0.1', ('', '', ''), 'arm64') Interface language: None Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 50, 0) && DeDRM (10, 0, 3) && Package KFX (from KFX Input) (1, 50, 0) && KFX metadata reader (from KFX Input) (1, 50, 0) && KFX Input (1, 50, 0) QPA platform: cocoa devicePixelRatio: 2.0 logicalDpi: 72.0 x 72.0 physicalDpi: 127.50000191485789 x 127.50000191485789 [0.00] Starting up... [0.05] Showing splash screen... [0.18] splash screen shown [0.18] Initializing db... [0.18] db initialized [0.18] Constructing main UI... Screens currently in system: {'depth': 24, 'device_pixel_ratio': 2.0, 'geometry_in_logical_pixels': {'height': 900, 'width': 1440, 'x': 0, 'y': 0}, 'index_in_screens_list': 0, 'manufacturer': '', 'model': '', 'name': '', 'serial': '', 'size_in_logical_pixels': {'height': 900, 'width': 1440}, 'virtual_geometry': {'height': 900, 'width': 1440, 'x': 0, 'y': 0}} Restoring geometry for: jobs_dialog_geometry {'frame_geometry': {'height': 362, 'width': 372, 'x': 824, 'y': 385}, 'full_screened': False, 'geometry': {'height': 334, 'width': 372, 'x': 824, 'y': 413}, 'maximized': False, 'normal_geometry': {'height': 334, 'width': 372, 'x': 824, 'y': 413}, 'screen': {'depth': 24, 'device_pixel_ratio': 2.0, 'geometry_in_logical_pixels': {'height': 900, 'width': 1440, 'x': 0, 'y': 0}, 'index_in_screens_list': 0, 'manufacturer': '', 'model': '', 'name': '', 'serial': '', 'size_in_logical_pixels': {'height': 900, 'width': 1440}, 'virtual_geometry': {'height': 900, 'width': 1440, 'x': 0, 'y': 0}}} Matching screen: {'depth': 24, 'device_pixel_ratio': 2.0, 'geometry_in_logical_pixels': {'height': 900, 'width': 1440, 'x': 0, 'y': 0}, 'index_in_screens_list': 0, 'manufacturer': '', 'model': '', 'name': '', 'serial': '', 'size_in_logical_pixels': {'height': 900, 'width': 1440}, 'virtual_geometry': {'height': 900, 'width': 1440, 'x': 0, 'y': 0}} Setting widget geometry to: {'height': 334, 'width': 372, 'x': 824, 'y': 413} Restoring geometry for: calibre_main_window_geometry {'frame_geometry': {'height': 505, 'width': 1027, 'x': 0, 'y': 25}, 'full_screened': False, 'geometry': {'height': 477, 'width': 1027, 'x': 0, 'y': 53}, 'maximized': False, 'normal_geometry': {'height': 477, 'width': 1027, 'x': 0, 'y': 53}, 'screen': {'depth': 24, 'device_pixel_ratio': 2.0, 'geometry_in_logical_pixels': {'height': 900, 'width': 1440, 'x': 0, 'y': 0}, 'index_in_screens_list': 0, 'manufacturer': '', 'model': '', 'name': '', 'serial': '', 'size_in_logical_pixels': {'height': 900, 'width': 1440}, 'virtual_geometry': {'height': 900, 'width': 1440, 'x': 0, 'y': 0}}} Matching screen: {'depth': 24, 'device_pixel_ratio': 2.0, 'geometry_in_logical_pixels': {'height': 900, 'width': 1440, 'x': 0, 'y': 0}, 'index_in_screens_list': 0, 'manufacturer': '', 'model': '', 'name': '', 'serial': '', 'size_in_logical_pixels': {'height': 900, 'width': 1440}, 'virtual_geometry': {'height': 900, 'width': 1440, 'x': 0, 'y': 0}} Setting widget geometry to: {'height': 477, 'width': 1027, 'x': 0, 'y': 53} [0.56] main UI initialized... [0.56] Hiding splash screen Starting QuickView 2022-12-31 18:19:20.430 calibre-debug[1926:59234] +[CATransaction synchronize] called within transaction 2022-12-31 18:19:26.759 calibre-debug[1926:59234] +[CATransaction synchronize] called within transaction 2022-12-31 18:19:26.781 calibre-debug[1926:59234] -[NSNull length]: unrecognized selector sent to instance 0x1efb56980 2022-12-31 18:19:26.782 calibre-debug[1926:59234] -[NSNull length]: unrecognized selector sent to instance 0x1efb56980 2022-12-31 18:19:26.787 calibre-debug[1926:59234] -[NSNull length]: unrecognized selector sent to instance 0x1efb56980 2022-12-31 18:19:26.787 calibre-debug[1926:59234] -[NSNull length]: unrecognized selector sent to instance 0x1efb56980 2022-12-31 18:19:28.512 calibre-debug[1926:59234] -[NSNull length]: unrecognized selector sent to instance 0x1efb56980 Gather KFX-ZIP (from KFX Input) 1.50.0: Importing /Volumes/Kindle/documents/Stella Maris_B09T997533.kfx Gather KFX-ZIP (from KFX Input): Gathered 4 file(s) as /var/folders/xj/461hnbtx02v9dnvwmv6k342m0000gn/C/calibre_6.10.0_tmp_jz4wnj_4/6273xo3m.kfx-zip DeDRM v10.0.3: Trying to decrypt 6273xo3m.kfx-zip Using Library AlfCrypto Python Decrypting KFX-ZIP ebook: 6273xo3m Found 1 keys to try after 0.0 seconds Decrypting KFX DRM voucher: voucher Traceback (most recent call last): File "/Users/blake/Library/Preferences/calibre/plugins/DeDRM.zip/kfxdedrm.py", line 105, in decrypt_voucher voucher.decryptvoucher() File "/Users/blake/Library/Preferences/calibre/plugins/DeDRM.zip/ion.py", line 886, in decryptvoucher b = pkcs7unpad(b, 16) File "/Users/blake/Library/Preferences/calibre/plugins/DeDRM.zip/ion.py", line 762, in pkcs7unpad _assert(paddinglen > 0 and paddinglen <= blocklen, "Incorrect padding - Wrong key") File "/Users/blake/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/blake/Library/Preferences/calibre/plugins/DeDRM.zip/kfxdedrm.py", line 105, in decrypt_voucher voucher.decryptvoucher() File "/Users/blake/Library/Preferences/calibre/plugins/DeDRM.zip/ion.py", line 886, in decryptvoucher b = pkcs7unpad(b, 16) File "/Users/blake/Library/Preferences/calibre/plugins/DeDRM.zip/ion.py", line 762, in pkcs7unpad _assert(paddinglen > 0 and paddinglen <= blocklen, "Incorrect padding - Wrong key") File "/Users/blake/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/blake/Library/Preferences/calibre/plugins/DeDRM.zip/k4mobidedrm.py", line 261, in GetDecryptedBook mb.processBook(totalpids) File "/Users/blake/Library/Preferences/calibre/plugins/DeDRM.zip/kfxdedrm.py", line 67, in processBook self.decrypt_voucher(totalpids) File "/Users/blake/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 178, 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) 1.50.0: Packaging /var/folders/xj/461hnbtx02v9dnvwmv6k342m0000gn/C/calibre_6.10.0_tmp_jz4wnj_4/6273xo3m.kfx-zip Processing container: CR!11RE2H7DNX38KFCA6R5PNMXD8AY4.kfx Processing container: Stella Maris_B09T997533.kfx Running file type plugin Package KFX (from KFX Input) failed with traceback: Traceback (most recent call last): File "calibre/customize/ui.py", line 178, in _run_filetype_plugins File "calibre_plugins.kfx_input.package_filetype", line 21, in run return self.run_kfx(path_to_ebook) File "calibre_plugins.kfx_input.package_filetype", line 32, in run_kfx kfx_data = YJ_Book(path_to_ebook).convert_to_single_kfx() File "calibre_plugins.kfx_input.kfxlib.yj_book", line 83, in convert_to_single_kfx self.decode_book() File "calibre_plugins.kfx_input.kfxlib.yj_book", line 210, in decode_book container = self.get_container(datafile) File "calibre_plugins.kfx_input.kfxlib.yj_book", line 317, 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 Stella Maris_B09T997533.kfx has DRM and cannot be converted KFX metadata reader (from KFX Input) activated for /var/folders/xj/461hnbtx02v9dnvwmv6k342m0000gn/C/calibre_6.10.0_tmp_jz4wnj_4/u1nv_ol0_add_books/0/Stella Maris_B09T997533.kfx-zip [3.05] splash screen hidden [3.05] Started up in 3.05 seconds with 0 books
{'bsd_drives': {'main': '/dev/disk4s1'}, 'drives': {'main': '/Volumes/Kindle'}, 'mount_map': {'/dev/disk1s1': '/System/Volumes/iSCPreboot', '/dev/disk1s2': '/System/Volumes/xarts', '/dev/disk1s3': '/System/Volumes/Hardware', '/dev/disk3s1s1': '/', '/dev/disk3s2': '/System/Volumes/Preboot', '/dev/disk3s4': '/System/Volumes/Update', '/dev/disk3s5': '/System/Volumes/Data', '/dev/disk3s6': '/System/Volumes/VM', '/dev/disk4s1': '/Volumes/Kindle', '/dev/disk5s2': '/Volumes/Blake I Collier', '/dev/disk7s1': '/Volumes/calibre-6.10.0', 'devfs': '/dev', 'map auto_home': '/System/Volumes/Data/home', 'msdos://disk4s1/Kindle': '/Volumes/Kindle'}} 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 Job: 0 Get device information finished No details available. Job: 1 Set library information finished No details available. DEBUG: 0.6 USBMS: scan from root False /Volumes/Kindle/documents Added Stella Maris to db in: 0.0 Added 1 books in 0.6 seconds qt.pointer.dispatch: delivering touch release to same window QWindow(0x0) not QWidgetWindow(0x600000c28d20, name="EbookViewerClassWindow") qt.pointer.dispatch: skipping QEventPoint(id=1 ts=0 pos=0,0 scn=724.11,444.996 gbl=724.11,444.996 Released ellipse=(1x1 ∡ 0) vel=0,0 press=-724.11,-444.996 last=-724.11,-444.996 Δ 724.11,444.996) : no target window DEBUG: 6.8 USBMS: count found in cache: 418, count of files in metadata: 418, need_sync: False DEBUG: 6.8 USBMS: Finished fetching list of books from device. oncard= None DEBUG: 6.8 USBMS: Fetching list of books from device. Device= KINDLE2 oncard= carda DEBUG: 6.8 USBMS: Fetching list of books from device. Device= KINDLE2 oncard= cardb DeviceJob: 2 Get list of books on device done, calling callback DeviceJob: metadata_downloaded: Starting set_books_in_library DeviceJob: set_books_in_library: books to process= 418 DeviceJob: set_books_in_library finished: time= 0.0048198699951171875 DeviceJob: metadata_downloaded: updating views DeviceJob: metadata_downloaded: syncing DeviceJob: metadata_downloaded: refreshing ondevice 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. Worker Launch took: 0.01 seconds Restoring geometry for: convert_single_dialog_geom {'frame_geometry': {'height': 725, 'width': 1370, 'x': 0, 'y': 25}, 'full_screened': False, 'geometry': {'height': 697, 'width': 1370, 'x': 0, 'y': 53}, 'maximized': False, 'normal_geometry': {'height': 697, 'width': 1370, 'x': 0, 'y': 53}, 'screen': {'depth': 24, 'device_pixel_ratio': 2.0, 'geometry_in_logical_pixels': {'height': 900, 'width': 1440, 'x': 0, 'y': 0}, 'index_in_screens_list': 0, 'manufacturer': '', 'model': '', 'name': '', 'serial': '', 'size_in_logical_pixels': {'height': 900, 'width': 1440}, 'virtual_geometry': {'height': 900, 'width': 1440, 'x': 0, 'y': 0}}} Matching screen: {'depth': 24, 'device_pixel_ratio': 2.0, 'geometry_in_logical_pixels': {'height': 900, 'width': 1440, 'x': 0, 'y': 0}, 'index_in_screens_list': 0, 'manufacturer': '', 'model': '', 'name': '', 'serial': '', 'size_in_logical_pixels': {'height': 900, 'width': 1440}, 'virtual_geometry': {'height': 900, 'width': 1440, 'x': 0, 'y': 0}} Setting widget geometry to: {'height': 697, 'width': 1370, 'x': 0, 'y': 53} Saving geometry for: convert_single_dialog_geom {'frame_geometry': {'height': 725, 'width': 1370, 'x': 0, 'y': 25}, 'full_screened': False, 'geometry': {'height': 697, 'width': 1370, 'x': 0, 'y': 53}, 'maximized': False, 'normal_geometry': {'height': 697, 'width': 1370, 'x': 0, 'y': 53}, 'screen': {'depth': 24, 'device_pixel_ratio': 2.0, 'geometry_in_logical_pixels': {'height': 900, 'width': 1440, 'x': 0, 'y': 0}, 'index_in_screens_list': 0, 'manufacturer': '', 'model': '', 'name': '', 'serial': '', 'size_in_logical_pixels': {'height': 900, 'width': 1440}, 'virtual_geometry': {'height': 900, 'width': 1440, 'x': 0, 'y': 0}}} Worker Launch took: 0.03 seconds Job: 4 Convert book 1 of 1 (Stella Maris) finished Convert book 1 of 1 (Stella Maris) DeDRM v10.0.3: Trying to decrypt puhw2zdb.kfx-zip Using Library AlfCrypto Python Decrypting KFX-ZIP ebook: puhw2zdb Found 1 keys to try after 0.0 seconds Decrypting KFX DRM voucher: voucher Traceback (most recent call last): File "/Users/blake/Library/Preferences/calibre/plugins/DeDRM.zip/kfxdedrm.py", line 105, in decrypt_voucher voucher.decryptvoucher() File "/Users/blake/Library/Preferences/calibre/plugins/DeDRM.zip/ion.py", line 886, in decryptvoucher b = pkcs7unpad(b, 16) File "/Users/blake/Library/Preferences/calibre/plugins/DeDRM.zip/ion.py", line 762, in pkcs7unpad _assert(paddinglen > 0 and paddinglen <= blocklen, "Incorrect padding - Wrong key") File "/Users/blake/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/blake/Library/Preferences/calibre/plugins/DeDRM.zip/kfxdedrm.py", line 105, in decrypt_voucher voucher.decryptvoucher() File "/Users/blake/Library/Preferences/calibre/plugins/DeDRM.zip/ion.py", line 886, in decryptvoucher b = pkcs7unpad(b, 16) File "/Users/blake/Library/Preferences/calibre/plugins/DeDRM.zip/ion.py", line 762, in pkcs7unpad _assert(paddinglen > 0 and paddinglen <= blocklen, "Incorrect padding - Wrong key") File "/Users/blake/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/blake/Library/Preferences/calibre/plugins/DeDRM.zip/k4mobidedrm.py", line 261, in GetDecryptedBook mb.processBook(totalpids) File "/Users/blake/Library/Preferences/calibre/plugins/DeDRM.zip/kfxdedrm.py", line 67, in processBook self.decrypt_voucher(totalpids) File "/Users/blake/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 178, 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
Conversion options changed from defaults:
cover: '/var/folders/xj/461hnbtx02v9dnvwmv6k342m0000gn/C/calibre_6.10.0_tmp_jz4wnj_4/8mus81_u.jpeg'
output_profile: 'kindle_pw3'
read_metadata_from_opf: '/var/folders/xj/461hnbtx02v9dnvwmv6k342m0000gn/C/calibre_6.10.0_tmp_jz4wnj_4/3g7mtl3k.opf'
verbose: 2
Resolved conversion options
calibre version: 6.10.0
{'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/xj/461hnbtx02v9dnvwmv6k342m0000gn/C/calibre_6.10.0_tmp_jz4wnj_4/8mus81_u.jpeg',
'debug_pipeline': None,
'dehyphenate': True,
'delete_blank_paragraphs': True,
'disable_font_rescaling': False,
'dont_split_on_page_breaks': False,
'duplicate_links_in_toc': False,
'embed_all_fonts': False,
'embed_font_family': None,
'enable_heuristics': False,
'epub_flatten': False,
'epub_inline_toc': False,
'epub_toc_at_end': False,
'epub_version': '2',
'expand_css': False,
'extra_css': None,
'extract_to': None,
'filter_css': '',
'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 0x10cb0dba0>,
'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.KindlePaperWhite3Output object at 0x10cb0c400>,
'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': '/var/folders/xj/461hnbtx02v9dnvwmv6k342m0000gn/C/calibre_6.10.0_tmp_jz4wnj_4/3g7mtl3k.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': '[]',
'unsmarten_punctuation': False,
'unwrap_lines': True,
'use_auto_toc': False,
'verbose': 2}
DeDRM v10.0.3: Trying to decrypt puhw2zdb.kfx-zip
Decrypting KFX-ZIP ebook: puhw2zdb
Found 1 keys to try after 0.0 seconds
Decrypting KFX DRM voucher: voucher
Traceback (most recent call last):
File "/Users/blake/Library/Preferences/calibre/plugins/DeDRM.zip/kfxdedrm.py", line 105, in decrypt_voucher
voucher.decryptvoucher()
File "/Users/blake/Library/Preferences/calibre/plugins/DeDRM.zip/ion.py", line 886, in decryptvoucher
b = pkcs7unpad(b, 16)
File "/Users/blake/Library/Preferences/calibre/plugins/DeDRM.zip/ion.py", line 762, in pkcs7unpad
_assert(paddinglen > 0 and paddinglen <= blocklen, "Incorrect padding - Wrong key")
File "/Users/blake/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/blake/Library/Preferences/calibre/plugins/DeDRM.zip/kfxdedrm.py", line 105, in decrypt_voucher
voucher.decryptvoucher()
File "/Users/blake/Library/Preferences/calibre/plugins/DeDRM.zip/ion.py", line 886, in decryptvoucher
b = pkcs7unpad(b, 16)
File "/Users/blake/Library/Preferences/calibre/plugins/DeDRM.zip/ion.py", line 762, in pkcs7unpad
_assert(paddinglen > 0 and paddinglen <= blocklen, "Incorrect padding - Wrong key")
File "/Users/blake/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.0 seconds
No k4Mac kindle-info/rainier/kinf2011 files have been found.
DeDRM v10.0.3: 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 957, in KindleMobiDecrypt
book = k4mobidedrm.GetDecryptedBook(path_to_ebook,kindleDatabases,androidFiles,serials,pids,self.starttime)
File "/Users/blake/Library/Preferences/calibre/plugins/DeDRM.zip/k4mobidedrm.py", line 261, in GetDecryptedBook
mb.processBook(totalpids)
File "/Users/blake/Library/Preferences/calibre/plugins/DeDRM.zip/kfxdedrm.py", line 67, in processBook
self.decrypt_voucher(totalpids)
File "/Users/blake/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 178, 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.0 seconds. Read the FAQs at noDRM's repository: https://github.com/noDRM/DeDRM_tools/blob/master/FAQs.md
InputFormatPlugin: KFX Input running
on /var/folders/xj/461hnbtx02v9dnvwmv6k342m0000gn/C/calibre_6.10.0_tmp_jz4wnj_4/puhw2zdb.kfx-zip
Software versions: KFX Input 1.50.0, calibre 6.10, macOS-13.0.1-arm64-arm-64bit
KFX Input plugin help is available at https://www.mobileread.com/forums/showthread.php?t=291290
Converting /var/folders/xj/461hnbtx02v9dnvwmv6k342m0000gn/C/calibre_6.10.0_tmp_jz4wnj_4/puhw2zdb.kfx-zip
Processing container: CR!11RE2H7DNX38KFCA6R5PNMXD8AY4.kfx
Processing container: Stella Maris_B09T997533.kfx
Traceback (most recent call last):
File "calibre_plugins.kfx_input.__init__", line 105, in convert
File "calibre_plugins.kfx_input.kfxlib.yj_book", line 210, in decode_book
File "calibre_plugins.kfx_input.kfxlib.yj_book", line 317, in get_container
calibre_plugins.kfx_input.kfxlib.utilities.KFXDRMError: Book container Stella Maris_B09T997533.kfx has DRM and cannot be converted
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "runpy.py", line 196, in _run_module_as_main
File "runpy.py", line 86, in _run_code
File "site.py", line 41, in <module>
File "site.py", line 37, 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 1108, in run
File "calibre/customize/conversion.py", line 242, in __call__
File "calibre_plugins.kfx_input.__init__", line 125, in convert
calibre.ebooks.DRMError: This book has DRM!
Looks like the latest KFX format which cannot be decrypted. See this post for methods of getting books in formats that can be decrypted: https://www.mobileread.com/forums/showthread.php?t=283371
Also see Mac specific info: https://www.mobileread.com/forums/showpost.php?p=3819708&postcount=508
Calibre and DeDRM have suddenly stopped working. I am using a MacBook Pro, OS V. Ventura 6.10.0, Calibre V. 6.10.0 and DeDRM v. 7.2.1. I keep getting the error message that this book has DRM and can't be opened. I ran Calibre in deBug mode with the following result:
Blacklisting the DeDRM plugin as it is too old and causes crashes Using calibre Qt style: True calibre Debug log calibre 6.10 embedded-python: True macOS-13.0.1-arm64-arm-64bit Darwin ('64bit', '') ('Darwin', '22.1.0', 'Darwin Kernel Version 22.1.0: Sun Oct 9 20:15:09 PDT 2022; root:xnu-8792.41.9~2/RELEASE_ARM64_T6000') Python 3.10.1 OSX: ('13.0.1', ('', '', ''), 'arm64') Interface language: None Successfully initialized third party plugins: DeDRM (7, 2, 1) calibre 6.10 embedded-python: True macOS-13.0.1-arm64-arm-64bit Darwin ('64bit', '') ('Darwin', '22.1.0', 'Darwin Kernel Version 22.1.0: Sun Oct 9 20:15:09 PDT 2022; root:xnu-8792.41.9~2/RELEASE_ARM64_T6000') Python 3.10.1 OSX: ('13.0.1', ('', '', ''), 'arm64') Interface language: None Successfully initialized third party plugins: DeDRM (7, 2, 1) QPA platform: cocoa devicePixelRatio: 2.0 logicalDpi: 72.0 x 72.0 physicalDpi: 127.50000191485789 x 127.50000191485789 [0.00] Starting up... [0.12] Showing splash screen... [0.26] splash screen shown [0.26] Initializing db... [0.27] db initialized [0.27] Constructing main UI... Screens currently in system: {'depth': 24, 'device_pixel_ratio': 2.0, 'geometry_in_logical_pixels': {'height': 982, 'width': 1512, 'x': 0, 'y': 0}, 'index_in_screens_list': 0, 'manufacturer': '', 'model': '', 'name': '', 'serial': '', 'size_in_logical_pixels': {'height': 982, 'width': 1512}, 'virtual_geometry': {'height': 982, 'width': 1512, 'x': 0, 'y': 0}} Restoring geometry for: calibre_main_window_geometry {'frame_geometry': {'height': 945, 'width': 1512, 'x': 0, 'y': 37}, 'full_screened': True, 'geometry': {'height': 945, 'width': 1512, 'x': 0, 'y': 37}, 'maximized': False, 'normal_geometry': {'height': 945, 'width': 1512, 'x': 0, 'y': 37}, 'screen': {'depth': 24, 'device_pixel_ratio': 2.0, 'geometry_in_logical_pixels': {'height': 982, 'width': 1512, 'x': 0, 'y': 0}, 'index_in_screens_list': 0, 'manufacturer': '', 'model': '', 'name': '', 'serial': '', 'size_in_logical_pixels': {'height': 982, 'width': 1512}, 'virtual_geometry': {'height': 982, 'width': 1512, 'x': 0, 'y': 0}}} Matching screen: {'depth': 24, 'device_pixel_ratio': 2.0, 'geometry_in_logical_pixels': {'height': 982, 'width': 1512, 'x': 0, 'y': 0}, 'index_in_screens_list': 0, 'manufacturer': '', 'model': '', 'name': '', 'serial': '', 'size_in_logical_pixels': {'height': 982, 'width': 1512}, 'virtual_geometry': {'height': 982, 'width': 1512, 'x': 0, 'y': 0}} Setting widget geometry to: {'height': 945, 'width': 1512, 'x': 0, 'y': 37} Restoring widget to full screen [0.65] main UI initialized... [0.65] Hiding splash screen [0.67] splash screen hidden [0.67] Started up in 0.67 seconds with 68 books Starting QuickView 2022-12-30 15:59:37.881 calibre-debug[30610:5489122] +[CATransaction synchronize] called within transaction Blacklisting the DeDRM plugin as it is too old and causes crashes Added The Guest List to db in: 0.0 Added 1 books in 0.4 seconds
Don't know what to do. Please help.
Phoniceus