This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: numarray in debian python 2.4.1
Type: Stage:
Components: None Versions:
process
Status: closed Resolution: duplicate
Dependencies: Superseder:
Assigned To: Nosy List: georg.brandl, lovepanda
Priority: normal Keywords:

Created on 2005-08-01 21:38 by lovepanda, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg25943 - (view) Author: LovePanda (lovepanda) Date: 2005-08-01 21:38
Hi there,

I ran across this error when running a few lines of 
code in debian python, but this runs perfectly in
windows python. Basically I created a dummy matrix
called "gamma" (using kroneckerproduct in numarray)
and printed out its mean.  Here is the code:
gamma = kroneckerproduct(ones((N, 1)),identity(T))
print gamma.mean()

and Here is the error message:
Traceback (most recent call last):
  File "vul_prov.py", line 149, in ?
    VLs = mv_prov(hhc, idyrisk, provid, 1)
  File
"/home/meng/China/Extent/Data/Urban2002/Empirics/tmp/vulnerability.py",
line 605, in mv_prov
    print gamma.mean()
  File
"/usr/lib/python2.4/site-packages/numarray/numarraycore.py",
line 1137, in mean
    return self.sum()/(self.nelements()*1.0)
  File
"/usr/lib/python2.4/site-packages/numarray/numarraycore.py",
line 1133, in sum
    return ufunc.add.reduce(ufunc.add.areduce(self,
type=type).flat, type=type)
IndexError: too many indices.

Thank you for helping on this! Oh, btw, the version
for python in both platforms is 2.4.1

Xiangyi
msg25944 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2005-08-02 09:11
Logged In: YES 
user_id=1188172

Duplicate of #1249903.
History
Date User Action Args
2022-04-11 14:56:12adminsetgithub: 42240
2005-08-01 21:38:42lovepandacreate