Incubator-superset: Importing flask.ext.sqlalchemy is deprecated, use flask_sqlalchemy instead

Created on 12 Jun 2016  路  3Comments  路  Source: apache/incubator-superset

when i use the command
/usr/local/python27/bin/fabmanager create-admin --app caravel

/usr/local/python27/lib/python2.7/site-packages/Flask-0.11.1-py2.7.egg/flask/exthook.py:71: ExtDeprecationWarning: Importing flask.ext.sqlalchemy is deprecated, use flask_sqlalchemy instead.
.format(x=modname), ExtDeprecationWarning
/usr/local/python27/lib/python2.7/site-packages/Flask-0.11.1-py2.7.egg/flask/exthook.py:71: ExtDeprecationWarning: Importing flask.ext.sqlalchemy is deprecated, use flask_sqlalchemy instead.
.format(x=modname), ExtDeprecationWarning
/usr/local/python27/lib/python2.7/site-packages/Flask-0.11.1-py2.7.egg/flask/exthook.py:71: ExtDeprecationWarning: Importing flask.ext.sqlalchemy._compat is deprecated, use flask_sqlalchemy._compat instead.
.format(x=modname), ExtDeprecationWarning

Most helpful comment

Should be fixed in the next version of FAB. I fixed it here:
https://github.com/dpgaspar/Flask-AppBuilder/pull/332

All 3 comments

Should be fixed in the next version of FAB. I fixed it here:
https://github.com/dpgaspar/Flask-AppBuilder/pull/332

I don't understand i find the same issues:

fabmanager create-admin --app caravel
Traceback (most recent call last):
File "/usr/local/bin/fabmanager", line 5, in
from pkg_resources import load_entry_point
File "/usr/local/lib/python2.7/site-packages/distribute-0.6.14-py2.7.egg/pkg_resources.py", line 2671, in
working_set.require(requires)
File "/usr/local/lib/python2.7/site-packages/distribute-0.6.14-py2.7.egg/pkg_resources.py", line 654, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/local/lib/python2.7/site-packages/distribute-0.6.14-py2.7.egg/pkg_resources.py", line 552, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: Flask-WTF>=0.9.1

I see the same issue when I run fabmanager create-admin -app caravel

$ fabmanager create-admin -app caravel
/usr/local/lib/python2.7/site-packages/flask/exthook.py:71: ExtDeprecationWarning: Importing flask.ext.sqlalchemy is deprecated, use flask_sqlalchemy instead.
.format(x=modname), ExtDeprecationWarning
/usr/local/lib/python2.7/site-packages/flask/exthook.py:71: ExtDeprecationWarning: Importing flask.ext.sqlalchemy._compat is deprecated, use flask_sqlalchemy._compat instead.
.format(x=modname), ExtDeprecationWarning
Error: no such option: -a

Was this page helpful?
0 / 5 - 0 ratings