Closed uranusjr closed 3 years ago
This is fixed in pip 21.3:
❯ pip install --constraint https://raw.githubusercontent.com/apache/airflow/constraints-2.0.2/constraints-3.6.txt 'apache-airflow[google]==2.0.2'
Collecting apache-airflow[google]==2.0.2
Downloading apache_airflow-2.0.2-py3-none-any.whl (4.6 MB)
|████████████████████████████████| 4.6 MB 2.2 MB/s
Collecting croniter<0.4,>=0.3.17
Downloading croniter-0.3.37-py2.py3-none-any.whl (13 kB)
Collecting jinja2<2.12.0,>=2.10.1
Downloading Jinja2-2.11.3-py2.py3-none-any.whl (125 kB)
|████████████████████████████████| 125 kB 146.4 MB/s
Collecting termcolor>=1.1.0
Using cached termcolor-1.1.0.tar.gz (3.9 kB)
Preparing metadata (setup.py) ... done
Collecting lockfile>=0.12.2
Using cached lockfile-0.12.2-py2.py3-none-any.whl (13 kB)
Collecting alembic<2.0,>=1.2
Downloading alembic-1.5.8-py2.py3-none-any.whl (159 kB)
|████████████████████████████████| 159 kB 76.0 MB/s
Collecting flask-appbuilder>=3.1.1,~=3.1
Downloading Flask_AppBuilder-3.2.3-py3-none-any.whl (1.8 MB)
|████████████████████████████████| 1.8 MB 52.8 MB/s
Collecting python-dateutil<3,>=2.3
Downloading python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB)
|████████████████████████████████| 227 kB 29.8 MB/s
Collecting sqlalchemy<1.4,>=1.3.18
Downloading SQLAlchemy-1.3.24.tar.gz (6.4 MB)
|████████████████████████████████| 6.4 MB 16.0 MB/s
Preparing metadata (setup.py) ... done
Collecting tabulate<0.9,>=0.7.5
Downloading tabulate-0.8.9-py3-none-any.whl (25 kB)
Collecting cached-property~=1.5
Downloading cached_property-1.5.2-py2.py3-none-any.whl (7.6 kB)
Collecting werkzeug>=1.0.1,~=1.0
Downloading Werkzeug-1.0.1-py2.py3-none-any.whl (298 kB)
|████████████████████████████████| 298 kB 54.1 MB/s
Collecting cryptography>=0.9.3
Using cached cryptography-3.4.7-cp36-abi3-macosx_11_0_arm64.whl (1.9 MB)
Collecting flask-login<0.5,>=0.3
Downloading Flask-Login-0.4.1.tar.gz (14 kB)
Preparing metadata (setup.py) ... done
Collecting rich==9.2.0
Downloading rich-9.2.0-py3-none-any.whl (164 kB)
|████████████████████████████████| 164 kB 50.7 MB/s
Collecting blinker
Downloading blinker-1.4.tar.gz (111 kB)
|████████████████████████████████| 111 kB 149.0 MB/s
Preparing metadata (setup.py) ... done
Collecting graphviz>=0.12
Downloading graphviz-0.16-py2.py3-none-any.whl (19 kB)
Collecting psutil<6.0.0,>=4.2.0
Downloading psutil-5.8.0.tar.gz (470 kB)
|████████████████████████████████| 470 kB 24.9 MB/s
Preparing metadata (setup.py) ... done
Collecting requests>=2.20.0
Using cached requests-2.25.1-py2.py3-none-any.whl (61 kB)
Collecting importlib-resources~=1.4
Downloading importlib_resources-1.5.0-py2.py3-none-any.whl (21 kB)
Collecting apache-airflow-providers-sqlite
Downloading apache_airflow_providers_sqlite-1.0.2-py3-none-any.whl (14 kB)
Collecting python-nvd3~=0.15.0
Downloading python-nvd3-0.15.0.tar.gz (31 kB)
Preparing metadata (setup.py) ... done
Collecting pendulum~=2.0
Downloading pendulum-2.1.2.tar.gz (81 kB)
|████████████████████████████████| 81 kB 47.9 MB/s
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata (pyproject.toml) ... done
Collecting python-daemon>=2.2.4
Downloading python_daemon-2.3.0-py2.py3-none-any.whl (35 kB)
Collecting itsdangerous>=1.1.0
Downloading itsdangerous-1.1.0-py2.py3-none-any.whl (16 kB)
Collecting pyjwt<2
Downloading PyJWT-1.7.1-py2.py3-none-any.whl (18 kB)
Collecting setproctitle<2,>=1.1.8
Downloading setproctitle-1.2.2.tar.gz (23 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata (pyproject.toml) ... done
Collecting pygments<3.0,>=2.0.1
Downloading Pygments-2.8.1-py3-none-any.whl (983 kB)
|████████████████████████████████| 983 kB 122.8 MB/s
ERROR: Cannot install apache-airflow[google]==2.0.2 because these package versions have conflicting dependencies.
The conflict is caused by:
apache-airflow[google] 2.0.2 depends on cattrs~=1.1; python_version > "3.6"
The user requested (constraint) cattrs==1.0.0
To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies
Description
From apache/airflow#15790
The reported conflict
has nothing to do with the conflict. As far as I can work out (the dependency graph is huge and I didn't graph out all the packages, so there's a chance I missed something), connexion==2.7.0 can satisfy its part of the dependency sub-graph. The conflict happen elsewhere in the graph:
with constraints
so there's something very wrong with the reporting logic.
Expected behavior
The resolver should report something that is around google-cloud-bigquery, pandas, and pyarrow. It should not mention connexion if it's not really causing the conflict.
pip version
21.1+ (different bug on 21.0.x prevents installation)
Python version
3.6
OS
Ubuntu 16.04, likely any manylinux-compatible distros
How to Reproduce
Output
Code of Conduct