Replies: 2 comments 6 replies
-
You likely have no See https://airflow.apache.org/docs/apache-airflow/stable/modules_management.html where all this is explained in detail. Also you shoudl try to experiment yourself with python imports to understand how they work. |
Beta Was this translation helpful? Give feedback.
-
If someone has found this post through search engine and doesn't want to read the Airflow's Modules Management page, here is a solution to the original poster's question. Airflow adds the from operators.algolia_operator import AlgoliaToS3Operator This will allow Airflow to find and import the module without requiring any additional configuration. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I am hoping I can get help with configuring the community Docker-Compose Airflow environment. I am following the instructions documented here:
https://airflow.apache.org/docs/apache-airflow/stable/start/docker.html
Using the docker-compose.yaml below.
curl -LfO 'https://airflow.apache.org/docs/apache-airflow/2.3.1/docker-compose.yaml'
I am getting the following DAG import error:
The documentation goes through setting up the directories for dags, logs, and plugins that are mounted within the docker containers. However, when I look in the containers I do not see the /opt/airflow directory listed in the PATH variable. To address this, I've extended the image with the following DockerFile:
However, I am still getting the same error. I can shell into these containers, open python, and import from my modules from here just fine. I do not understand why Airflow is not able to import from this location. Please help.
Beta Was this translation helpful? Give feedback.
All reactions