Apache Airflow : airflow initdb results in “ImportError: No module named json”

后端 未结 4 1824
故里飘歌
故里飘歌 2020-12-19 04:37

On Ubuntu 16.04 with Python 2.7 default version, I am trying to install Apache airflow but ran into several issues and currently I see on

apache initdb 
Tra         


        
相关标签:
4条回答
  • 2020-12-19 05:12

    Just upgrade flask. You can use this command:

    sudo pip install --upgrade Flask

    0 讨论(0)
  • 2020-12-19 05:16

    The problem is known, and is described here, in the ASF Mail Archives

    We removed the incompatible Werkzeug library from apache master this weekend. It caused Airflow installations to fail.

    To resolve, manually install the werkzeug library in a correct version:

    pip install werkzeug>=0.15.0
    

    As explained in the mail list, this seems to be a temporary problem, and this solution is a workaround. The problem is encountered in version 1.10.3.

    0 讨论(0)
  • 2020-12-19 05:18

    sudo pip install --upgrade Flask worked for me

    0 讨论(0)
  • 2020-12-19 05:34

    On Mac while installing apache-airflow, I got following error:

    ERROR: apache-airflow 1.10.3 has requirement jinja2<=2.10.0,>=2.7.3, but you'll have jinja2 2.10.1 which is incompatible. ERROR: apache-airflow 1.10.3 has requirement werkzeug<0.15.0,>=0.14.1, but you'll have werkzeug 0.15.4 which is incompatible.

    Re-installing werkzeug and jinja worked for me.

    pip install jinja2>=2.10.0
    pip install werkzeug>=0.15.0
    
    0 讨论(0)
提交回复
热议问题