我正在尝试在 aws ec2(ubuntu 18.04)上设置 apache 气流Python 版本:3.6.9 点子版本:9.0.1要安装 Apache Airflow,我使用了以下命令。pip3 install apache-airflow[postgres,celery,rabbitmq,ldap,crypto,aws]当我执行airflow initdb它时显示错误 File "/home/ubuntu/.local/bin/airflow", line 26, in <module> from airflow.bin.cli import CLIFactory File "/home/ubuntu/.local/lib/python3.6/site-packages/airflow/bin/cli.py", line 71, in <module> from airflow.www_rbac.app import cached_app as cached_app_rbac File "/home/ubuntu/.local/lib/python3.6/site-packages/airflow/www_rbac/app.py", line 28, in <module> from flask_appbuilder import AppBuilder, SQLA File "/home/ubuntu/.local/lib/python3.6/site-packages/flask_appbuilder/__init__.py", line 6, in <module> from .base import AppBuilder # noqa: F401 File "/home/ubuntu/.local/lib/python3.6/site-packages/flask_appbuilder/base.py", line 8, in <module> from .api.manager import OpenApiManager File "/home/ubuntu/.local/lib/python3.6/site-packages/flask_appbuilder/api/manager.py", line 7, in <module> from flask_appbuilder.baseviews import BaseView File "/home/ubuntu/.local/lib/python3.6/site-packages/flask_appbuilder/baseviews.py", line 21, in <module> from .forms import GeneralModelConverter File "/home/ubuntu/.local/lib/python3.6/site-packages/flask_appbuilder/forms.py", line 17, in <module> from .fieldwidgets import ( File "/home/ubuntu/.local/lib/python3.6/site-packages/flask_appbuilder/fieldwidgets.py", line 3, in <module> from wtforms.widgets import html_params, HTMLStringImportError: cannot import name 'HTMLString'有人可以帮我吗?
1 回答
胡子哥哥
TA贡献1825条经验 获得超6个赞
我按照提到的步骤 https://github.com/apache/airflow/issues/8506#issuecomment-617515743
并在我的 pip install 命令之后添加 --constraint https://raw.githubusercontent.com/apache/airflow/1.10.10/requirements/requirements-python3.7.txt并且它开始工作了。
WTForms 新版本出现错误
添加回答
举报
0/150
提交
取消