Thanks!  We're going to open a RHEL support ticket on this.

It seems strange that python-numeric 23.7 (2005-Jan) was part
of RHEL5, when the final version was 24.2 (2005-Nov).
RHEL 5.0 came out ~ 2007-Mar. It appears that python-numeric
first appears in RHEL5, possibly as a requirement for pygtk2.

Cheers,
-Bob Arendt

Tony Schreiner wrote:
I can replicate that on CentOS 5.2   32 bit vs. 64 bit

$ rpm -q python python-numeric
python-2.4.3-21.el5
python-numeric-23.7-2.2.2

and on CentOS 5.3 as well

$ rpm -q python python-numeric
python-2.4.3-24.el5
python-numeric-23.7-2.2.2

Tony Schreiner
Boston College

On Apr 1, 2009, at 1:07 AM, Bob Arendt wrote:

Before I file a bugzilla or support request, I was hoping that
someone could confirm this bug I'm seeing in python-numeric with
on an x86_64 architecture (RHEL 5.3).

% rpm -q python python-numeric
python-2.4.3-24.el5
python-numeric-23.7-2.2.2
% python
Python 2.4.3 (#1, Sep 17 2008, 16:07:08)
[GCC 4.1.2 20071124 (Red Hat 4.1.2-41)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
import Numeric
print Numeric.__version__
23.7
a = Numeric.array([x for x in xrange(20)])
Numeric.reshape(a, (4,5))
Traceback (most recent call last):
 File "<stdin>", line 1, in ?
ValueError: total size of new array must be unchanged
%

It's trying to reshape a 20-element array to a 4x5.
There shouldn't be a ValueError.


A 32-bit RHEL5 operates properly (RHEL 5.2):

% rpm -q python python-numeric
python-2.4.3-21.el5
python-numeric-23.7-2.2.2
% python
Python 2.4.3 (#1, Jan 14 2008, 18:32:40)
[GCC 4.1.2 20070626 (Red Hat 4.1.2-14)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
import Numeric
print Numeric.__version__
23.7
a = Numeric.array([x for x in xrange(20)])
Numeric.reshape(a, (4,5))
array([[ 0,  1,  2,  3,  4],
      [ 5,  6,  7,  8,  9],
      [10, 11, 12, 13, 14],
      [15, 16, 17, 18, 19]])
%

This appears to operate properly in Fedora x86_64 using python-
numeric-24.2.

Thanks in advance,
-Bob Arendt

_______________________________________________
rhelv5-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-list

_______________________________________________
rhelv5-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-list

_______________________________________________
rhelv5-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-list

Reply via email to