A
A
Arseniy_vka2021-04-13 00:53:36
linux
Arseniy_vka, 2021-04-13 00:53:36

Github project not starting. Ask for help?

Greetings to all, I confess, in Linux, to put it mildly, a beginner (and in python too)

The essence of the problem: I found the necessary project on Github ( https://github.com/tiazahmd/PCStatus ), did everything according to the manual, as a result, the error in Line 18 "list index out of range" in modules.py, what's the problem?

Question #2: after fixing the error on line 18, what is the correct way to run it locally without cloning from Github?

I apologize in advance for possibly stupid questions!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
shurshur, 2021-04-13
@shurshur

You can not clone the script, but download it as an archive by clicking Code-Download ZIP.
The script can be edited locally, git is not needed for this.
On line 18, it crashes because the script takes a sensor with index 1 (when numbering from zero), and the array of sensors on this computer has a length less than 2, it is even possible that the kernel does not understand the necessary sensors and the list is empty. In general, the script, judging by this place, is some hellish shit code that will break simply from changing the order of the output of sensors in the psutil module. Fu on its author.
On my own behalf, I advise you to choose the path of a real Jedi: you can get the same with standard commands:
Information on processors: lscpu
Information on processes: top or more beautifully htop (both have an exit using the q button)
Memory information: free -h Sensor
information (temperature, fans, etc.): sensors Disk space information
: df -h
Disk block device information: lsblk
Only the htop and lm-sensors packages will need to be reinstalled.
Well, or you can just use widgets for the desktop you are using.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question