oi-userland icon indicating copy to clipboard operation
oi-userland copied to clipboard

Add new package diagnostic/glances

Open mebenn opened this issue 3 years ago • 5 comments

Glances is a monitoring tool like htop, but provides many more features. It has a rich selection of plugins to extend its functionality.

mebenn avatar Oct 21 '22 12:10 mebenn

@mebenn: Does glances work on your system? I have tried it: ╰─➤ glances Traceback (most recent call last): File "/usr/bin/glances", line 33, in sys.exit(load_entry_point('Glances==3.2.7', 'console_scripts', 'glances')()) File "/usr/bin/glances", line 25, in importlib_load_entry_point return next(matches).load() File "/usr/lib/python3.9/importlib/metadata.py", line 86, in load module = import_module(match.group('module')) File "/usr/lib/python3.9/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1030, in _gcd_import File "", line 1007, in _find_and_load File "", line 986, in _find_and_load_unlocked File "", line 680, in _load_unlocked File "", line 850, in exec_module File "", line 228, in _call_with_frames_removed File "/usr/lib/python3.9/vendor-packages/glances/init.py", line 35, in from glances.compat import PY3 File "/usr/lib/python3.9/vendor-packages/glances/compat.py", line 39, in from defusedxml.xmlrpc import monkey_patch ModuleNotFoundError: No module named 'defusedxml'

It looks like there is a missing runtime dependency on defusedxml for which we need to have a package first.

AndWac avatar Oct 21 '22 20:10 AndWac

It looks like there is a missing runtime dependency on defusedxml for which we need to have a package first.

To create such package you could just run $WS_TOOLS/python-integrate-project defusedxml and if everything goes well (no ERROR or FATAL) just review the created changeset, push it, and create PR.

mtelka avatar Oct 21 '22 20:10 mtelka

@AndWac Yes, the pkg install diagnostic/glances definitely worked, so why? It got installed via pip (I originally installed glances a long time ago using pip, which must have installed defusedxml):

...> pip list | grep defusedxml defusedxml 0.7.1

So it is indeed on my system. So I'll try python-integrate-project defusedxml tomorrow

mebenn avatar Oct 21 '22 21:10 mebenn

Is this still relevant? It looks like nobody cares anymore...

AndWac avatar Feb 19 '23 20:02 AndWac

@AndWac Yes, would like to finish this, just didn't get any time; and I still care ever more so.

mebenn avatar Feb 20 '23 17:02 mebenn