[Numpy-discussion] numpy1.4 dtype issues: scipy.stats & pytables

josef.pktd at gmail.com josef.pktd at gmail.com
Tue Jan 12 11:42:00 EST 2010

On Tue, Jan 12, 2010 at 11:33 AM, denis <denis-bz-py at t-online.de> wrote:
> On 11/01/2010 18:10, josef.pktd at gmail.com wrote:
>> For this problem, it's supposed to be only those packages that have or
>> import cython generated code.
> Right; is this a known bug, is there a known fix  for mac dmgs ?
> (Whisper, how'd it get past testing ?)

Switching to numpy 1.4 requires recompiling cython code (i.e. scipy),
there's a lot of information on the details in the mailing lists.

> scipy/stats/__init__.py has an apparent patch which doesn't work
>     #remove vonmises_cython from __all__, I don't know why it is included
>     __all__ = filter(lambda s:not (s.startswith('_') or s.endswith('cython')),dir())

No this is unrelated, this is just to reduce namespace pollution in __all__

vonmises_cython is still imported as an internal module and  functions
in distributions.


> but just removing vonmises_cython in distributions.py
> => import scipy.stats then works.

Then, I expect you will get an import error or some other exception
when you try to use stats.vonmises.

> Similarly import scipy.cluster => trace
>   File "numpy.pxd", line 30, in scipy.spatial.ckdtree (scipy/spatial/ckdtree.c:6087)
> ValueError: numpy.dtype does not appear to be the correct type object
> I like the naming convention xx_cython.so.
> cheers
>   -- denis
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion

More information about the NumPy-Discussion mailing list