amanusk / s-tui

Terminal-based CPU stress and monitoring utility
https://amanusk.github.io/s-tui/
GNU General Public License v2.0
4.22k stars 145 forks source link

AttributeError with Ubuntu #52

Closed XavCC closed 6 years ago

XavCC commented 6 years ago

Environment

Step 2: Describe the problem:

Observed Results:

Debug Results, output of s-tui -d created in a file _s-tui.log:

2018-01-29 16:15:11,022 [main()] [INFO ]  Started without root permissions
2018-01-29 16:15:11,030 [__init__()] [DEBUG]  stress-ng is not installed

Step 3: Trying to solve the problem:

Steps :

  1. sudo apt install stress-ng
  2. sudo s-tui
  3. Same AttributeError
Traceback (most recent call last):
  File "/usr/bin/s-tui", line 9, in <module>
    load_entry_point('s-tui==0.6.7', 'console_scripts', 's-tui')()
  File "/usr/lib/python2.7/dist-packages/s_tui/s_tui.py", line 679, in main
    graph_controller = GraphController(args)
  File "/usr/lib/python2.7/dist-packages/s_tui/s_tui.py", line 522, in __init__
    self.view = GraphView(self, args)
  File "/usr/lib/python2.7/dist-packages/s_tui/s_tui.py", line 207, in __init__
    self.temp_sensors_menu = TempSensorsMenu(self.on_sensors_menu_close)
  File "/usr/lib/python2.7/dist-packages/s_tui/TempSensorsMenu.py", line 67, in __init__
    sensors_dict = psutil.sensors_temperatures()
AttributeError: 'module' object has no attribute 'sensors_temperatures'
amanusk commented 6 years ago

Hi @XavCC , Thank you for the detailed bug report. This issue should be fixed in the newest version . Unfortunately I currently lack the time and skill to keep updated PPAs for all Ubuntu releases. The latest version with the fix is available via pip.

sudo pip install s-tui

If you have installed via PPA, you should uninstal the old version first to avoid possible conflicts Please update if this fixes the problem for you

XavCC commented 6 years ago

Thanks a lot @amanusk ;-)

it works with sudo su

sudo pip install s-tui
s-tui

Now I 'll try under Kali linux