-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Glances is not showing sensors information. #1087
Comments
Hi @mtebbens , Glances 2.3 is an old version. Best way to solve the issue is uninstall it and reinstall the latest one (following this procedure). Nevertheless, if you do not want to upgrade it, it should work if you have installed the Python Sensors libs:
|
Same problem here, running Glances v2.10 with psutil v5.2.2 : glances displays no sensors except "battery". |
@ledroide Glances 2.10 do not use anymore the Py3sensors plugin. It uses the PsUtil sensors functions available in the version 5.2 or higher. So you need to upgrade youe PSUtil lib:
It should solve your issue. |
@nicolargo : psutil is the latest version, already checked :
|
@ledroide : can you send me the result of the following command line:
Thanks |
@nicolargo : tried with python 2.7 and python 3.5, I get the same No such device error regarding function sensors_temperatures
Meanwhile, believing the sensors utility :
|
Looks like a PsUtil issue... @giampaolo what do you think ? |
OK, I should have fixed this: |
Thanks @giampaolo ! |
Hello, Glances is not showing sensors informations on Fedora 26: The log file is prompting:
The sensors and hddtemp utils are OK:
PSutil is also OK:
Would you please give me any ideas to solve this issue? Beforehand thanks. |
Same problem here, psutils are ok `~$ python
Description: Ubuntu 16.04.3 LTS |
Ubuntu 16.04, running into this issue as well.
I installed #!/usr/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from glances import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
+ sys.argv.append('--disable-sensors')
sys.exit(main()) It's definitely a band-aid, not a fix, but it works for now |
Ubuntu 18.04, running into this issue as well.Glances v2.11.1 with psutil v5.4.5. Only happening on my laptop - haven't tried other machines.
|
Having this problem also, on Fedora 27. This seems to have started just recently. I don't actually care that the sensors information is not showing. The real problem is that the error from the python module keeps printing to the screen every few seconds, and corrupts the glances display. The error is:
The psutil output:
|
I have the same problem on Ubuntu 18.04.
|
I just installed Glances on Ubuntu 20.04 LTS on my ThinkPad using:
Here's my version info:
By default, Glances did not display the SENSORS section, but the following command worked:
With confirmation that I had sensors configured correctly and that Glances could see them, I edited /etc/glances/glances.conf to enable the plugin:
Now Glances shows my sensors information by default. Hope this helps anyone who might have the same issue. Cheers! |
On Ubuntu, |
Try this way, it may solve your problem if above solutions don't work:
Then run |
@NaroisCool nice catch, that was exactly it for me. |
Glances is not displaying any sensor information, although sensors is correctly installed and working.
Glances v2.3 with psutil v3.4.2
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.2 LTS
Release: 16.04
Codename: xenial
$ sensors
iwlwifi-virtual-0
Adapter: Virtual device
temp1: +43.0°C
coretemp-isa-0000
Adapter: ISA adapter
Physical id 0: +42.0°C (high = +100.0°C, crit = +100.0°C)
Core 0: +40.0°C (high = +100.0°C, crit = +100.0°C)
Core 1: +41.0°C (high = +100.0°C, crit = +100.0°C)
acpitz-virtual-0
Adapter: Virtual device
temp1: +25.0°C (crit = +107.0°C)
dell_smm-virtual-0
Adapter: Virtual device
Processor Fan: 0 RPM
CPU: +42.0°C
Ambient: +41.0°C
SODIMM: +41.0°C
GPU: N/A
pch_skylake-virtual-0
Adapter: Virtual device
temp1: +40.0°C
$
$ more glances.log
2017-05-13 23:41:54,538 -- INFO -- Start Glances 2.3
2017-05-13 23:41:54,539 -- INFO -- CPython 3.5.2 and PSutil 3.4.2 detected
2017-05-13 23:41:54,541 -- INFO -- Read configuration file '/etc/glances/glances.conf'
2017-05-13 23:41:54,541 -- INFO -- Start standalone mode
2017-05-13 23:41:54,621 -- INFO -- Extended stats for top process are disabled (default behavior)
2017-05-13 23:42:18,783 -- INFO -- Stop Glances (with CTRL-C)
$
The text was updated successfully, but these errors were encountered: