apprenticeharper / DeDRM_tools

DeDRM tools for ebooks
14.36k stars 1.48k forks source link

DeDRM Macintosh Application does not work #505

Open iseens opened 6 years ago

iseens commented 6 years ago

I can't use the "DeDRM.app" for Mac to remove DRM now.

Thanks.

ElleKayEm commented 6 years ago

Are you sure Kindle for Mac hasn't updated to a more recent version? Because I'm wondering if this is in KFX format and whether or not the stand alone app can handle that.

If that's not it, then perhaps the key it's finding is actually from a previous installation of Kindle for Mac.

j-howell commented 6 years ago

From the log it looks to me like the import of ion.py failed. Unfortunately when that happens it assumes that it must be running as a calibre plugin and attempts to import the same module again, hiding the real cause of the error.

I suspect a missing dependency in the standalone python, perhaps lzma.

isjamesalive commented 6 years ago

@j-howell Yeah I think so! I got this working by installing backports.lzma and pycrypto with pip.

Python2.7 on High Sierra doesn't seem to include the site-packages directory where pip installs them so I just patched ion.py:

--- ion.py  2018-05-25 12:50:10.000000000 +0930
+++ ion_fixed.py    2018-05-25 12:50:17.000000000 +0930
@@ -11,6 +11,9 @@
 import os
 import os.path
 import struct
+import sys
+
+sys.path.append('/usr/local/lib/python2.7/site-packages/')

 try:
     from cStringIO import StringIO
apprenticeharper commented 6 years ago

I'm hoping that this issue is fixed with 6.6.1, but I haven't been able to check.

atroia commented 6 years ago

I'm having the same or similar issue running Sierra (10.12.6) I keep getting an alert when I try to run 6.6.1 that says "The application “DeDRM” can’t be opened." 6.5.5 runs fine.

cdkii commented 6 years ago

Mac App 6.6.1 won't open on macOS 10.13.5... "The application “DeDRM” can’t be opened"

image

Mac App 6.6 would previously open but wouldn't decrypt files. Mac App 6.5.5 works fine.

cdkii commented 6 years ago

This fixed mine not opening.

chmod +x DeDRM.app/Contents/MacOS/*

You need the folder for the location of the Mac app, so if its in your downloads folder, it would be as follows:

chmod +x /Users/(username)/Downloads/DeDRM_tools_6/DeDRM_Macintosh_Application/DeDRM.app/Contents/MacOS/*

joseraulgonzalez commented 6 years ago

@cdkii Thanks! That also worked for me.

apprenticeharper commented 5 years ago

It seems that copying the files to create the archive wipes out the flag on Windows that zip interprets as executable on Unix systems. If anyone has a fix for this, please patch the copying script.

JM0604 commented 4 years ago

I know this is an old thread but my DeDRM 6.6.3 won't open with Mac. I am getting the same error as above. I see someone posted how to fix it but I am not familiar with this. How do you apply that fix to it so that it opens?

ElleKayEm commented 4 years ago

Take a look at the FAQs here:

https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md#the-macintosh-application

JM0604 commented 4 years ago

thank you! i think I need to use the command thing but I am not familiar with that. I'll try and figure it out! Thank you!