Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QUESTION] linux wine drm key extract - adobekey.py FileNotFoundError - bug? #2378

Open
ansorg opened this issue Nov 29, 2024 · 2 comments
Open

Comments

@ansorg
Copy link

ansorg commented Nov 29, 2024

CheckList

  • [ x] The Title and The Log Title are setted correctly.
  • [ x] Clarified about my environment.
  • [ x] Code block is used for the log.

FileNotFoundError on linux wine when getting the drm key

My Environment

Calibre: 7.17 Linux

Kindle: none

DeDRM: 10.0.9

wine prefix: ~/.wine

ADE: 4.5

Wine environment set up with python-3.3 and pycrypto-2.6.win32-py3.3.exe (most recent version found at https://web.archive.org/web/20130119091321/http://www.voidspace.org.uk/downloads/)

As per the log, the call to python3 within wine basically works but then it seems to try to load the adobekey.py from outside the wine prefix

Is this a bug or is my setup missing something?

Log

Console output
> ~/.wine/drive_c/windows/system32 > calibre                                                                       
011c:fixme:heap:RtlSetHeapInformation HEAP_INFORMATION_CLASS 1 not implemented!
0124:fixme:heap:RtlSetHeapInformation HEAP_INFORMATION_CLASS 1 not implemented!
0124:fixme:msvcrt:__clean_type_info_names_internal (1E27A64C) stub
DeDRM v10.0.9: Python3 exec found as wine py.exe -3
DeDRM v10.0.9: Running adobekey.py under Wine
013c:fixme:heap:RtlSetHeapInformation HEAP_INFORMATION_CLASS 1 not implemented!
0144:fixme:heap:RtlSetHeapInformation HEAP_INFORMATION_CLASS 1 not implemented!
adobekey.py v7.4
Copyright © 2009-2020 i?cabbages, Apprentice Harper et al.
Traceback (most recent call last):
  File "/home/jens/.config/calibre/plugins/DeDRM/libraryfiles/adobekey.py", line 289, in adeptkeys
    regkey = winreg.OpenKey(cuser, DEVICE_KEY_PATH)
FileNotFoundError: [WinError 2] Datei nicht gefunden

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/jens/.config/calibre/plugins/DeDRM/libraryfiles/adobekey.py", line 571, in <module>
    sys.exit(cli_main())
  File "/home/jens/.config/calibre/plugins/DeDRM/libraryfiles/adobekey.py", line 488, in cli_main
    keys, names = adeptkeys()
  File "/home/jens/.config/calibre/plugins/DeDRM/libraryfiles/adobekey.py", line 292, in adeptkeys
    raise ADEPTError("Adobe Digital Editions not activated")
__main__.ADEPTError: Adobe Digital Editions not activated
0144:fixme:msvcrt:__clean_type_info_names_internal (7A6F882C) stub
0144:fixme:msvcrt:__clean_type_info_names_internal (1D1B51CC) stub
0144:fixme:msvcrt:__clean_type_info_names_internal (1E27A64C) stub
DeDRM v10.0.9: Wine subprocess call error: 1
DeDRM v10.0.9: Found and decrypted 0 key files
@ansorg
Copy link
Author

ansorg commented Nov 29, 2024

hm, seems the error is referring to the DEVICE_KEY_PATH rather than the python script file.

the source

DEVICE_KEY_PATH = r'Software\Adobe\Adept\Device'

mentions a key in HKCU but it is not there for me. Though ADE has been started multiple times already to import books.

What am I missing?

@ElleKayEm
Copy link

Maybe because ADE isn't authorized with an Adobe ID.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants