Executing superset db upgrade to initialize the Supetset database reports an error 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'
This error seems to be caused by the code change of the new version of markupsafe, so you need to return to 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.

This error occurs because the administrator user is not configured

export FLASK_APP=superset

Guess you like

Origin blog.csdn.net/qq_54796785/article/details/127387686