N
N
neodekvat092015-06-11 14:06:12
Flask
neodekvat09, 2015-06-11 14:06:12

Can't see the SQLAlchemy module, what should I do?

It just does not see the sqlalchemy module in the flask application (a simple blog). I tried everything, and installed different versions, and changed some names to new ones, nothing helped.
Everywhere, in all tutorials, examples, everything goes smoothly, but, as always, not with me.

PS Here is the blog code (github)
And the error screen:
f6a9850b84ad44b6bc1e16fc1c3c5b9f.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
VovanZ, 2015-06-11
@VovanZ

You are not importing SQLAlchemy itself, but an extension for the flask (flask.ext.sqlalchemy) and you need to install it .
You can do it like this:
pip install Flask-SQLAlchemy

Z
zedzew, 2015-06-11
@zedzew

Try again: pip install SQLAlchemy, do a pip freeze and see what packages are installed.
The git link says:
pip install postgresql
pip install flask
pip install psycopg2
pip install flask-login

A
Alexander, 2015-06-11
@bIbI4k0

The link to gthub in the Readme shows the necessary manipulations to install the blog:
pip install flask-sqlalchemy
...
Have you completed them?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question