airflow-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jarek Potiuk <>
Subject Implemented workaround to installing airflow with recent setuptools upgrade
Date Wed, 08 Sep 2021 12:28:33 GMT
Hl everyone,

Tl;DR: if you (as a number of our users) experienced issues with installing
Airflow 2 over the last 2 days, the problem should be workarounded now for
all versions of Airflow 2 and it should install properly even with the
latest setuptools.


The recent setuptools release (58.0.2) has broken installation for ALL
Airflow 2 released versions (Details of the issue here: ). The actual problem is the
deprecation of 2_to_3 configuration in FlaskOpenID. We try to
communicate with FlaskOpenId maintainers, but it's likely they won't fix it
(the last release was in 2016)

This was rather unfortunate, because setuptools need to be installed before
airflow and even with our constraint mechanisms, we cannot force setuptools
to be downgraded.

Solution (Workaround really):

Luckily, (with the help of TP, our PIP expert :) ) we've figured out
and implemented the workaround, so as long as you use the "official" way of
installing airflow (with constraints), Airflow should continue to install
even with the latest setuptools.

Details of the workaround in

We basically forked Flask-OpenID, applied removal of the deprecated option
and updated the constraints to include our patched version.

I applied the fix to constraints for all released Airflow 2 versions:

* 2.1.3:
* 2.1.2:
* 2.1.1:
* 2.1.0:
* 2.0.2:
* 2.0.1:
* 2.0.0:


View raw message