Traceback (most recent call last):
File"/opt/module/miniconda3/envs/superset/bin/superset", line 5, in <module>
from superset.cli.main import superset
File"/opt/module/miniconda3/envs/superset/lib/python3.7/site-packages/superset/__init__.py", line 21, in <module>
from superset.app import create_app
File"/opt/module/miniconda3/envs/superset/lib/python3.7/site-packages/superset/app.py", line 23, in <module>
from superset.initialization import SupersetAppInitializer
File"/opt/module/miniconda3/envs/superset/lib/python3.7/site-packages/superset/initialization/__init__.py", line 51, in <module>
from superset.security import SupersetSecurityManager
File"/opt/module/miniconda3/envs/superset/lib/python3.7/site-packages/superset/security/__init__.py", line 17, in <module>
from superset.security.manager import SupersetSecurityManager # noqa: F401File"/opt/module/miniconda3/envs/superset/lib/python3.7/site-packages/superset/security/manager.py", line 68, in <module>
from superset.security.guest_token import(
File"/opt/module/miniconda3/envs/superset/lib/python3.7/site-packages/superset/security/guest_token.py", line 18, in <module>
from typing import List, Optional, TypedDict, Union
ImportError: cannot import name 'TypedDict' from 'typing' (/opt/module/miniconda3/envs/superset/lib/python3.7/typing.py)
ImportError: cannot import name 'TypedDict' from 'typing' (/opt/module/miniconda3/envs/superset/lib/python3.7/typing.py)
(superset) [root@node01 ~]$ python
=============== Result ===================
Python 3.9.13 (main, Aug 252022, 23:26:10)
[GCC 11.2.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
(superset) [root@node01 ~]$ superset db upgrade
Traceback (most recent call last):
File"/opt/module/miniconda3/envs/superset/bin/superset", line 5, in <module>
from superset.cli.mainimport superset
File"/opt/module/miniconda3/envs/superset/lib/python3.7/site-packages/superset/__init__.py", line 18, in <module>
from flask import current_app, FlaskFile"/opt/module/miniconda3/envs/superset/lib/python3.7/site-packages/flask/__init__.py", line 14, in <module>
from jinja2 importescapeFile"/opt/module/miniconda3/envs/superset/lib/python3.7/site-packages/jinja2/__init__.py", line 12, in <module>
from .environmentimportEnvironmentFile"/opt/module/miniconda3/envs/superset/lib/python3.7/site-packages/jinja2/environment.py", line 25, in <module>
from .defaultsimportBLOCK_END_STRINGFile"/opt/module/miniconda3/envs/superset/lib/python3.7/site-packages/jinja2/defaults.py", line 3, in <module>
from .filtersimportFILTERSasDEFAULT_FILTERS # noqa: F401File"/opt/module/miniconda3/envs/superset/lib/python3.7/site-packages/jinja2/filters.py", line 13, in <module>
from markupsafe import soft_unicode
ImportError: cannot import name 'soft_unicode'from'markupsafe' (/opt/module/miniconda3/envs/superset/lib/python3.7/site-packages/markupsafe/__init__.py)
ImportError: cannot import name 'soft_unicode' from 'markupsafe' (/opt/module/miniconda3/envs/superset/lib/python3.7/site-packages/markupsafe/「init」.py)
'soft_unicode' from 'markupsafe':这个错误涉及到markupsafe的版本,需要退回到2.0.1
Usage: superset [OPTIONS] COMMAND [ARGS]...
Try 'superset --help'forhelp.
Error: Could not locate a Flask application. Use the 'flask --app' option, 'FLASK_APP' environment variable, or a 'wsgi.py' or 'app.py' file in the current directory.
--------------------------------------------------------------------------------
WARNING
--------------------------------------------------------------------------------
A DefaultSECRET_KEY was detected, please use superset_config.py to override it.
Use a strong complex alphanumeric string and use a tool to help you generate
a sufficiently random sequence, ex: openssl rand -base64 42
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
logging was configured successfully
2022-09-1206:56:01,130:INFO:superset.utils.logging_configurator:logging was configured successfully
2022-09-1206:56:01,135:INFO:root:Configured event logger oftype <class'superset.utils.log.DBEventLogger'>
Falling back to the built-in cache, that stores data in the metadata database, for the following cache: `FILTER_STATE_CACHE_CONFIG`. It is recommended to use `RedisCache`, `MemcachedCache` or another dedicated caching backend for production deployments
2022-09-1206:56:01,137:WARNING:superset.utils.cache_manager:Falling back to the built-in cache, that stores data in the metadata database, for the following cache: `FILTER_STATE_CACHE_CONFIG`. It is recommended to use `RedisCache`, `MemcachedCache` or another dedicated caching backend for production deployments
Falling back to the built-in cache, that stores data in the metadata database, for the following cache: `EXPLORE_FORM_DATA_CACHE_CONFIG`. It is recommended to use `RedisCache`, `MemcachedCache` or another dedicated caching backend for production deployments
2022-09-1206:56:01,140:WARNING:superset.utils.cache_manager:Falling back to the built-in cache, that stores data in the metadata database, for the following cache: `EXPLORE_FORM_DATA_CACHE_CONFIG`. It is recommended to use `RedisCache`, `MemcachedCache` or another dedicated caching backend for production deployments
Failed to create app
Traceback (most recent call last):
File"/opt/module/miniconda3/envs/superset/lib/python3.9/site-packages/superset/app.py", line 37, in create_app
app_initializer.init_app()
File"/opt/module/miniconda3/envs/superset/lib/python3.9/site-packages/superset/initialization/__init__.py", line 460, in init_app
self.init_app_in_ctx()
File"/opt/module/miniconda3/envs/superset/lib/python3.9/site-packages/superset/initialization/__init__.py", line 409, in init_app_in_ctx
self.configure_url_map_converters()
File"/opt/module/miniconda3/envs/superset/lib/python3.9/site-packages/superset/initialization/__init__.py", line 508, in configure_url_map_converters
from superset.utils.url_map_convertersimport (
File"/opt/module/miniconda3/envs/superset/lib/python3.9/site-packages/superset/utils/url_map_converters.py", line 21, in <module>
from superset.models.tagsimportObjectTypesFile"/opt/module/miniconda3/envs/superset/lib/python3.9/site-packages/superset/models/__init__.py", line 17, in <module>
from . import core, datasource_access_request, dynamic_plugins, sql_lab, user_attributes
File"/opt/module/miniconda3/envs/superset/lib/python3.9/site-packages/superset/models/core.py", line 63, in <module>
from superset.utilsimport cache as cache_util, core as utils
File"/opt/module/miniconda3/envs/superset/lib/python3.9/site-packages/superset/utils/cache.py", line 28, in <module>
from werkzeug.wrappers.etagimportETagResponseMixinModuleNotFoundError: Nomodule named 'werkzeug.wrappers.etag'2022-09-1206:56:01,246:ERROR:superset.app:Failed to create app
Traceback (most recent call last):
File"/opt/module/miniconda3/envs/superset/lib/python3.9/site-packages/superset/app.py", line 37, in create_app
app_initializer.init_app()
File"/opt/module/miniconda3/envs/superset/lib/python3.9/site-packages/superset/initialization/__init__.py", line 460, in init_app
self.init_app_in_ctx()
File"/opt/module/miniconda3/envs/superset/lib/python3.9/site-packages/superset/initialization/__init__.py", line 409, in init_app_in_ctx
self.configure_url_map_converters()
File"/opt/module/miniconda3/envs/superset/lib/python3.9/site-packages/superset/initialization/__init__.py", line 508, in configure_url_map_converters
from superset.utils.url_map_convertersimport (
File"/opt/module/miniconda3/envs/superset/lib/python3.9/site-packages/superset/utils/url_map_converters.py", line 21, in <module>
from superset.models.tagsimportObjectTypesFile"/opt/module/miniconda3/envs/superset/lib/python3.9/site-packages/superset/models/__init__.py", line 17, in <module>
from . import core, datasource_access_request, dynamic_plugins, sql_lab, user_attributes
File"/opt/module/miniconda3/envs/superset/lib/python3.9/site-packages/superset/models/core.py", line 63, in <module>
from superset.utilsimport cache as cache_util, core as utils
File"/opt/module/miniconda3/envs/superset/lib/python3.9/site-packages/superset/utils/cache.py", line 28, in <module>
from werkzeug.wrappers.etagimportETagResponseMixinModuleNotFoundError: Nomodule named 'werkzeug.wrappers.etag'Traceback (most recent call last):
File"/opt/module/miniconda3/envs/superset/bin/superset", line 8, in <module>
sys.exit(superset())
File"/opt/module/miniconda3/envs/superset/lib/python3.9/site-packages/click/core.py", line 1130, in __call__
return self.main(*args, **kwargs)
File"/opt/module/miniconda3/envs/superset/lib/python3.9/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File"/opt/module/miniconda3/envs/superset/lib/python3.9/site-packages/click/core.py", line 1654, in invoke
super().invoke(ctx)
File"/opt/module/miniconda3/envs/superset/lib/python3.9/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File"/opt/module/miniconda3/envs/superset/lib/python3.9/site-packages/click/core.py", line 760, in invoke
return__callback(*args, **kwargs)
File"/opt/module/miniconda3/envs/superset/lib/python3.9/site-packages/click/decorators.py", line 26, in new_func
returnf(get_current_context(), *args, **kwargs)
File"/opt/module/miniconda3/envs/superset/lib/python3.9/site-packages/flask/cli.py", line 354, in decorator
app = __ctx.ensure_object(ScriptInfo).load_app()
File"/opt/module/miniconda3/envs/superset/lib/python3.9/site-packages/flask/cli.py", line 308, in load_app
app = locate_app(import_name, name)
File"/opt/module/miniconda3/envs/superset/lib/python3.9/site-packages/flask/cli.py", line 235, in locate_app
returnfind_best_app(module)
File"/opt/module/miniconda3/envs/superset/lib/python3.9/site-packages/flask/cli.py", line 63, in find_best_app
app = app_factory()
File"/opt/module/miniconda3/envs/superset/lib/python3.9/site-packages/superset/app.py", line 44, in create_app
raise ex
File"/opt/module/miniconda3/envs/superset/lib/python3.9/site-packages/superset/app.py", line 37, in create_app
app_initializer.init_app()
File"/opt/module/miniconda3/envs/superset/lib/python3.9/site-packages/superset/initialization/__init__.py", line 460, in init_app
self.init_app_in_ctx()
File"/opt/module/miniconda3/envs/superset/lib/python3.9/site-packages/superset/initialization/__init__.py", line 409, in init_app_in_ctx
self.configure_url_map_converters()
File"/opt/module/miniconda3/envs/superset/lib/python3.9/site-packages/superset/initialization/__init__.py", line 508, in configure_url_map_converters
from superset.utils.url_map_convertersimport (
File"/opt/module/miniconda3/envs/superset/lib/python3.9/site-packages/superset/utils/url_map_converters.py", line 21, in <module>
from superset.models.tagsimportObjectTypesFile"/opt/module/miniconda3/envs/superset/lib/python3.9/site-packages/superset/models/__init__.py", line 17, in <module>
from . import core, datasource_access_request, dynamic_plugins, sql_lab, user_attributes
File"/opt/module/miniconda3/envs/superset/lib/python3.9/site-packages/superset/models/core.py", line 63, in <module>
from superset.utilsimport cache as cache_util, core as utils
File"/opt/module/miniconda3/envs/superset/lib/python3.9/site-packages/superset/utils/cache.py", line 28, in <module>
from werkzeug.wrappers.etagimportETagResponseMixinModuleNotFoundError: Nomodule named 'werkzeug.wrappers.etag'