Search code examples
google-app-enginepycrypto

No module named Crypto.Cipher on local mac AppEngine


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?


Solution

  • 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