Skip to content
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

No temperatures sensors on windows #1824

Closed
anhead opened this issue Mar 19, 2021 · 14 comments
Closed

No temperatures sensors on windows #1824

anhead opened this issue Mar 19, 2021 · 14 comments

Comments

@anhead
Copy link

anhead commented Mar 19, 2021

Hi like the title says I can't see any sensors in the glances web gui any ideas what the problem can be?

@nicolargo
Copy link
Owner

Can you see it in the terminal interface ?

@anhead
Copy link
Author

anhead commented Mar 21, 2021

No, Not there either I tested using hwmonitor and there I can see the temperatures of the cpu and disk so the system can read the temps but oddly enough glances are not showing it
glances

@nicolargo
Copy link
Owner

Ok try to force the sensors:

glances --enable-plugin sensor

@anhead
Copy link
Author

anhead commented Mar 21, 2021

No did not work either, even tried with administrator privileges but did not work either

@nicolargo
Copy link
Owner

Glances uses the PsUtil lib to grab sensors.

Can you try this on your terminal ?

python
>>> import psutil
>>> psutil.sensors_temperatures()

Copy/paste (or screenshot) the result.

@anhead
Copy link
Author

anhead commented Mar 21, 2021

sure, here is what it says
glances2

@nicolargo
Copy link
Owner

Strange...

Run Glances with the -V option.
It will display a log file path.

Please paste/bin us the content of this file.

@anhead
Copy link
Author

anhead commented Mar 21, 2021

Sure here is a link to the log https://pastebin.com/e8zQpP5t

@nicolargo
Copy link
Owner

PsUtil (5.8.0) is detected when you ran Glances but not from the Python command line...

Do not know why....

@anhead
Copy link
Author

anhead commented Mar 21, 2021

did install some modules that it didn't find in the log and now the log file looks like this https://pastebin.com/d2JtyvF6 still not showing the temperatures :/ did the psutil test again and now the import psutil works but when i try to send the
psutil.sensors_temperatures() command I get this
glances3

@anhead
Copy link
Author

anhead commented Mar 22, 2021

PsUtil (5.8.0) is detected when you ran Glances but not from the Python command line...

Do not know why....

Any other ideas I can try?

@anhead
Copy link
Author

anhead commented Mar 23, 2021

tried installing glances on my other computer and can't see temperature on that computer either

@anhead anhead closed this as completed Mar 25, 2021
@michaelblight
Copy link

michaelblight commented Apr 26, 2021

Not sure why this is closed - I have the same problem. Also getting module 'psutil' has no attribute 'sensors_temperatures'. The following is in the log:

2021-04-26 13:35:03,493 -- INFO -- Start Glances 3.1.6.2
2021-04-26 13:35:03,494 -- INFO -- CPython 3.9.4 and psutil 5.8.0 detected
2021-04-26 13:35:03,497 -- INFO -- Search glances.conf file in C:\Users\Michael\AppData\Roaming\glances\glances.conf
2021-04-26 13:35:03,497 -- INFO -- Search glances.conf file in C:\Users\Michael\AppData\Roaming\glances\glances.conf
2021-04-26 13:35:03,497 -- WARNING -- PsUtil can not grab processes gids ('Process' object has no attribute 'gids')
2021-04-26 13:35:03,513 -- INFO -- Start GlancesWebServer mode
2021-04-26 13:35:03,715 -- WARNING -- Error loading Docker Python Lib. Docker plugin is disabled (No module named 'docker')
2021-04-26 13:35:03,715 -- ERROR -- docker plugin - Can not connect to Docker (name 'docker' is not defined)
2021-04-26 13:35:03,715 -- WARNING -- Missing Python Lib (No module named 'py3nvml'), Nvidia GPU plugin is disabled
2021-04-26 13:35:03,715 -- WARNING -- Missing Python Lib (No module named 'netifaces'), IP plugin is disabled
2021-04-26 13:35:03,746 -- WARNING -- Sparklines module not found (No module named 'sparklines')
2021-04-26 13:35:03,746 -- WARNING -- Missing Python Lib (No module named 'cpuinfo'), Quicklook plugin will not display CPU info
2021-04-26 13:35:03,746 -- WARNING -- Missing Python Lib (No module named 'pymdstat'), Raid plugin is disabled
2021-04-26 13:35:03,762 -- WARNING -- Missing Python Lib (No module named 'pySMART'), HDD Smart plugin is disabled
2021-04-26 13:35:03,777 -- WARNING -- Missing Python Lib (No module named 'wifi'), Wifi plugin is disabled
2021-04-26 13:35:03,777 -- WARNING -- Wifi lib is not compliant with Python 3, Wifi plugin is disabled
2021-04-26 13:35:12,143 -- INFO -- Glances RESTful API Server started on http://0.0.0.0:61208/api/3/
2021-04-26 13:35:12,159 -- INFO -- Glances Web User Interface started on http://0.0.0.0:61208/
2021-04-26 13:36:06,127 -- INFO -- Glances stopped (keypressed: CTRL-C)
2021-04-26 13:42:03,110 -- INFO -- Start Glances 3.1.6.2
2021-04-26 13:42:03,110 -- INFO -- CPython 3.9.4 and psutil 5.8.0 detected
2021-04-26 13:42:03,125 -- INFO -- Search glances.conf file in C:\Users\Michael\AppData\Roaming\glances\glances.conf
2021-04-26 13:42:03,125 -- INFO -- Search glances.conf file in C:\Users\Michael\AppData\Roaming\glances\glances.conf
2021-04-26 13:42:03,125 -- WARNING -- PsUtil can not grab processes gids ('Process' object has no attribute 'gids')
2021-04-26 13:42:03,141 -- INFO -- Start GlancesWebServer mode
2021-04-26 13:42:03,323 -- WARNING -- Error loading Docker Python Lib. Docker plugin is disabled (No module named 'docker')
2021-04-26 13:42:03,323 -- ERROR -- docker plugin - Can not connect to Docker (name 'docker' is not defined)
2021-04-26 13:42:03,338 -- WARNING -- Missing Python Lib (No module named 'py3nvml'), Nvidia GPU plugin is disabled
2021-04-26 13:42:03,338 -- WARNING -- Missing Python Lib (No module named 'netifaces'), IP plugin is disabled
2021-04-26 13:42:03,354 -- WARNING -- Sparklines module not found (No module named 'sparklines')
2021-04-26 13:42:03,370 -- WARNING -- Missing Python Lib (No module named 'cpuinfo'), Quicklook plugin will not display CPU info
2021-04-26 13:42:03,370 -- WARNING -- Missing Python Lib (No module named 'pymdstat'), Raid plugin is disabled
2021-04-26 13:42:03,370 -- WARNING -- Missing Python Lib (No module named 'pySMART'), HDD Smart plugin is disabled
2021-04-26 13:42:03,385 -- WARNING -- Missing Python Lib (No module named 'wifi'), Wifi plugin is disabled
2021-04-26 13:42:03,385 -- WARNING -- Wifi lib is not compliant with Python 3, Wifi plugin is disabled
2021-04-26 13:42:12,494 -- INFO -- Glances RESTful API Server started on http://0.0.0.0:61208/api/3/
2021-04-26 13:42:12,510 -- INFO -- Glances Web User Interface started on http://0.0.0.0:61208/
2021-04-26 14:09:05,523 -- INFO -- Start Glances 3.1.6.2
2021-04-26 14:09:05,523 -- INFO -- CPython 3.9.4 and psutil 5.8.0 detected
2021-04-26 14:09:09,680 -- INFO -- Start Glances 3.1.6.2
2021-04-26 14:09:09,680 -- INFO -- CPython 3.9.4 and psutil 5.8.0 detected

I tried glances --enable-plugin sensor and that required installation of windows-curses in standalone mode. Did that and it still did not show temperatures. As with the OP, HWMonitor does show temps.

@michaelblight
Copy link

Ah - psutil.sensors_temperatures() is not available on Windows. See giampaolo/psutil#1271

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants