Jahaja / psdash

A linux system information web dashboard using psutils and flask
Creative Commons Zero v1.0 Universal
2.42k stars 326 forks source link

install error 'Request' object has no attribute 'is_xhr' #63

Closed ganttee closed 3 years ago

ganttee commented 3 years ago

INFO | psdash.run | Starting psdash v0.6.2 INFO | psdash.run | Listening on 0.0.0.0:5000 INFO | psdash.run | Starting web server ERROR | psdash.run | Exception on / [GET] Traceback (most recent call last): File "/home/wjia/.local/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app response = self.full_dispatch_request() File "/home/wjia/.local/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request rv = self.handle_user_exception(e) File "/home/wjia/.local/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception reraise(exc_type, exc_value, tb) File "/home/wjia/.local/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request rv = self.dispatch_request() File "/home/wjia/.local/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request return self.view_functionsrule.endpoint File "/usr/local/lib/python2.7/dist-packages/psdash/web.py", line 123, in index 'is_xhr': request.is_xhr File "/home/wjia/.local/lib/python2.7/site-packages/werkzeug/local.py", line 347, in getattr return getattr(self._get_current_object(), name) AttributeError: 'Request' object has no attribute 'is_xhr'

ganttee commented 3 years ago

change werkzeug<0.6