Skip to content

google-cloud-automl version incompatibility in apache-airflow[google,google_auth] #14145

@Khrol

Description

@Khrol

Apache Airflow version: 2.0.1

Kubernetes version (if you are using kubernetes) (use kubectl version): -

Environment:

  • Cloud provider or hardware configuration:
  • OS (e.g. from /etc/os-release):
  • Kernel (e.g. uname -a):
  • Install tools:
  • Others:

What happened:

Can't install apache-airflow[google,google_auth]==2.0.1 using pipenv

Output:

% pipenv install "apache-airflow[google,google_auth]==2.0.1"                    
Installing apache-airflow[google,google_auth]==2.0.1...
Adding apache-airflow to Pipfile's [packages]...
✔ Installation Succeeded 
Pipfile.lock (db4242) out of date, updating to (426666)...
Locking [dev-packages] dependencies...
Locking [packages] dependencies...
Building requirements...
Resolving dependencies...
✘ Locking Failed! 
[ResolutionFailure]:   File "/usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/resolver.py", line 741, in _main
[ResolutionFailure]:       resolve_packages(pre, clear, verbose, system, write, requirements_dir, packages, dev)
[ResolutionFailure]:   File "/usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/resolver.py", line 702, in resolve_packages
[ResolutionFailure]:       results, resolver = resolve(
[ResolutionFailure]:   File "/usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/resolver.py", line 684, in resolve
[ResolutionFailure]:       return resolve_deps(
[ResolutionFailure]:   File "/usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/utils.py", line 1395, in resolve_deps
[ResolutionFailure]:       results, hashes, markers_lookup, resolver, skipped = actually_resolve_deps(
[ResolutionFailure]:   File "/usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/utils.py", line 1108, in actually_resolve_deps
[ResolutionFailure]:       resolver.resolve()
[ResolutionFailure]:   File "/usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/utils.py", line 833, in resolve
[ResolutionFailure]:       raise ResolutionFailure(message=str(e))
[pipenv.exceptions.ResolutionFailure]: Warning: Your dependencies could not be resolved. You likely have a mismatch in your sub-dependencies.
  First try clearing your dependency cache with $ pipenv lock --clear, then try the original command again.
 Alternatively, you can use $ pipenv install --skip-lock to bypass this mechanism, then run $ pipenv graph to inspect the situation.
  Hint: try $ pipenv lock --pre if it is a pre-release dependency.
ERROR: Could not find a version that matches google-cloud-automl<2.0.0,<3.0.0,>=0.4.0,>=2.1.0 (from apache-airflow[google,google_auth]==2.0.1->-r /var/folders/_2/4fxqmzv17w10xcgpmn07cyww0000gn/T/pipenv6xf5z09xrequirements/pipenv-2_2vbarc-constraints.txt (line 2))
Tried: 0.1.0, 0.1.0, 0.1.1, 0.1.1, 0.1.2, 0.1.2, 0.2.0, 0.2.0, 0.3.0, 0.3.0, 0.4.0, 0.4.0, 0.5.0, 0.5.0, 0.6.0, 0.6.0, 0.7.0, 0.7.0, 0.7.1, 0.7.1, 0.8.0, 0.8.0, 0.9.0, 0.9.0, 0.10.0, 0.10.0, 1.0.1, 1.0.1, 2.0.0, 2.0.0, 2.1.0, 2.1.0
There are incompatible versions in the resolved dependencies:
  google-cloud-automl<2.0.0,>=0.4.0 (from apache-airflow[google,google_auth]==2.0.1->-r /var/folders/_2/4fxqmzv17w10xcgpmn07cyww0000gn/T/pipenv6xf5z09xrequirements/pipenv-2_2vbarc-constraints.txt (line 2))
  google-cloud-automl<3.0.0,>=2.1.0 (from apache-airflow-providers-google==2.0.0->apache-airflow[google,google_auth]==2.0.1->-r /var/folders/_2/4fxqmzv17w10xcgpmn07cyww0000gn/T/pipenv6xf5z09xrequirements/pipenv-2_2vbarc-constraints.txt (line 2))

What you expected to happen:

How to reproduce it:

pipenv install --python 3.8
pipenv install "apache-airflow[google,google_auth]==2.0.1"

Anything else we need to know:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions