Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 23131

psutil.sensors.temperatures() only delivers {}

$
0
0

I'm trying to set up a little python script showing me e.g. my current CPU temperature. I imported psutil to do so. As mentioned in the psutil documentation, I tried the command psutil.sensors_temperatures(fahrenheit=False). Nevertheless, the only output of the program is {}.

Did I make a mistake or could this be a problem caused by the temperature sensor of my CPU?

Operating system: Ubuntu 22.04.4 LTSPython version: 3.10.12

Thanks for your advice!


Viewing all articles
Browse latest Browse all 23131

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>