apprenticeharper / DeDRM_tools

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

No mudule named winreg #1399

Open Ara0n opened 3 years ago

Ara0n commented 3 years ago

Hello i have an issue with the adeinstaller.sh, i followed the first option to install everything needed, made my adobe account, ect... but when i use the second option to extract the key the program doesn't generate the key and i have the following error in the log:

00c0:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
00cc:fixme:process:SetProcessShutdownParameters (00000380, 00000000): partial stub.
INTEL-MESA: warning: Performance support disabled, consider sysctl dev.i915.perf_stream_paranoid=0

INTEL-MESA: warning: Performance support disabled, consider sysctl dev.i915.perf_stream_paranoid=0

Traceback (most recent call last):
  File "/home/_ara0n_/.adewine//drive_c/dedrm_plugins/adobekey.py", line 114, in <module>
    import winreg
ImportError: No module named winreg
0024:fixme:msvcrt:__clean_type_info_names_internal (1D1B7210) stub
0024:fixme:msvcrt:__clean_type_info_names_internal (1E2719D0) stub
00c0:fixme:msvcrt:__clean_type_info_names_internal (64082A5C) stub

do you know why it has a problem with winreg ?

otherwise the adestart alias and the adobe program works and books can be read inside of it.

Ara0n commented 3 years ago

forgot to say but here is my system info:

OS: Manjaro Linux x86_64 
Aspire VX5-591G V1.06 
Kernel: 5.8.18-1-MANJARO 
Packages: 1365 (pacman) 
Shell: zsh 5.8 
DE: Plasma 5.20.4 
WM: KWin 
WM Theme: Sweet-Dark-transparent 
Theme: Sweet [Plasma], Breath [GTK2/3] 
Icons: candy-icons [Plasma], candy-icons [GTK2/3] 
Terminal: yakuake 
CPU: Intel i5-7300HQ (4) @ 3.500GHz 
GPU: Intel HD Graphics 630 
GPU: NVIDIA GeForce GTX 1050 Mobile 
Memory: 4362MiB / 7828MiB 
xxyzz commented 3 years ago

calibre thinks you are using Windows, that's weird. I know nothing about how to dedrm adobe books but that file(adobekey.py) clearly don't support Linux.

Ara0n commented 3 years ago

just tested on windows now and i have the same issues with winreg with https://github.com/apprenticeharper/DeDRM_tools/blob/master/DeDRM_plugin/adobekey.py image

pycrypto was installed

edit maybe i should have said that but my calibre was installed normally on linux, it was here before and works like before, the problem was only with https://github.com/apprenticeharper/DeDRM_tools/blob/master/DeDRM_plugin/adobekey.py that gave the same error

xxyzz commented 3 years ago

Maybe you are using python2 on Windows try python3. As for that Linux error, it doesn't make sense to me. The error says iswindows is True, how could that happen?

Geremia commented 3 years ago

@Ara0n It looks like you're running the Python 3 script under Python 2. PyCrypto doesn't exist for Python 2, so try installing it by running this Python 3 script:

import subprocess
import sys

def install(package):
    subprocess.check_call([sys.executable, "-m", "pip", "install", package])

install("pyopenssl")

(You might need to install PIP first by running get-pip.py under Python 3.)

phwoo commented 3 years ago

@Ara0n Are you running Adobe Digital Editions under Wine?

Possibly related to this pull request?