Trying to install Process Explorer

Issues related to applications and software problems
VeeDub
Posts: 39
Joined: 2019/12/21 02:34:05

Trying to install Process Explorer

Post by VeeDub » 2021/03/07 05:54:15

Hello,

Trying to install Process Explorer by following the instructions here https://github.com/wolfc01/procexp/blob ... /README.md

When I try to start Process Explorer I see

Code: Select all

$ ./procexp.py
Traceback (most recent call last):
  File "./procexp.py", line 27, in <module>
    from PyQt5 import QtCore, QtGui, QtWidgets, uic
ModuleNotFoundError: No module named 'PyQt5'
Am after suggestions on how to troubleshoot the Python install which looks to be broken.

VW

sml
Posts: 305
Joined: 2020/01/17 09:01:44

Re: Trying to install Process Explorer

Post by sml » 2021/03/07 12:58:22

qwt5-qt4 for CentOS 7 is available in Nux Dextop.

VeeDub
Posts: 39
Joined: 2019/12/21 02:34:05

Re: Trying to install Process Explorer

Post by VeeDub » 2021/03/08 04:31:44

@sml

Think I should probably remove the PyQwt-5.2.0 that I have already installed, but am not sure about the uninstall command. Can you help?

Installation instructions

Code: Select all

yum install epel-release
sudo yum group install "Development Tools"
yum install PyQt4-devel
yum install qwt
yum install qwt-devel
tar -xvzf PyQwt-5.2.0/PyQwt-5.2.0.tar.gz
cd PyQwt-5.2.0/configure
python configure.py -Q ../qwt-5.2
make
make install
Thanks

VW

VeeDub
Posts: 39
Joined: 2019/12/21 02:34:05

Re: Trying to install Process Explorer

Post by VeeDub » 2021/03/08 19:15:16

I've now installed Nux Desktop

But same error

Code: Select all

]$ ./procexp.py
Traceback (most recent call last):
  File "./procexp.py", line 27, in <module>
    from PyQt5 import QtCore, QtGui, QtWidgets, uic
ModuleNotFoundError: No module named 'PyQt5'

chemal
Posts: 776
Joined: 2013/12/08 19:44:49

Re: Trying to install Process Explorer

Post by chemal » 2021/03/09 02:16:20

The package you want is python36-qt5 from epel.

VeeDub
Posts: 39
Joined: 2019/12/21 02:34:05

Re: Trying to install Process Explorer

Post by VeeDub » 2021/03/09 05:30:47

@chemal

Seems you were right

Unfortunately now have another error

Code: Select all

./procexp.py
Traceback (most recent call last):
  File "./procexp.py", line 30, in <module>
    import procreader.reader
  File "/home/vw/Downloads/procexp-master/procreader/reader.py", line 25, in <module>
    import singleprocess
  File "/home/vw/Downloads/procexp-master/singleprocess.py", line 23, in <module>
    from PyQt5 import Qwt
ImportError: cannot import name 'Qwt'

chemal
Posts: 776
Joined: 2013/12/08 19:44:49

Re: Trying to install Process Explorer

Post by chemal » 2021/03/09 17:07:52

Seems to get complicated now. First you need a build of the qwt library for qt5. Epel only has a build for qt4. Then you need python bindings for this, which are not in epel for either version of qt. You can try to find and then rebuild the source rpms from fedora.

VeeDub
Posts: 39
Joined: 2019/12/21 02:34:05

Re: Trying to install Process Explorer

Post by VeeDub » 2021/03/10 10:08:53

@chemal

The installation instructions include the following:

Code: Select all

install dependencies for CentOS 7
for CentOS version 7 PyQwt is not available in standard and EPEL repositories: --> build from source Download PyQwt5 sources from https://kent.dl.sourceforge.net/project/pyqwt/pyqwt5/PyQwt-5.2.0/PyQwt-5.2.0.tar.gz
My assessment is that this is the proposed approach to address the complications that you refer to.

I have followed those instructions and they appear to complete without error; yet when I try to start Process Explorer, Qwt cannot be found, so clearly something is wrong.

I'm wondering if there might be some basic troubleshooting that I could try on the above instructions first?

For instance, when I logon on as root, I just downloaded the archive into home\downloads; but is this what I'm supposed to do?

Or if I logon as root, is it expected that I would download the PyQwt archive into some other "system" directory?

Also, might be there some search path that might need to be updated for the PyQwt installation?

I'm just wondering if there are some relatively 'simple' checks that I might be able to do here?

It is unfortunate that it doesn't appear possible to contact the developer, but he clearly understood (as you have stated) that PyQwt was not available in the standard and EPEL repositories and proposed a resolution.

My feeling is that the answer is in front of me, but that the developer has possibly made some assumptions when installing software as root - which I'm not aware of.

chemal
Posts: 776
Joined: 2013/12/08 19:44:49

Re: Trying to install Process Explorer

Post by chemal » 2021/03/11 05:43:52

PyQwt-5.2.0 is from 2009 and uses qt4. The instructions you mention seem way outdated, because the python program you're trying to run uses qt5.

VeeDub
Posts: 39
Joined: 2019/12/21 02:34:05

Re: Trying to install Process Explorer

Post by VeeDub » 2021/03/11 19:37:25

PyQwt-5.2.0 is from 2009 and uses qt4. The instructions you mention seem way outdated, because the python program you're trying to run uses qt5.
Yes, it seems that the install instructions are just wrong.
Seems to get complicated now. First you need a build of the qwt library for qt5. Epel only has a build for qt4. Then you need python bindings for this, which are not in epel for either version of qt. You can try to find and then rebuild the source rpms from fedora.
I'm not sure how to do this and after looking at some of the comments about Process Explorer from users who were able to get it working on other distros, I think this version is a "work in progress". So I don't think that it is worth the effort you outline.

Thanks for your help though in helping me to understand why the install is failing

Post Reply