Issue on airflow initdb

社会主义新天地 提交于 2021-01-02 07:17:17

问题


I just start using airflow and I used the command :

airflow initdb

to initiate the airflow db as the setup required. But I stumbled on the error :

import cattr File "/home/adrienb/anaconda3/lib/python3.8/site-packages/cattr/__init__.py", line 1, in <module> from .converters import Converter, GenConverter, UnstructureStrategy File "/home/adrienb/anaconda3/lib/python3.8/site-packages/cattr/converters.py", line 16, in <module> from attr import fields, resolve_types ImportError: cannot import name 'resolve_types' from 'attr' (/home/adrienb/anaconda3/lib/python3.8/site-packages/attr/__init__.py)

Any ideas ?


回答1:


It's a known issue will be fixed in 1.10.13 (PR) Since you are using Python 3.8 you should use (reference):

pip install apache-airflow==1.10.12 \
 --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-1.10.12/constraints-3.8.txt"


来源:https://stackoverflow.com/questions/64891058/issue-on-airflow-initdb

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!