Error while install airflow: By default one of Airflow's dependencies installs a GPL

Md Sirajus Salayhin picture Md Sirajus Salayhin · Sep 6, 2018 · Viewed 24.7k times · Source

Getting the following error after running pip install airflow[postgres] command:

> raise RuntimeError("By default one of Airflow's dependencies installs
> a GPL "
> 
> RuntimeError: By default one of Airflow's dependencies  installs a GPL
> dependency (unidecode). To avoid this dependency set
> SLUGIFY_USES_TEXT_UNIDECODE=yes in your environment when you install
> or upgrade Airflow. To force installing the GPL version set
> AIRFLOW_GPL_UNIDECODE

I am trying to install in Debian 9

Answer

kaxil picture kaxil · Sep 6, 2018

Try the following:

export AIRFLOW_GPL_UNIDECODE=yes

OR

export SLUGIFY_USES_TEXT_UNIDECODE=yes

Using export makes the environment variable available to all the subprocesses.

Also, make sure you are using pip install apache-airflow[postgres] and not pip install airflow[postgres]

Which should you use: if using AIRFLOW_GPL_UNIDECODE, airflow will install a dependency that is under GPL license, which means you won't be able to distribute your resulting application commercially. If that's a problem for you, go for SLUGIFY_USES_TEXT_UNIDECODE.