macOS 无法获取磁盘信息
gxusb opened this issue · comments
client-psutil.py
无法获取磁盘信息
Exception in thread Thread-5 (_disk_io):
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
Connecting...
self.run()
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "/Users/ljn/Desktop/client-psutil.py", line 214, in _disk_io
p._before = p.io_counters()
AttributeError: 'Process' object has no attribute 'io_counters'
Authentication successful. Access granted.
You are connecting via: IPv4
已作兼容性处理,beta.