[Scipy-tickets] [SciPy] #603: error importing scipy.linalg - problem with @deprecate decorator?

SciPy scipy-tickets@scipy....
Wed Feb 13 14:00:47 CST 2008


#603: error importing scipy.linalg - problem with @deprecate decorator?
--------------------------+-------------------------------------------------
 Reporter:  LevGivon      |       Owner:  somebody         
     Type:  defect        |      Status:  new              
 Priority:  normal        |   Milestone:  0.7              
Component:  scipy.linalg  |     Version:  devel            
 Severity:  normal        |    Keywords:  linalg, deprecate
--------------------------+-------------------------------------------------
 After installing svn revision 3935 of scipy (with numpy 1.0.4 installed)
 on a Linux system running Python 2.5.1, I observed the following error
 when I attempted to import scipy.linalg:


 {{{
 /usr/lib/python2.5/site-packages/scipy/linalg/__init__.py in <module>()
      11 from blas import *
      12
 ---> 13 from iterative import *
      14
      15

 /usr/lib/python2.5/site-packages/scipy/linalg/iterative.py in <module>()
       3 # Deprecated on January 26, 2008
       4
 ----> 5 from scipy.splinalg import isolve
       6 from numpy import deprecate
       7

 /usr/lib/python2.5/site-packages/scipy/splinalg/__init__.py in <module>()
       3 from info import __doc__
       4
 ----> 5 from isolve import *
       6 from dsolve import *
       7 from interface import *

 /usr/lib/python2.5/site-packages/scipy/splinalg/isolve/__init__.py in
 <module>()
       2
       3 #from info import __doc__
 ----> 4 from iterative import *
       5 from minres import minres
       6

 /usr/lib/python2.5/site-packages/scipy/splinalg/isolve/iterative.py in
 <module>()
      16 import copy
      17
 ---> 18 from scipy.splinalg.interface import LinearOperator
      19 from utils import make_system
      20

 /usr/lib/python2.5/site-packages/scipy/splinalg/interface.py in <module>()
       2 from numpy import matrix, ndarray, asarray, dot, atleast_2d
 ----> 3 from scipy.sparse.sputils import isshape
       4 from scipy.sparse import isspmatrix
       5
       6 __all__ = ['LinearOperator', 'aslinearoperator']

 /usr/lib/python2.5/site-packages/scipy/sparse/__init__.py in <module>()
       3 from info import __doc__
       4
 ----> 5 from base import *
       6 from csr import *
       7 from csc import *

 /usr/lib/python2.5/site-packages/scipy/sparse/base.py in <module>()
      43 MAXPRINT = 50
      44
 ---> 45 class spmatrix(object):
      46     """ This class provides a base class for all sparse matrices.
 It
      47     cannot be instantiated.  Most of the work is provided by
 subclasses.

 /usr/lib/python2.5/site-packages/scipy/sparse/base.py in spmatrix()
     137         return format
     138
 --> 139     @deprecate
     140     def rowcol(self, num):
     141         return (None, None)

 }}}

-- 
Ticket URL: <http://scipy.org/scipy/scipy/ticket/603>
SciPy <http://www.scipy.org/>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list