[Numpy-discussion] NumPy on 64-bit Linux (Opteron)

Alexandre Alexandre.Fayolle at logilab.fr
Tue Feb 8 04:32:37 EST 2005


On Tue, Feb 08, 2005 at 12:44:18PM +0100, konrad.hinsen at laposte.net wrote:
> Is anyone here using NumPy on Opteron machines running Linux in 64 bit  
> mode? I am running into problems such as:
> 
> Python 2.4 (#4, Jan 18 2005, 18:06:45)
> [GCC 3.2.3 20030502 (Red Hat Linux 3.2.3-42)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> from Numeric import *
> >>> a = arange(4)
> >>> a
> array([0, 1, 2, 3])
> >>> a.shape = (2, 2)
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
> ValueError: total size of new array must be unchanged
> 
> This is with Python 2.4 and Numeric 23.7. Before looking into this  
> myself, I thought I'd ask here, perhaps someone has already found a  
> fix.

I don't have a fix, but, for the record, I can reproduce this on my
alphastation. 

a.typecode() says that the contents of a are Int64.  

-- 
Alexandre Fayolle                              LOGILAB, Paris (France).
http://www.logilab.com   http://www.logilab.fr  http://www.logilab.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20050208/5699345f/attachment-0001.sig>


More information about the NumPy-Discussion mailing list