omab / python-social-auth

Social auth made simple
http://psa.matiasaguirre.net
BSD 3-Clause "New" or "Revised" License
2.83k stars 1.09k forks source link

flask_peewee_example seems doesn't work well in peewee 2.8.3 #1025

Closed ChateauXiao closed 7 years ago

ChateauXiao commented 7 years ago

alexpantyukhin add support peewee for flask https://github.com/omab/python-social-auth/pull/932

but the code above can not work on my env:

my requirements.txt is this: $ pip freeze click==6.6 Flask==0.11.1 Flask-Login==0.3.2 Flask-Script==2.0.5 itsdangerous==0.24 Jinja2==2.8 MarkupSafe==0.23 oauthlib==2.0.0 peewee==2.8.3 PyJWT==1.4.2 pysqlite==2.8.3 python-openid==2.2.5 python-social-auth==0.2.21 requests==2.11.1 requests-oauthlib==0.7.0 six==1.10.0 Werkzeug==0.11.11

when i run the command manage.py, i got the error message like this:

/flask_peewee_example$ python manage.py runserver /home/testing/env_login_test/local/lib/python2.7/site-packages/flask/exthook.py:71: ExtDeprecationWarning: Importing flask.ext.script is deprecated, use flask_script instead. .format(x=modname), ExtDeprecationWarning Traceback (most recent call last): File "manage.py", line 8, in from flask_example import app, database File "../flask_example/init.py", line 3, in from sqlalchemy import create_engine ImportError: No module named sqlalchemy

ChateauXiao commented 7 years ago

we already use peewee, why do we have to install sqlalchemy also?

alexpantyukhin commented 7 years ago

Yes.. it looks like and error. I will look on it.

omab commented 7 years ago

This got fixed in the new examples component.