![](/img/trans.png)
[英]Broken DAG: [/usr/local/airflow/dags/dag_1_V5.py] cannot import name opentype on airflow
[英]Dag dependency Plug in : error : cannot import name 'conf' from 'airflow'
我們正在嘗試使用以下 git 集線器作為參考來實現 dag 依賴插件
https://github.com/ms32035/airflow-dag-dependencies
但是我們面臨一個錯誤:
**cannot import name 'conf' from 'airflow'**
嘗試檢查以下頁面但沒有幫助
https://github.com/apache/airflow/blob/v1-10-stable/airflow/upgrade/rules/fix_conf_not_importable_from_airflow.py
目前我們在 Airflow 2.0。 任何人請建議
你真的改變了嗎:
from airflow import conf
到:
from airflow.configuration import conf
正如您提到的升級檢查中的建議?
我認為這應該有所幫助
我建議升級到 Airflow 2.1,DAG 依賴視圖已由https://github.com/ms32035/airflow-dag-dependencies在https://github.com/apache/airflow/的作者添加到核心 Airflow 本身Airflow 2.1中發布的pull/13199如下圖所示:
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.