No module named 'flask_bcrypt'
ButeForce opened this issue · comments
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.
This issue was resolved after I have deleted the virtual environment and re-install it with all its dependancies