No module named Crypto.Cipher on local mac AppEngine

Chris picture Chris · Mar 27, 2011 · Viewed 12.3k times · Source

No module named Crypto.Cipher

when I try to import

from Crypto.Cipher import AES

My folder structure looks like this:

test/

test/main.py

test/pycrypto-2.3

I ran the build and install inside of the pycrypto folder but I keep getting the error, any ideas?

Answer

Asmo Soinio picture Asmo Soinio · Nov 21, 2011

It does not work with the usual easy_install, or running setup.py, depending on your Mac OS X version. This is due to how Google App Engine only allows for libraries loaded from certain directories. See here for more discussion: http://code.google.com/p/googleappengine/issues/detail?id=1627