Open gstalnaker opened 1 month ago
Yes, you need Python and Pycryptodome installed under Wine to run the key retrieval script.
An alternative is using the DeACSM plugin to download books directly into calibre instead of downloading them with ADE. You may have to manually save your key from DeACSM and import it into DeDRM.
I assume, because using deDRM on Linux/wine is specifically mentioned in the documentation (and that ElleKayEm also mentions it), that pycryptodome is installable under Wine. Yet I cannot discover a way to do so.
Again, nothing I can download and use from that URL has proven successful.
So, if I can be a stupid human, can anyone explain how I can get pycryptodome under wine installed (either a 32-bit or 64-bit prefix) so I can use deDRM?
Have you tried using the DeACSM plugin instead of ADE?
No joy with DeACSM after nearly two hours of effort. At first with the latest v0.0.16 there was a libcrypto error. I didn't have it installed. Installed it and the error changed to: 'AttributeError: module 'calibre_plugins.deacsm.prefs' has no attribute 'DeACSM_Prefs'.
So I cannot use DeDRM or DeASCM. Such is OpenSource life, no?
P.S. Thanks ElleKayEm for responding!
P.P.S - I have submitted an issue on the DeACSM github site. Will see what happens. Will leave this open for now and if there is progress there will report here so it's documented.
Install DeACSM from within calibre. On the main menu, click the Preferences drop down menu > Get plugins to enhance calibre. In the top right "Filter by name", put DeACSM. After you install it, restart calibre. (I haven't used DeASCM myself. I have a working setup on Windows with ADE and I'm not messing with it!)
You're being very persistent in helping and I thank you. But, alas, the exact same error using the method you describe - "no attribute 'DeACSM_Prefs'. I may do as you describe - boot into Windows and see what I can do that way. Will require a new calibre install, but perhaps doing this solely for the Kindle/Kobo DRM'd books is worth that hassle as once I have them DRM-free I can shift back to my normal Linux desktop. Thanks again.
(python 3.7)
Is there a reason you're running such dated version of Python?
It may be messing things up.
I have definitely used the plugin under Linux in combination with Wine before, but yeah, it's a pain to set up and I don't remember exactly how it worked. And given that DeACSM exists (and works fine for most people) i don't think there's many people that are even still using this method.
For the DeACSM plugin, try using a newer beta version of that plugin (should be available somewhere on their github i believe?) or package it from source, that usually gets rid of these odd errors.
I've just installed a brand new version of Kindle for PC in Wine. The simple way is winetricks
. If you ask it to install the kindle
application, you get Python (and Gecko) alongside it (and presumably pycryptodome, because decryption works...).
Oh, darn. Of course you said ADE. But …. you could install the Kindle App, then ADE, then uninstall Kindle :-)
Question / bug report
deDRM v10.0.9 Installs fine. Attempts to configure for Adobe DE fails or cannot be successfully concluded.
Restarted calibre in debug mode and find the log posted below that suggests that the the deDRM plugin is looking for a Windows python executable. I think this because the wineprefix path is shown in the log in this section and the only place it appears in Calibre is in the deDRM Customization dialog.
Is it supposed to do this? I don't recall reading anywhere I should have python installed in the wine prefix.
Which version of Calibre are you running?
7.17
Which version of the DeDRM plugin are you running?
10.0.9
If applicable, which version of the Kindle software are you running?
No response
Log output