apprenticeharper / DeDRM_tools

DeDRM tools for ebooks
14.53k stars 1.51k forks source link

DeDRM failed with "calibre.ebooks.DRMError: This book has DRM!" #1326

Open mgridley opened 4 years ago

mgridley commented 4 years ago

I've tried every solution and recommended workaround I could find but I keep getting the same error.

calibre Debug log calibre 4.23 embedded-python: True is64bit: True Darwin-19.6.0-x86_64-i386-64bit Darwin ('64bit', '') ('Darwin', '19.6.0', 'Darwin Kernel Version 19.6.0: Mon Aug 31 22:12:52 PDT 2020; root:xnu-6153.141.2~1/RELEASE_X86_64') Python 2.7.16 OSX: ('10.15.7', ('', '', ''), 'x86_64') Interface language: None Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 34, 0) && DeDRM (6, 8, 0) && Package KFX (from KFX Input) (1, 34, 0) && KFX metadata reader (from KFX Input) (1, 34, 0) && KFX Input (1, 34, 0) && Set KFX metadata (from KFX Output) (1, 44, 0) && KFX Output (1, 44, 0) calibre 4.23 embedded-python: True is64bit: True Darwin-19.6.0-x86_64-i386-64bit Darwin ('64bit', '') ('Darwin', '19.6.0', 'Darwin Kernel Version 19.6.0: Mon Aug 31 22:12:52 PDT 2020; root:xnu-6153.141.2~1/RELEASE_X86_64') Python 2.7.16 OSX: ('10.15.7', ('', '', ''), 'x86_64') Interface language: None Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 34, 0) && DeDRM (6, 8, 0) && Package KFX (from KFX Input) (1, 34, 0) && KFX metadata reader (from KFX Input) (1, 34, 0) && KFX Input (1, 34, 0) && Set KFX metadata (from KFX Output) (1, 44, 0) && KFX Output (1, 44, 0) devicePixelRatio: 2.0 logicalDpi: 72.0 x 72.0 physicalDpi: 129.000001937 x 129.000001937 Using calibre Qt style: True [0.00] Starting up... [0.02] Showing splash screen... [0.22] splash screen shown [0.22] Initializing db... [0.23] db initialized [0.23] Constructing main UI... [0.95] main UI initialized... [0.95] Hiding splash screen Gather KFX-ZIP (from KFX Input) 1.34.0: Importing /Volumes/Kindle/documents/Downloads/Items01/Brand Gap, Revised Edition, The_B000SEGSY0.kfx Gather KFX-ZIP (from KFX Input): Gathered 4 file(s) as /var/folders/yw/2p9bs9tj7g36xsq8xy714jf00000gn/C/calibre_4.23.0_tmp_06tZOW/hQaJr5.kfx-zip DeDRM v6.8.0: Trying to decrypt hQaJr5.kfx-zip Using Library AlfCrypto Python Decrypting KFX-ZIP ebook: hQaJr5 Found 1 keys to try after 0.0 seconds Decrypting KFX DRM voucher: voucher DeDRM v6.8.0: Failed to decrypt with error: Failed to decrypt KFX DRM voucher with any key DeDRM v6.8.0: Looking for new default Kindle Key after 0.0 seconds Found k4Mac kinf2018 file: /Users/mgridley/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2018 Decrypted key file using IDString '9d5c76b63a02' and UserName 'mgridley' DeDRM v6.8.0: Found 1 new key Decrypting KFX-ZIP ebook: hQaJr5 Got DSN key from database default_key_1 Found 1 keys to try after 0.5 seconds Decrypting KFX DRM voucher: voucher DeDRM v6.8.0: Ultimately failed to decrypt after 0.5 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 172, in _run_filetype_plugins File "calibre_plugins.dedrm.init", line 625, in run File "calibre_plugins.dedrm.init", line 575, in KindleMobiDecrypt DeDRMError: DeDRM v6.8.0: Ultimately failed to decrypt after 0.5 seconds. Read the FAQs at Harper's repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md Package KFX (from KFX Input) 1.34.0: Packaging /var/folders/yw/2p9bs9tj7g36xsq8xy714jf00000gn/C/calibre_4.23.0_tmp_06tZOW/hQaJr5.kfx-zip Processing container: Brand Gap, Revised Edition, The_B000SEGSY0.kfx 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 172, in _run_filetype_plugins File "calibre_plugins.kfx_input.package_filetype", line 21, in run File "calibre_plugins.kfx_input.package_filetype", line 32, in run_kfx File "calibre_plugins.kfx_input.kfxlib.yj_book", line 83, in convert_to_single_kfx File "calibre_plugins.kfx_input.kfxlib.yj_book", line 202, in decode_book File "calibre_plugins.kfx_input.kfxlib.yj_book", line 309, in get_container KFXDRMError: Book container Brand Gap, Revised Edition, The_B000SEGSY0.kfx has DRM and cannot be converted KFX metadata reader (from KFX Input) activated for /var/folders/yw/2p9bs9tj7g36xsq8xy714jf00000gn/C/calibre_4.23.0_tmp_06tZOW/BM7Fx4_add_books/0/Brand Gap, Revised Edition, The_B000SEGSY0.kfx-zip [7.11] splash screen hidden [7.11] Started up in 7.11 seconds with 3 books

{u'bsd_drives': {u'main': u'/dev/disk4'}, u'drives': {u'main': '/Volumes/Kindle'}, u'mount_map': {'/dev/disk1s1': '/System/Volumes/Data', '/dev/disk1s4': '/private/var/vm', '/dev/disk1s5': '/', '/dev/disk3s1': '/Volumes/calibre-5.3.0', '/dev/disk4': '/Volumes/Kindle', '/dev/disk6s1': '/Volumes/calibre-4.23.0', 'devfs': '/dev', 'map auto_home': '/System/Volumes/Data/home'}} 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 DEBUG: 0.0 USBMS: scan from root False /Volumes/Kindle/documents DEBUG: 0.2 USBMS: count found in cache: 57, count of files in metadata: 57, need_sync: False DEBUG: 0.2 USBMS: Finished fetching list of books from device. oncard= None DEBUG: 0.2 USBMS: Fetching list of books from device. Device= KINDLE2 oncard= carda DEBUG: 0.2 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= 57 DeviceJob: set_books_in_library finished: time= 0.00368905067444 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: 0 Get device information finished No details available. Job: 1 Set library information finished No details available. Job: 2 Get list of books on device finished No details available. Added Brand Gap, Revised Edition, The to db in: 0.0 Added 1 books in 1.1 seconds Worker Launch took: 0.0876579284668 Job: 3 Convert book 1 of 1 (Brand Gap, Revised Edition, The) finished Convert book 1 of 1 (Brand Gap, Revised Edition, The) Conversion options changed from defaults: cover: u'/var/folders/yw/2p9bs9tj7g36xsq8xy714jf00000gn/C/calibre_4.23.0_tmp_06tZOW/3HBP2e.jpeg' read_metadata_from_opf: u'/var/folders/yw/2p9bs9tj7g36xsq8xy714jf00000gn/C/calibre_4.23.0_tmp_06tZOW/viRPG9.opf' use_profile_size: True preserve_cover_aspect_ratio: True pdf_page_numbers: True output_profile: u'kindle_pw3' verbose: 2 Resolved conversion options calibre version: 4.23.0 {'allow_conversion_with_errors': False, 'asciiize': False, 'author_sort': None, 'authors': None, 'base_font_size': 0.0, 'book_producer': None, 'change_justification': u'original', 'chapter': u"//[((name()='h1' or name()='h2') and re:test(., '\s((chapter|book|section|part)\s+)|((prolog|prologue|epilogue)(\s+|$))', 'i')) or @class = 'chapter']", 'chapter_mark': u'pagebreak', 'comments': None, 'cover': u'/var/folders/yw/2p9bs9tj7g36xsq8xy714jf00000gn/C/calibre_4.23.0_tmp_06tZOW/3HBP2e.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': u'', '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 0x10c99d550>, '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.KindlePaperWhite3Output object at 0x10c99dd50>, 'page_breaks_before': u'/', 'paper_size': u'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': u'Courier', 'pdf_mono_font_size': 16, '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': True, 'pdf_sans_family': u'Helvetica', 'pdf_serif_family': u'Times', 'pdf_standard_font': u'serif', 'pdf_use_document_margins': False, 'prefer_metadata_cover': False, 'preserve_cover_aspect_ratio': True, 'pretty_print': False, 'pubdate': None, 'publisher': None, 'rating': None, 'read_metadata_from_opf': u'/var/folders/yw/2p9bs9tj7g36xsq8xy714jf00000gn/C/calibre_4.23.0_tmp_06tZOW/viRPG9.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': u'', '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': '[]', 'uncompressed_pdf': False, 'unit': u'inch', 'unsmarten_punctuation': False, 'unwrap_lines': Convert book 1 of 1 (Brand Gap, Revised Edition, The) Conversion options changed from defaults: cover: u'/var/folders/yw/2p9bs9tj7g36xsq8xy714jf00000gn/C/calibre_4.23.0_tmp_06tZOW/3HBP2e.jpeg' read_metadata_from_opf: u'/var/folders/yw/2p9bs9tj7g36xsq8xy714jf00000gn/C/calibre_4.23.0_tmp_06tZOW/viRPG9.opf' use_profile_size: True preserve_cover_aspect_ratio: True pdf_page_numbers: True output_profile: u'kindle_pw3' verbose: 2 Resolved conversion options calibre version: 4.23.0 {'allow_conversion_with_errors': False, 'asciiize': False, 'author_sort': None, 'authors': None, 'base_font_size': 0.0, 'book_producer': None, 'change_justification': u'original', 'chapter': u"//[((name()='h1' or name()='h2') and re:test(., '\s((chapter|book|section|part)\s+)|((prolog|prologue|epilogue)(\s+|$))', 'i')) or @class = 'chapter']", 'chapter_mark': u'pagebreak', 'comments': None, 'cover': u'/var/folders/yw/2p9bs9tj7g36xsq8xy714jf00000gn/C/calibre_4.23.0_tmp_06tZOW/3HBP2e.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': u'', '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 0x10c99d550>, '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.KindlePaperWhite3Output object at 0x10c99dd50>, 'page_breaks_before': u'/', 'paper_size': u'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': u'Courier', 'pdf_mono_font_size': 16, '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': True, 'pdf_sans_family': u'Helvetica', 'pdf_serif_family': u'Times', 'pdf_standard_font': u'serif', 'pdf_use_document_margins': False, 'prefer_metadata_cover': False, 'preserve_cover_aspect_ratio': True, 'pretty_print': False, 'pubdate': None, 'publisher': None, 'rating': None, 'read_metadata_from_opf': u'/var/folders/yw/2p9bs9tj7g36xsq8xy714jf00000gn/C/calibre_4.23.0_tmp_06tZOW/viRPG9.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': u'', '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': '[]', 'uncompressed_pdf': False, 'unit': u'inch', 'unsmarten_punctuation': False, 'unwrap_lines': True, 'use_auto_toc': False, 'use_profile_size': True, 'verbose': 2} InputFormatPlugin: KFX Input running on /var/folders/yw/2p9bs9tj7g36xsq8xy714jf00000gn/C/calibre_4.23.0_tmp_06tZOW/mcMzFm.kfx-zip Software versions: KFX Input 1.34.0, calibre 4.23, Darwin-19.6.0-x86_64-i386-64bit KFX Input plugin help is available at https://www.mobileread.com/forums/showthread.php?t=291290 Converting /var/folders/yw/2p9bs9tj7g36xsq8xy714jf00000gn/C/calibre_4.23.0_tmp_06tZOW/mcMzFm.kfx-zip Processing container: Brand Gap, Revised Edition, The_B000SEGSY0.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 202, in decode_book File "calibre_plugins.kfx_input.kfxlib.yj_book", line 309, in get_container KFXDRMError: Book container Brand Gap, Revised Edition, The_B000SEGSY0.kfx has DRM and cannot be converted Python function terminated unexpectedly: This book has DRM! Traceback (most recent call last): File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py", line 187, in main return run_entry_point() File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py", line 121, in run_entry_point return getattr(pmod, func)() File "site-packages/calibre/utils/ipc/worker.py", line 209, in main File "site-packages/calibre/gui2/convert/gui_conversion.py", line 43, in gui_convert_override File "site-packages/calibre/gui2/convert/gui_conversion.py", line 28, in gui_convert File "site-packages/calibre/ebooks/conversion/plumber.py", line 1110, in run File "site-packages/calibre/customize/conversion.py", line 246, in call File "calibre_plugins.kfx_input.init", line 123, in convert DRMError: This book has DRM!

True, 'use_auto_toc': False, 'use_profile_size': True, 'verbose': 2} InputFormatPlugin: KFX Input running on /var/folders/yw/2p9bs9tj7g36xsq8xy714jf00000gn/C/calibre_4.23.0_tmp_06tZOW/mcMzFm.kfx-zip Software versions: KFX Input 1.34.0, calibre 4.23, Darwin-19.6.0-x86_64-i386-64bit KFX Input plugin help is available at https://www.mobileread.com/forums/showthread.php?t=291290 Converting /var/folders/yw/2p9bs9tj7g36xsq8xy714jf00000gn/C/calibre_4.23.0_tmp_06tZOW/mcMzFm.kfx-zip Processing container: Brand Gap, Revised Edition, The_B000SEGSY0.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 202, in decode_book File "calibre_plugins.kfx_input.kfxlib.yj_book", line 309, in get_container KFXDRMError: Book container Brand Gap, Revised Edition, The_B000SEGSY0.kfx has DRM and cannot be converted Python function terminated unexpectedly: This book has DRM! Traceback (most recent call last): File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py", line 187, in main return run_entry_point() File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py", line 121, in run_entry_point return getattr(pmod, func)() File "site-packages/calibre/utils/ipc/worker.py", line 209, in main File "site-packages/calibre/gui2/convert/gui_conversion.py", line 43, in gui_convert_override File "site-packages/calibre/gui2/convert/gui_conversion.py", line 28, in gui_convert File "site-packages/calibre/ebooks/conversion/plumber.py", line 1110, in run File "site-packages/calibre/customize/conversion.py", line 246, in call File "calibre_plugins.kfx_input.init", line 123, in convert DRMError: This book has DRM!

Worker Launch took: 0.0912821292877 Job: 4 Convert book 1 of 1 (Brand Gap, Revised Edition, The) finished Convert book 1 of 1 (Brand Gap, Revised Edition, The) Conversion options changed from defaults: output_profile: u'kindle_pw3' verbose: 2 read_metadata_from_opf: u'/var/folders/yw/2p9bs9tj7g36xsq8xy714jf00000gn/C/calibre_4.23.0_tmp_06tZOW/eMdpvM.opf' cover: u'/var/folders/yw/2p9bs9tj7g36xsq8xy714jf00000gn/C/calibre_4.23.0_tmp_06tZOW/RFpai8.jpeg' preserve_cover_aspect_ratio: True Resolved conversion options calibre version: 4.23.0 {'allow_conversion_with_errors': False, 'asciiize': False, 'author_sort': None, 'authors': None, 'base_font_size': 0.0, 'book_producer': None, 'change_justification': u'original', 'chapter': u"//[((name()='h1' or name()='h2') and re:test(., '\s((chapter|book|section|part)\s+)|((prolog|prologue|epilogue)(\s+|$))', 'i')) or @class = 'chapter']", 'chapter_mark': u'pagebreak', 'comments': None, 'cover': u'/var/folders/yw/2p9bs9tj7g36xsq8xy714jf00000gn/C/calibre_4.23.0_tmp_06tZOW/RFpai8.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': u'2', 'expand_css': False, 'extra_css': None, 'extract_to': None, 'filter_css': u'', '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 0x115aa1550>, '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, 'Gather KFX-ZIP (from KFX Input) 1.34.0: Importing /Volumes/Kindle/documents/Downloads/Items01/Brand Gap, Revised Edition, The_B000SEGSY0.kfx Gather KFX-ZIP (from KFX Input): Gathered 4 file(s) as /var/folders/yw/2p9bs9tj7g36xsq8xy714jf00000gn/C/calibre_4.23.0_tmp_06tZOW/9yxjTf.kfx-zip DeDRM v6.8.0: Trying to decrypt 9yxjTf.kfx-zip Using Library AlfCrypto Python Decrypting KFX-ZIP ebook: 9yxjTf Found 1 keys to try after 0.0 seconds Decrypting KFX DRM voucher: voucher DeDRM v6.8.0: Failed to decrypt with error: Failed to decrypt KFX DRM voucher with any key DeDRM v6.8.0: Looking for new default Kindle Key after 0.0 seconds Found k4Mac kinf2018 file: /Users/mgridley/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2018 Decrypted key file using IDString '9d5c76b63a02' and UserName 'mgridley' DeDRM v6.8.0: Found 1 new key Decrypting KFX-ZIP ebook: 9yxjTf Got DSN key from database default_key_1 Found 1 keys to try after 0.5 seconds Decrypting KFX DRM voucher: voucher DeDRM v6.8.0: Ultimately failed to decrypt after 0.5 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 172, in _run_filetype_plugins File "calibre_plugins.dedrm.init", line 625, in run File "calibre_plugins.dedrm.init", line 575, in KindleMobiDecrypt DeDRMError: DeDRM v6.8.0: Ultimately failed to decrypt after 0.5 seconds. Read the FAQs at Harper's repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md Package KFX (from KFX Input) 1.34.0: Packaging /var/folders/yw/2p9bs9tj7g36xsq8xy714jf00000gn/C/calibre_4.23.0_tmp_06tZOW/9yxjTf.kfx-zip Processing container: Brand Gap, Revised Edition, The_B000SEGSY0.kfx 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 172, in _run_filetype_plugins File "calibre_plugins.kfx_input.package_filetype", line 21, in run File "calibre_plugins.kfx_input.package_filetype", line 32, in run_kfx File "calibre_plugins.kfx_input.kfxlib.yj_book", line 83, in convert_to_single_kfx File "calibre_plugins.kfx_input.kfxlib.yj_book", line 202, in decode_book File "calibre_plugins.kfx_input.kfxlib.yj_book", line 309, in get_container KFXDRMError: Book container Brand Gap, Revised Edition, The_B000SEGSY0.kfx has DRM and cannot be converted KFX metadata reader (from KFX Input) activated for /var/folders/yw/2p9bs9tj7g36xsq8xy714jf00000gn/C/calibre_4.23.0_tmp_06tZOW/SxUkho_add_books/0/Brand Gap, Revised Edition, The_B000SEGSY0.kfx-zip 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 0x115aa1d50>, 'page_breaks_before': u'/', 'prefer_metadata_cover': False, 'preserve_cover_aspect_ratio': True, 'pretty_print': True, 'pubdate': None, 'publisher': None, 'rating': None, 'read_metadata_from_opf': u'/var/folders/yw/2p9bs9tj7g36xsq8xy714jf00000gn/C/calibre_4.23.0_tmp_06tZOW/eMdpvM.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': u'', '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': '[]', 'unsmarten_punctuation': False, 'unwrap_lines': True, 'use_auto_toc': False, 'verbose': 2} InputFormatPlugin: KFX Input running on /var/folders/yw/2p9bs9tj7g36xsq8xy714jf00000gn/C/calibre_4.23.0_tmp_06tZOW/kShlFT.kfx-zip Software versions: KFX Input 1.34.0, calibre 4.23, Darwin-19.6.0-x86_64-i386-64bit KFX Input plugin help is available at https://www.mobileread.com/forums/showthread.php?t=291290 Converting /var/folders/yw/2p9bs9tj7g36xsq8xy714jf00000gn/C/calibre_4.23.0_tmp_06tZOW/kShlFT.kfx-zip Processing container: Brand Gap, Revised Edition, The_B000SEGSY0.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 202, in decode_book File "calibre_plugins.kfx_input.kfxlib.yj_book", line 309, in get_container KFXDRMError: Book container Brand Gap, Revised Edition, The_B000SEGSY0.kfx has DRM and cannot be converted Python function terminated unexpectedly: This book has DRM! Traceback (most recent call last): File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py", line 187, in main return run_entry_point() File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py", line 121, in run_entry_point return getattr(pmod, func)() File "site-packages/calibre/utils/ipc/worker.py", line 209, in main File "site-packages/calibre/gui2/convert/gui_conversion.py", line 43, in gui_convert_override File "site-packages/calibre/gui2/convert/gui_conversion.py", line 28, in gui_convert File "site-packages/calibre/ebooks/conversion/plumber.py", line 1110, in run File "site-packages/calibre/customize/conversion.py", line 246, in call File "calibre_plugins.kfx_input.init", line 123, in convert calibre.ebooks.DRMError: This book has DRM!

Added Brand Gap, Revised Edition, The to db in: 0.0 Added 1 books in 1.1 seconds Worker Launch took: 0.0909538269043 Job: 5 Convert book 1 of 1 (Brand Gap, Revised Edition, The) finished Convert book 1 of 1 (Brand Gap, Revised Edition, The) Conversion options changed from defaults: output_profile: u'kindle_pw3' verbose: 2 read_metadata_from_opf: u'/var/folders/yw/2p9bs9tj7g36xsq8xy714jf00000gn/C/calibre_4.23.0_tmp_06tZOW/Iwgcni.opf' cover: u'/var/folders/yw/2p9bs9tj7g36xsq8xy714jf00000gn/C/calibre_4.23.0_tmp_06tZOW/Zg6Rn5.jpeg' Resolved conversion options calibre version: 4.23.0 {'allow_conversion_with_errors': False, 'asciiize': False, 'author_sort': None, 'authors': None, 'base_font_size': 0.0, 'book_producer': None, 'change_justification': u'original', 'chapter': u"//[((name()='h1' or name()='h2') and re:test(., '\s((chapter|book|section|part)\s+)|((prolog|prologue|epilogue)(\s+|$))', 'i')) or @class = 'chapter']", 'chapter_mark': u'pagebreak', 'comments': None, 'cover': u'/var/folders/yw/2p9bs9tj7g36xsq8xy714jf00000gn/C/calibre_4.23.0_tmp_06tZOW/Zg6Rn5.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': u'2', 'expand_css': False, 'extra_css': None, 'extract_to': None, 'filter_css': u'', '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 0x10a4fc510>, '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 0x10a4fcd10>, 'page_breaks_before': u'/', 'prefer_metadata_cover': False, 'preserve_cover_aspect_ratio': False, 'pretty_print': True, 'pubdate': None, 'publisher': None, 'rating': None, 'read_metadata_from_opf': u'/var/folders/yw/2p9bs9tj7g36xsq8xy714jf00000gn/C/calibre_4.23.0_tmp_06tZOW/Iwgcni.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': u'', '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': '[]', 'unsmarten_punctuation': False, 'unwrap_lines': True, 'use_auto_toc': False, 'verbose': 2} InputFormatPlugin: KFX Input running on /var/folders/yw/2p9bs9tj7g36xsq8xy714jf00000gn/C/calibre_4.23.0_tmp_06tZOW/WQxQ4B.kfx-zip Software versions: KFX Input 1.34.0, calibre 4.23, Darwin-19.6.0-x86_64-i386-64bit KFX Input plugin help is available at https://www.mobileread.com/forums/showthread.php?t=291290 Converting /var/folders/yw/2p9bs9tj7g36xsq8xy714jf00000gn/C/calibre_4.23.0_tmp_06tZOW/WQxQ4B.kfx-zip Processing container: Brand Gap, Revised Edition, The_B000SEGSY0.kfx Traceback (most recent call last): File "calibre_plugins.kfx_input.init

ElleKayEm commented 4 years ago

How are you downloading the book? Have you looked at this post? https://www.mobileread.com/forums/showthread.php?t=283371