Setting up to Use Flask

From PeformIQ Upgrade
Jump to navigation Jump to search

I have just migrated a couple of my Flask experiments onto a new system. Here are the things that cropped up:

Basic Setup

 pip install Flask
 pip install SQLAlchemy --upgrade


Errors

Once I had installed Flask and SQLAlchemy I checked out a couple of my projects and attempted to run them Here are some of the extra requirements I encountered.

Error

ImportError: No module named flask.ext.sqlalchemy

Resolution

pip install Flask-SQLAlchemy


Error

ImportError: No module named flask.ext.login

Resolution

sudo pip install Flask-Security


Error

ImportError: No module named flask.ext.openid

Resolution

Here's a link about a related problem - http://stackoverflow.com/questions/20032922/no-module-named-flask-ext-wtf

pip install flask-openid

Error

Resolution

Other Notes

Some of the modules likely to be required...

flask/bin/pip install flask-login
flask/bin/pip install flask-openid
flask/bin/pip install flask-mail
flask/bin/pip install sqlalchemy
flask/bin/pip install flask-sqlalchemy
flask/bin/pip install sqlalchemy-migrate
flask/bin/pip install flask-whooshalchemy==0.55a
flask/bin/pip install flask-wtf
flask/bin/pip install pytz
flask/bin/pip install flask-babel
flask/bin/pip install flup