Traceback (most recent call last):


 "/data/venv/lib/python3.4/site-packages/flask/app.py", line 2295, in wsgi_app

response = self.handle_exception(e)


 "/data/venv/lib/python3.4/site-packages/flask_restful/__init__.py", line 271, in error_router

return original_handler(e)


 "/data/venv/lib/python3.4/site-packages/flask/app.py", line 1741, in handle_exception

reraise(exc_type, exc_value, tb)


 "/data/venv/lib/python3.4/site-packages/flask/_compat.py", line 34, in reraise

raise value.with_traceback(tb)


 "/data/venv/lib/python3.4/site-packages/flask/app.py", line 2292, in wsgi_app

response = self.full_dispatch_request()


 "/data/venv/lib/python3.4/site-packages/flask/app.py", line 1815, in full_dispatch_request

rv = self.handle_user_exception(e)


 "/data/venv/lib/python3.4/site-packages/flask_restful/__init__.py", line 271, in error_router

return original_handler(e)


 "/data/venv/lib/python3.4/site-packages/flask/app.py", line 1718, in handle_user_exception

reraise(exc_type, exc_value, tb)


 "/data/venv/lib/python3.4/site-packages/flask/_compat.py", line 34, in reraise

raise value.with_traceback(tb)


 "/data/venv/lib/python3.4/site-packages/flask/app.py", line 1813, in full_dispatch_request

rv = self.dispatch_request()


 "/data/venv/lib/python3.4/site-packages/flask/app.py", line 1799, in dispatch_request

return self.view_functions[rule.endpoint](**req.view_args)


 "/data/venv/lib/python3.4/site-packages/flask_restful/__init__.py", line 477, in wrapper

resp = resource(*args, **kwargs)


 "/data/venv/lib/python3.4/site-packages/flask/views.py", line 88, in view

return self.dispatch_request(*args, **kwargs)


 "/data/venv/lib/python3.4/site-packages/flask_restful/__init__.py", line 587, in dispatch_request

resp = meth(*args, **kwargs)


 "/data/venv/lib/python3.4/site-packages/flask_login/utils.py", line 228, in decorated_view

return func(*args, **kwargs)


 "/mnt/hgfs/walle-web/walle/service/rbac/role.py", line 57, in decorator

return func(*args, **kwargs)


 "/mnt/hgfs/walle-web/walle/api/general.py", line 38, in get

return self_action()


 "/mnt/hgfs/walle-web/walle/api/general.py", line 71, in menu

return self.render_json(data=data)


 "/mnt/hgfs/walle-web/walle/api/api.py", line 31, in render_json

return ApiResource.json(code=code, message=message, data=data)


 "/mnt/hgfs/walle-web/walle/api/api.py", line 44, in json

'data': data,


 "/data/venv/lib/python3.4/site-packages/flask/json/__init__.py", line 321, in jsonify

dumps(data, indent=indent, separators=separators) + '\n',


 "/data/venv/lib/python3.4/site-packages/flask/json/__init__.py", line 179, in dumps

rv = _json.dumps(obj, **kwargs)


 "/usr/lib64/python3.4/json/__init__.py", line 237, in dumps

**kw).encode(obj)


 "/usr/lib64/python3.4/json/encoder.py", line 194, in encode

chunks = list(chunks)


 "/usr/lib64/python3.4/json/encoder.py", line 422, in _iterencode

yield from _iterencode_dict(o, _current_indent_level)


 "/usr/lib64/python3.4/json/encoder.py", line 396, in _iterencode_dict

yield from chunks


 "/usr/lib64/python3.4/json/encoder.py", line 396, in _iterencode_dict

yield from chunks


 "/usr/lib64/python3.4/json/encoder.py", line 429, in _iterencode

o = _default(o)


 "/data/venv/lib/python3.4/site-packages/flask/json/__init__.py", line 81, in default

return _json.JSONEncoder.default(self, o)


 "/usr/lib64/python3.4/json/encoder.py", line 173, in default

raise TypeError(repr(o) + " is not JSON serializable")
TypeError: dict_values([{'title': '首页', 'icon': 'wl-icon-main', 'sub_menu': [], 'url': '/'}, {'title': '空间管理', 'icon': 'wl-icon-space-set', 'sub_menu': [], 'url': '/admin/space/index'}, {'title': '用户管理', 'icon': 'wl-icon-user-set', 'sub_menu': [], 'url': '/admin/user/index'}, {'title': '项目中心', 'icon': 'wl-icon-project-set', 'sub_menu': [{'title': '环境管理', 'icon': 'leaf', 'url': '/admin/environment/index'}, {'title': '服务器管理', 'icon': 'leaf', 'url': '/admin/server/index'}, {'title': '项目管理', 'icon': 'leaf', 'url': '/admin/project/index'}]}, {'title': '部署管理', 'icon': 'wl-icon-deploy-set', 'sub_menu': [], 'url': '/admin/deploy/index'}]) is not JSON serializable

Traceback (most recent call last):


 "<stdin>", line 1, in <module>
TypeError: The numpy boolean negative, the `-` operator, is not supported, use the `~` operator or the logical_not function instead.
