Comments (3)
I've suggested a fairly naive fix that I welcome feedback on: #14
I call this naive because using the first directory from sys.path
suffixed with DLLs
is not what I consider production-worthy. This should be considered nothing more than a proof-of-concept. Note, I have attempted to fix the issue with find_library
by first calling os.add_dll_directory
with the path to the system DLLs directory, to no avail.
from dedrm_tools.
Thanks for that issue report / PR.
I was unable to get it to correctly find that DLL under Wine either, no matter what I tried.
I did test Wine key retrieval in the past without issues, but I probably had Crypto(dome) installed and it used that instead of OpenSSL.
Your solution with checking if the path ends with "DLLs" sounded rather hack-y and unreliable, so I instead implemented it in a way to just check all folders in the PATH variable and check if the DLL is actually present in one of them, that should be way more reliable.
Also, I noticed that the non-OpenSSL code only tried to use Crypto and not Cryptodome and just quickly fixed that, too.
I'm going to close your PR without merging it, but I've added you as author of my commit d4eddbc with the bugfix. Thanks!
If there's any more issues under Wine, feel free to re-open this.
from dedrm_tools.
Sounds good. The exhaustive sys.path
check is a sensible approach.
from dedrm_tools.
Related Issues (20)
- DeDRM 10.0.9 not working for KFX-ZIP format book downloaded from Kindle for PC 1.26 in Wine HOT 5
- ERROR: Unhandled exception caused while installing DeDRM_tools_10.0.3.zip HOT 2
- Obok DeDRM not able to open or convert newer Kobo book HOT 7
- can't customize plugin HOT 1
- Adobe DRM issue - Incorrect AES key length HOT 14
- DMR Removal Not Happening HOT 4
- Unable to decrypt ADE .epub HOT 3
- Need help with removing DRM. HOT 1
- Can't remove drm from Kindle book HOT 3
- Cant' remove DRM from Google Play Book HOT 4
- Can't remove DRM from KFX HOT 6
- ERROR: KFX conversion failed HOT 3
- Can not generate kindle key file on windows when using a Chinese username HOT 9
- Failed kepub decryption for Obok for last book in Kobo e-reader library. HOT 3
- Cannot remove DRM amazon HOT 3
- Unable to remove DRM HOT 2
- Unable to remove DRM - On Kindle Ebook "Second Chance Love in Point Perry" Author Joanne Speirs HOT 3
- 'make_release.py' script not working HOT 4
- Unable to remove DRM HOT 1
- DeDRM issue HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dedrm_tools.