pcp
[Top] [All Lists]

Re: [pcp] python3 woes on f22

To: Mark Goodwin <mgoodwin@xxxxxxxxxx>, pcp <pcp@xxxxxxxxxxx>
Subject: Re: [pcp] python3 woes on f22
From: David Smith <dsmith@xxxxxxxxxx>
Date: Thu, 2 Jul 2015 14:40:40 -0500
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <5594A1B5.5090003@xxxxxxxxxx>
References: <5594A1B5.5090003@xxxxxxxxxx>
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0.1
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)

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