Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: No module named Crypto.Cipher #545

Closed
jsrichards opened this issue Jun 13, 2018 · 5 comments
Closed

ImportError: No module named Crypto.Cipher #545

jsrichards opened this issue Jun 13, 2018 · 5 comments

Comments

@jsrichards
Copy link

Has anyone ran into this issue?

shellcommand: /usr/bin/python '/Applications/DeDRM.app/Contents/Resources/k4mobidedrm.py' -k '/Users/.../Library/Preferences/com.apprenticealf.dedrm/KindleKey 4.der' '/Users/.../Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/My Kindle Content/B00BAWQ6E6_EBOK/B00BAWQ6E6_EBOK.azw' '/Users/.../Desktop/' > '/Users/.../Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log'
shellresult: Using Library AlfCrypto DLL/DYLIB/SO
Traceback (most recent call last):
File "/Applications/DeDRM.app/Contents/Resources/k4mobidedrm.py", line 93, in
import kfxdedrm
File "/Applications/DeDRM.app/Contents/Resources/kfxdedrm.py", line 20, in
import ion
File "/Applications/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:
B00BAWQ6E6_EBOK.azw couldn't be decrypted.

@ElleKayEm
Copy link

It seems like there are a few issues with the Mac app right now.
#505

@jsrichards
Copy link
Author

I fixed the problem. I have python 3 and python 2 installed. The default version for the OS is python 2 which did not have the proper libraries installed. I had to run python -m pip pycrypto to install the package. For some reason pip when run without the "python -m" option is defaulting to python3 and pip3

@apprenticeharper
Copy link
Owner

Thanks, Added to the FAQs.

@biocyberman
Copy link

sudo apt install python3-crypto might help on linux

@protist
Copy link

protist commented Nov 26, 2021

In Arch Linux, the relevant package is python-pycryptodome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants