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/01 19:30:43 UTC

[GitHub] [airflow] weldpua2008 edited a comment on issue #8467: ImportError: cannot import name 'bytes_type' from 'oauthlib.common'

weldpua2008 edited a comment on issue #8467:
URL: https://github.com/apache/airflow/issues/8467#issuecomment-771094870


   @joshzana still reproduces on 1.10.14 and Python 3.6 
   
   ```
   $ airflow webserver
   Traceback (most recent call last):
     File "/usr/local/bin/airflow", line 37, in <module>
       args.func(args)
     File "/usr/local/lib/python3.6/site-packages/airflow/utils/cli.py", line 81, in wrapper
       return f(*args, **kwargs)
     File "/usr/local/lib/python3.6/site-packages/airflow/bin/cli.py", line 1179, in webserver
       app = cached_app_rbac(None) if settings.RBAC else cached_app(None)
     File "/usr/local/lib/python3.6/site-packages/airflow/www_rbac/app.py", line 297, in cached_app
       app, _ = create_app(config, session, testing)
     File "/usr/local/lib/python3.6/site-packages/airflow/www_rbac/app.py", line 115, in create_app
       update_perms=conf.getboolean('webserver', 'UPDATE_FAB_PERMS'))
     File "/usr/local/lib/python3.6/site-packages/flask_appbuilder/base.py", line 148, in __init__
       self.init_app(app, session)
     File "/usr/local/lib/python3.6/site-packages/flask_appbuilder/base.py", line 202, in init_app
       self.sm = self.security_manager_class(self)
     File "/usr/local/lib/python3.6/site-packages/airflow/www_rbac/security.py", line 180, in __init__
       super(AirflowSecurityManager, self).__init__(appbuilder)
     File "/usr/local/lib/python3.6/site-packages/flask_appbuilder/security/sqla/manager.py", line 51, in __init__
       super(SecurityManager, self).__init__(appbuilder)
     File "/usr/local/lib/python3.6/site-packages/flask_appbuilder/security/manager.py", line 249, in __init__
       from flask_oauthlib.client import OAuth
     File "/usr/local/lib/python3.6/site-packages/flask_oauthlib/client.py", line 20, in <module>
       from .utils import to_bytes
     File "/usr/local/lib/python3.6/site-packages/flask_oauthlib/utils.py", line 5, in <module>
       from oauthlib.common import to_unicode, bytes_type
   ImportError: cannot import name 'bytes_type'
   ```


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