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
Describe the bug
I've tried updating the pkgsrc package for Glances to 4.0.5. It fails on startup.
To Reproduce
Start glances, see:
Traceback (most recent call last):
File "/usr/pkg/bin/glances-3.12", line 8, in <module>
sys.exit(main())
^^^^^^
File "/usr/pkg/lib/python3.12/site-packages/glances/__init__.py", line 173, in main
start(config=core.get_config(), args=core.get_args())
File "/usr/pkg/lib/python3.12/site-packages/glances/__init__.py", line 121, in start
mode.serve_forever()
File "/usr/pkg/lib/python3.12/site-packages/glances/standalone.py", line 184, in serve_forever
while self.__serve_once():
^^^^^^^^^^^^^^^^^^^
File "/usr/pkg/lib/python3.12/site-packages/glances/standalone.py", line 156, in __serve_once
ret = not self.screen.update(self.stats, duration=adapted_refresh)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/pkg/lib/python3.12/site-packages/glances/outputs/glances_curses.py", line 1186, in update
self.flush(stats, cs_status=cs_status)
File "/usr/pkg/lib/python3.12/site-packages/glances/outputs/glances_curses.py", line 1167, in flush
self.display(stats, cs_status=cs_status)
File "/usr/pkg/lib/python3.12/site-packages/glances/outputs/glances_curses.py", line 658, in display
self.__display_top(__stat_display, stats)
File "/usr/pkg/lib/python3.12/site-packages/glances/outputs/glances_curses.py", line 825, in __display_top
stat_display["quicklook"] = stats.get_plugin('quicklook').get_stats_display(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/pkg/lib/python3.12/site-packages/glances/plugins/plugin/model.py", line 916, in get_stats_display
ret = {'display': display_curse, 'msgdict': self.msg_curse(args, max_width=max_width), 'align': align_curse}
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/pkg/lib/python3.12/site-packages/glances/plugins/quicklook/__init__.py", line 198, in msg_curse
self._hz_to_ghz(self.stats['cpu_hz_current']), self._hz_to_ghz(self.stats['cpu_hz'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/pkg/lib/python3.12/site-packages/glances/plugins/quicklook/__init__.py", line 304, in _hz_to_ghz
return hz / 1000000000.0
~~~^~~~~~~~~~~~~~
TypeError: unsupported operand type(s) for /: 'NoneType' and 'float'
Environement (please complete the following information)
Operating System (lsb_release -a or OS name/version): NetBSD 10.99.10/amd64
Glances & psutil versions: 4.0.5, psutil 5.9.8
How do you install Glances (Pypi package, script, package manager, source): I'm trying to update the pkgsrc package
Glances test (only available with Glances 3.1.7 or higher):
Describe the bug
I've tried updating the pkgsrc package for Glances to 4.0.5. It fails on startup.
To Reproduce
Start glances, see:
Environement (please complete the following information)
The text was updated successfully, but these errors were encountered: