I have a script that uses Crypto.Hash
but import fails with error:
ImportError: No module named Crypto.Hash
in my sys.pa
It seems a problem that happens on MAC OSX, all I have managed to do is following:
firstly you need to know where your install of pycripto is, running
sudo pip install pycrypto
either you install the library or you get the path where it is installed
Requirement already satisfied (use --upgrade to upgrade): pycrypto in ...
then, considering that this is a problem that does not happen in production on appengine, I did this:
try:
from Crypto.Hash import SHA
except ImportError:
import sys
sys.path.append('/[mypath]/anaconda/lib/python2.7/site-packages')
from Crypto.Hash import SHA # requires PyCrypto