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 2021/03/05 06:39:33 UTC

[GitHub] [airflow] HugoPu opened a new issue #14616: Install airflow with docker No module named 'airflow'

HugoPu opened a new issue #14616:
URL: https://github.com/apache/airflow/issues/14616


   **Apache Airflow version**:
   2.0.1
   
   **Kubernetes version (if you are using kubernetes)** (use `kubectl version`):
   No
   
   **Environment**:
   centos 7.9  in ubuntu 20.04 virtualbox
   Docker version 20.10.5, build 55c4c88
   docker-compose version 1.28.5, build c4eb3a1f
   
   
   - **OS** (e.g. from /etc/os-release):
   ```
   NAME="CentOS Linux"
   VERSION="7 (Core)"
   ID="centos"
   ID_LIKE="rhel fedora"
   VERSION_ID="7"
   PRETTY_NAME="CentOS Linux 7 (Core)"
   ANSI_COLOR="0;31"
   CPE_NAME="cpe:/o:centos:centos:7"
   HOME_URL="https://www.centos.org/"
   BUG_REPORT_URL="https://bugs.centos.org/"
   
   CENTOS_MANTISBT_PROJECT="CentOS-7"
   CENTOS_MANTISBT_PROJECT_VERSION="7"
   REDHAT_SUPPORT_PRODUCT="centos"
   REDHAT_SUPPORT_PRODUCT_VERSION="7"
   ```
   
   - **Kernel** (e.g. `uname -a`):
   - `Linux localhost.localdomain 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux `
   
   **What happened**:
   After running `docker-compose up airflow-init`,the following error is show:
   ```
   Creating airflow_postgres_1 ... done
   Creating airflow_redis_1    ... done
   Creating airflow_airflow-init_1 ... done
   Attaching to airflow_airflow-init_1
   airflow-init_1       | BACKEND=postgresql+psycopg2
   airflow-init_1       | DB_HOST=postgres
   airflow-init_1       | DB_PORT=5432
   airflow-init_1       |
   airflow-init_1       | Traceback (most recent call last):
   airflow-init_1       |   File "/home/airflow/.local/bin/airflow", line 5, in <module>
   airflow-init_1       |     from airflow.__main__ import main
   airflow-init_1       | ModuleNotFoundError: No module named 'airflow'
   airflow-init_1       | Traceback (most recent call last):
   airflow-init_1       |   File "/home/airflow/.local/bin/airflow", line 5, in <module>
   airflow-init_1       |     from airflow.__main__ import main
   airflow-init_1       | ModuleNotFoundError: No module named 'airflow'
   airflow-init_1       | Traceback (most recent call last):
   airflow-init_1       |   File "/home/airflow/.local/bin/airflow", line 5, in <module>
   airflow-init_1       |     from airflow.__main__ import main
   airflow-init_1       | ModuleNotFoundError: No module named 'airflow'
   airflow-init_1       | Traceback (most recent call last):
   airflow-init_1       |   File "/home/airflow/.local/bin/airflow", line 5, in <module>
   airflow-init_1       |     from airflow.__main__ import main
   airflow-init_1       | ModuleNotFoundError: No module named 'airflow'
   airflow-init_1       | Traceback (most recent call last):
   airflow-init_1       |   File "/home/airflow/.local/bin/airflow", line 5, in <module>
   airflow-init_1       |     from airflow.__main__ import main
   airflow-init_1       | ModuleNotFoundError: No module named 'airflow'
   airflow_airflow-init_1 exited with code 1
   ```
   
   **How to reproduce it**:
   Install airflow as mentioned on https://airflow.apache.org/docs/apache-airflow/stable/start/docker.html
   
   How often does this problem occur? Once? Every time etc?
   Every time
   


----------------------------------------------------------------
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] boring-cyborg[bot] commented on issue #14616: Install airflow with docker No module named 'airflow'

Posted by GitBox <gi...@apache.org>.
boring-cyborg[bot] commented on issue #14616:
URL: https://github.com/apache/airflow/issues/14616#issuecomment-791194167


   Thanks for opening your first issue here! Be sure to follow the issue template!
   


----------------------------------------------------------------
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] mik-laj closed issue #14616: Install airflow with docker No module named 'airflow'

Posted by GitBox <gi...@apache.org>.
mik-laj closed issue #14616:
URL: https://github.com/apache/airflow/issues/14616


   


----------------------------------------------------------------
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] mik-laj commented on issue #14616: Install airflow with docker No module named 'airflow'

Posted by GitBox <gi...@apache.org>.
mik-laj commented on issue #14616:
URL: https://github.com/apache/airflow/issues/14616#issuecomment-791782926


   Duplicate: #14520


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