noDRM / DeDRM_tools

DeDRM tools for ebooks
7.05k stars 316 forks source link

Trying to deDRM book from ADE #339

Open davids74 opened 1 year ago

davids74 commented 1 year ago

DeDRM v10.0.3: Trying to decrypt The blue lantern and other stories.pdf DeDRM v10.0.3: The blue lantern and other stories.pdf is a PDF ebook with encryption EBX_HANDLER DeDRM v10.0.3: The blue lantern and other stories.pdf is a PDF ebook (EBX) for UUID f4593bea-4985-47fd-838e-338c8e431a04 DeDRM v10.0.3: Looking for new default Adobe Digital Editions Keys after 0.8 seconds DeDRM v10.0.3: Trying a new default key DeDRM v10.0.3: Exception when decrypting after 1.3 seconds Traceback (most recent call last): File "calibre_plugins.dedrm.init", line 795, in PDFIneptDecrypt File "calibre_plugins.dedrm.ineptpdf", line 2286, in decryptBook File "calibre_plugins.dedrm.ineptpdf", line 2094, in init File "calibre_plugins.dedrm.ineptpdf", line 1253, in initialize File "calibre_plugins.dedrm.ineptpdf", line 1672, in initialize_ebx_inept AttributeError: 'module' object has no attribute 'import_key' DeDRM v10.0.3: Failed to decrypt with new default key after 1.3 seconds DeDRM v10.0.3: Finished after 1.3 seconds Traceback (most recent call last): File "site-packages/calibre/customize/ui.py", line 416, in get_file_type_metadata File "site-packages/calibre/customize/builtins.py", line 342, in get_metadata File "site-packages/calibre/ebooks/metadata/pdf.py", line 115, in get_metadata ValueError: Could not read info dict from PDF Syntax Error: Couldn't find the 'EBX_HANDLER' security handler

davids74 commented 1 year ago

I clicked on + sign in customise plugin ADE dialog and it added a string but reimporting the book does not make it readable.

ElleKayEm commented 1 year ago

Try deleting the key and re-importing the book.

davids74 commented 1 year ago

I did, I removed and readded the book in ADE 4.5 with and without key and then also with ADE 2.01 with no luck.

I also unauthorised and re-authorised the ADE 'for this computer'and tried without signing in the Adobe and with.

The Calibre plugin comes back with the same errors regardless of version of ADE or approach in download of the book.

Also when I close the add key dialog in plugin, it says

calibre, version 2.85.1 ERROR: Unhandled exception: UnicodeDecodeError:'utf8' codec can't decode byte 0x82 in position 1: invalid start byte

calibre 2.85.1 embedded-python: True is64bit: True Darwin-17.7.0-x86_64-i386-64bit Darwin ('64bit', '') ('Darwin', '17.7.0', 'Darwin Kernel Version 17.7.0: Thu Jun 21 22:53:14 PDT 2018; root:xnu-4570.71.2~1/RELEASE_X86_64') Python 2.7.11 OSX: ('10.13.6', ('', '', ''), 'x86_64') Successfully initialized third party plugins: DeDRM (10, 0, 3) && Obok DeDRM (10, 0, 3) Traceback (most recent call last): File "site-packages/calibre/gui2/preferences/plugins.py", line 290, in double_clicked File "site-packages/calibre/gui2/preferences/plugins.py", line 371, in modify_plugin File "site-packages/calibre/customize/init.py", line 176, in do_user_config File "calibre_plugins.dedrm.init", line 1083, in save_settings File "calibre_plugins.dedrm.config", line 260, in save_settings File "calibre_plugins.dedrm.prefs", line 94, in set File "site-packages/calibre/utils/config.py", line 429, in setitem File "site-packages/calibre/utils/config.py", line 371, in commit File "site-packages/calibre/utils/config.py", line 413, in to_raw File "lib/python2.7/json/init.py", line 251, in dumps File "lib/python2.7/json/encoder.py", line 209, in encode File "lib/python2.7/json/encoder.py", line 434, in _iterencode File "lib/python2.7/json/encoder.py", line 408, in _iterencode_dict File "lib/python2.7/json/encoder.py", line 390, in _iterencode_dict UnicodeDecodeError: 'utf8' codec can't decode byte 0x82 in position 1: invalid start byte

ElleKayEm commented 1 year ago

The really old version of calibre with this newest version of DeDRM could be an issue. Looks like you have High Sierra. You could try calibre 3.48 and DeDRM 6.8.1.

https://download.calibre-ebook.com/3.48.0/ https://github.com/apprenticeharper/DeDRM_tools/releases/tag/v6.8.1

romad275 commented 1 year ago

I’m also limited to High Sierra on my iMac so I’stayed with Calibre 3.48 & DeDRM 6.6.2. BTW, DeDRM 6.8.1 is ONLY needed if you are using Big Sur on your Mac, so 6.8.0 should also work with High Sierra.

Sincerely, Dennis B. Swaney

Cogito Ergo Mac

On 28May23, at 12:16 , ElleKayEm @.***> wrote:

The really old version of calibre with this newest version of DeDRM could be an issue. Looks like you have High Sierra. You could try calibre 3.48 and DeDRM 6.8.1.

https://download.calibre-ebook.com/3.48.0/ https://github.com/apprenticeharper/DeDRM_tools/releases/tag/v6.8.1

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.

davids74 commented 1 year ago

This time it worked. Thanks!

(I am stuck with High Sierra because it appeared my video card was not Metal. Now on latest HCLs it appears to be listed as Metal so maybe I can update to something newer. I have always been running on hackintoshes. The last one with Asus P5K mobo lasted for 8 years on Snow Leo, then Mountain Lion. After Google stopped supporting Chrome running on them in 2016 I upgraded to Z170k and GTX 750 Ti to get on High Sierra in 2018. I can't believe it is 2023 around. Time flies. Maybe since my video is Metal after all I can check out if my computer can run something newer.)