Import Error for Flask-Bcrypt with Google App Engine: ImportError: No module named bcrypt._bcrypt

415 views
Skip to first unread message

Dan Rubio via StackOverflow

unread,
Dec 3, 2015, 8:45:08 AM12/3/15
to google-appengin...@googlegroups.com

I am trying to deploy my flask application to Google App Engine. After much toil I've finally been able to upload my libraries but when I use the command dev_appserver.py I always get this error concering Flask-bcrypt:

 File "/Users/drubio/Desktop/blackduck_directory/venv/gaenv/flask_bcrypt.py", line 27, in <module>
    raise e
ImportError: No module named bcrypt._bcrypt

Has anyone encountered this problem before? I've found these resources regarding flask-bcrypt here Flask-bcrypt for GAE not working and here How to use py-bcrypt with GAE.

From these resources I've learned that FLask-Bcrypt might not be written as a pure python package which it needs to be for GAE to upload and second there is another alternative called py-bcrypt. However while looking at its github page, it seems to be abandonware so I don't want to waste time with that? Are there any suggestions anyone has out there?



Please DO NOT REPLY directly to this email but go to StackOverflow:
http://stackoverflow.com/questions/34067598/import-error-for-flask-bcrypt-with-google-app-engine-importerror-no-module-nam

wanze via StackOverflow

unread,
Dec 3, 2015, 9:00:07 AM12/3/15
to google-appengin...@googlegroups.com

you need to install the bcrypt module, the github link is here:

https://github.com/pyca/bcrypt/

and notice the information , in ubuntu , you need to make sure this has been installed:

sudo apt-get install build-essential libffi-dev python-dev


Please DO NOT REPLY directly to this email but go to StackOverflow:
http://stackoverflow.com/questions/34067598/import-error-for-flask-bcrypt-with-google-app-engine-importerror-no-module-nam/34067865#34067865
Reply all
Reply to author
Forward
0 new messages