Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error after installing Apache Airflow

I have installed Apache airflow using the command pip install airflow. When I try to access airflow by typing airflow , getting the below error.

`Traceback (most recent call last):
  File "/usr/bin/airflow", line 4, in <module>
    from airflow import configuration
  File "/usr/lib/python2.6/site-packages/airflow/__init__.py", line 29, in     <module>
    from airflow import configuration as conf
   File "/usr/lib/python2.6/site-packages/airflow/configuration.py", line 433
     ('core', 'sql_alchemy_conn'),
                            ^
     SyntaxError: invalid syntax

I found that airflow.cfg file is missing. I have uninstalled and reinstalled airflow and Still getting this error. Could anyone suggest a solution? The OS is RHEL6.7.

like image 731
Ludwig Avatar asked Mar 21 '26 11:03

Ludwig


1 Answers

There's not really enough information to go on, but I suspect the problem is that you are using Python 2.6; the library is probably only compatible with Python 2.7.

like image 192
Daniel Roseman Avatar answered Mar 22 '26 23:03

Daniel Roseman



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!