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/02 02:12:45 UTC

[GitHub] [airflow] dkinzer commented on issue #8467: ImportError: cannot import name 'bytes_type' from 'oauthlib.common'

dkinzer commented on issue #8467:
URL: https://github.com/apache/airflow/issues/8467#issuecomment-788521732


   @potiuk, we are seeing the same  issue as @weldpua2008 using airflow 1.10.14 and applying the 1.10.14/constraints-3.6.txt.
   
   I've determined that the constraints do not specify a version for flask_oauthlib  even though they make a direct dependency via the flask_appbuilder package and this is likely at the root of the problem:
   
   Flask-AppBuilder==2.3.4 has a dep to flask_oauthlib but the constraint do not specify this package
   https://github.com/dpgaspar/Flask-AppBuilder/blob/v2.3.4/flask_appbuilder/security/manager.py#L249
   
   I've deleted my local copy of flask_oauthlib and tried to reinstall it using the constraint and I get the following error:
   ```
   pip install flask_oauthlib --constraint=https://raw.githubusercontent.com/apache/airflow/constraints-1.10.14/constraints-3.6.txt
   flask-oauthlib 0.9.6 has requirement oauthlib!=2.0.3,!=2.0.4,!=2.0.5,<3.0.0,>=1.1.2, but you'll have oauthlib 3.1.0 which is incompatible.
   flask-oauthlib 0.9.6 has requirement requests-oauthlib<1.2.0,>=0.6.2, but you'll have requests-oauthlib 1.3.0 which is incompatible.
   ```
   So I think this incompatibility is at the heart of the issue.
   


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