apprenticeharper / DeDRM_tools

DeDRM tools for ebooks
14.46k stars 1.49k forks source link

DEDRM Not Working For me #1317

Closed lsbpub closed 3 years ago

lsbpub commented 3 years ago

Calibre 3.1, Kindle for Mac 1.29, Kindle book

I installed the plugin but it does not remove DRM.

calibre Debug log calibre 3.10 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.12 OSX: ('10.15.7', ('', '', ''), 'x86_64') Interface language: None Successfully initialized third party plugins: DeDRM (6, 8, 0) && Kindle and Mobipocket DeDRM (0, 4, 5) && Inept PDF DeDRM (0, 1, 5) calibre 3.10 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.12 OSX: ('10.15.7', ('', '', ''), 'x86_64') Interface language: None Successfully initialized third party plugins: DeDRM (6, 8, 0) && Kindle and Mobipocket DeDRM (0, 4, 5) && Inept PDF DeDRM (0, 1, 5) devicePixelRatio: 2.0 logicalDpi: 72.0 x 72.0 physicalDpi: 110.50000166 x 110.50000166 Using calibre Qt style: True Starting up... Loaded cached store plugin for: Publio at version: 9 Loaded cached store plugin for: XinXii at version: 2 Loaded cached store plugin for: Legimi at version: 10 Loaded cached store plugin for: Google Books at version: 6 Loaded cached store plugin for: Mills and Boon UK at version: 4 Loaded cached store plugin for: LitRes at version: 2 Loaded cached store plugin for: Empik at version: 9 Loaded cached store plugin for: ManyBooks at version: 2 Loaded cached store plugin for: Project Gutenberg at version: 6 Loaded cached store plugin for: Beam EBooks DE at version: 4 Loaded cached store plugin for: ebook.de at version: 6 Loaded cached store plugin for: Amazon Kindle at version: 19 Loaded cached store plugin for: Woblink at version: 15 Loaded cached store plugin for: Virtualo at version: 10 Started up in 1.58 seconds with 36 books DeDRM v6.8.0: Trying to decrypt Afro-American-Historical-and-Genealogical-Society-2020-Annual-Conference-FROM-1619-VIRGINIA-TO-PRESENT-DAY-CORRECTING-THE-NATIONAL-NARRATIVE-IN-THE-MIDST-OF-COVID-19-2.azw3 Using Library AlfCrypto DLL/DYLIB/SO MobiDeDrm v0.42. Copyright © 2008-2017 The Dark Reverser, Apprentice Harper et al. Decrypting Kindle Format 8 ebook: Afro-American Historical and Genealogical Society 2020 Annual Conference: FROM 1619 VIRGINIA TO PRESENT DAY: CORRECTING THE NATIONAL NARRATIVE IN THE MIDST OF COVID-19 Found 2 keys to try after 0.1 seconds Crypto Type is: 2 DeDRM v6.8.0: Failed to decrypt with error: No key found in 2 keys tried. DeDRM v6.8.0: Looking for new default Kindle Key after 0.1 seconds Found k4Mac kinf2018 file: /Users/lsbealold/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2018 Decrypted key file using IDString '01fbc5c44982' and UserName 'lsbealold' DeDRM v6.8.0: Found 1 new key MobiDeDrm v0.42. Copyright © 2008-2017 The Dark Reverser, Apprentice Harper et al. Decrypting Kindle Format 8 ebook: Afro-American Historical and Genealogical Society 2020 Annual Conference: FROM 1619 VIRGINIA TO PRESENT DAY: CORRECTING THE NATIONAL NARRATIVE IN THE MIDST OF COVID-19 Got DSN key from database default_key_1 Found 4 keys to try after 0.6 seconds Crypto Type is: 2 DeDRM v6.8.0: Ultimately failed to decrypt after 0.6 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 171, 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.6 seconds. Read the FAQs at Harper's repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md Running file type plugin Kindle and Mobipocket DeDRM failed with traceback: Traceback (most recent call last): File "site-packages/calibre/customize/ui.py", line 171, in _run_filetype_plugins File "calibre_plugins.k4mobidedrm.init", line 68, in run File "calibre_plugins.k4mobidedrm.init", line 239, in config File "site-packages/calibre/customize/zipplugin.py", line 183, in load_module File "calibre_plugins.k4mobidedrm.config", line 1, in ImportError: No module named PyQt4.Qt Using Library AlfCrypto DLL/DYLIB/SO 2020-10-14 14:29:44.477 Calibre[11887:76781] deliverNotificationWithTitle()

Thanks for all you do!!!!

yannick-cw commented 3 years ago

Similar failure for me as well

calibre 4.20  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: Thu Jun 18 20:49:00 PDT 2020; root:xnu-6153.141.1~1/RELEASE_X86_64')
Python 2.7.16
OSX: ('10.15.6', ('', '', ''), 'x86_64')
Interface language: None
Successfully initialized third party plugins: DeDRM (6, 8, 0) && Obok DeDRM (6, 7, 0)
devicePixelRatio: 2.0
logicalDpi: 72.0 x 72.0
physicalDpi: 132.000001982 x 132.50000199
Using calibre Qt style: True
[0.00] Starting up...
[0.03] Showing splash screen...
[0.31] splash screen shown
[0.31] Initializing db...
[0.33] db initialized
[0.33] 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
[1.26] main UI initialized...
[1.26] Hiding splash screen
[1.54] splash screen hidden
[1.54] Started up in 1.54 seconds with 11 books

Worker Launch took: 0.122694969177
Job: 0 Convert book 1 of 1 (Auf der anderen Seite des Flusses) finished
Convert book 1 of 1 (Auf der anderen Seite des Flusses)
    Conversion options changed from defaults:
      read_metadata_from_opf: u'/var/folders/qj/5h36z6rj01g7d_zbrpjmj0q00000gn/C/calibre_4.20.0_tmp_NIxJzN/kb8kau.opf'
      verbose: 2
    Resolved conversion options
    calibre version: 4.20.0
    {'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': None,
     'debug_pipeline': None,
     'dehyphenate': True,
     'delete_blank_paragraphs': True,
     'disable_font_rescaling': False,
     'dont_compress': False,
     'duplicate_links_in_toc': False,
     'embed_all_fonts': False,
     'embed_font_family': None,
     'enable_heuristics': False,
     'expand_css': False,
     'extra_css': None,
     'extract_to': 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 0x10c62bf90>,
     '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,
     'mobi_file_type': u'old',
     'mobi_ignore_margins': False,
     'mobi_keep_original_images': False,
     'mobi_toc_at_start': False,
     'no_chapters_in_toc': False,
     'no_inline_navbars': False,
     'no_inline_toc': False,
     'output_profile': <calibre.customize.profiles.OutputProfile object at 0x10c62d390>,
     'page_breaks_before': u'/',
     'personal_doc': u'[PDOC]',
     'prefer_author_sort': False,
     'prefer_metadata_cover': False,
     'pretty_print': False,
     'pubdate': None,
     'publisher': None,
     'rating': None,
     'read_metadata_from_opf': u'/var/folders/qj/5h36z6rj01g7d_zbrpjmj0q00000gn/C/calibre_4.20.0_tmp_NIxJzN/kb8kau.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,
     'share_not_sync': False,
     '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: EPUB Input running
    on /var/folders/qj/5h36z6rj01g7d_zbrpjmj0q00000gn/C/calibre_4.20.0_tmp_NIxJzN/a07ix4.epub
    Python function terminated unexpectedly: a07ix4.epub
    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 "site-packages/calibre/ebooks/conversion/plugins/epub_input.py", line 290, in convert
    calibre.ebooks.DRMError: a07ix4.epub
ElleKayEm commented 3 years ago

@lsbpub That doesn't look like a book from Kindle for Mac. If it's from or for an E-ink Kindle, then enter the Kindle's serial number into DeDRM's customization. Also, you can remove the old single file type DeDRM plugins.

@yannick-cw DRM is removed when you first add a book to calibre, not during conversion. Here's how to get a log: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md#i-cannot-solve-my-problem-with-the-dedrm-plugin-and-now-i-need-to-post-a-log-how-do-i-do-that

yannick-cw commented 3 years ago

@ElleKayEm thanks, it was my mistake, I did not re-import after downgrading to a 4.x calibre version!

tartley commented 3 years ago

I added these advice(s?) into the proposed improved documentation wiki page: https://github.com/apprenticeharper/DeDRM_tools/wiki/Exactly-how-to-remove-DRM

I don't think there are any other actions for this project on this Issue, so I'm closing it. Peace!