You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I start glances on my Dell 9550 it gives me the following error:
Traceback (most recent call last):
File "/usr/local/bin/glances", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python3.5/dist-packages/glances/__init__.py", line 225, in main
start_standalone(config=config, args=args)
File "/usr/local/lib/python3.5/dist-packages/glances/__init__.py", line 105, in start_standalone
standalone = GlancesStandalone(config=config, args=args)
File "/usr/local/lib/python3.5/dist-packages/glances/standalone.py", line 43, in __init__
self.stats = GlancesStats(config=config, args=args)
File "/usr/local/lib/python3.5/dist-packages/glances/stats.py",line 43, in __init__
self.load_modules(self.args)
File "/usr/local/lib/python3.5/dist-packages/glances/stats.py",line 77, in load_modules
self.load_plugins(args=args)
File "/usr/local/lib/python3.5/dist-packages/glances/stats.py",line 105, in load_plugins
self._plugins[plugin_name] = plugin.Plugin(args=args)
File "/usr/local/lib/python3.5/dist-packages/glances/plugins/glances_sensors.py", line 53, in __init__
self.glancesgrabsensors = GlancesGrabSensors()
File "/usr/local/lib/python3.5/dist-packages/glances/plugins/glances_sensors.py", line 229, in __init__
self.stemps = psutil.sensors_temperatures()
File "/usr/local/lib/python3.5/dist-packages/psutil/__init__.py", line 2212, in sensors_temperatures
rawdict = _psplatform.sensors_temperatures()
File "/usr/local/lib/python3.5/dist-packages/psutil/_pslinux.py", line 1110, in sensors_temperatures
current = float(cat(base + '_input')) / 1000.0
File "/usr/local/lib/python3.5/dist-packages/psutil/_pslinux.py", line 299, in cat
return f.read().strip()
OSError: [Errno 19] No such device
I have tried versions of psutil from 2.0 up to 5.2 and it would start crashing from 5.1 (including). Although in 5.1 the error would be different (from the battery status):
Traceback (most recent call last):
File "/usr/local/bin/glances", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python3.5/dist-packages/glances/__init__.py", line 225, in main
start_standalone(config=config, args=args)
File "/usr/local/lib/python3.5/dist-packages/glances/__init__.py", line 105, in start_standalone
standalone = GlancesStandalone(config=config, args=args)
File "/usr/local/lib/python3.5/dist-packages/glances/standalone.py", line 43, in __init__
self.stats = GlancesStats(config=config, args=args)
File "/usr/local/lib/python3.5/dist-packages/glances/stats.py", line 43, in __init__
self.load_modules(self.args)
File "/usr/local/lib/python3.5/dist-packages/glances/stats.py", line 77, in load_modules
self.load_plugins(args=args)
File "/usr/local/lib/python3.5/dist-packages/glances/stats.py", line 96, in load_plugins
plugin = __import__(os.path.basename(item)[:-3])
File "/usr/local/lib/python3.5/dist-packages/glances/plugins/glances_sensors.py", line 26, in <module>
from glances.plugins.glances_batpercent import Plugin as BatPercentPlugin
File "/usr/local/lib/python3.5/dist-packages/glances/plugins/glances_batpercent.py", line 38, in <module>
psutil.sensors_battery()
File "/usr/local/lib/python3.5/dist-packages/psutil/__init__.py", line 2246, in sensors_battery
return _psplatform.sensors_battery()
File "/usr/local/lib/python3.5/dist-packages/psutil/_pslinux.py", line 1112, in sensors_battery
energy_now = int(cat(root + "/energy_now"))
File "/usr/local/lib/python3.5/dist-packages/psutil/_pslinux.py", line 288, in cat
f = open_binary(fname) if binary else open_text(fname)
File "/usr/local/lib/python3.5/dist-packages/psutil/_pslinux.py", line 187, in open_binary
return open(fname, "rb", **kwargs)
FileNotFoundError: [Errno 2] No such file or directory: '/sys/class/power_supply/BAT0/energy_now'
but i think this is related to another issue. From 5.1.1 the error would look the same. This is the output of sensors in my terminal:
Can confirm it is no longer a problem after installing the proprietary nvidia driver because lm-sensors can't find any nvidia thermal sensors. So basically this is a problem for Optimus laptops that use nouveau.
The text was updated successfully, but these errors were encountered:
When I start glances on my Dell 9550 it gives me the following error:
I have tried versions of psutil from 2.0 up to 5.2 and it would start crashing from 5.1 (including). Although in 5.1 the error would be different (from the battery status):
but i think this is related to another issue. From 5.1.1 the error would look the same. This is the output of sensors in my terminal:
Update:
Can confirm it is no longer a problem after installing the proprietary nvidia driver because lm-sensors can't find any nvidia thermal sensors. So basically this is a problem for Optimus laptops that use nouveau.
The text was updated successfully, but these errors were encountered: