[SciPy-user] import stats -> failed

Keith Goodman kwgoodman at gmail.com
Thu Apr 27 13:43:41 EDT 2006


I installed scipy from SVN source less than an hour ago. I can't import stats.

(If it's not something I did wrong, would a bug report like this be
useful information?)

>> from scipy import *
---------------------------------------------------------------------------
exceptions.ValueError                                Traceback (most
recent call last)

/home/me/<ipython console>

/usr/local/scipy/lib/python2.4/site-packages/scipy/stats/__init__.py
      5 from info import __doc__
      6
----> 7 from stats import *
      8 from distributions import *
      9 from rv import *

/usr/local/scipy/lib/python2.4/site-packages/scipy/stats/stats.py
   1693
   1694 import scipy.stats
-> 1695 import distributions
   1696 def kstest(rvs, cdf, args=(), N=20):
   1697     """Return the D-value and the p-value for a

/usr/local/scipy/lib/python2.4/site-packages/scipy/stats/distributions.py
   3812         lvals = where(vals==0,0.0,log(vals))
   3813         return -sum(vals*lvals)
-> 3814 binom = binom_gen(name='binom',shapes="n,pr",extradoc="""
   3815
   3816 Binomial distribution

/usr/local/scipy/lib/python2.4/site-packages/scipy/stats/distributions.py
in __init__(self, a, b, name, badvalue, moment_tol, values, inc,
longname, shapes, extradoc)
   3373             self.numargs=0
   3374         else:
-> 3375             self._vecppf =
new.instancemethod(sgf(_drv2_ppfsingle,otypes='d'),
   3376                                               self, rv_discrete)
   3377             self.generic_moment = new.instancemethod(sgf(_drv2_moment,

/usr/local/scipy/lib/python2.4/site-packages/numpy/lib/function_base.py
in __init__(self, pyfunc, otypes, doc)
    594     """
    595     def __init__(self, pyfunc, otypes='', doc=None):
--> 596         nin, ndefault = _get_nargs(pyfunc)
    597         self.thefunc = pyfunc
    598         self.ufunc = None

/usr/local/scipy/lib/python2.4/site-packages/numpy/lib/function_base.py
in _get_nargs(obj)
    559                 nargs -= 1
    560             return nargs, ndefaults
--> 561     raise ValueError, 'failed to determine the number of
arguments for %s' % (obj)
    562
    563

ValueError: failed to determine the number of arguments for <function
_drv2_ppfsingle at 0x2aaab2995320>




More information about the SciPy-User mailing list