Open imtiaz-emu opened 7 years ago
I also have this problem, any solutions?
I have the same issue , I'm using python3 , flask-restful and wanted to use flask_bcrypt to hash users passwords stored in database, when I run the solution by python3 app.py, everything works perfectly and I can hash the passwords and validate them , but when I run the solution through uwsgi
uwsgi uwsgi.ini
I get internal server error when I try to authenticate.
When I review the log file , I get the following error:
from flask_bcrypt import Bcrypt ,check_password_hash ImportError: No module named 'flask_bcrypt' unable to load app 0 (mountpoint='') (callable not found or import error)
. Although I can import it successfully from command line as well.
I tried to do one solution suggested in :
No module named 'flask_bcrypt'
and to add "#@UnresolvedImport" to import but still didn't work.
i have the same problem
I think this is related to bcrypt not being pure python, so it's not compatible with gae: https://stackoverflow.com/questions/23482258/how-to-use-bcrypt-on-google-app-engine-gae
I've create a Google App Engine project. And add Flask-Bcrypt in my requirements.txt file. Then install the dependencies in my project
lib
folder. When I run the project this gives me above error. But my Flask module which is also a 3rd party library works fine. What's the solution? I'm using Python 2.7