69 Star 650 Fork 390

likeadmin/likeadmin(Python版)- MIT协议-免费任意商用- 管理后台_小程序_手机H5_PC端_uni-app

MAC系统点击系统环境直接报错

已完成
创建于  
2022-12-15 16:52

record_log before
record_log after
global_exception_handler: url=[/api/monitor/server]
'scputimes' object has no attribute 'iowait'
Traceback (most recent call last):
File "/Users/mars/Desktop/python源码/likeadmin_python/server/venv/lib/python3.9/site-packages/starlette/middleware/errors.py", line 162, in call
await self.app(scope, receive, _send)
File "/Users/mars/Desktop/python源码/likeadmin_python/server/venv/lib/python3.9/site-packages/starlette/middleware/cors.py", line 92, in call
await self.simple_response(scope, receive, send, request_headers=headers)
File "/Users/mars/Desktop/python源码/likeadmin_python/server/venv/lib/python3.9/site-packages/starlette/middleware/cors.py", line 147, in simple_response
await self.app(scope, receive, send)
File "/Users/mars/Desktop/python源码/likeadmin_python/server/venv/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in call
return await self.app(scope, receive, send)
File "/Users/mars/Desktop/python源码/likeadmin_python/server/venv/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 75, in call
raise exc
File "/Users/mars/Desktop/python源码/likeadmin_python/server/venv/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 64, in call
await self.app(scope, receive, sender)
File "/Users/mars/Desktop/python源码/likeadmin_python/server/venv/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in call
raise e
File "/Users/mars/Desktop/python源码/likeadmin_python/server/venv/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in call
await self.app(scope, receive, send)
File "/Users/mars/Desktop/python源码/likeadmin_python/server/venv/lib/python3.9/site-packages/starlette/routing.py", line 680, in call
await route.handle(scope, receive, send)
File "/Users/mars/Desktop/python源码/likeadmin_python/server/venv/lib/python3.9/site-packages/starlette/routing.py", line 275, in handle
await self.app(scope, receive, send)
File "/Users/mars/Desktop/python源码/likeadmin_python/server/venv/lib/python3.9/site-packages/starlette/routing.py", line 65, in app
response = await func(request)
File "/Users/mars/Desktop/python源码/likeadmin_python/server/venv/lib/python3.9/site-packages/fastapi/routing.py", line 231, in app
raw_response = await run_endpoint_function(
File "/Users/mars/Desktop/python源码/likeadmin_python/server/venv/lib/python3.9/site-packages/fastapi/routing.py", line 160, in run_endpoint_function
return await dependant.call(**values)
File "/Users/mars/Desktop/python源码/likeadmin_python/server/like/http_base.py", line 48, in wrapper
resp = await func(*args, **kwargs) or []
File "/Users/mars/Desktop/python源码/likeadmin_python/server/like/admin/routers/monitor.py", line 42, in monitor_server
'cpu': ServerInfo.get_cpu_info(),
File "/Users/mars/Desktop/python源码/likeadmin_python/server/like/server_info.py", line 53, in get_cpu_info
total = cpu_times.user + cpu_times.nice + cpu_times.system + cpu_times.idle + cpu_times.iowait
AttributeError: 'scputimes' object has no attribute 'iowait'
ERROR: Exception in ASGI application
Traceback (most recent call last):

评论 (1)

fyk 创建了任务 2年前

应该是Mac系统下很多参数没有,已复现,下个版本修复

geeknonerd 任务状态待办的 修改为已完成 2年前

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(2)
525643 geeknonerd 1627863635 1934378 kangss 1604053322
Python
1
https://gitee.com/likeadmin/likeadmin_python.git
git@gitee.com:likeadmin/likeadmin_python.git
likeadmin
likeadmin_python
likeadmin(Python版)- MIT协议-免费任意商用- 管理后台_小程序_手机H5_PC端_uni-app

搜索帮助