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/11 10:37:30 UTC
[GitHub] [airflow] jakubgs opened a new issue #14717: Authlib not installed in Docker image
jakubgs opened a new issue #14717:
URL: https://github.com/apache/airflow/issues/14717
# Description
I'm trying to use `AUTH_TYPE = AUTH_OAUTH` with GitHub, but when I start the `webserver` I see the following error:
```
...
self.init_app(app, session)
File "/home/airflow/.local/lib/python3.6/site-packages/flask_appbuilder/base.py", line 202, in init_app
self.sm = self.security_manager_class(self)
File "/home/airflow/.local/lib/python3.6/site-packages/airflow/www/security.py", line 160, in __init__
super().__init__(appbuilder)
File "/home/airflow/.local/lib/python3.6/site-packages/flask_appbuilder/security/sqla/manager.py", line 51, in __init__
super(SecurityManager, self).__init__(appbuilder)
File "/home/airflow/.local/lib/python3.6/site-packages/flask_appbuilder/security/manager.py", line 250, in __init__
from authlib.integrations.flask_client import OAuth
ModuleNotFoundError: No module named 'authlib'
```
This is resolved if I do:
```
docker exec -it -u root airflow-app pip install authlib
```
But this really should be included in the image.
# Versions
I'm running the official Docker image from: https://hub.docker.com/r/apache/airflow
I'm running is `sha256:2bf4fe559e9e699487a50d4e587358bb0b3c90b59c8fefeccc8a4fb2e83f3d09` which is from a `2.0.1` tag.
----------------------------------------------------------------
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] ashb closed issue #14717: Authlib not installed in Docker image
Posted by GitBox <gi...@apache.org>.
ashb closed issue #14717:
URL: https://github.com/apache/airflow/issues/14717
----------------------------------------------------------------
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 #14717: Authlib not installed in Docker image
Posted by GitBox <gi...@apache.org>.
boring-cyborg[bot] commented on issue #14717:
URL: https://github.com/apache/airflow/issues/14717#issuecomment-796640151
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] ashb commented on issue #14717: Authlib not installed in Docker image
Posted by GitBox <gi...@apache.org>.
ashb commented on issue #14717:
URL: https://github.com/apache/airflow/issues/14717#issuecomment-796706736
authlib is an optional dependency -- so you will have to install this yourself.
See https://airflow.apache.org/docs/apache-airflow/stable/production-deployment.html?highlight=docker%20image#extending-the-image for more info.
A quick example:
```
FROM apache/airflow:2.0.0
RUN pip install --no-cache-dir --user authlib
```
----------------------------------------------------------------
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