On 07/01/2015 09:28 PM, Mark Goodwin wrote:
> 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.
I'd say you want to go with making pcp-system-tools depend on
python-pcp. I'd always go with the default version of python for the distro.
--
David Smith
dsmith@xxxxxxxxxx
Red Hat
http://www.redhat.com
256.217.0141 (direct)
256.837.0057 (fax)
|