Closed ghost closed 6 years ago
Hi, Thanks for the bug report.
I believe there is a collision between the two installations.
Could you please try one of the following:
If you want to install via PPA:
Use sudo apt install python3-s-tui
, and update psutil
via pip install psutil --upgrade
. A newer version of psutil
is required for all the features to work.
If you want to install via pip (which is usually the newest version):
First try completely uninstalling any installation of s-tui that was installed via PPA:
sudo apt remove --purge python*-s-tui
Possibly psutil as well:
sudo apt remove --purge python*-psutil
(The * if for both python2 and python3 versions)
Try removing /usr/bin/s-tui
and /usr/local/bin/s-tui
if they were created and not removed by apt remove
.
Then install s-tui with sudo pip install s-tui
. This will install the latest versions of psutil
and urwid
which are the only dependencies of s-tui
.
Now try running s-tui
in a new shell.
Sorry if this sounds a bit complected, this is caused because the system is confused between the two installation methods and the fact that only an older version of psutil
is available in 16.04 based systems. Newer version (18.04) should have all the needed prerequisites.
Please update if this worked out for you.
Thanks. I used the PPA method that you described - preceeded by sudo apt remove --purge python*-s-tui
(but not sudo apt remove --purge python*-psutil
, because apt
told me it would take half my system with it) and s-tui then ran. However, and as I've reported in a previous, separate bug report, s-tui then stalled and indeed temporarily hung my whole machine.
I see, I'll try to reproduce and investigate, what terminal emulator do you use?
I have tried running Mint 18.3 Cinnamon with xfce4-terminal from live USB and unfortunately was not able to reproduce a hang. If you have the chance, and want to help debugging the issue, could you please try connecting to the system over SSH, and see if just running s-tui from a remote session causes a hang? (This might mean the issue is related to the newest gen CPUs) If there is no effect, the issue could be related to the graphical interface of Mint. (If you are able to run a different distro on the same system, it will could help pinpoint the cause)
I'd be happy to take the SSH approach - in a few days to a week's time - if you'll point me towards a primer on how to do that. Such things - SSH, FTP, Putty - aren't things I've much experience with (and also I think I've rather locked my system down against them, so some re-enabling will be needed).
I'll by happy to try and explain. I have recently opened a gitter room for s-tui https://gitter.im/s-tui/Lobby We can discuss it over there.
I'll close this as the installation issue has been solved. Please update in your previous issue on hangs #56.
Step 1: Describe your environment
Step 2: Describe the problem:
Observed Results:
When I installed via PPA, this happened when I ran the program:
Mint has python-psutil version 3.4.2.1 in its repositories.
When using the pip install, this happened:
PS: This is fifth time I have tried to get s-tui working on Mint.