1

Environment: Python 2.7.5 & Centos 7

I have successfully installed airflow using:

pip install apache-airflow 

But when I run

airflow initdb,

it says:

 Traceback (most recent call last): File "/usr/bin/airflow", line 21, in <module> from airflow import configuration File "/usr/lib/python2.7/site-packages/airflow/__init__.py", line 35, in <module> from airflow import configuration as conf File "/usr/lib/python2.7/site-packages/airflow/configuration.py", line 38, in <module> from backports.configparser import ConfigParser ImportError: No module named configparser 

What am I missing?

3
  • There is a JIRA Ticket mentioning the same issue. I am not sure whether this fix is available! Commented Nov 14, 2018 at 4:41
  • Can you let me know the Airflow version you have installed. Can you update your python version to 2.7.14? Commented Nov 14, 2018 at 13:20
  • @kaxil Thanks for your reply. I successfully installed Airflow following steps on this link: site.clairvoyantsoft.com/… Commented Nov 15, 2018 at 2:20

1 Answer 1

1

The issue is you have installed a wrong package. airflow was renamed to apache-airflow from 1.8.1. The website you used has outdated docs.

Please install using the following command

export AIRFLOW_GPL_UNIDECODE=yes pip install apache-airflow 

This should install 1.10.0 which is the latest stable version and resolve your issues.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.