Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to install Airflow even after setting SLUGIFY_USES_TEXT_UNIDECODE and AIRFLOW_GPL_UNIDECODE

I am installing airflow via command: python3 setup.py install. It takes in the requirements file, requirements/athena.txt which is:

apache-airflow[celery,postgres,hive,password,crypto]==1.10.1

I got an error:

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

To remove this error, I set export SLUGIFY_USES_TEXT_UNIDECODE=yes and export AIRFLOW_GPL_UNIDECODE=yes. However, running the command python3 setup.py install still gives the same error, nothing changed. To check env variables:

➜  athena-py git:(pyspark-DataFrameStatFunctions) echo $SLUGIFY_USES_TEXT_UNIDECODE
yes
➜  athena-py git:(pyspark-DataFrameStatFunctions) echo $AIRFLOW_GPL_UNIDECODE
yes
like image 651
Aviral Srivastava Avatar asked Mar 19 '19 11:03

Aviral Srivastava


1 Answers

Airflow is not officially supporting python3.7 yet.

enter image description here

I think pip might not be picking up your environment variables. You can try the following command on your shell to make sure it picks up the options you are providing.

AIRFLOW_GPL_UNIDECODE=yes pip3 install "apache-airflow[celery,postgres,hive,password,crypto]==1.10.1"```
like image 71
Arpit Solanki Avatar answered Sep 29 '22 02:09

Arpit Solanki