gothinkster / flask-realworld-example-app

Exemplary real world JSON API built with Flask (Python)
https://realworld.io/
MIT License
902 stars 309 forks source link

ModuleNotFoundError: No module named 'flask_bcrypt' #31

Open raveenb opened 5 years ago

raveenb commented 5 years ago

Hi, I am getting this issue after following instructions on the page


  flask db init Usage: flask db init [OPTIONS]

Error: While importing "autoapp", an ImportError was raised:

Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/flask/cli.py", line 235, in locate_app import(module_name) File "/Users/raveenbeemsingh/Developer/conduit/flask-realworld-example-app/autoapp.py", line 5, in from conduit.app import create_app File "/Users/raveenbeemsingh/Developer/conduit/flask-realworld-example-app/conduit/app.py", line 4, in from conduit.extensions import bcrypt, cache, db, migrate, jwt, cors File "/Users/raveenbeemsingh/Developer/conduit/flask-realworld-example-app/conduit/extensions.py", line 4, in from flask_bcrypt import Bcrypt ModuleNotFoundError: No module named 'flask_bcrypt'

limlynn commented 4 years ago

try after this

pip install --upgrade setuptools sudo apt-get install libpq-dev python-dev