[Scipy-tickets] [SciPy] #786: scipy.stats problems on 64 bits python 2.4 (cython)

SciPy scipy-tickets@scipy....
Sat Nov 8 01:37:31 CST 2008


#786: scipy.stats problems on 64 bits python 2.4 (cython)
-------------------------+--------------------------------------------------
 Reporter:  cdavid       |       Owner:  peridot
     Type:  defect       |      Status:  new    
 Priority:  normal       |   Milestone:         
Component:  scipy.stats  |     Version:         
 Severity:  normal       |    Keywords:         
-------------------------+--------------------------------------------------
 Hi,

 Several tests are failing with 64 bits python 2.4, related to the recently
 added cython code:

 {{{
 #!
 ======================================================================
 ERROR: test_distributions.test_all_distributions('vonmises',
 (1.0266967946622052,), 0.01)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/usr/data/david/local/stow/nose-0.10.4/lib/python2.4/site-
 packages/nose/case.py", line 182, in runTest
     self.test(*self.arg)
   File "/usr/data/david/local/lib64/python2.4/site-
 packages/scipy/stats/tests/test_distributions.py", line 41, in
 check_distribution
     D,pval = stats.kstest(dist,'', args=args, N=1000)
   File "/usr/data/david/local/stow/scipy.svn/lib64/python2.4/site-
 packages/scipy/stats/stats.py", line 1822, in kstest
     cdfvals = cdf(vals, *args)
   File "/usr/data/david/local/stow/scipy.svn/lib64/python2.4/site-
 packages/scipy/stats/distributions.py", line 538, in cdf
     place(output,cond,self._cdf(*goodargs))
   File "/usr/data/david/local/stow/scipy.svn/lib64/python2.4/site-
 packages/scipy/stats/distributions.py", line 3123, in _cdf
     return vonmises_cython.von_mises_cdf(b,x)
   File "vonmises_cython.pyx", line 60, in
 scipy.stats.vonmises_cython.von_mises_cdf
 (scipy/stats/vonmises_cython.c:1150)
   File "numpy.pxd", line 43, in numpy.ndarray.__getbuffer__
 (scipy/stats/vonmises_cython.c:1497)
 RuntimeError: Py_intptr_t and Py_ssize_t differs in size, numpy.pxd does
 not support this
 }}}

 This is similar to #784.

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


More information about the Scipy-tickets mailing list