[SciPy-dev] importing scipy.stats generates exception on deprecate decorator

Matthieu Brucher matthieu.brucher@gmail....
Tue Jun 3 01:09:19 CDT 2008


What numpy version do you use ?

Matthieu

2008/6/3 Tom Waite <twaite@berkeley.edu>:

> Damian
>
> I just downloaded the latest scipy and I use the sparse matrix routines and
> get the same problem you reported. I am running on XP 32. What was your
> resolution?
>
> Tom
>
> In [3]: import scipy.sparse
> ------------------------------
> ---------------------------------------------
> <type 'exceptions.TypeError'>             Traceback (most recent call last)
>
> c:\python25\lib\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 *
>
> c:\python25\Lib\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.
>
>
> c:\python25\Lib\site-packages\scipy\sparse\base.py in spmatrix()
>     137         return format
>     138
> --> 139     @deprecate
>     140     def rowcol(self, num):
>     141         return (None, None)
>
> <type 'exceptions.TypeError'>: deprecate() takes exactly 3 arguments (1
> given)
>
> In [4]: scipy.__version__
> Out[4]: '0.7.0.dev4402'
>
>
>
>
> _______________________________________________
> Scipy-dev mailing list
> Scipy-dev@scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-dev
>
>


-- 
French PhD student
Website : http://matthieu-brucher.developpez.com/
Blogs : http://matt.eifelle.com and http://blog.developpez.com/?blog=92
LinkedIn : http://www.linkedin.com/in/matthieubrucher
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/scipy-dev/attachments/20080603/b2ee33c5/attachment.html 


More information about the Scipy-dev mailing list