airflow UnicodeDecodeError:'ascii'编解码器无法解码字节0xe2

时间:2019-08-15 14:16:45

标签: airflow

我安装了气流pip install apache-airflowairflow initdb并启动了气流Web服务器airflow webserver -p 8080,但是当我尝试打开主页时,却不断收到错误消息: UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 0: ordinal not in range(128)

我什至尝试了其他版本的1.10.1,我也遇到了同样的问题。

这是完整的堆栈跟踪:

Traceback (most recent call last):
  File "/Users/dbrown/anaconda2/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 135, in handle
    self.handle_request(listener, req, client, addr)
  File "/Users/dbrown/anaconda2/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 176, in handle_request
    respiter = self.wsgi(environ, resp.start_response)
  File "/Users/dbrown/anaconda2/lib/python2.7/site-packages/werkzeug/wsgi.py", line 826, in __call__
    return app(environ, start_response)
  File "/Users/dbrown/anaconda2/lib/python2.7/site-packages/flask/app.py", line 1997, in __call__
    return self.wsgi_app(environ, start_response)
  File "/Users/dbrown/anaconda2/lib/python2.7/site-packages/flask/app.py", line 1985, in wsgi_app
    response = self.handle_exception(e)
  File "/Users/dbrown/anaconda2/lib/python2.7/site-packages/flask/app.py", line 1547, in handle_exception
    return self.finalize_request(handler(e), from_error_handler=True)
  File "/Users/dbrown/anaconda2/lib/python2.7/site-packages/airflow/www/views.py", line 708, in show_traceback
    info=traceback.format_exc()), 500
  File "/Users/dbrown/anaconda2/lib/python2.7/site-packages/flask/templating.py", line 134, in render_template
    context, ctx.app)
  File "/Users/dbrown/anaconda2/lib/python2.7/site-packages/flask/templating.py", line 116, in _render
    rv = template.render(context)
  File "/Users/dbrown/anaconda2/lib/python2.7/site-packages/jinja2/environment.py", line 989, in render
    return self.environment.handle_exception(exc_info, True)
  File "/Users/dbrown/anaconda2/lib/python2.7/site-packages/jinja2/environment.py", line 754, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/Users/dbrown/anaconda2/lib/python2.7/site-packages/airflow/www/templates/airflow/traceback.html", line 27, in top-level template code
    {{ nukular }}Node: {{ hostname }}
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 0: ordinal not in range(128)

这是我的系统信息:

:~ $ python --version
Python 2.7.13 :: Anaconda, Inc.


:~ $ sw_vers
ProductName:    Mac OS X
ProductVersion: 10.14.6
BuildVersion:   18G87

1 个答案:

答案 0 :(得分:0)

我重新安装了anaconda python,气流问题消失了。我当前的python版本:

<script `src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>`
<script type="text/javascript" src="js/jquery.ajax-cross-origin.min.js">