Index | Thread | Search

From:
"Alex Holst" <a@mongers.org>
Subject:
sysutils/glances: OSError on amd64
To:
ports@openbsd.org
Date:
Sun, 27 Oct 2024 10:53:24 +0100

Download raw body.

Thread
Not sure how to further troubleshoot this problem I've had for months. -current and 7.6 systems with no glances.conf result in this traceback. I've also attempted to turn off swap monitoring in the config file or at the command line.

Any hints?

$ glances
Traceback (most recent call last):
  File "/usr/local/bin/glances", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/local/lib/python3.11/site-packages/glances/__init__.py", line 179, in main
    start(config=core.get_config(), args=core.get_args())
  File "/usr/local/lib/python3.11/site-packages/glances/__init__.py", line 108, in start
    mode = GlancesMode(config=config, args=args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/glances/standalone.py", line 71, in __init__
    self.stats.update()
  File "/usr/local/lib/python3.11/site-packages/glances/stats.py", line 216, in update
    self._plugins[p].update()
  File "/usr/local/lib/python3.11/site-packages/glances/plugins/glances_plugin.py", line 1114, in wrapper
    ret = fct(self, *args, **kw)
          ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/glances/plugins/glances_plugin.py", line 1131, in wrapper
    ret = fct(*args, **kw)
          ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/glances/plugins/glances_quicklook.py", line 58, in update
    stats['swap'] = psutil.swap_memory().percent
                    ^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/psutil/__init__.py", line 2027, in swap_memory
    return _psplatform.swap_memory()
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/psutil/_psbsd.py", line 231, in swap_memory
    total, used, free, sin, sout = cext.swap_mem()
                                   ^^^^^^^^^^^^^^^
OSError: [Errno 0] Error


-- 
Alex Holst