coto / gae-boilerplate

Google App Engine Boilerplate
https://dev-dot-sandengine.appspot.com/
Other
685 stars 189 forks source link

ImportError: No module named Crypto.Cipher #300

Closed rohanshar closed 9 years ago

rohanshar commented 10 years ago

Internal Server Error On submitting the signup form /register getting the below error.

The server has either erred or is incapable of performing the requested operation.

Traceback (most recent call last): File "C:\Program Files (x86)\Google\google_appengine\lib\webapp2-2.5.2\webapp2.py", line 1535, in call rv = self.handle_exception(request, response, e) File "C:\Program Files (x86)\Google\google_appengine\lib\webapp2-2.5.2\webapp2.py", line 1529, in call rv = self.router.dispatch(request, response) File "C:\Program Files (x86)\Google\google_appengine\lib\webapp2-2.5.2\webapp2.py", line 1278, in default_dispatcher return route.handler_adapter(request, response) File "C:\Program Files (x86)\Google\google_appengine\lib\webapp2-2.5.2\webapp2.py", line 1102, in call return handler.dispatch() File "D:\Users\rohanindotech\Developer\MDM001\bp_includes\lib\basehandler.py", line 63, in dispatch webapp2.RequestHandler.dispatch(self) File "C:\Program Files (x86)\Google\google_appengine\lib\webapp2-2.5.2\webapp2.py", line 572, in dispatch return self.handle_exception(e, self.app.debug) File "C:\Program Files (x86)\Google\google_appengine\lib\webapp2-2.5.2\webapp2.py", line 570, in dispatch return method(_args, *_kwargs) File "D:\Users\rohanindotech\Developer\MDM001\bp_includes\handlers.py", line 765, in post password = utils.hashing(password, self.app.config.get('salt')) File "D:\Users\rohanindotech\Developer\MDM001\bp_includes\lib\utils.py", line 38, in hashing from Crypto.Cipher import AES ImportError: No module named Crypto.Cipher

movero commented 9 years ago

Hi @rohanshar

This error happens because the PyCrypto package is not installed by default. This is an issue with your python setup, and not an issue in gae-boilerplate.

Since you are on Windows, this link might help you: http://stackoverflow.com/questions/11405549/how-do-i-install-pycrypto-on-windows

Side note: your remind me of my own horrors on Windows, and why I moved to Linux for serious development. ;)

Please close this issue.