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/02/28 03:24:19 UTC

[GitHub] [airflow] gitzhuyongfu opened a new issue #14520: docker-compose install error

gitzhuyongfu opened a new issue #14520:
URL: https://github.com/apache/airflow/issues/14520


   use Official documents install airflow 2.0.1 
   docker-compose version is 1.28.5
   docker-compose file : curl -LfO 'https://airflow.apache.org/docs/apache-airflow/2.0.1/docker-compose.yaml'
   error:
   
   Status: Downloaded newer image for apache/airflow:2.0.1
   Creating airflow_redis_1    ... done
   Creating airflow_postgres_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
   


----------------------------------------------------------------
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 #14520: docker-compose install error

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


   Can you show content of .env file and $UID and $GID?  for now this docker compose is not working from root, but today I merged the patch. See. https://github.com/apache/airflow/pull/14226


----------------------------------------------------------------
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] gitzhuyongfu commented on issue #14520: docker-compose install error

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


   os:CentOS Linux release 7.8.2003 (Core)
   docker: 20.10.3
   docker-compose: 1.28.5
   


----------------------------------------------------------------
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] gelinger777 commented on issue #14520: docker-compose install error

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


   Thank you @mik-laj 


----------------------------------------------------------------
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] jagusztinl commented on issue #14520: docker-compose install error

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


   > ```yaml
   > PYTHONPATH: "/home/airflow/.local/lib/python3.6/site-packages"
   > ```
   
   Please explain in detail how the yaml file should look like please
   


----------------------------------------------------------------
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] gelinger777 commented on issue #14520: docker-compose install error

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


   @mik-laj  so we should not use root user and root id?  i also used 0,0 .. 


----------------------------------------------------------------
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 #14520: docker-compose install error

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


   @gelinger777 Yes. You should use a non-root user.  As a temporary workaround, you can also add a directory with user modules to PYTHONPATH.
   ```yaml
     environment:
       &airflow-common-env
       PYTHONPATH: "/home/airflow/.local/lib/python3.6/site-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] mik-laj edited a comment on issue #14520: docker-compose install error

Posted by GitBox <gi...@apache.org>.
mik-laj edited a comment on issue #14520:
URL: https://github.com/apache/airflow/issues/14520#issuecomment-787437187


   @gelinger777 Yes. You should use a non-root user.  As a temporary workaround, you can also add a directory with user modules to [`PYTHONPATH`](https://docs.python.org/3/using/cmdline.html#envvar-PYTHONPATH).
   ```yaml
   ...
     environment:
       &airflow-common-env
       PYTHONPATH: "/home/airflow/.local/lib/python3.6/site-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] mik-laj commented on issue #14520: docker-compose install error

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


   What is your operating system?


----------------------------------------------------------------
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 edited a comment on issue #14520: docker-compose install error

Posted by GitBox <gi...@apache.org>.
mik-laj edited a comment on issue #14520:
URL: https://github.com/apache/airflow/issues/14520#issuecomment-787437187


   @gelinger777 Yes. You should use a non-root user.  As a temporary workaround, you can also add a directory with user modules to PYTHONPATH.
   ```yaml
   ...
     environment:
       &airflow-common-env
       PYTHONPATH: "/home/airflow/.local/lib/python3.6/site-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] mik-laj closed issue #14520: docker-compose install error

Posted by GitBox <gi...@apache.org>.
mik-laj closed issue #14520:
URL: https://github.com/apache/airflow/issues/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



[GitHub] [airflow] mik-laj edited a comment on issue #14520: docker-compose install error

Posted by GitBox <gi...@apache.org>.
mik-laj edited a comment on issue #14520:
URL: https://github.com/apache/airflow/issues/14520#issuecomment-787437187


   @gelinger777 Yes. You should use a non-root user.  As a temporary workaround, you can also add a directory with user modules to [`PYTHONPATH`](https://docs.python.org/3/using/cmdline.html#envvar-PYTHONPATH) environment variable.
   ```yaml
   ...
     environment:
       &airflow-common-env
       PYTHONPATH: "/home/airflow/.local/lib/python3.6/site-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] boring-cyborg[bot] commented on issue #14520: docker-compose install error

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


   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