apprenticeharper / DeDRM_tools

DeDRM tools for ebooks
14.56k stars 1.52k forks source link

Version 6.6.3 does not decrypt kindle AZW3 format #800

Open jillgibson opened 5 years ago

jillgibson commented 5 years ago

When trying to deDRM Kindle book with azw3 format, I get the following error (I've removed the Kindle serial #798 ). The latest version of DRM that I've been able to use successfully (on Mac) is 6.5.4. I don't have any problems DRMing kindle ebooks with that version. Any help would be appreciated. I don't know anything about programming. :

There is 1 ebook to be decrypted. Processing file: The Rescue (Ryan Decker Book 1).azw3 shellcommand: /usr/bin/python '/private/var/folders/qw/ck80j0408vl81600r6_h4pth0000gp/T/AppTranslocation/11762033-1E3C-4857-A64F-CB834F2BEE80/d/DeDRM.app/Contents/Resources/k4mobidedrm.py' -k '/Users/jillgibson/Library/Preferences/com.apprenticealf.dedrm/Local Kindle Key.k4i' -s ' '/Users/jillgibson/Desktop/The Rescue (Ryan Decker Book 1).azw3' '/Users/jillgibson/Desktop/' > '/Users/jillgibson/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log' shellresult: Using Library AlfCrypto DLL/DYLIB/SO Traceback (most recent call last): File "/private/var/folders/qw/ck80j0408vl81600r6_h4pth0000gp/T/AppTranslocation/11762033-1E3C-4857-A64F-CB834F2BEE80/d/DeDRM.app/Contents/Resources/k4mobidedrm.py", line 94, in import kfxdedrm File "/private/var/folders/qw/ck80j0408vl81600r6_h4pth0000gp/T/AppTranslocation/11762033-1E3C-4857-A64F-CB834F2BEE80/d/DeDRM.app/Contents/Resources/kfxdedrm.py", line 20, in import ion File "/private/var/folders/qw/ck80j0408vl81600r6_h4pth0000gp/T/AppTranslocation/11762033-1E3C-4857-A64F-CB834F2BEE80/d/DeDRM.app/Contents/Resources/ion.py", line 20, in from Crypto.Cipher import AES ImportError: No module named Crypto.Cipher shellcommand: /usr/bin/python '/private/var/folders/qw/ck80j0408vl81600r6_h4pth0000gp/T/AppTranslocation/11762033-1E3C-4857-A64F-CB834F2BEE80/d/DeDRM.app/Contents/Resources/kindlekey.py' '/Users/jillgibson/Library/Preferences/com.apprenticealf.dedrm/newKeys/' > '/Users/jillgibson/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log' shellresult: kindlekey.py v2.6 Copyright © 2010-2016 by some_updates, Apprentice Alf and Apprentice Harper Found k4Mac kinf2011 file: /Users/jillgibson/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2011 Decrypted key file using IDString 'S2ZMNY0HA29967' and UserName 'jillgibson' Saved a key to /Users/jillgibson/Library/Preferences/com.apprenticealf.dedrm/newKeys/kindlekey1.k4i

shellcommand: /usr/bin/python '/private/var/folders/qw/ck80j0408vl81600r6_h4pth0000gp/T/AppTranslocation/11762033-1E3C-4857-A64F-CB834F2BEE80/d/DeDRM.app/Contents/Resources/k4mobidedrm.py' -k '/Users/jillgibson/Library/Preferences/com.apprenticealf.dedrm/KindleKey 14.der' '/Users/jillgibson/Desktop/The Rescue (Ryan Decker Book 1).azw3' '/Users/jillgibson/Desktop/' > '/Users/jillgibson/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log' shellresult: Using Library AlfCrypto DLL/DYLIB/SO Traceback (most recent call last): File "/private/var/folders/qw/ck80j0408vl81600r6_h4pth0000gp/T/AppTranslocation/11762033-1E3C-4857-A64F-CB834F2BEE80/d/DeDRM.app/Contents/Resources/k4mobidedrm.py", line 94, in import kfxdedrm File "/private/var/folders/qw/ck80j0408vl81600r6_h4pth0000gp/T/AppTranslocation/11762033-1E3C-4857-A64F-CB834F2BEE80/d/DeDRM.app/Contents/Resources/kfxdedrm.py", line 20, in import ion File "/private/var/folders/qw/ck80j0408vl81600r6_h4pth0000gp/T/AppTranslocation/11762033-1E3C-4857-A64F-CB834F2BEE80/d/DeDRM.app/Contents/Resources/ion.py", line 20, in from Crypto.Cipher import AES ImportError: No module named Crypto.Cipher There was an error with 1 ebook: The Rescue (Ryan Decker Book 1).azw3 couldn't be decrypted.

ZolaLa9 commented 5 years ago

Starting with 6.6.x+, the Mac standalone DeDRM app requires PyCrypto (pre-6.6 was able to use software that came pre-installed on Macs).

Open a Terminal window and try: sudo python -m pip install pycrypto

If that doesn't work, see more details here: https://github.com/apprenticeharper/DeDRM_tools/issues/590#issuecomment-433083174

ETA: I don't know what you mean by "I've removed the Kindle serial #798", but the issue in #798 is unrelated to your CryptoCipher error.

jillgibson commented 5 years ago

I don't know anything about how to use terminal or what PyCrypto is, but I did paste what you wrote in the terminal window, then quit that app and tried again to deDRM my book. I still got an error message that it couldn't be decrypted. This is the DeDRM log. Maybe I need to restart the Mac after adding the code you gave me in the terminal window? Thank you for your help.

There is 1 ebook to be decrypted. Processing file: The Rescue (Ryan Decker Book 1).azw3 shellcommand: /usr/bin/python '/private/var/folders/qw/ck80j0408vl81600r6_h4pth0000gp/T/AppTranslocation/C9F47E05-A9CB-48C9-8471-4F8ECA3F22D0/d/DeDRM.app/Contents/Resources/k4mobidedrm.py' -k '/Users/jillgibson/Library/Preferences/com.apprenticealf.dedrm/Local Kindle Key.k4i' -s '/Users/jillgibson/Desktop/The Rescue (Ryan Decker Book 1).azw3' '/Users/jillgibson/Desktop/' > '/Users/jillgibson/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log' shellresult: Using Library AlfCrypto DLL/DYLIB/SO Traceback (most recent call last): File "/private/var/folders/qw/ck80j0408vl81600r6_h4pth0000gp/T/AppTranslocation/C9F47E05-A9CB-48C9-8471-4F8ECA3F22D0/d/DeDRM.app/Contents/Resources/k4mobidedrm.py", line 94, in import kfxdedrm File "/private/var/folders/qw/ck80j0408vl81600r6_h4pth0000gp/T/AppTranslocation/C9F47E05-A9CB-48C9-8471-4F8ECA3F22D0/d/DeDRM.app/Contents/Resources/kfxdedrm.py", line 20, in import ion File "/private/var/folders/qw/ck80j0408vl81600r6_h4pth0000gp/T/AppTranslocation/C9F47E05-A9CB-48C9-8471-4F8ECA3F22D0/d/DeDRM.app/Contents/Resources/ion.py", line 20, in from Crypto.Cipher import AES ImportError: No module named Crypto.Cipher shellcommand: /usr/bin/python '/private/var/folders/qw/ck80j0408vl81600r6_h4pth0000gp/T/AppTranslocation/C9F47E05-A9CB-48C9-8471-4F8ECA3F22D0/d/DeDRM.app/Contents/Resources/kindlekey.py' '/Users/jillgibson/Library/Preferences/com.apprenticealf.dedrm/newKeys/' > '/Users/jillgibson/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log' shellresult: kindlekey.py v2.6 Copyright © 2010-2016 by some_updates, Apprentice Alf and Apprentice Harper Found k4Mac kinf2011 file: /Users/jillgibson/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2011 Decrypted key file using IDString 'S2ZMNY0HA29967' and UserName 'jillgibson' Saved a key to /Users/jillgibson/Library/Preferences/com.apprenticealf.dedrm/newKeys/kindlekey1.k4i

shellcommand: /usr/bin/python '/private/var/folders/qw/ck80j0408vl81600r6_h4pth0000gp/T/AppTranslocation/C9F47E05-A9CB-48C9-8471-4F8ECA3F22D0/d/DeDRM.app/Contents/Resources/k4mobidedrm.py' -k '/Users/jillgibson/Library/Preferences/com.apprenticealf.dedrm/KindleKey 17.der' '/Users/jillgibson/Desktop/The Rescue (Ryan Decker Book 1).azw3' '/Users/jillgibson/Desktop/' > '/Users/jillgibson/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log' shellresult: Using Library AlfCrypto DLL/DYLIB/SO Traceback (most recent call last): File "/private/var/folders/qw/ck80j0408vl81600r6_h4pth0000gp/T/AppTranslocation/C9F47E05-A9CB-48C9-8471-4F8ECA3F22D0/d/DeDRM.app/Contents/Resources/k4mobidedrm.py", line 94, in import kfxdedrm File "/private/var/folders/qw/ck80j0408vl81600r6_h4pth0000gp/T/AppTranslocation/C9F47E05-A9CB-48C9-8471-4F8ECA3F22D0/d/DeDRM.app/Contents/Resources/kfxdedrm.py", line 20, in import ion File "/private/var/folders/qw/ck80j0408vl81600r6_h4pth0000gp/T/AppTranslocation/C9F47E05-A9CB-48C9-8471-4F8ECA3F22D0/d/DeDRM.app/Contents/Resources/ion.py", line 20, in from Crypto.Cipher import AES ImportError: No module named Crypto.Cipher There was an error with 1 ebook: The Rescue (Ryan Decker Book 1).azw3 couldn't be decrypted.

ZolaLa9 commented 5 years ago

That's still giving you the "No module named Crypto.Cipher" error, which means PyCrypto didn't install. Do you recall what the Terminal message was?

If it was "No module named pip", try: sudo easy_install pip

Then try again with: sudo python -m pip install pycrypto

If you get a pop-up window that asks you to install Command Line Tools for XCode, you can agree and click "Continue"

Then try again with: sudo python -m pip install pycrypto

If it still gives you the Crypto.Cipher error, you may need the -H or --force switches that jalavera used. (I didn't need those switches, but jalavera did).

If the error changes from no Crypto.Cipher to no PyLzma, then you're making progress. It means PyCrypto was installed, but you still need PyLzma.

Try: sudo python -m pip install pylzma

jillgibson commented 5 years ago

First off, thanks so much for your help. I have no idea what I'm doing, so I'm very appreciative.

I did as you suggested and received the terminal message "No module named pip" and went to the next step. Pip installed. Went to the next step... install pycrypto. No pop-up window. This is what came up next in the terminal window:

DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. The directory '/Users/jillgibson/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. The directory '/Users/jillgibson/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. Collecting pycrypto Downloading https://files.pythonhosted.org/packages/60/db/645aa9af249f059cc3a368b118de33889219e0362141e75d4eaf6f80f163/pycrypto-2.6.1.tar.gz (446kB) 100% |████████████████████████████████| 450kB 1.5MB/s Installing collected packages: pycrypto Running setup.py install for pycrypto ... error Complete output from command /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u -c "import setuptools, tokenize;file='/private/tmp/pip-install-6D8OSq/pycrypto/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /private/tmp/pip-record-8wb7YE/install-record.txt --single-version-externally-managed --compile: running install running build running build_py creating build creating build/lib.macosx-10.3-x86_64-2.7 creating build/lib.macosx-10.3-x86_64-2.7/Crypto copying lib/Crypto/init.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto copying lib/Crypto/pct_warnings.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto creating build/lib.macosx-10.3-x86_64-2.7/Crypto/Hash copying lib/Crypto/Hash/init.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Hash copying lib/Crypto/Hash/hashalgo.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Hash copying lib/Crypto/Hash/HMAC.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Hash copying lib/Crypto/Hash/MD2.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Hash copying lib/Crypto/Hash/MD4.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Hash copying lib/Crypto/Hash/MD5.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Hash copying lib/Crypto/Hash/RIPEMD.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Hash copying lib/Crypto/Hash/SHA.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Hash copying lib/Crypto/Hash/SHA224.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Hash copying lib/Crypto/Hash/SHA256.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Hash copying lib/Crypto/Hash/SHA384.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Hash copying lib/Crypto/Hash/SHA512.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Hash creating build/lib.macosx-10.3-x86_64-2.7/Crypto/Cipher copying lib/Crypto/Cipher/init.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Cipher copying lib/Crypto/Cipher/AES.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Cipher copying lib/Crypto/Cipher/ARC2.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Cipher copying lib/Crypto/Cipher/ARC4.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Cipher copying lib/Crypto/Cipher/blockalgo.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Cipher copying lib/Crypto/Cipher/Blowfish.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Cipher copying lib/Crypto/Cipher/CAST.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Cipher copying lib/Crypto/Cipher/DES.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Cipher copying lib/Crypto/Cipher/DES3.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Cipher copying lib/Crypto/Cipher/PKCS1_OAEP.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Cipher copying lib/Crypto/Cipher/PKCS1_v1_5.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Cipher copying lib/Crypto/Cipher/XOR.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Cipher creating build/lib.macosx-10.3-x86_64-2.7/Crypto/Util copying lib/Crypto/Util/init.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Util copying lib/Crypto/Util/_number_new.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Util copying lib/Crypto/Util/asn1.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Util copying lib/Crypto/Util/Counter.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Util copying lib/Crypto/Util/number.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Util copying lib/Crypto/Util/py21compat.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Util copying lib/Crypto/Util/py3compat.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Util copying lib/Crypto/Util/randpool.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Util copying lib/Crypto/Util/RFC1751.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Util copying lib/Crypto/Util/winrandom.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Util creating build/lib.macosx-10.3-x86_64-2.7/Crypto/Random copying lib/Crypto/Random/init.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Random copying lib/Crypto/Random/_UserFriendlyRNG.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Random copying lib/Crypto/Random/random.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Random creating build/lib.macosx-10.3-x86_64-2.7/Crypto/Random/Fortuna copying lib/Crypto/Random/Fortuna/init.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Random/Fortuna copying lib/Crypto/Random/Fortuna/FortunaAccumulator.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Random/Fortuna copying lib/Crypto/Random/Fortuna/FortunaGenerator.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Random/Fortuna copying lib/Crypto/Random/Fortuna/SHAd256.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Random/Fortuna creating build/lib.macosx-10.3-x86_64-2.7/Crypto/Random/OSRNG copying lib/Crypto/Random/OSRNG/init.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Random/OSRNG copying lib/Crypto/Random/OSRNG/fallback.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Random/OSRNG copying lib/Crypto/Random/OSRNG/nt.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Random/OSRNG copying lib/Crypto/Random/OSRNG/posix.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Random/OSRNG copying lib/Crypto/Random/OSRNG/rng_base.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Random/OSRNG creating build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest copying lib/Crypto/SelfTest/init.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest copying lib/Crypto/SelfTest/st_common.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest creating build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Cipher copying lib/Crypto/SelfTest/Cipher/init.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Cipher copying lib/Crypto/SelfTest/Cipher/common.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Cipher copying lib/Crypto/SelfTest/Cipher/test_AES.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Cipher copying lib/Crypto/SelfTest/Cipher/test_ARC2.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Cipher copying lib/Crypto/SelfTest/Cipher/test_ARC4.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Cipher copying lib/Crypto/SelfTest/Cipher/test_Blowfish.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Cipher copying lib/Crypto/SelfTest/Cipher/test_CAST.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Cipher copying lib/Crypto/SelfTest/Cipher/test_DES.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Cipher copying lib/Crypto/SelfTest/Cipher/test_DES3.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Cipher copying lib/Crypto/SelfTest/Cipher/test_pkcs1_15.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Cipher copying lib/Crypto/SelfTest/Cipher/test_pkcs1_oaep.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Cipher copying lib/Crypto/SelfTest/Cipher/test_XOR.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Cipher creating build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Hash copying lib/Crypto/SelfTest/Hash/init.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Hash copying lib/Crypto/SelfTest/Hash/common.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Hash copying lib/Crypto/SelfTest/Hash/test_HMAC.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Hash copying lib/Crypto/SelfTest/Hash/test_MD2.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Hash copying lib/Crypto/SelfTest/Hash/test_MD4.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Hash copying lib/Crypto/SelfTest/Hash/test_MD5.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Hash copying lib/Crypto/SelfTest/Hash/test_RIPEMD.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Hash copying lib/Crypto/SelfTest/Hash/test_SHA.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Hash copying lib/Crypto/SelfTest/Hash/test_SHA224.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Hash copying lib/Crypto/SelfTest/Hash/test_SHA256.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Hash copying lib/Crypto/SelfTest/Hash/test_SHA384.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Hash copying lib/Crypto/SelfTest/Hash/test_SHA512.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Hash creating build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Protocol copying lib/Crypto/SelfTest/Protocol/init.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Protocol copying lib/Crypto/SelfTest/Protocol/test_AllOrNothing.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Protocol copying lib/Crypto/SelfTest/Protocol/test_chaffing.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Protocol copying lib/Crypto/SelfTest/Protocol/test_KDF.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Protocol copying lib/Crypto/SelfTest/Protocol/test_rfc1751.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Protocol creating build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/PublicKey copying lib/Crypto/SelfTest/PublicKey/init.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/PublicKey copying lib/Crypto/SelfTest/PublicKey/test_DSA.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/PublicKey copying lib/Crypto/SelfTest/PublicKey/test_ElGamal.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/PublicKey copying lib/Crypto/SelfTest/PublicKey/test_importKey.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/PublicKey copying lib/Crypto/SelfTest/PublicKey/test_RSA.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/PublicKey creating build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Random copying lib/Crypto/SelfTest/Random/init.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Random copying lib/Crypto/SelfTest/Random/testUserFriendlyRNG.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Random copying lib/Crypto/SelfTest/Random/test_random.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Random copying lib/Crypto/SelfTest/Random/test_rpoolcompat.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Random creating build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Random/Fortuna copying lib/Crypto/SelfTest/Random/Fortuna/init.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Random/Fortuna copying lib/Crypto/SelfTest/Random/Fortuna/test_FortunaAccumulator.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Random/Fortuna copying lib/Crypto/SelfTest/Random/Fortuna/test_FortunaGenerator.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Random/Fortuna copying lib/Crypto/SelfTest/Random/Fortuna/test_SHAd256.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Random/Fortuna creating build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Random/OSRNG copying lib/Crypto/SelfTest/Random/OSRNG/init.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Random/OSRNG copying lib/Crypto/SelfTest/Random/OSRNG/test_fallback.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Random/OSRNG copying lib/Crypto/SelfTest/Random/OSRNG/test_generic.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Random/OSRNG copying lib/Crypto/SelfTest/Random/OSRNG/test_nt.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Random/OSRNG copying lib/Crypto/SelfTest/Random/OSRNG/test_posix.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Random/OSRNG copying lib/Crypto/SelfTest/Random/OSRNG/test_winrandom.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Random/OSRNG creating build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Util copying lib/Crypto/SelfTest/Util/init.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Util copying lib/Crypto/SelfTest/Util/test_asn1.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Util copying lib/Crypto/SelfTest/Util/test_Counter.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Util copying lib/Crypto/SelfTest/Util/test_number.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Util copying lib/Crypto/SelfTest/Util/test_winrandom.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Util creating build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Signature copying lib/Crypto/SelfTest/Signature/init.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Signature copying lib/Crypto/SelfTest/Signature/test_pkcs1_15.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Signature copying lib/Crypto/SelfTest/Signature/test_pkcs1_pss.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Signature creating build/lib.macosx-10.3-x86_64-2.7/Crypto/Protocol copying lib/Crypto/Protocol/init__.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Protocol copying lib/Crypto/Protocol/AllOrNothing.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Protocol copying lib/Crypto/Protocol/Chaffing.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Protocol copying lib/Crypto/Protocol/KDF.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Protocol creating build/lib.macosx-10.3-x86_64-2.7/Crypto/PublicKey copying lib/Crypto/PublicKey/init.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/PublicKey copying lib/Crypto/PublicKey/_DSA.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/PublicKey copying lib/Crypto/PublicKey/_RSA.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/PublicKey copying lib/Crypto/PublicKey/_slowmath.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/PublicKey copying lib/Crypto/PublicKey/DSA.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/PublicKey copying lib/Crypto/PublicKey/ElGamal.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/PublicKey copying lib/Crypto/PublicKey/pubkey.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/PublicKey copying lib/Crypto/PublicKey/RSA.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/PublicKey creating build/lib.macosx-10.3-x86_64-2.7/Crypto/Signature copying lib/Crypto/Signature/init.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Signature copying lib/Crypto/Signature/PKCS1_PSS.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Signature copying lib/Crypto/Signature/PKCS1_v1_5.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Signature running build_ext running build_configure checking for gcc... gcc checking whether the C compiler works... no configure: error: in /private/tmp/pip-install-6D8OSq/pycrypto': configure: error: C compiler cannot create executables Seeconfig.log' for more details Traceback (most recent call last): File "", line 1, in File "/private/tmp/pip-install-6D8OSq/pycrypto/setup.py", line 456, in core.setup(**kw) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 152, in setup dist.run_commands() File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands self.run_command(cmd) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/install.py", line 61, in run return orig.install.run(self) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/command/install.py", line 563, in run self.run_command('build') File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", line 326, in run_command self.distribution.run_command(command) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/command/build.py", line 127, in run self.run_command(cmd_name) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", line 326, in run_command self.distribution.run_command(command) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/private/tmp/pip-install-6D8OSq/pycrypto/setup.py", line 251, in run self.run_command(cmd_name) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", line 326, in run_command self.distribution.run_command(command) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/private/tmp/pip-install-6D8OSq/pycrypto/setup.py", line 278, in run raise RuntimeError("autoconf error") RuntimeError: autoconf error

----------------------------------------

Command "/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u -c "import setuptools, tokenize;file='/private/tmp/pip-install-6D8OSq/pycrypto/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /private/tmp/pip-record-8wb7YE/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-install-6D8OSq/pycrypto/

I tried again to deDRM my ebook without luck and this was written in the DeDRM.log:

There is 1 ebook to be decrypted. Processing file: The Rescue (Ryan Decker Book 1).azw3 shellcommand: /usr/bin/python '/private/var/folders/qw/ck80j0408vl81600r6_h4pth0000gp/T/AppTranslocation/DF24F875-4AEA-4904-813A-5E65FE76CC35/d/DeDRM.app/Contents/Resources/k4mobidedrm.py' -k '/Users/jillgibson/Library/Preferences/com.apprenticealf.dedrm/Local Kindle Key.k4i' -s '/Users/jillgibson/Desktop/The Rescue (Ryan Decker Book 1).azw3' '/Users/jillgibson/Desktop/' > '/Users/jillgibson/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log' shellresult: Using Library AlfCrypto DLL/DYLIB/SO Traceback (most recent call last): File "/private/var/folders/qw/ck80j0408vl81600r6_h4pth0000gp/T/AppTranslocation/DF24F875-4AEA-4904-813A-5E65FE76CC35/d/DeDRM.app/Contents/Resources/k4mobidedrm.py", line 94, in import kfxdedrm File "/private/var/folders/qw/ck80j0408vl81600r6_h4pth0000gp/T/AppTranslocation/DF24F875-4AEA-4904-813A-5E65FE76CC35/d/DeDRM.app/Contents/Resources/kfxdedrm.py", line 20, in import ion File "/private/var/folders/qw/ck80j0408vl81600r6_h4pth0000gp/T/AppTranslocation/DF24F875-4AEA-4904-813A-5E65FE76CC35/d/DeDRM.app/Contents/Resources/ion.py", line 20, in from Crypto.Cipher import AES ImportError: No module named Crypto.Cipher shellcommand: /usr/bin/python '/private/var/folders/qw/ck80j0408vl81600r6_h4pth0000gp/T/AppTranslocation/DF24F875-4AEA-4904-813A-5E65FE76CC35/d/DeDRM.app/Contents/Resources/kindlekey.py' '/Users/jillgibson/Library/Preferences/com.apprenticealf.dedrm/newKeys/' > '/Users/jillgibson/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log' shellresult: kindlekey.py v2.6 Copyright © 2010-2016 by some_updates, Apprentice Alf and Apprentice Harper Found k4Mac kinf2011 file: /Users/jillgibson/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/storage/.kinf2011 Decrypted key file using IDString 'S2ZMNY0HA29967' and UserName 'jillgibson' Saved a key to /Users/jillgibson/Library/Preferences/com.apprenticealf.dedrm/newKeys/kindlekey1.k4i

shellcommand: /usr/bin/python '/private/var/folders/qw/ck80j0408vl81600r6_h4pth0000gp/T/AppTranslocation/DF24F875-4AEA-4904-813A-5E65FE76CC35/d/DeDRM.app/Contents/Resources/k4mobidedrm.py' -k '/Users/jillgibson/Library/Preferences/com.apprenticealf.dedrm/KindleKey 19.der' '/Users/jillgibson/Desktop/The Rescue (Ryan Decker Book 1).azw3' '/Users/jillgibson/Desktop/' > '/Users/jillgibson/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log' shellresult: Using Library AlfCrypto DLL/DYLIB/SO Traceback (most recent call last): File "/private/var/folders/qw/ck80j0408vl81600r6_h4pth0000gp/T/AppTranslocation/DF24F875-4AEA-4904-813A-5E65FE76CC35/d/DeDRM.app/Contents/Resources/k4mobidedrm.py", line 94, in import kfxdedrm File "/private/var/folders/qw/ck80j0408vl81600r6_h4pth0000gp/T/AppTranslocation/DF24F875-4AEA-4904-813A-5E65FE76CC35/d/DeDRM.app/Contents/Resources/kfxdedrm.py", line 20, in import ion File "/private/var/folders/qw/ck80j0408vl81600r6_h4pth0000gp/T/AppTranslocation/DF24F875-4AEA-4904-813A-5E65FE76CC35/d/DeDRM.app/Contents/Resources/ion.py", line 20, in from Crypto.Cipher import AES ImportError: No module named Crypto.Cipher There was an error with 1 ebook: The Rescue (Ryan Decker Book 1).azw3 couldn't be decrypted.

I don't know understand what this means when you suggested using what jalavera used. -H or --force . Sorry, I really know zero about programming language, but am grateful for your patience and help.

Thank you again for any further suggestions you might give.

jillgibson commented 5 years ago

I just gave it another go on my own, copying and pasting the force command that jalavera used. This was the error message from terminal using that:

python -m pip install pycrypto --force DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. Collecting pycrypto Downloading https://files.pythonhosted.org/packages/60/db/645aa9af249f059cc3a368b118de33889219e0362141e75d4eaf6f80f163/pycrypto-2.6.1.tar.gz (446kB) 100% |████████████████████████████████| 450kB 1.9MB/s Installing collected packages: pycrypto Running setup.py install for pycrypto ... error Complete output from command /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u -c "import setuptools, tokenize;file='/private/var/folders/qw/ck80j0408vl81600r6_h4pth0000gp/T/pip-install-73nncK/pycrypto/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /private/var/folders/qw/ck80j0408vl81600r6_h4pth0000gp/T/pip-record-Zwqq1p/install-record.txt --single-version-externally-managed --compile: running install running build running build_py creating build creating build/lib.macosx-10.3-x86_64-2.7 creating build/lib.macosx-10.3-x86_64-2.7/Crypto copying lib/Crypto/init.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto copying lib/Crypto/pct_warnings.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto creating build/lib.macosx-10.3-x86_64-2.7/Crypto/Hash copying lib/Crypto/Hash/init.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Hash copying lib/Crypto/Hash/hashalgo.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Hash copying lib/Crypto/Hash/HMAC.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Hash copying lib/Crypto/Hash/MD2.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Hash copying lib/Crypto/Hash/MD4.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Hash copying lib/Crypto/Hash/MD5.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Hash copying lib/Crypto/Hash/RIPEMD.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Hash copying lib/Crypto/Hash/SHA.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Hash copying lib/Crypto/Hash/SHA224.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Hash copying lib/Crypto/Hash/SHA256.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Hash copying lib/Crypto/Hash/SHA384.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Hash copying lib/Crypto/Hash/SHA512.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Hash creating build/lib.macosx-10.3-x86_64-2.7/Crypto/Cipher copying lib/Crypto/Cipher/init.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Cipher copying lib/Crypto/Cipher/AES.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Cipher copying lib/Crypto/Cipher/ARC2.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Cipher copying lib/Crypto/Cipher/ARC4.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Cipher copying lib/Crypto/Cipher/blockalgo.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Cipher copying lib/Crypto/Cipher/Blowfish.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Cipher copying lib/Crypto/Cipher/CAST.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Cipher copying lib/Crypto/Cipher/DES.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Cipher copying lib/Crypto/Cipher/DES3.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Cipher copying lib/Crypto/Cipher/PKCS1_OAEP.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Cipher copying lib/Crypto/Cipher/PKCS1_v1_5.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Cipher copying lib/Crypto/Cipher/XOR.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Cipher creating build/lib.macosx-10.3-x86_64-2.7/Crypto/Util copying lib/Crypto/Util/init.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Util copying lib/Crypto/Util/_number_new.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Util copying lib/Crypto/Util/asn1.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Util copying lib/Crypto/Util/Counter.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Util copying lib/Crypto/Util/number.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Util copying lib/Crypto/Util/py21compat.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Util copying lib/Crypto/Util/py3compat.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Util copying lib/Crypto/Util/randpool.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Util copying lib/Crypto/Util/RFC1751.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Util copying lib/Crypto/Util/winrandom.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Util creating build/lib.macosx-10.3-x86_64-2.7/Crypto/Random copying lib/Crypto/Random/init.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Random copying lib/Crypto/Random/_UserFriendlyRNG.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Random copying lib/Crypto/Random/random.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Random creating build/lib.macosx-10.3-x86_64-2.7/Crypto/Random/Fortuna copying lib/Crypto/Random/Fortuna/init.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Random/Fortuna copying lib/Crypto/Random/Fortuna/FortunaAccumulator.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Random/Fortuna copying lib/Crypto/Random/Fortuna/FortunaGenerator.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Random/Fortuna copying lib/Crypto/Random/Fortuna/SHAd256.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Random/Fortuna creating build/lib.macosx-10.3-x86_64-2.7/Crypto/Random/OSRNG copying lib/Crypto/Random/OSRNG/init.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Random/OSRNG copying lib/Crypto/Random/OSRNG/fallback.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Random/OSRNG copying lib/Crypto/Random/OSRNG/nt.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Random/OSRNG copying lib/Crypto/Random/OSRNG/posix.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Random/OSRNG copying lib/Crypto/Random/OSRNG/rng_base.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Random/OSRNG creating build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest copying lib/Crypto/SelfTest/init.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest copying lib/Crypto/SelfTest/st_common.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest creating build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Cipher copying lib/Crypto/SelfTest/Cipher/init.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Cipher copying lib/Crypto/SelfTest/Cipher/common.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Cipher copying lib/Crypto/SelfTest/Cipher/test_AES.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Cipher copying lib/Crypto/SelfTest/Cipher/test_ARC2.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Cipher copying lib/Crypto/SelfTest/Cipher/test_ARC4.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Cipher copying lib/Crypto/SelfTest/Cipher/test_Blowfish.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Cipher copying lib/Crypto/SelfTest/Cipher/test_CAST.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Cipher copying lib/Crypto/SelfTest/Cipher/test_DES.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Cipher copying lib/Crypto/SelfTest/Cipher/test_DES3.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Cipher copying lib/Crypto/SelfTest/Cipher/test_pkcs1_15.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Cipher copying lib/Crypto/SelfTest/Cipher/test_pkcs1_oaep.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Cipher copying lib/Crypto/SelfTest/Cipher/test_XOR.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Cipher creating build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Hash copying lib/Crypto/SelfTest/Hash/init.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Hash copying lib/Crypto/SelfTest/Hash/common.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Hash copying lib/Crypto/SelfTest/Hash/test_HMAC.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Hash copying lib/Crypto/SelfTest/Hash/test_MD2.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Hash copying lib/Crypto/SelfTest/Hash/test_MD4.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Hash copying lib/Crypto/SelfTest/Hash/test_MD5.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Hash copying lib/Crypto/SelfTest/Hash/test_RIPEMD.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Hash copying lib/Crypto/SelfTest/Hash/test_SHA.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Hash copying lib/Crypto/SelfTest/Hash/test_SHA224.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Hash copying lib/Crypto/SelfTest/Hash/test_SHA256.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Hash copying lib/Crypto/SelfTest/Hash/test_SHA384.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Hash copying lib/Crypto/SelfTest/Hash/test_SHA512.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Hash creating build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Protocol copying lib/Crypto/SelfTest/Protocol/init.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Protocol copying lib/Crypto/SelfTest/Protocol/test_AllOrNothing.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Protocol copying lib/Crypto/SelfTest/Protocol/test_chaffing.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Protocol copying lib/Crypto/SelfTest/Protocol/test_KDF.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Protocol copying lib/Crypto/SelfTest/Protocol/test_rfc1751.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Protocol creating build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/PublicKey copying lib/Crypto/SelfTest/PublicKey/init.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/PublicKey copying lib/Crypto/SelfTest/PublicKey/test_DSA.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/PublicKey copying lib/Crypto/SelfTest/PublicKey/test_ElGamal.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/PublicKey copying lib/Crypto/SelfTest/PublicKey/test_importKey.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/PublicKey copying lib/Crypto/SelfTest/PublicKey/test_RSA.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/PublicKey creating build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Random copying lib/Crypto/SelfTest/Random/init.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Random copying lib/Crypto/SelfTest/Random/testUserFriendlyRNG.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Random copying lib/Crypto/SelfTest/Random/test_random.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Random copying lib/Crypto/SelfTest/Random/test_rpoolcompat.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Random creating build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Random/Fortuna copying lib/Crypto/SelfTest/Random/Fortuna/init.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Random/Fortuna copying lib/Crypto/SelfTest/Random/Fortuna/test_FortunaAccumulator.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Random/Fortuna copying lib/Crypto/SelfTest/Random/Fortuna/test_FortunaGenerator.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Random/Fortuna copying lib/Crypto/SelfTest/Random/Fortuna/test_SHAd256.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Random/Fortuna creating build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Random/OSRNG copying lib/Crypto/SelfTest/Random/OSRNG/init.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Random/OSRNG copying lib/Crypto/SelfTest/Random/OSRNG/test_fallback.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Random/OSRNG copying lib/Crypto/SelfTest/Random/OSRNG/test_generic.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Random/OSRNG copying lib/Crypto/SelfTest/Random/OSRNG/test_nt.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Random/OSRNG copying lib/Crypto/SelfTest/Random/OSRNG/test_posix.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Random/OSRNG copying lib/Crypto/SelfTest/Random/OSRNG/test_winrandom.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Random/OSRNG creating build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Util copying lib/Crypto/SelfTest/Util/init.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Util copying lib/Crypto/SelfTest/Util/test_asn1.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Util copying lib/Crypto/SelfTest/Util/test_Counter.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Util copying lib/Crypto/SelfTest/Util/test_number.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Util copying lib/Crypto/SelfTest/Util/test_winrandom.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Util creating build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Signature copying lib/Crypto/SelfTest/Signature/init.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Signature copying lib/Crypto/SelfTest/Signature/test_pkcs1_15.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Signature copying lib/Crypto/SelfTest/Signature/test_pkcs1_pss.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/SelfTest/Signature creating build/lib.macosx-10.3-x86_64-2.7/Crypto/Protocol copying lib/Crypto/Protocol/init__.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Protocol copying lib/Crypto/Protocol/AllOrNothing.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Protocol copying lib/Crypto/Protocol/Chaffing.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Protocol copying lib/Crypto/Protocol/KDF.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Protocol creating build/lib.macosx-10.3-x86_64-2.7/Crypto/PublicKey copying lib/Crypto/PublicKey/init.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/PublicKey copying lib/Crypto/PublicKey/_DSA.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/PublicKey copying lib/Crypto/PublicKey/_RSA.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/PublicKey copying lib/Crypto/PublicKey/_slowmath.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/PublicKey copying lib/Crypto/PublicKey/DSA.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/PublicKey copying lib/Crypto/PublicKey/ElGamal.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/PublicKey copying lib/Crypto/PublicKey/pubkey.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/PublicKey copying lib/Crypto/PublicKey/RSA.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/PublicKey creating build/lib.macosx-10.3-x86_64-2.7/Crypto/Signature copying lib/Crypto/Signature/init.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Signature copying lib/Crypto/Signature/PKCS1_PSS.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Signature copying lib/Crypto/Signature/PKCS1_v1_5.py -> build/lib.macosx-10.3-x86_64-2.7/Crypto/Signature running build_ext running build_configure checking for gcc... gcc checking whether the C compiler works... no configure: error: in /private/var/folders/qw/ck80j0408vl81600r6_h4pth0000gp/T/pip-install-73nncK/pycrypto': configure: error: C compiler cannot create executables Seeconfig.log' for more details Traceback (most recent call last): File "", line 1, in File "/private/var/folders/qw/ck80j0408vl81600r6_h4pth0000gp/T/pip-install-73nncK/pycrypto/setup.py", line 456, in core.setup(**kw) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 152, in setup dist.run_commands() File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands self.run_command(cmd) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/install.py", line 61, in run return orig.install.run(self) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/command/install.py", line 563, in run self.run_command('build') File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", line 326, in run_command self.distribution.run_command(command) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/command/build.py", line 127, in run self.run_command(cmd_name) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", line 326, in run_command self.distribution.run_command(command) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/private/var/folders/qw/ck80j0408vl81600r6_h4pth0000gp/T/pip-install-73nncK/pycrypto/setup.py", line 251, in run self.run_command(cmd_name) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", line 326, in run_command self.distribution.run_command(command) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/private/var/folders/qw/ck80j0408vl81600r6_h4pth0000gp/T/pip-install-73nncK/pycrypto/setup.py", line 278, in run raise RuntimeError("autoconf error") RuntimeError: autoconf error

----------------------------------------

Command "/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u -c "import setuptools, tokenize;file='/private/var/folders/qw/ck80j0408vl81600r6_h4pth0000gp/T/pip-install-73nncK/pycrypto/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /private/var/folders/qw/ck80j0408vl81600r6_h4pth0000gp/T/pip-record-Zwqq1p/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/qw/ck80j0408vl81600r6_h4pth0000gp/T/pip-install-73nncK/pycrypto/

ZolaLa9 commented 5 years ago

Hmmm ... I think you need someone with more computer skills than I have because I'm hitting my limit. A few thoughts:

But these are all guesses and I'm hoping someone with more computer skills than I have comes along.

ElleKayEm commented 5 years ago

I don't have any further answers here, but at this point, I'd say stick with 6.5.4. The main thing you'd be missing is KFX support, but you'd want to use calibre with the DeDRM and KFX plugins for that anyway.

jillgibson commented 5 years ago

ZolaLa9,

Thanks for all your help. In answer to your questions:

  1. I'm on 10.13.6 High Sierra
  2. I do not get the helpful pop-up window you've described
  3. I tried the new code you suggested and received this in the terminal:

DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. Collecting pycryto Could not find a version that satisfies the requirement pycryto (from versions: ) No matching distribution found for pycryto

  1. Yes, I have privileges on my computer and entered my password with each of the steps you've outlined.

I guess that I'm out of luck because your computer knowledge for this stuff far exceeds anything I know, but I want to thank you again for all you've helped me with thus far! The good news is that My older version of DRM works, so I will continue using it.

Many Thanks!!

jillgibson commented 5 years ago

I don't have any further answers here, but at this point, I'd say stick with 6.5.4. The main thing you'd be missing is KFX support, but you'd want to use calibre with the DeDRM and KFX plugins for that anyway.

Thanks ElleKayEm for helping as well. I think this is the determination I've come to after trying so many steps!

ZolaLa9 commented 5 years ago

Not sure why you're not getting the helpful pop-up window, but since you're on 10.13.6, you should be able to install XCode from the App Store. If you go to App Store and search XCode, it will be categorized as Developer Tools from Apple Inc.

Or you could go back to 6.5.x. I think 6.5.5 should work (not that it has a lot of extra improvements over 6.5.4). This might be safer than continuing to fiddle in Terminal.

apprenticeharper commented 5 years ago

Thanks for the report. Clearly more testing on Mac OS is needed for the next release.

ZolaLa9 commented 5 years ago

Thanks for the report. Clearly more testing on Mac OS is needed for the next release.

I think it's just that the system requirements for the standalone Mac app changed starting with 6.6+. Now Macs need to have PyCrypto and PyLzma installed (which in turn require XCode). But once you get all that installed, 6.6+ works fine.

Thanks ApprenticeHarper for maintaining these tools!