You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/08/06 17:40:53 UTC

[GitHub] [airflow] tambulkar opened a new issue #10204: ModuleNotFoundError: No module named 'docker' in DockerOperator

tambulkar opened a new issue #10204:
URL: https://github.com/apache/airflow/issues/10204


   **Apache Airflow version**: 1.10.11
   
   **Kubernetes version (if you are using kubernetes)** (use `kubectl version`):
   
   **Environment**: Conda Python 3.6.11
   
   **What happened**:
   
   Trying to import the DockerOperator from `airflow.operators.docker_operator and I get this error
   ModuleNotFoundError: No module named 'docker'
   
   **What you expected to happen**:
   
   Shouldn't airflow automatically install all the dependencies listed [here](https://github.com/apache/airflow/blob/1.10.11/requirements/requirements-python3.6.txt) when I run `pip install apache-airflow`? It is easily fixed by manually running `pip install docker`, but is this the expected behavior? 
   
   **How to reproduce it**:
   ```
   conda create -n test python 3.6.11 --yes
   conda activate test
   pip install apache-airflow
   pip freeze
   ```
   [docker](https://github.com/docker/docker-py) doesn't appear in the list of installed packages 


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] potiuk commented on issue #10204: ModuleNotFoundError: No module named 'docker' in DockerOperator

Posted by GitBox <gi...@apache.org>.
potiuk commented on issue #10204:
URL: https://github.com/apache/airflow/issues/10204#issuecomment-670088238


   Not really. See https://airflow.apache.org/docs/stable/installation.html
   
   Apache has a number of extras that you can choose when installing it . For example pip install airflow[kubernetes] will install all the stuff to run kubernetes. The file you mentioned is a constraint file only (and we are changing the mechanism of those  slightly soon). You can read the installation doc where you find some details: https://airflow.apache.org/docs/stable/installation.html


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] potiuk closed issue #10204: ModuleNotFoundError: No module named 'docker' in DockerOperator

Posted by GitBox <gi...@apache.org>.
potiuk closed issue #10204:
URL: https://github.com/apache/airflow/issues/10204


   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] potiuk edited a comment on issue #10204: ModuleNotFoundError: No module named 'docker' in DockerOperator

Posted by GitBox <gi...@apache.org>.
potiuk edited a comment on issue #10204:
URL: https://github.com/apache/airflow/issues/10204#issuecomment-670088238


   Not really. See https://airflow.apache.org/docs/stable/installation.html
   
   Apache Airflow has a number of extras that you can choose when installing it . For example pip install airflow[kubernetes] will install all the stuff to run kubernetes. The file you mentioned is a constraint file only (and we are changing the mechanism of those  slightly soon). You can read the installation doc where you find some details: https://airflow.apache.org/docs/stable/installation.html


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org