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

Damian Eads eads at soe.ucsc.edu
Sat May 3 08:19:52 EDT 2008


Hi,

I just encountered a rather puzzling exception I have never seen before, 
which is generated when scipy.stats is imported. It occurs regardless if 
I use scipy from the latest SVN checkout or Fedora 8-yum.

[redfox at localhost chestnut]$ python
Python 2.5.1 (r251:54863, Oct 30 2007, 13:54:11)
[GCC 4.1.2 20070925 (Red Hat 4.1.2-33)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
 >>> import scipy.stats
Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File "/tmp/qq/lib/python2.5/site-packages/scipy/stats/__init__.py", 
line 7, in <module>
     from stats import *
   File "/tmp/qq/lib/python2.5/site-packages/scipy/stats/stats.py", line 
192, in <module>
     import scipy.linalg as linalg
   File "/tmp/qq/lib/python2.5/site-packages/scipy/linalg/__init__.py", 
line 13, in <module>
     from iterative import *
   File "/tmp/qq/lib/python2.5/site-packages/scipy/linalg/iterative.py", 
line 5, in <module>
     from scipy.sparse.linalg import isolve
   File "/tmp/qq/lib/python2.5/site-packages/scipy/sparse/__init__.py", 
line 5, in <module>
     from base import *
   File "/tmp/qq/lib/python2.5/site-packages/scipy/sparse/base.py", line 
45, in <module>
     class spmatrix(object):
   File "/tmp/qq/lib/python2.5/site-packages/scipy/sparse/base.py", line 
139, in spmatrix
     @deprecate
TypeError: deprecate() takes exactly 3 arguments (1 given)
 >>>

Any ideas?

Damian



More information about the SciPy-Dev mailing list