Tasklist 不可用问题相关
Closed this issue · 10 comments
luoysuan commented
luoysuan commented
Hpero4 commented
我尝试了一下, 未能复现问题; 这似乎与系统环境有关系, python在使用subprocess调用外部命令时, 得到非0返回就会报这个错;
Debug需要更多信息, 麻烦在https://github.com/Zzaphkiel/Seraphine/blob/9b832c37560881a31ee9b36d62cff54d252ada14/app/lol/listener.py#L8C1-L11
添加以下代码以捕获更多错误时信息:
except subprocess.CalledProcessError as e:
print("exit code:", e.returncode)
Hpero4 commented
您的电脑系统中似乎缺少 "tasklist.exe", 请执行以下命令确定是否因环境变量原因导致tasklist无法执行;
C:\Windows\System32\tasklist.exe
若仍报同样错误, 则需要检查是否安装了精简版的系统
luoysuan commented
luoysuan commented
Hpero4 commented
luoysuan commented
参考此链接
排查了一下 可能确实是系统有问题
ssincxv commented
Windows Management Instrumentation有引发windows cpu占用异常的问题,所以我把Windows Management Instrumentation禁了
tanshaobing commented
@Zzaphkiel 服务一直处于“自动 正在运行“的状态,打开软件还是会出现这个弹窗报错
Sprite0821 commented
同上,wmi正在运行,自动,打开软件报错为 tasklist.exe不可用