I have installed the flask-appbiller package properly, and I'm trying to execute the finisher, this is the following lines Shows:
(venv) lupo @ mint-virtualbox ~ $ fabmanager traceback (most recent call final): file "/ home / lupo / venv / bin / fabmanager", line 9 , & Lt; Module & gt; Load_entry_point ('flask-appbuilder == 1.3.0', 'console_script', 'filibber') () file "/home/lupo/venv/local/lib/python2.7/site-packages/pkg_resources.py", line 353, load_entry_point Return get_distribution (dist) .load_entry_point (group, name) file "/home/lupo/venv/local/lib/python2.7/site-packages/pkg_resources.py", line 2321, load_entry_point return load in AP ( ) File "/home/lupo/venv/local/lib/python2.7/site-packages/pkg_resources.py", in line 2048, load entry = __import__ (self.module_name, globals (), globals (), [ '__name__']) File "/ Home / Lipoze / Win / Local / Lib / Python 2.7 / Societe - Package / Flux_Dublan /__init__.py", Punk End 4, the & lt; Module & gt; .models.sqla Import model, base, SQL file "/home/lupo/venv/local/lib/python2.7/site-packages/flask_appbuilder/models/sqla/__init__.py", in line 4, in & lt; Module & gt; Import as_declarative ImportError from Sqlalchemy.ext.declarative: Can not import name as_declarative
Can anyone help me with that?
It's tried to:
Sqlalchemy.ext.declarative import as_declarative
but has been found now with SQLAlchemy-0.9.9, as_declarative
:
Sqlalchemy.ext.declarative.api Import as_declarative
It seems that there is no reason for that import gone.
Unless a new release of the Flask-AppBuilder or SQLAlchemy is made, the easiest solution is to get 0.9.8: Pip from SQLite sqlalchemy == 0.9.8
.
The latest version of the Flask-AppBuilder has fixed it.
No comments:
Post a Comment