Difference between revisions of "Setting up to Use Flask"

From PeformIQ Upgrade
Jump to navigation Jump to search
(Created page with "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 --u...")
 
 
(One intermediate revision by the same user not shown)
Line 12: Line 12:


==Error==
==Error==
ImportError: No module named flask.ext.sqlalchemy


==Resolution==
==Resolution==


pip install Flask-SQLAlchemy




==Error==


==Error==
ImportError: No module named flask.ext.login


==Resolution==
==Resolution==
sudo pip install Flask-Security




==Error==
==Error==


  ImportError: No module named flask.ext.sqlalchemy
  ImportError: No module named flask.ext.openid


==Resolution==
==Resolution==


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


pip install flask-openid


==Error==
==Error==


ImportError: No module named flask.ext.login
==Resolution==
 
 
=Other Notes=
 
Some of the modules likely to be required...
 
<pre>
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
</pre>
 


==Resolution==


sudo pip install Flask-Security
[[Category:Flask]]
[[Category:Python]]
[[Category:Web Development]]

Latest revision as of 09:21, 29 March 2014

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