[Numpy-discussion] numpy1.4 dtype issues: scipy.stats & pytables
Tue Jan 12 10:42:00 CST 2010
On Tue, Jan 12, 2010 at 11:33 AM, denis <firstname.lastname@example.org> wrote:
> On 11/01/2010 18:10, email@example.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
> 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.
> -- denis
> NumPy-Discussion mailing list
More information about the NumPy-Discussion