Got an error, on my ubuntu13.10, python2.7.
jiajie999 opened this issue · 2 comments
jiajie999 commented
Got an error, on my ubuntu13.10, python2.7
Use `pip install psdash'
WARNING | psdash.web | Could not read log file '/var/log/myapp.log' ([Errno 2] No such file or directory: '/var/log/myapp.log')
WARNING | psdash.web | Could not read log file '/var/log/mydb.log' ([Errno 2] No such file or directory: '/var/log/mydb.log')
ERROR | psdash.web | Exception on / [GET]
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1817, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1477, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1381, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1475, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1461, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/usr/local/lib/python2.7/dist-packages/psdash/web.py", line 149, in index
return render_template("index.html", **data)
File "/usr/local/lib/python2.7/dist-packages/flask/templating.py", line 128, in render_template
context, ctx.app)
File "/usr/local/lib/python2.7/dist-packages/flask/templating.py", line 110, in _render
rv = template.render(context)
File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 969, in render
return self.environment.handle_exception(exc_info, True)
File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 742, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python2.7/dist-packages/psdash/templates/index.html", line 2, in top-level template code
{% block content %}
File "/usr/local/lib/python2.7/dist-packages/psdash/templates/base.html", line 44, in top-level template code
{% block content %}{% endblock %}
File "/usr/local/lib/python2.7/dist-packages/psdash/templates/index.html", line 182, in block "content"
<td>{{ part.mountpoint }}</td>
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe7 in position 14: ordinal not in range(128)
Jahaja commented
Thanks, I need to do a proper sweep of non-ascii use-cases.