环境:
centos 6.5 python 3.6 pip 19
正常步骤:
安装
pip install superset
设置用户
fabmanager create-admin --app superset
错误Was unable to import superset Error: cannot import name 'quoted_name'
解决执行
wget https://raw.githubusercontent.com/apache/incubator-superset/master/requirements.txt
pip install -r requirements.txt
初始化db
superset db upgrade
错误 Was unable to import superset Error: markdown() takes 1 positional argument but 2
解决执行
pip install "markdown<3.0.0" superset
载入案例
superset load_examples
初始化默认用户权限
superset init
启动superset (重启一样)
superset runserver
错误 TypeError: 'bool' object is not callable ( current_user.is_authenticated() OR current_user.is_anonymous() )
尝试:pip install Flask-Login==0.2.11
通过搜索代码中的 is_anonymous(),在代码中修改 is_anonymous ,重启成功!