[Numpy-discussion] sum() and mean() broken?

Todd Miller jmiller at stsci.edu
Thu Jul 15 06:18:04 CDT 2004


numarray-1.0 is known to have problems with Windows-98, etc. (My guess
is any Pre-NT windows).  I haven't seen any problems with Windows XP or
Windows 2000 Pro.  

Which windows variant are you running?  

Does the numarray selftest pass?  It should look something like:

>>> import nuamrray.testall as testall
>>> testall.test()
numarray:                               ((0, 1178), (0, 1178))
numarray.records:                       (0, 48)
numarray.strings:                       (0, 176)
numarray.memmap:                        (0, 82)
numarray.objects:                       (0, 105)
numarray.memorytest:                    (0, 16)
numarray.examples.convolve:             ((0, 20), (0, 20), (0, 20), (0,
20))
numarray.convolve:                      (0, 52)
numarray.fft:                           (0, 75)
numarray.linear_algebra:                ((0, 46), (0, 51))
numarray.image:                         (0, 27)
numarray.nd_image:                      (0, 390)
numarray.random_array:                  (0, 53)
numarray.ma:                            (0, 671)


On Wed, 2004-07-14 at 23:50, Gary Ruben wrote:
> I'm getting tracebacks on even the most basic sum() and mean() calls in numarray 1.0 under Windows. Apologies if this has already been reported.
> Gary
> 
> >>> from numarray import *
> >>> arange(10).sum()
> 
> Traceback (most recent call last):
>   File "<pyshell#4>", line 1, in -toplevel-
>     arange(10).sum()
>   File "C:\APPS\PYTHON23\Lib\site-packages\numarray\numarraycore.py", line 1106, in sum
>     return ufunc.add.reduce(ufunc.add.areduce(self, type=type).flat, type=type)
> error: Int32asInt64: buffer not aligned on 8 byte boundary.
-- 





More information about the Numpy-discussion mailing list