执行superset db upgrade初始化Supetset数据库时报错ImportError: cannot import name ‘soft_unicode’ from ‘markupsaf

报错ImportError: cannot import name ‘soft_unicode’ from 'markupsafe’和ImportError: cannot import name ‘TypedDict’ from ‘typing’ (/opt/module/miniconda3/envs/superset/lib/python3.7/typing.py)

ImportError: cannot import name ‘soft_unicode’ from ‘markupsafe’
这个错误好像是新版本的markupsafe代码变动问题产生的,需要退回到2.0.1

python -m pip install markupsafe==2.0.1

Usage: superset [OPTIONS] COMMAND [ARGS]… Error: Could not locate a Flask application. You did not provide the “FLASK_APP” environment variable, and a “wsgi.py” or “app.py” module was not found in the current directory.

出现这种错误是因为没有配置管理员用户

export FLASK_APP=superset

猜你喜欢

转载自blog.csdn.net/qq_54796785/article/details/127387686