giampaolo / psutil

Cross-platform lib for process and system monitoring in Python
BSD 3-Clause "New" or "Revised" License
10.22k stars 1.38k forks source link

[Windows] Temp Sensor, FanSpeed - attribute Error #2309

Open rusty3699 opened 1 year ago

rusty3699 commented 1 year ago

Summary

Description

Hi All, need a little help. I have tried various way I am not able to get around with CPU temperature and FanSpeed - the rest the functions seems to be working. On calling, getting this respectively

  1. AttributeError: module 'psutil' has no attribute 'sensors_temperatures'
  2. AttributeError: module 'psutil' has no attribute 'sensors_fans'

Just for fun, I used GPUtil for GPU stats and it worked.

Thanks!

debakarr commented 9 months ago

It is not available in windows as per the documentation. See Availability for psutil.sensors_fans() and psutil.sensors_temperatures()

Similar issue: #1271

ChannyClaus commented 9 months ago

is it possible to add this info on readme? i had the same thought and was confused for a bit until i landed on this