MatthiasSchinzel / sysmon

Graphical system monitor for linux, including information about CPU, GPU, Memory, HDD/SDD and your network connections. Similar to windows task manager.
GNU General Public License v3.0
294 stars 25 forks source link

Doesnt Work under openSUSE Tumbleweed KDE #5

Closed DoctorCr4nk closed 3 years ago

DoctorCr4nk commented 3 years ago

I tried the README.md Instructions to install your tool, but it didn't work.

bash: cat /etc/os-release 
NAME="openSUSE Tumbleweed"
# VERSION="20201005"

Tested Python 2.7.18:

bash: python2 sysmon.py 
Traceback (most recent call last):
  File "sysmon.py", line 1, in <module>
    from PyQt5 import QtWidgets, uic
ImportError: No module named PyQt5

and Python 3.8.5:

bash: python3 sysmon.py 
/bin/sh: iwconfig: command not found
Traceback (most recent call last):
  File "sysmon.py", line 593, in <module>
    main()
  File "sysmon.py", line 587, in main
    main = MainWindow()
  File "sysmon.py", line 101, in __init__
    self.s = sysinfo()
  File "/home/$USER/GitExtern/sysmon/src/gather_data.py", line 59, in __init__
    self.get_max_connection_speed()
  File "/home/$USER/GitExtern/sysmon/src/gather_data.py", line 263, in get_max_connection_speed
    self.max_connection_speed.append(processes[-1].split()[1]
IndexError: list index out of range

PIP Output:

bash: pip install pyqtgraph pyqt5
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: pyqtgraph in /usr/local/lib/python3.8/site-packages (0.11.0)
Requirement already satisfied: pyqt5 in /usr/local/lib64/python3.8/site-packages (5.15.1)
Requirement already satisfied: numpy>=1.8.0 in /usr/local/lib64/python3.8/site-packages (from pyqtgraph) (1.19.2)
Requirement already satisfied: PyQt5-sip<13,>=12.8 in /usr/local/lib64/python3.8/site-packages (from pyqt5) (12.8.1)
rany2 commented 3 years ago

Use bash -c 'PATH=$PATH:/sbin python3 ./sysmon.py' instead.

rany2 commented 3 years ago

A possible fix for this is for sysmon.py to automatically add /sbin to it's PATH.

MatthiasSchinzel commented 3 years ago

Thank you both so much for the comments.

@DoctorCr4nk Your pip is installing for python 3. If you want to use python 2 use pip2 install pyqtgraph pyqt5

@analotia Thank you so much for solving this issue. I couldn't have done it without you!

MatthiasSchinzel commented 3 years ago

@DoctorCr4nk please try again!

MatthiasSchinzel commented 3 years ago

Lets merge these two issues

Duplicate of iwconfig: command not found #4