GitHub user potiuk added a comment to the discussion: Using the @task.external_python() to call a task in a venv fails due to attempting to import airflow and other packages not in the external venv
Look at the parameters of the ExternalPython. There are parameters like "expect_airflow" and "expect_pendulum" and "use_airflow_context". Likely you should look at default values of those parameters and default_args you have to see if they are set to well, EXPECT AIRFLOW and EXPECT PENDULUM GitHub link: https://github.com/apache/airflow/discussions/40763#discussioncomment-11040528 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected]
