Traceback (most recent call last): File "/root/miniconda3/envs/superset/bin/superset", line 5, in <module> from superset.cli.main import superset File "/root/miniconda3/envs/superset/lib/python3.9/site-packages/superset/__init__.py", line 21, in <module> from superset.app import create_app File "/root/miniconda3/envs/superset/lib/python3.9/site-packages/superset/app.py", line 23, in <module> from superset.initialization import SupersetAppInitializer File "/root/miniconda3/envs/superset/lib/python3.9/site-packages/superset/initialization/__init__.py", line 33, in <module> from superset.extensions import ( File "/root/miniconda3/envs/superset/lib/python3.9/site-packages/superset/extensions/__init__.py", line 32, in <module> from superset.utils.async_query_manager import AsyncQueryManager File "/root/miniconda3/envs/superset/lib/python3.9/site-packages/superset/utils/async_query_manager.py", line 26, in <module> from superset.utils.core import get_user_id File "/root/miniconda3/envs/superset/lib/python3.9/site-packages/superset/utils/core.py", line 106, in <module> from superset.sql_parse import sanitize_clause File "/root/miniconda3/envs/superset/lib/python3.9/site-packages/superset/sql_parse.py", line 67, in <module> re.compile(r"'(''|\\\\|\\|[^'])*'", sqlparse.keywords.FLAGS).match, AttributeError: module 'sqlparse.keywords' has no attribute 'FLAGS'
时间: 2023-06-12 15:06:48 浏览: 486
01背包,部分背包,完全背包问题.docx
这是一个 Python 错误,看起来是 `sqlparse` 模块版本不兼容导致的。建议尝试更新 `sqlparse` 模块,可以使用以下命令:
```
pip install --upgrade sqlparse
```
如果问题仍然存在,可以尝试卸载并重新安装 `sqlparse` 模块:
```
pip uninstall sqlparse
pip install sqlparse
```
如果还有问题,可能需要检查其他依赖库是否版本不兼容。
阅读全文