无法在Airflow中使用google-cloud-storage

时间:2018-11-24 17:09:38

标签: google-cloud-platform google-cloud-storage airflow google-cloud-composer

我无法在气流中使用google-cloud-storage
我在Airflow环境中使用的是Cloud Composer。

当我在 .py 代码中使用以下语句时,

Dag不接受它

from google.cloud import storage 

给我一​​个错误,说invalid character in identifier (MyPythonCode.py, line 6(where I am using that statement)

我已经在我的云作曲家PYPI程序包中安装了所需的pypi程序包(google-cloud-storage)。

每当我评论该行时,DAG就会接受.py文件。
我看到其他人Here提出了相同的问题,但是当他添加所需的软件包时,它开始起作用。但就我而言,不是。

0 个答案:

没有答案