noDRM / DeDRM_tools

DeDRM tools for ebooks
7.03k stars 313 forks source link

DeDRM not working in any 6 version of calibre #328

Open zeknewbe opened 1 year ago

zeknewbe commented 1 year ago

Question / bug report

Hello! I have been trying to make the plugin work for a long time. It was working fine until update to the 6 version. I am including log. The last book attempted was a google play books downloaded to my computer through adobe digital editions. Can you find the problem? thank you! Ps. I tried all versions of calibre 6 and still doesn't work

Which version of Calibre are you running?

6.11

Which version of the DeDRM plugin are you running?

v10.0.3

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

No response

Log output

Using calibre Qt style: True calibre Debug log calibre 6.11 embedded-python: True macOS-13.3.1-arm64-arm-64bit Darwin ('64bit', '') ('Darwin', '22.4.0', 'Darwin Kernel Version 22.4.0: Mon Mar 6 21:00:41 PST 2023; root:xnu-8796.101.5~3/RELEASE_ARM64_T8103') Python 3.10.1 OSX: ('13.3.1', ('', '', ''), 'arm64') Interface language: None Successfully initialized third party plugins: DeDRM (10, 0, 3) && Obok DeDRM (10, 0, 3) calibre 6.11 embedded-python: True macOS-13.3.1-arm64-arm-64bit Darwin ('64bit', '') ('Darwin', '22.4.0', 'Darwin Kernel Version 22.4.0: Mon Mar 6 21:00:41 PST 2023; root:xnu-8796.101.5~3/RELEASE_ARM64_T8103') Python 3.10.1 OSX: ('13.3.1', ('', '', ''), 'arm64') Interface language: None Successfully initialized third party plugins: DeDRM (10, 0, 3) && Obok DeDRM (10, 0, 3) QPA platform: cocoa devicePixelRatio: 2.0 logicalDpi: 72.0 x 72.0 physicalDpi: 149.00000223775552 x 149.0000022377555 [0.00] Starting up... [0.05] Showing splash screen... [0.19] splash screen shown [0.19] Initializing db... [0.20] db initialized [0.20] Constructing main UI... DEBUG: 0.0 obok::utilities.py - loading translations DEBUG: 0.0 obok::dialogs.py - loading translations DEBUG: 0.0 obok::config.py - loading translations DEBUG: 0.0 obok::action_err.py - loading translations Screens currently in system: {'depth': 24, 'device_pixel_ratio': 2.0, 'geometry_in_logical_pixels': {'height': 1050, 'width': 1680, 'x': 0, 'y': 0}, 'index_in_screens_list': 0, 'manufacturer': '', 'model': '', 'name': '', 'serial': '', 'size_in_logical_pixels': {'height': 1050, 'width': 1680}, 'virtual_geometry': {'height': 1050, 'width': 1680, 'x': 0, 'y': 0}} Restoring geometry for: calibre_main_window_geometry {'frame_geometry': {'height': 760, 'width': 1187, 'x': 334, 'y': 114}, 'full_screened': False, 'geometry': {'height': 732, 'width': 1187, 'x': 334, 'y': 142}, 'maximized': False, 'normal_geometry': {'height': 732, 'width': 1187, 'x': 334, 'y': 142}, 'screen': {'depth': 24, 'device_pixel_ratio': 2.0, 'geometry_in_logical_pixels': {'height': 1050, 'width': 1680, 'x': 0, 'y': 0}, 'index_in_screens_list': 0, 'manufacturer': '', 'model': '', 'name': '', 'serial': '', 'size_in_logical_pixels': {'height': 1050, 'width': 1680}, 'virtual_geometry': {'height': 1050, 'width': 1680, 'x': 0, 'y': 0}}} Matching screen: {'depth': 24, 'device_pixel_ratio': 2.0, 'geometry_in_logical_pixels': {'height': 1050, 'width': 1680, 'x': 0, 'y': 0}, 'index_in_screens_list': 0, 'manufacturer': '', 'model': '', 'name': '', 'serial': '', 'size_in_logical_pixels': {'height': 1050, 'width': 1680}, 'virtual_geometry': {'height': 1050, 'width': 1680, 'x': 0, 'y': 0}} Setting widget geometry to: {'height': 732, 'width': 1187, 'x': 334, 'y': 142} [0.54] main UI initialized... [0.54] Hiding splash screen Starting QuickView [11.47] splash screen hidden [11.47] Started up in 11.47 seconds with 2 books Restoring geometry for: convert_single_dialog_geom {'frame_geometry': {'height': 903, 'width': 1610, 'x': 60, 'y': 31}, 'full_screened': False, 'geometry': {'height': 875, 'width': 1610, 'x': 60, 'y': 59}, 'maximized': False, 'normal_geometry': {'height': 875, 'width': 1610, 'x': 60, 'y': 59}, 'screen': {'depth': 24, 'device_pixel_ratio': 2.0, 'geometry_in_logical_pixels': {'height': 1050, 'width': 1680, 'x': 0, 'y': 0}, 'index_in_screens_list': 0, 'manufacturer': '', 'model': '', 'name': '', 'serial': '', 'size_in_logical_pixels': {'height': 1050, 'width': 1680}, 'virtual_geometry': {'height': 1050, 'width': 1680, 'x': 0, 'y': 0}}} Matching screen: {'depth': 24, 'device_pixel_ratio': 2.0, 'geometry_in_logical_pixels': {'height': 1050, 'width': 1680, 'x': 0, 'y': 0}, 'index_in_screens_list': 0, 'manufacturer': '', 'model': '', 'name': '', 'serial': '', 'size_in_logical_pixels': {'height': 1050, 'width': 1680}, 'virtual_geometry': {'height': 1050, 'width': 1680, 'x': 0, 'y': 0}} Setting widget geometry to: {'height': 875, 'width': 1610, 'x': 60, 'y': 59} Saving geometry for: convert_single_dialog_geom {'frame_geometry': {'height': 903, 'width': 1610, 'x': 60, 'y': 31}, 'full_screened': False, 'geometry': {'height': 875, 'width': 1610, 'x': 60, 'y': 59}, 'maximized': False, 'normal_geometry': {'height': 875, 'width': 1610, 'x': 60, 'y': 59}, 'screen': {'depth': 24, 'device_pixel_ratio': 2.0, 'geometry_in_logical_pixels': {'height': 1050, 'width': 1680, 'x': 0, 'y': 0}, 'index_in_screens_list': 0, 'manufacturer': '', 'model': '', 'name': '', 'serial': '', 'size_in_logical_pixels': {'height': 1050, 'width': 1680}, 'virtual_geometry': {'height': 1050, 'width': 1680, 'x': 0, 'y': 0}}} Worker Launch took: 0.04 seconds Job: 0 Convert book 1 of 1 (Generación idiota: Una crítica al adolescentrismo) finished Convert book 1 of 1 (Generación idiota: Una crítica al adolescentrismo) DeDRM v10.0.3: Trying to decrypt 4u8pr1hu.epub DeDRM v10.0.3: Verifying zip archive integrity DeDRM v10.0.3: 4u8pr1hu.epub is a secure Adobe Adept ePub for UUID 33a7ee76-dd31-43ad-a08c-1792eab13692 Running file type plugin DeDRM failed with traceback: Traceback (most recent call last): File "encodings/hex_codec.py", line 19, in hex_decode ValueError: string argument should contain only ASCII characters

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "calibre/customize/ui.py", line 178, in _run_filetype_plugins
  File "calibre_plugins.dedrm.__init__", line 1067, in run
    decrypted_ebook = self.ePubDecrypt(path_to_ebook)
  File "calibre_plugins.dedrm.__init__", line 553, in ePubDecrypt
    userkey = codecs.decode(userkeyhex, 'hex')
ValueError: decoding with 'hex' codec failed (ValueError: string argument should contain only ASCII characters)
Conversion options changed from defaults:
  verbose: 2
  output_profile: 'generic_eink'
  read_metadata_from_opf: '/var/folders/8h/pznv300n54xfmrw1h_m9c4k80000gn/C/calibre_6.11.0_tmp_8ebp55o8/a3_ikhtr.opf'
Resolved conversion options
calibre version: 6.11.0
{'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': None,
 '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 0x10ae91fc0>,
 '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 0x10ae91c60>,
 '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/8h/pznv300n54xfmrw1h_m9c4k80000gn/C/calibre_6.11.0_tmp_8ebp55o8/a3_ikhtr.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 4u8pr1hu.epub
DeDRM v10.0.3: Verifying zip archive integrity
DeDRM v10.0.3: 4u8pr1hu.epub is a secure Adobe Adept ePub for UUID 33a7ee76-dd31-43ad-a08c-1792eab13692
Running file type plugin DeDRM failed with traceback:
Traceback (most recent call last):
  File "encodings/hex_codec.py", line 19, in hex_decode
ValueError: string argument should contain only ASCII characters

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "calibre/customize/ui.py", line 178, in _run_filetype_plugins
  File "calibre_plugins.dedrm.__init__", line 1067, in run
    decrypted_ebook = self.ePubDecrypt(path_to_ebook)
  File "calibre_plugins.dedrm.__init__", line 553, in ePubDecrypt
    userkey = codecs.decode(userkeyhex, 'hex')
ValueError: decoding with 'hex' codec failed (ValueError: string argument should contain only ASCII characters)
InputFormatPlugin: EPUB Input running
on /var/folders/8h/pznv300n54xfmrw1h_m9c4k80000gn/C/calibre_6.11.0_tmp_8ebp55o8/4u8pr1hu.epub
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/ebooks/conversion/plugins/epub_input.py", line 287, in convert
calibre.ebooks.DRMError: 4u8pr1hu.epub

Saving geometry for: calibre_main_window_geometry {'frame_geometry': {'height': 760, 'width': 1187, 'x': 334, 'y': 114}, 'full_screened': False, 'geometry': {'height': 732, 'width': 1187, 'x': 334, 'y': 142}, 'maximized': False, 'normal_geometry': {'height': 732, 'width': 1187, 'x': 334, 'y': 142}, 'screen': {'depth': 24, 'device_pixel_ratio': 2.0, 'geometry_in_logical_pixels': {'height': 1050, 'width': 1680, 'x': 0, 'y': 0}, 'index_in_screens_list': 0, 'manufacturer': '', 'model': '', 'name': '', 'serial': '', 'size_in_logical_pixels': {'height': 1050, 'width': 1680}, 'virtual_geometry': {'height': 1050, 'width': 1680, 'x': 0, 'y': 0}}}

ElleKayEm commented 1 year ago

Delete the saved Adobe key from DeDRM's customization. Add your book letting DeDRM automatically retrieve the key.

zeknewbe commented 1 year ago

I did so but it didn't work... send you the new log:

Using calibre Qt style: True calibre Debug log calibre 6.11 embedded-python: True macOS-13.3.1-arm64-arm-64bit Darwin ('64bit', '') ('Darwin', '22.4.0', 'Darwin Kernel Version 22.4.0: Mon Mar 6 21:00:41 PST 2023; root:xnu-8796.101.5~3/RELEASE_ARM64_T8103') Python 3.10.1 OSX: ('13.3.1', ('', '', ''), 'arm64') Interface language: None Successfully initialized third party plugins: DeDRM (10, 0, 3) && Obok DeDRM (10, 0, 3) calibre 6.11 embedded-python: True macOS-13.3.1-arm64-arm-64bit Darwin ('64bit', '') ('Darwin', '22.4.0', 'Darwin Kernel Version 22.4.0: Mon Mar 6 21:00:41 PST 2023; root:xnu-8796.101.5~3/RELEASE_ARM64_T8103') Python 3.10.1 OSX: ('13.3.1', ('', '', ''), 'arm64') Interface language: None Successfully initialized third party plugins: DeDRM (10, 0, 3) && Obok DeDRM (10, 0, 3) QPA platform: cocoa devicePixelRatio: 2.0 logicalDpi: 72.0 x 72.0 physicalDpi: 149.00000223775552 x 149.0000022377555 [0.00] Starting up... [0.04] Showing splash screen... [0.19] splash screen shown [0.19] Initializing db... [0.19] db initialized [0.19] Constructing main UI... DEBUG: 0.0 obok::utilities.py - loading translations DEBUG: 0.0 obok::dialogs.py - loading translations DEBUG: 0.0 obok::config.py - loading translations DEBUG: 0.0 obok::action_err.py - loading translations Screens currently in system: {'depth': 24, 'device_pixel_ratio': 2.0, 'geometry_in_logical_pixels': {'height': 1050, 'width': 1680, 'x': 0, 'y': 0}, 'index_in_screens_list': 0, 'manufacturer': '', 'model': '', 'name': '', 'serial': '', 'size_in_logical_pixels': {'height': 1050, 'width': 1680}, 'virtual_geometry': {'height': 1050, 'width': 1680, 'x': 0, 'y': 0}} Restoring geometry for: calibre_main_window_geometry {'frame_geometry': {'height': 760, 'width': 1187, 'x': 447, 'y': 109}, 'full_screened': False, 'geometry': {'height': 732, 'width': 1187, 'x': 447, 'y': 137}, 'maximized': False, 'normal_geometry': {'height': 732, 'width': 1187, 'x': 447, 'y': 137}, 'screen': {'depth': 24, 'device_pixel_ratio': 2.0, 'geometry_in_logical_pixels': {'height': 1050, 'width': 1680, 'x': 0, 'y': 0}, 'index_in_screens_list': 0, 'manufacturer': '', 'model': '', 'name': '', 'serial': '', 'size_in_logical_pixels': {'height': 1050, 'width': 1680}, 'virtual_geometry': {'height': 1050, 'width': 1680, 'x': 0, 'y': 0}}} Matching screen: {'depth': 24, 'device_pixel_ratio': 2.0, 'geometry_in_logical_pixels': {'height': 1050, 'width': 1680, 'x': 0, 'y': 0}, 'index_in_screens_list': 0, 'manufacturer': '', 'model': '', 'name': '', 'serial': '', 'size_in_logical_pixels': {'height': 1050, 'width': 1680}, 'virtual_geometry': {'height': 1050, 'width': 1680, 'x': 0, 'y': 0}} Setting widget geometry to: {'height': 732, 'width': 1187, 'x': 447, 'y': 137} [0.55] main UI initialized... [0.55] Hiding splash screen Starting QuickView [6.43] splash screen hidden [6.43] Started up in 6.43 seconds with 2 books Restoring geometry for: convert_single_dialog_geom {'frame_geometry': {'height': 903, 'width': 1610, 'x': 60, 'y': 31}, 'full_screened': False, 'geometry': {'height': 875, 'width': 1610, 'x': 60, 'y': 59}, 'maximized': False, 'normal_geometry': {'height': 875, 'width': 1610, 'x': 60, 'y': 59}, 'screen': {'depth': 24, 'device_pixel_ratio': 2.0, 'geometry_in_logical_pixels': {'height': 1050, 'width': 1680, 'x': 0, 'y': 0}, 'index_in_screens_list': 0, 'manufacturer': '', 'model': '', 'name': '', 'serial': '', 'size_in_logical_pixels': {'height': 1050, 'width': 1680}, 'virtual_geometry': {'height': 1050, 'width': 1680, 'x': 0, 'y': 0}}} Matching screen: {'depth': 24, 'device_pixel_ratio': 2.0, 'geometry_in_logical_pixels': {'height': 1050, 'width': 1680, 'x': 0, 'y': 0}, 'index_in_screens_list': 0, 'manufacturer': '', 'model': '', 'name': '', 'serial': '', 'size_in_logical_pixels': {'height': 1050, 'width': 1680}, 'virtual_geometry': {'height': 1050, 'width': 1680, 'x': 0, 'y': 0}} Setting widget geometry to: {'height': 875, 'width': 1610, 'x': 60, 'y': 59} Saving geometry for: convert_single_dialog_geom {'frame_geometry': {'height': 903, 'width': 1610, 'x': 60, 'y': 31}, 'full_screened': False, 'geometry': {'height': 875, 'width': 1610, 'x': 60, 'y': 59}, 'maximized': False, 'normal_geometry': {'height': 875, 'width': 1610, 'x': 60, 'y': 59}, 'screen': {'depth': 24, 'device_pixel_ratio': 2.0, 'geometry_in_logical_pixels': {'height': 1050, 'width': 1680, 'x': 0, 'y': 0}, 'index_in_screens_list': 0, 'manufacturer': '', 'model': '', 'name': '', 'serial': '', 'size_in_logical_pixels': {'height': 1050, 'width': 1680}, 'virtual_geometry': {'height': 1050, 'width': 1680, 'x': 0, 'y': 0}}} Worker Launch took: 0.02 seconds Job: 0 Convert book 1 of 1 (Generación idiota: Una crítica al adolescentrismo) finished Convert book 1 of 1 (Generación idiota: Una crítica al adolescentrismo) DeDRM v10.0.3: Trying to decrypt mneep66i.epub DeDRM v10.0.3: Verifying zip archive integrity DeDRM v10.0.3: mneep66i.epub is a secure Adobe Adept ePub for UUID 33a7ee76-dd31-43ad-a08c-1792eab13692 Running file type plugin DeDRM failed with traceback: Traceback (most recent call last): File "encodings/hex_codec.py", line 19, in hex_decode ValueError: string argument should contain only ASCII characters

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "calibre/customize/ui.py", line 178, in _run_filetype_plugins
  File "calibre_plugins.dedrm.__init__", line 1067, in run
    decrypted_ebook = self.ePubDecrypt(path_to_ebook)
  File "calibre_plugins.dedrm.__init__", line 553, in ePubDecrypt
    userkey = codecs.decode(userkeyhex, 'hex')
ValueError: decoding with 'hex' codec failed (ValueError: string argument should contain only ASCII characters)
Conversion options changed from defaults:
  verbose: 2
  output_profile: 'generic_eink'
  read_metadata_from_opf: '/var/folders/8h/pznv300n54xfmrw1h_m9c4k80000gn/C/calibre_6.11.0_tmp_k9adsghi/ibv8l_c0.opf'
Resolved conversion options
calibre version: 6.11.0
{'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': None,
 '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 0x10b4a9fc0>,
 '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 0x10b4a9c60>,
 '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/8h/pznv300n54xfmrw1h_m9c4k80000gn/C/calibre_6.11.0_tmp_k9adsghi/ibv8l_c0.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 mneep66i.epub
DeDRM v10.0.3: Verifying zip archive integrity
DeDRM v10.0.3: mneep66i.epub is a secure Adobe Adept ePub for UUID 33a7ee76-dd31-43ad-a08c-1792eab13692
Running file type plugin DeDRM failed with traceback:
Traceback (most recent call last):
  File "encodings/hex_codec.py", line 19, in hex_decode
ValueError: string argument should contain only ASCII characters

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "calibre/customize/ui.py", line 178, in _run_filetype_plugins
  File "calibre_plugins.dedrm.__init__", line 1067, in run
    decrypted_ebook = self.ePubDecrypt(path_to_ebook)
  File "calibre_plugins.dedrm.__init__", line 553, in ePubDecrypt
    userkey = codecs.decode(userkeyhex, 'hex')
ValueError: decoding with 'hex' codec failed (ValueError: string argument should contain only ASCII characters)
InputFormatPlugin: EPUB Input running
on /var/folders/8h/pznv300n54xfmrw1h_m9c4k80000gn/C/calibre_6.11.0_tmp_k9adsghi/mneep66i.epub
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/ebooks/conversion/plugins/epub_input.py", line 287, in convert
calibre.ebooks.DRMError: mneep66i.epub

Saving geometry for: calibre_main_window_geometry {'frame_geometry': {'height': 760, 'width': 1187, 'x': 250, 'y': 25}, 'full_screened': False, 'geometry': {'height': 732, 'width': 1187, 'x': 250, 'y': 53}, 'maximized': False, 'normal_geometry': {'height': 732, 'width': 1187, 'x': 250, 'y': 53}, 'screen': {'depth': 24, 'device_pixel_ratio': 2.0, 'geometry_in_logical_pixels': {'height': 1050, 'width': 1680, 'x': 0, 'y': 0}, 'index_in_screens_list': 0, 'manufacturer': '', 'model': '', 'name': '', 'serial': '', 'size_in_logical_pixels': {'height': 1050, 'width': 1680}, 'virtual_geometry': {'height': 1050, 'width': 1680, 'x': 0, 'y': 0}}}

ElleKayEm commented 1 year ago

Hmmm, this still looks like the error you get when there's a corrupt key saved. Delete the key if there is one. And then get a debug log of adding the book, not the conversion attempt.

zeknewbe commented 1 year ago

there it goes... just adding the book:

Using calibre Qt style: True calibre Debug log calibre 6.11 embedded-python: True macOS-13.3.1-arm64-arm-64bit Darwin ('64bit', '') ('Darwin', '22.4.0', 'Darwin Kernel Version 22.4.0: Mon Mar 6 21:00:41 PST 2023; root:xnu-8796.101.5~3/RELEASE_ARM64_T8103') Python 3.10.1 OSX: ('13.3.1', ('', '', ''), 'arm64') Interface language: None Successfully initialized third party plugins: DeDRM (10, 0, 3) && Obok DeDRM (10, 0, 3) calibre 6.11 embedded-python: True macOS-13.3.1-arm64-arm-64bit Darwin ('64bit', '') ('Darwin', '22.4.0', 'Darwin Kernel Version 22.4.0: Mon Mar 6 21:00:41 PST 2023; root:xnu-8796.101.5~3/RELEASE_ARM64_T8103') Python 3.10.1 OSX: ('13.3.1', ('', '', ''), 'arm64') Interface language: None Successfully initialized third party plugins: DeDRM (10, 0, 3) && Obok DeDRM (10, 0, 3) QPA platform: cocoa devicePixelRatio: 2.0 logicalDpi: 72.0 x 72.0 physicalDpi: 149.00000223775552 x 149.0000022377555 [0.00] Starting up... [0.07] Showing splash screen... [0.21] splash screen shown [0.21] Initializing db... [0.26] db initialized [0.26] Constructing main UI... DEBUG: 0.0 obok::utilities.py - loading translations DEBUG: 0.0 obok::dialogs.py - loading translations DEBUG: 0.0 obok::config.py - loading translations DEBUG: 0.0 obok::action_err.py - loading translations Screens currently in system: {'depth': 24, 'device_pixel_ratio': 2.0, 'geometry_in_logical_pixels': {'height': 1050, 'width': 1680, 'x': 0, 'y': 0}, 'index_in_screens_list': 0, 'manufacturer': '', 'model': '', 'name': '', 'serial': '', 'size_in_logical_pixels': {'height': 1050, 'width': 1680}, 'virtual_geometry': {'height': 1050, 'width': 1680, 'x': 0, 'y': 0}} Restoring geometry for: calibre_main_window_geometry {'frame_geometry': {'height': 760, 'width': 1187, 'x': 250, 'y': 25}, 'full_screened': False, 'geometry': {'height': 732, 'width': 1187, 'x': 250, 'y': 53}, 'maximized': False, 'normal_geometry': {'height': 732, 'width': 1187, 'x': 250, 'y': 53}, 'screen': {'depth': 24, 'device_pixel_ratio': 2.0, 'geometry_in_logical_pixels': {'height': 1050, 'width': 1680, 'x': 0, 'y': 0}, 'index_in_screens_list': 0, 'manufacturer': '', 'model': '', 'name': '', 'serial': '', 'size_in_logical_pixels': {'height': 1050, 'width': 1680}, 'virtual_geometry': {'height': 1050, 'width': 1680, 'x': 0, 'y': 0}}} Matching screen: {'depth': 24, 'device_pixel_ratio': 2.0, 'geometry_in_logical_pixels': {'height': 1050, 'width': 1680, 'x': 0, 'y': 0}, 'index_in_screens_list': 0, 'manufacturer': '', 'model': '', 'name': '', 'serial': '', 'size_in_logical_pixels': {'height': 1050, 'width': 1680}, 'virtual_geometry': {'height': 1050, 'width': 1680, 'x': 0, 'y': 0}} Setting widget geometry to: {'height': 732, 'width': 1187, 'x': 250, 'y': 53} [0.66] main UI initialized... [0.66] Hiding splash screen Starting QuickView DeDRM v10.0.3: Trying to decrypt Generación idiota Una crítica al adolescentrismo.epub DeDRM v10.0.3: Verifying zip archive integrity DeDRM v10.0.3: Generación idiota Una crítica al adolescentrismo.epub is a secure Adobe Adept ePub for UUID 33a7ee76-dd31-43ad-a08c-1792eab13692 DeDRM v10.0.3: Looking for new default Adobe Digital Editions Keys after 0.1 seconds DeDRM v10.0.3: Trying a new default key jcf1r9uu.epub is a secure Adobe Adept ePub. Could not decrypt jcf1r9uu.epub because of an exception: Traceback (most recent call last): File "/Users/zeke/Library/Preferences/calibre/plugins/DeDRM.zip/ineptepub.py", line 327, in decryptBook decryptor = Decryptor(bookkey, encryption) File "/Users/zeke/Library/Preferences/calibre/plugins/DeDRM.zip/ineptepub.py", line 150, in init self._aes = AES.new(bookkey, AES.MODE_CBC, b'\x00'*16) File "Crypto/Cipher/AES.py", line 232, in new File "Crypto/Cipher/init.py", line 79, in _create_cipher File "Crypto/Cipher/_mode_cbc.py", line 274, in _create_cbc_cipher File "Crypto/Cipher/AES.py", line 93, in _create_base_cipher ValueError: Incorrect AES key length (0 bytes)

DeDRM v10.0.3: Failed to decrypt with new default key after 0.2 seconds DeDRM v10.0.3: Ultimately failed to decrypt after 0.2 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/customize/ui.py", line 178, in _run_filetype_plugins File "calibre_plugins.dedrm.init", line 1067, in run decrypted_ebook = self.ePubDecrypt(path_to_ebook) File "calibre_plugins.dedrm.init", line 665, in ePubDecrypt 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.2 seconds. Read the FAQs at noDRM's repository: https://github.com/noDRM/DeDRM_tools/blob/master/FAQs.md [6.33] splash screen hidden [6.33] Started up in 6.33 seconds with 0 books Restoring geometry for: preferences dialog geometry {'frame_geometry': {'height': 748, 'width': 930, 'x': 433, 'y': 25}, 'full_screened': False, 'geometry': {'height': 720, 'width': 930, 'x': 433, 'y': 53}, 'maximized': False, 'normal_geometry': {'height': 720, 'width': 930, 'x': 433, 'y': 53}, 'screen': {'depth': 24, 'device_pixel_ratio': 2.0, 'geometry_in_logical_pixels': {'height': 1050, 'width': 1680, 'x': 0, 'y': 0}, 'index_in_screens_list': 0, 'manufacturer': '', 'model': '', 'name': '', 'serial': '', 'size_in_logical_pixels': {'height': 1050, 'width': 1680}, 'virtual_geometry': {'height': 1050, 'width': 1680, 'x': 0, 'y': 0}}} Matching screen: {'depth': 24, 'device_pixel_ratio': 2.0, 'geometry_in_logical_pixels': {'height': 1050, 'width': 1680, 'x': 0, 'y': 0}, 'index_in_screens_list': 0, 'manufacturer': '', 'model': '', 'name': '', 'serial': '', 'size_in_logical_pixels': {'height': 1050, 'width': 1680}, 'virtual_geometry': {'height': 1050, 'width': 1680, 'x': 0, 'y': 0}} Setting widget geometry to: {'height': 720, 'width': 930, 'x': 433, 'y': 53} Restoring geometry for: plugin config dialog:File type:DeDRM {'frame_geometry': {'height': 513, 'width': 251, 'x': 792, 'y': 226}, 'full_screened': False, 'geometry': {'height': 485, 'width': 251, 'x': 792, 'y': 254}, 'maximized': False, 'normal_geometry': {'height': 485, 'width': 251, 'x': 792, 'y': 254}, 'screen': {'depth': 24, 'device_pixel_ratio': 2.0, 'geometry_in_logical_pixels': {'height': 1050, 'width': 1680, 'x': 0, 'y': 0}, 'index_in_screens_list': 0, 'manufacturer': '', 'model': '', 'name': '', 'serial': '', 'size_in_logical_pixels': {'height': 1050, 'width': 1680}, 'virtual_geometry': {'height': 1050, 'width': 1680, 'x': 0, 'y': 0}}} Matching screen: {'depth': 24, 'device_pixel_ratio': 2.0, 'geometry_in_logical_pixels': {'height': 1050, 'width': 1680, 'x': 0, 'y': 0}, 'index_in_screens_list': 0, 'manufacturer': '', 'model': '', 'name': '', 'serial': '', 'size_in_logical_pixels': {'height': 1050, 'width': 1680}, 'virtual_geometry': {'height': 1050, 'width': 1680, 'x': 0, 'y': 0}} Setting widget geometry to: {'height': 485, 'width': 251, 'x': 792, 'y': 254} Saving geometry for: plugin config dialog:File type:DeDRM {'frame_geometry': {'height': 513, 'width': 251, 'x': 792, 'y': 226}, 'full_screened': False, 'geometry': {'height': 485, 'width': 251, 'x': 792, 'y': 254}, 'maximized': False, 'normal_geometry': {'height': 485, 'width': 251, 'x': 792, 'y': 254}, 'screen': {'depth': 24, 'device_pixel_ratio': 2.0, 'geometry_in_logical_pixels': {'height': 1050, 'width': 1680, 'x': 0, 'y': 0}, 'index_in_screens_list': 0, 'manufacturer': '', 'model': '', 'name': '', 'serial': '', 'size_in_logical_pixels': {'height': 1050, 'width': 1680}, 'virtual_geometry': {'height': 1050, 'width': 1680, 'x': 0, 'y': 0}}} Saving geometry for: preferences dialog geometry {'frame_geometry': {'height': 748, 'width': 930, 'x': 433, 'y': 25}, 'full_screened': False, 'geometry': {'height': 720, 'width': 930, 'x': 433, 'y': 53}, 'maximized': False, 'normal_geometry': {'height': 720, 'width': 930, 'x': 433, 'y': 53}, 'screen': {'depth': 24, 'device_pixel_ratio': 2.0, 'geometry_in_logical_pixels': {'height': 1050, 'width': 1680, 'x': 0, 'y': 0}, 'index_in_screens_list': 0, 'manufacturer': '', 'model': '', 'name': '', 'serial': '', 'size_in_logical_pixels': {'height': 1050, 'width': 1680}, 'virtual_geometry': {'height': 1050, 'width': 1680, 'x': 0, 'y': 0}}} Added Generación idiota: Una crítica al adolescentrismo to db in: 0.0 Added 1 books in 0.5 seconds Saving geometry for: calibre_main_window_geometry {'frame_geometry': {'height': 760, 'width': 1187, 'x': 250, 'y': 25}, 'full_screened': False, 'geometry': {'height': 732, 'width': 1187, 'x': 250, 'y': 53}, 'maximized': False, 'normal_geometry': {'height': 732, 'width': 1187, 'x': 250, 'y': 53}, 'screen': {'depth': 24, 'device_pixel_ratio': 2.0, 'geometry_in_logical_pixels': {'height': 1050, 'width': 1680, 'x': 0, 'y': 0}, 'index_in_screens_list': 0, 'manufacturer': '', 'model': '', 'name': '', 'serial': '', 'size_in_logical_pixels': {'height': 1050, 'width': 1680}, 'virtual_geometry': {'height': 1050, 'width': 1680, 'x': 0, 'y': 0}}}

ElleKayEm commented 1 year ago

Was the book downloaded with ADE on this computer and user?