Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error installing google_auth extra on 1.10.13 #12759

Closed
jonathonbattista opened this issue Dec 2, 2020 · 5 comments
Closed

Error installing google_auth extra on 1.10.13 #12759

jonathonbattista opened this issue Dec 2, 2020 · 5 comments
Assignees
Labels
kind:bug This is a clearly a bug

Comments

@jonathonbattista
Copy link

Apache Airflow version: 1.10.13

Environment: Docker

What happened:
Looks like there are conflicts between the setup.py (which limits to oauthlib!=2.0.3,!=2.0.4,!=2.0.5,<3.0.0,>=1.1.2 and requests-lib==1.1.0 ) and the version specified in the requirements-3.7.txt (which is oauthlib==3.1.0 and request-oauthlib===1.3.0 )

oauthlib:

  • ERROR: Could not find a version that satisfies the requirement oauthlib!=2.0.3,!=2.0.4,!=2.0.5,<3.0.0,>=1.1.2; extra == "google_auth" (from apache-airflow[google-auth])
  • ERROR: No matching distribution found for oauthlib!=2.0.3,!=2.0.4,!=2.0.5,<3.0.0,>=1.1.2; extra == "google_auth"

requests-oauthlib:

  • ERROR: Could not find a version that satisfies the requirement requests-oauthlib==1.1.0; extra == "google_auth" (from apache-airflow[crypto,gcp,google-auth,kubernetes,mysql,s3,slack,statsd])
  • ERROR: No matching distribution found for requests-oauthlib==1.1.0; extra == "google_auth"

What you expected to happen:

google_auth is installed successfully with constraints-3.7

How to reproduce it:
pip3 install --user 'apache-airflow[google_auth]==1.10.13' --constraint https://raw.githubusercontent.com/apache/airflow/constraints-1.10.13/constraints-3.7.txt

@jonathonbattista jonathonbattista added the kind:bug This is a clearly a bug label Dec 2, 2020
@potiuk
Copy link
Member

potiuk commented Dec 2, 2020

Yep. Just before your issue I created those two:

oauthlib/oauthlib#744
pypa/pip#9203

and Updated documentation for upcoming 1.10.14. You need to downgrade PyPI to 20.2.4 or use --use-deprecated legacy-resolver switch when running pip install

@potiuk potiuk self-assigned this Dec 2, 2020
@jonathonbattista
Copy link
Author

@potiuk The error still persists in 1.10.14.

ERROR: Could not find a version that satisfies the requirement requests-oauthlib==1.1.0; extra == "google_auth" (from apache-airflow[,google-auth])
ERROR: No matching distribution found for requests-oauthlib==1.1.0; extra == "google_auth"

The requests-oauthlib version is still pinned to 1.1.0 in the setup.py

@potiuk
Copy link
Member

potiuk commented Dec 10, 2020

PLease use 1.10.14. Dependency problem has been solved there actually (including the oauthlib ones) and 1.10.13 is "bad" release - it has known problems with not started "depends_on_past" tasks. 1.10.14 has been officially released today.

@potiuk potiuk added the invalid label Dec 10, 2020
@potiuk potiuk closed this as completed Dec 10, 2020
@potiuk potiuk removed the invalid label Dec 10, 2020
@jonathonbattista
Copy link
Author

jonathonbattista commented Dec 10, 2020

@potiuk
You say the dependency problem has been solved in 1.10.14 but that is not what I am seeing.

OAuthlib:

pip3 install --user 'apache-airflow[google_auth]==1.10.14' --constraint https://raw.githubusercontent.com/apache/airflow/constraints-1.10.14/constraints-3.7.txt
Collecting apache-airflow[google_auth]==1.10.14
 Downloading apache_airflow-1.10.14-py2.py3-none-any.whl (4.7 MB)
ERROR: Could not find a version that satisfies the requirement oauthlib!=2.0.3,!=2.0.4,!=2.0.5,<3.0.0,>=1.1.2; extra == "google_auth" (from apache-airflow[google-auth])
ERROR: No matching distribution found for oauthlib!=2.0.3,!=2.0.4,!=2.0.5,<3.0.0,>=1.1.2; extra == "google_auth"

requests-oauthlib:

 pip3 install --user 'apache-airflow[google-auth]==1.10.14' --constraint https://raw.githubusercontent.com/apache/airflow/constraints-1.10.14/constraints-3.7.txt
Collecting apache-airflow[google-auth]==1.10.14
Downloading apache_airflow-1.10.14-py2.py3-none-any.whl (4.7 MB)
ERROR: Could not find a version that satisfies the requirement requests-oauthlib==1.1.0; extra == "google_auth" (from apache-airflow[google-auth])
ERROR: No matching distribution found for requests-oauthlib==1.1.0; extra == "google_auth"

@potiuk
Copy link
Member

potiuk commented Dec 10, 2020

Which PIp version you use ? There are several bugs in the latest released PIp 20.3 (a week ago) and PiP team is working on solving them . See #12838 for details and workarounds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug This is a clearly a bug
Projects
None yet
Development

No branches or pull requests

2 participants