2

I am not able to use google-cloud-storage in my Airflow.
I am using cloud composer for my Airflow environment.

Dag is not accepting it when I am using the below statement in my .py code

from google.cloud import storage 

Its giving me an error saying that invalid character in identifier (MyPythonCode.py, line 6(where I am using that statement)

I have installed the required pypi package (google-cloud-storage) in my cloud composer PYPI Packages.

Whenever I am commenting that line, my DAG accepts .py file.
I have seen the same issue raised by other person Here, but when he added the required package, it started working. But not in my case.

3

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.