Nakeuh opened a new issue, #41915:
URL: https://github.com/apache/airflow/issues/41915

   ### Apache Airflow version
   
   2.10.0
   
   ### If "Other Airflow 2 version" selected, which one?
   
   _No response_
   
   ### What happened?
   
   I am trying to run a docker compose file from [official docker compose 
file][1] (with airflow image = `apache/airflow:slim-latest`): 
   
   When I run `docker compose up` I get the following error : 
   
       ModuleNotFoundError: No module named 'psycopg2'
   
   I tried to fix the issue by creating my own Dockerfile
   
       FROM apache/airflow:slim-latest
       USER root
       RUN apt-get -y update && apt-get install libpq-dev build-essential -y
       USER 50000
       RUN pip install psycopg2
       CMD []
   
   And using it instead of the airflow image, but then my docker compose loops 
in failure : 
   
       ERROR - Failed to load CLI commands from executor: CeleryExecutor
       ...
       ERROR - Ensure all dependencies are met and try again. If using a Celery 
based executor install a 3.3.0+ version of the Celery provider. If using a 
Kubernetes executor, install a 7.4.0+ version of the CNCF provider
       ...
       ModuleNotFoundError: No module named 'airflow.providers.celery'
   
   
   What am I doing wrong here ? How can I make it work ?
   
   Note : 
   * I tried multiple airflow images, they all gave the same result
   
   
     [1]: 
https://github.com/apache/airflow/blob/main/docs/apache-airflow/howto/docker-compose/docker-compose.yaml
   
   ### What you think should happen instead?
   
   I expected `docker compose up` command to setup a running environement
   
   ### How to reproduce
   
   Run `docker compose up` with this 
[docker-compose.yaml](https://github.com/apache/airflow/blob/main/docs/apache-airflow/howto/docker-compose/docker-compose.yaml)
 
   
   ### Operating System
   
   ubuntu
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Docker-Compose
   
   ### Deployment details
   
   _No response_
   
   ### 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