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

Inconsistency between package requirements and constraints: flask-appbuilder (python 3.9) #16499

Closed
cesaralba opened this issue Jun 17, 2021 · 2 comments
Labels
duplicate Issue that is duplicated kind:bug This is a clearly a bug

Comments

@cesaralba
Copy link

Apache Airflow version: 2.1.0

Kubernetes version (if you are using kubernetes) (use kubectl version): N//A

Environment:

What happened:
When trying to install airflow following the URL mentioned above I got the following message:

...
ERROR: Cannot install apache-airflow==2.1.0 because these package versions have conflicting dependencies.

The conflict is caused by:
    apache-airflow 2.1.0 depends on flask-appbuilder~=3.3
    The user requested (constraint) flask-appbuilder==3.1.1

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

What you expected to happen:
To install flawlessly :)

** What do you think went wrong?**:

The requirements package for apache-airflow (

flask-appbuilder~=3.3
) were updated on May 12th (PR #15792) but it seems that for some reason the constraints for python-3.9 were not updated accordingly (rest of versions are ok).

How to reproduce it:

On a Linux Box able to run airflow

mkdir wrk
cd wrk/
python3 -m venv sandbox
source sandbox/bin/activate
export AIRFLOW_HOME=$PWD/airflow
AIRFLOW_VERSION=2.1.0
PYTHON_VERSION="$(python --version | cut -d " " -f 2 | cut -d "." -f 1-2)"
CONSTRAINT_URL="https://raw.githubusercontent.com/apache/airflow/constraints-${AIRFLOW_VERSION}/constraints-${PYTHON_VERSION}.txt"
pip install "apache-airflow==${AIRFLOW_VERSION}" --constraint "${CONSTRAINT_URL}"

Anything else we need to know:

I tried to change it in a fork but I wasn't able.

To get the fix done (on bash)

git checkout constraints-2.1.0
sed -i -e 's/Flask-AppBuilder==3.1.1/Flask-AppBuilder==3.3.0/' *-3.9.txt

After the change, an installation with a local constraints file worked ok.

@cesaralba cesaralba added the kind:bug This is a clearly a bug label Jun 17, 2021
@boring-cyborg
Copy link

boring-cyborg bot commented Jun 17, 2021

Thanks for opening your first issue here! Be sure to follow the issue template!

@cesaralba cesaralba changed the title Inconsistency between package requirements and constraints: flask-appbuilder Inconsistency between package requirements and constraints: flask-appbuilder (python 3.9) Jun 17, 2021
@potiuk potiuk added the duplicate Issue that is duplicated label Jun 17, 2021
@potiuk
Copy link
Member

potiuk commented Jun 17, 2021

Python 3.9 is not supported yet (see #15515 ) - it will be added soon (working on it as we speak)

@potiuk potiuk closed this as completed Jun 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Issue that is duplicated kind:bug This is a clearly a bug
Projects
None yet
Development

No branches or pull requests

2 participants