Interview practice question
ModuleNotFoundError in a task
Data Engineering · Airflow · Beginner
A task fails with ModuleNotFoundError for a Python package that works on your laptop. How do you fix it?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Package not installed in the Airflow environment or worker image.
- Add it to requirements or the Docker image with pinned versions.
- Check conflicts with Airflow's own dependencies (constraints file).
- Use virtualenv or container-based tasks for conflicting packages.
- Ensure scheduler and workers use the same image.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.