sc-ndrf opened a new issue, #43743:
URL: https://github.com/apache/airflow/issues/43743

   ### Apache Airflow version
   
   2.10.2
   
   ### If "Other Airflow 2 version" selected, which one?
   
   _No response_
   
   ### What happened?
   
   I am using [dynamic task 
mapping](https://airflow.apache.org/docs/apache-airflow/stable/authoring-and-scheduling/dynamic-task-mapping.html#simple-mapping)
 to create two instances of a task `make_paths` that returns a single string.  
   The return values are then passed to a task that expects a list of string 
for further processing.
   However, before executing the second task, `print_paths`, an exception is 
thrown: `ModuleNotFoundError: No module named '***'`. The log file is attached.
   
   When the tasks are decorated with `@task` instead of `task.external_python` 
, the DAG runs successfully and produces the expected output.
   
   [error.log](https://github.com/user-attachments/files/17647662/error.log)
   
   
   ### What you think should happen instead?
   
   The DAG should run without error also using the `task.external_python` 
decorator.
   
   ### How to reproduce
   
   - Download and unpack the attached zip archive.
   - Build and start the Docker containers using `docker compose build 
--no-cache && docker compose up -d`
   - Open the web GUI at `http://localhost:8090/dags/test_dag` and run the test 
DAG. Use `airflow:airflow` as login.
   
   ### Operating System
   
   Ubuntu 24.04 as host OS.
   
   ### Versions of Apache Airflow Providers
   
   none used.
   
   ### Deployment
   
   Docker-Compose
   
   ### Deployment details
   
   Docker container based on the official `apache/airflow:2.10.2-python3.12` 
image.
   
   
   Docker Compose version 2.24.6+ds1-0ubuntu2
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to