Skip to content

Instantly share code, notes, and snippets.

@amard33p
Created April 10, 2025 16:14
Show Gist options
  • Save amard33p/e68eb307e267f43b217e6725f2a04552 to your computer and use it in GitHub Desktop.
Save amard33p/e68eb307e267f43b217e6725f2a04552 to your computer and use it in GitHub Desktop.
Traceback (most recent call last):
File "/opt/.venvs/glances_venv/bin/glances", line 8, in <module>
sys.exit(main())
File "/opt/.venvs/glances_venv/lib/python3.12/site-packages/glances/__init__.py", line 190, in main
start(config=core.get_config(), args=core.get_args())
File "/opt/.venvs/glances_venv/lib/python3.12/site-packages/glances/__init__.py", line 153, in start
setup_server_mode(args, mode)
File "/opt/.venvs/glances_venv/lib/python3.12/site-packages/glances/__init__.py", line 103, in setup_server_mode
mode.serve_forever()
File "/opt/.venvs/glances_venv/lib/python3.12/site-packages/glances/standalone.py", line 186, in serve_forever
while self.__serve_once():
File "/opt/.venvs/glances_venv/lib/python3.12/site-packages/glances/standalone.py", line 158, in __serve_once
ret = not self.screen.update(self.stats, duration=adapted_refresh)
File "/opt/.venvs/glances_venv/lib/python3.12/site-packages/glances/outputs/glances_curses.py", line 1118, in update
self.flush(stats, cs_status=cs_status)
File "/opt/.venvs/glances_venv/lib/python3.12/site-packages/glances/outputs/glances_curses.py", line 1099, in flush
self.display(stats, cs_status=cs_status)
File "/opt/.venvs/glances_venv/lib/python3.12/site-packages/glances/outputs/glances_curses.py", line 533, in display
__stat_display = self.__get_stat_display(stats, layer=cs_status)
File "/opt/.venvs/glances_venv/lib/python3.12/site-packages/glances/outputs/glances_curses.py", line 509, in __get_stat_display
ret[p] = stats.get_plugin(p).get_stats_display(args=self.args, max_width=plugin_max_width)
File "/opt/.venvs/glances_venv/lib/python3.12/site-packages/glances/plugins/plugin/model.py", line 890, in get_stats_display
ret = {
'display': display_curse,
'msgdict': self.msg_curse(args, max_width=max_width),
'align': align_curse
}
File "/opt/.venvs/glances_venv/lib/python3.12/site-packages/glances/plugins/network/__init__.py", line 308, in msg_curse
rx = self.auto_unit(int(i['bytes_recv_rate_per_sec'] * to_bit)) + unit
TypeError: unsupported operand type(s) for *: 'NoneType' and 'int'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment