Open rkraneis opened 1 year ago
I'm experiencing the same issue. Disable some cores then try to run s-tui.
archlinux% sudo s-tui
Traceback (most recent call last):
File "/usr/bin/s-tui", line 33, in <module>
sys.exit(load_entry_point('s-tui==1.1.4', 'console_scripts', 's-tui')())
File "/usr/lib/python3.10/site-packages/s_tui/s_tui.py", line 912, in main
graph_controller = GraphController(args)
File "/usr/lib/python3.10/site-packages/s_tui/s_tui.py", line 716, in __init__
possible_sources = self._load_config(args.t_thresh)
File "/usr/lib/python3.10/site-packages/s_tui/s_tui.py", line 649, in _load_config
FreqSource(),
File "/usr/lib/python3.10/site-packages/s_tui/sources/freq_source.py", line 46, in __init__
self.last_measurement = [0] * len(psutil.cpu_freq(True))
File "/usr/lib/python3.10/site-packages/psutil/__init__.py", line 1864, in cpu_freq
ret = _psplatform.cpu_freq()
File "/usr/lib/python3.10/site-packages/psutil/_pslinux.py", line 742, in cpu_freq
raise NotImplementedError(
NotImplementedError: can't find current frequency file
same, don't know if this can be fixed in s-tui though, probably needs to be fixed in psutil
https://github.com/giampaolo/psutil/blob/7eadee31db2f038763a3a6f978db1ea76bbc4674/psutil/_pslinux.py#L749 needs an extra check to curr to skip cpus without frequency files
Link the relevant issue here: https://github.com/giampaolo/psutil/issues/2254
Step 1: Describe your environment
Step 2: Describe the problem:
Observed Results:
When taking some of the cores offline, s-tui just crashes:
It also doesn't start until all cores are online again:
Debug Results, output of
s-tui -d
created in a file_s-tui.log
:Step 3: Reproduce the problem:
Steps to reproduce: