Pip install breaks on S3 due to package mismatch error
See original GitHub issueApache Airflow version:
1.10.12
Environment:
Any environment
What happened:
Since the beginning of this week, everytime I try to pip install airflow with the following command:
pip install git+https://github.com/apache/incubator-airflow.git@${AIRFLOW_VERSION}#egg=apache-airflow[async,crypto,celery,jdbc,password,postgres,s3]
I get this error:
ERROR: Could not find a version that satisfies the requirement docutils<0.16,>=0.10 (from botocore)
--
980 | ERROR: No matching distribution found for docutils<0.16,>=0.10
But if I install without s3 in the apache-airflow[] array it works.
What you expected to happen:
To install successfully with s3 included so that I can use s3 hooks and such (like for remote logging)
How to reproduce it:
Run the pip install command above
Anything else we need to know:
Full stack trace here:
+ pip install git+https://github.com/apache/incubator-airflow.git@1.10.12#egg=apache-airflow[async,crypto,celery,jdbc,password,postgres,s3] --constraint https://raw.githubusercontent.com/apache/airflow/constraints-1.10.12/constraints-3.6.txt
--
950 | Collecting apache-airflow[async,celery,crypto,jdbc,password,postgres,s3]
951 | Cloning https://github.com/apache/incubator-airflow.git (to revision 1.10.12) to /tmp/pip-install-7bsvzbk0/apache-airflow_9a5affed6a26418c8c4cefedfd40b0f9
952 | Collecting alembic<2.0,>=1.0
953 | Downloading alembic-1.4.2.tar.gz (1.1 MB)
954 | Installing build dependencies: started
955 | Installing build dependencies: finished with status 'done'
956 | Getting requirements to build wheel: started
957 | Getting requirements to build wheel: finished with status 'done'
958 | Preparing wheel metadata: started
959 | Preparing wheel metadata: finished with status 'done'
960 | Collecting argcomplete~=1.10
961 | Downloading argcomplete-1.12.0-py2.py3-none-any.whl (38 kB)
962 | Collecting attrs~=19.3
963 | Downloading attrs-19.3.0-py2.py3-none-any.whl (39 kB)
964 | Collecting bcrypt>=2.0.0
965 | Downloading bcrypt-3.2.0-cp36-abi3-manylinux2010_x86_64.whl (63 kB)
966 | Requirement already satisfied: six>=1.4.1 in /usr/local/lib/python3.6/site-packages (from bcrypt>=2.0.0->apache-airflow[async,celery,crypto,jdbc,password,postgres,s3]) (1.15.0)
967 | Collecting boto3~=1.10
968 | Downloading boto3-1.14.44-py2.py3-none-any.whl (129 kB)
969 | Collecting botocore<1.18.0,>=1.17.44
970 | Downloading botocore-1.17.44-py2.py3-none-any.whl (6.5 MB)
971 | INFO: pip is looking at multiple versions of boto3 to determine which version is compatible with other requirements. This could take a while.
972 | INFO: pip is looking at multiple versions of bcrypt to determine which version is compatible with other requirements. This could take a while.
973 | INFO: pip is looking at multiple versions of attrs to determine which version is compatible with other requirements. This could take a while.
974 | INFO: pip is looking at multiple versions of argcomplete to determine which version is compatible with other requirements. This could take a while.
975 | INFO: pip is looking at multiple versions of apache-airflow to determine which version is compatible with other requirements. This could take a while.
976 | INFO: pip is looking at multiple versions of <Python from Requires-Python> to determine which version is compatible with other requirements. This could take a while.
977 | INFO: pip is looking at multiple versions of alembic to determine which version is compatible with other requirements. This could take a while.
978 | INFO: pip is looking at multiple versions of apache-airflow[async,celery,crypto,jdbc,password,postgres,s3] to determine which version is compatible with other requirements. This could take a while.
979 | ERROR: Could not find a version that satisfies the requirement docutils<0.16,>=0.10 (from botocore)
980 | ERROR: No matching distribution found for docutils<0.16,>=0.10
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Python packages hash not matching whilst installing using pip
This error suggests that you're using pip's hash checking mode and may be trying to upgrade a package's version without upgrading the hash...
Read more >Troubleshooting common AWS CDK issues
This topic describes how to troubleshoot the following issues with the AWS CDK. After updating the AWS CDK, the AWS CDK Toolkit (CLI)...
Read more >Changelog - pip documentation v22.3.1
Fix an error when trying to uninstall packages installed as editable from a ... to quelch a location mismatch warning where PyPy is...
Read more >Bug listing with status RESOLVED with resolution FIXED as at ...
Bug :2 - "How do I attach an ebuild. ... Bug:484 - "ogle-gui doens't compile because of problem with ogle install" status:RESOLVED resolution:FIXED...
Read more >Troubleshooting Omnibus GitLab installation issues
Hash Sum mismatch when downloading packages ... The runtime dependency policycoreutils-python has been added to the RPM package for RHEL based operating ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I confirmed it myself:
With
PIP 20.3
:This fails:
pip install 'git+https://github.com/apache/incubator-airflow.git@1.10.12#egg=apache-airflow[async,crypto,celery,jdbc,password,postgres,s3]' --constraint https://raw.githubusercontent.com/apache/airflow/constraints-1.10.12/constraints-3.6.txt
This succeeds:
pip install --use-deprecated legacy-resolver 'git+https://github.com/apache/incubator-airflow.git@1.10.12#egg=apache-airflow[async,crypto,celery,jdbc,password,postgres,s3]' --constraint https://raw.githubusercontent.com/apache/airflow/constraints-1.10.12/constraints-3.6.txt
So I can officially confirm it’s the new PIP.
Pleaase let us know @spence95 if downgrading PIP solves the problem