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
Airflow is not officially supporting python3.7 yet.
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"```
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With