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:
[email protected]


Reply via email to