[SciPy-user] Example 1 - Error

Gael Varoquaux gael.varoquaux at normalesup.org
Thu Jul 27 14:52:42 EDT 2006


    I get another error in the example 1 :

In [20]: time xsp3 = linsolve.spsolve(Asp.tocsr(),b)
---------------------------------------------------------------------------
exceptions.AttributeError                            Traceback (most
recent call last)

/home/varoquau/<ipython console>

/usr/lib/python2.4/site-packages/IPython/iplib.py in ipmagic(self, arg_s)
    857         else:
    858             magic_args = self.var_expand(magic_args)
--> 859             return fn(magic_args)
    860
    861     def ipalias(self,arg_s):

/usr/lib/python2.4/site-packages/IPython/Magic.py in magic_time(self,
parameter_s)
   1584         else:
   1585             st = clk()
-> 1586             exec code in glob
   1587             end = clk()
   1588             out = None

/home/varoquau/<timed exec>

/usr/lib/python2.4/site-packages/scipy/linsolve/linsolve.py in
spsolve(A, b, permc_spec)
     66     else:
     67         mat, csc = _toCS_superLU( A )
---> 68         ftype, lastel, data, index0, index1 = \
     69                mat.ftype, mat.nnz, mat.data, mat.rowind,
mat.indptr
     70         gssv = eval('_superlu.' + ftype + 'gssv')

/usr/lib/python2.4/site-packages/scipy/sparse/sparse.py in
__getattr__(self, attr)
    235             return self.getnnz()
    236         else:
--> 237             raise AttributeError, attr + " not found"
    238
    239     def transpose(self):

AttributeError: rowind not found

    Maybe it is because my version of linsolve is not recent enough, but
it fails with enthon 1.0.0 beta4. That not to pretty to see when you are
doing the tutorial to see weather you are going to switch from Matlab to
scipy (as a colleague of mine was doing when he found the error).

-- 
    Gaël



More information about the SciPy-User mailing list