pcp
[Top] [All Lists]

python3 woes on f22

To: pcp <pcp@xxxxxxxxxxx>
Subject: python3 woes on f22
From: Mark Goodwin <mgoodwin@xxxxxxxxxx>
Date: Thu, 02 Jul 2015 12:28:05 +1000
Delivered-to: pcp@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0
If python-pcp isn't installed, the python client tools fail to run,
even if I have python3-pcp installed.  e.g.

[pcp-monitor] pmiostat
Traceback (most recent call last):
  File "/usr/bin/pmiostat", line 19, in <module>
    from pcp import pmapi, pmcc
ImportError: No module named pcp


If I edit the script and change the interpreter to python3, it works.
Or, if I install python-pcp it works. So either pcp-system-tools is
missing a dep on python-pcp, or the interpreter should be /usr/bin/python3
for platforms that support python3.

Anyone know which is the preferred solution? This was noticed in the
pcp-monitor container image - I can easily enough tell it to also install
pcp-python but that's not going to fix the underlying issue.

Thanks
-- Mark

<Prev in Thread] Current Thread [Next in Thread>