pcp
[Top] [All Lists]

Re: [pcp] pmrep error on RHEL6.4 / python2.66

To: Marko Myllynen <myllynen@xxxxxxxxxx>, Mark Goodwin <mgoodwin@xxxxxxxxxx>
Subject: Re: [pcp] pmrep error on RHEL6.4 / python2.66
From: Nathan Scott <nathans@xxxxxxxxxx>
Date: Tue, 16 Feb 2016 17:42:37 -0500 (EST)
Cc: pcp <pcp@xxxxxxxxxxx>
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <56C381C3.9050604@xxxxxxxxxx>
References: <56BC2729.2060301@xxxxxxxxxx> <56C381C3.9050604@xxxxxxxxxx>
Reply-to: Nathan Scott <nathans@xxxxxxxxxx>
Thread-index: G6bDtKZHTsJpsMpezJfFhakWcnX1fA==
Thread-topic: pmrep error on RHEL6.4 / python2.66

----- Original Message -----
> [...]
> > 
> > This seems to be a common and known issue on such old python versions -
> > is it worth doing something about it?

(yes, definitely)

> It depends - RHEL 6's Python 2.6 gained OrderedDict in RHEL 6.5:
> 

PCP runs on many other platforms though, and it would be best to have pmrep
available on all supported platforms (incl. EPEL5, but also many other non-
Red Hat Linux distros, not to mention Mac OS X, *BSD and so on).

> So if we're adjusting things for RHEL 6 I think perhaps we could
> check whether OrderedDict is available but disabling pmrep altogether
> sounds a step too far IMHO.

Can we rearrange the code to not use an OrderedDict?  (e.g switch to a
regular dict, and arrange to have metrics sorted before displaying? -
there is lots of other (needed?) use of OrderedDict's though so I'm not
sure its that simple.

cheers.

--
Nathan

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