Airflow: Statsd (tbc. if more extras) tries to install provider package where it is missing

Created on 10 Nov 2020  路  5Comments  路  Source: apache/airflow

Apache Airflow version: 2.0.0b2

What happened:

Starting in 2.0.0b2, extras that aren't also providers like statsd prevents Airflow from being installed.

How to reproduce it:

$ docker run --rm -ti python:3.6 bash
# pip install apache-airflow[statsd]==2.0.0b2
Collecting apache-airflow[statsd]==2.0.0b2                 
  Downloading apache_airflow-2.0.0b2-py3-none-any.whl (4.5 MB)                    
...
Collecting statsd<4.0,>=3.3.0; extra == "statsd"          
  Downloading statsd-3.3.0-py2.py3-none-any.whl (11 kB)
ERROR: Could not find a version that satisfies the requirement apache-airflow-providers-statsd; extra == "statsd" (from apache-airflow[statsd]==2.0.0b2) (from versions: none)         
ERROR: No matching distribution found for apache-airflow-providers-statsd; extra == "statsd" (from apache-airflow[statsd]==2.0.0b2)

I believe this is from https://github.com/apache/airflow/pull/12233

AIP-8 - Provider packages bug

Most helpful comment

Cool ! :) No problem. I wil add automated check for that before I fix it :). And see if there are more cases. We have ~70 providers so maybe others have similar problem too :)

All 5 comments

I was quite sure I tested it :(

I wiill double-check and fix it

Just to clarify - Indeed I tested it. This is just a problem with "statsd" which I mistakenly marked as "provider" extra. @jedcunningham - other extras like "kerberos" and "ldap" should work fine (as they are not mistakenly marked as having providers). Could you please double check if those work ?

Yes, those do work (sorry, I generalized without checking others).

Cool ! :) No problem. I wil add automated check for that before I fix it :). And see if there are more cases. We have ~70 providers so maybe others have similar problem too :)

Was this page helpful?
0 / 5 - 0 ratings