Closed luabida closed 1 year ago
ERROR w/ Flask-SQLAlchemy >= 3.0:
Traceback (most recent call last):
File "/opt/conda/envs/epigraphhub/bin/superset", line 6, in <module>
from superset.cli.main import superset
File "/opt/conda/envs/epigraphhub/lib/python3.9/site-packages/superset/__init__.py", line 21, in <module>
from superset.app import create_app
File "/opt/conda/envs/epigraphhub/lib/python3.9/site-packages/superset/app.py", line 23, in <module>
from superset.initialization import SupersetAppInitializer
File "/opt/conda/envs/epigraphhub/lib/python3.9/site-packages/superset/initialization/__init__.py", line 27, in <module>
from flask_appbuilder import expose, IndexView
File "/opt/conda/envs/epigraphhub/lib/python3.9/site-packages/flask_appbuilder/__init__.py", line 5, in <module>
from .api import ModelRestApi # noqa: F401
File "/opt/conda/envs/epigraphhub/lib/python3.9/site-packages/flask_appbuilder/api/__init__.py", line 23, in <module>
from flask_appbuilder.models.sqla import Model
File "/opt/conda/envs/epigraphhub/lib/python3.9/site-packages/flask_appbuilder/models/sqla/__init__.py", line 5, in <module>
from flask_sqlalchemy import (
ImportError: cannot import name '_QueryProperty' from 'flask_sqlalchemy' (/opt/conda/envs/epigraphhub/lib/python3.9/site-packages/flask_sqlalchemy/__init__.py)
ERROR w/ sqlalchemy >= 2.0
Traceback (most recent call last):
File "/opt/conda/envs/epigraphhub/bin/superset", line 6, in <module>
from superset.cli.main import superset
File "/opt/conda/envs/epigraphhub/lib/python3.9/site-packages/superset/__init__.py", line 21, in <module>
from superset.app import create_app
File "/opt/conda/envs/epigraphhub/lib/python3.9/site-packages/superset/app.py", line 23, in <module>
from superset.initialization import SupersetAppInitializer
File "/opt/conda/envs/epigraphhub/lib/python3.9/site-packages/superset/initialization/__init__.py", line 33, in <module>
from superset.extensions import (
File "/opt/conda/envs/epigraphhub/lib/python3.9/site-packages/superset/extensions/__init__.py", line 119, in <module>
db = SQLA()
File "/opt/conda/envs/epigraphhub/lib/python3.9/site-packages/flask_sqlalchemy/__init__.py", line 758, in __init__
_include_sqlalchemy(self, query_class)
File "/opt/conda/envs/epigraphhub/lib/python3.9/site-packages/flask_sqlalchemy/__init__.py", line 112, in _include_sqlalchemy
for key in module.__all__:
AttributeError: module 'sqlalchemy' has no attribute '__all__'
Fixed by pinning deps
fixed libodbc.so.2: cannot open shared object file
http://0.0.0.0:8088/superset/welcome/
: