[Numpy-discussion] ValueError: low level cast function is for unequal type numbers

Andrew Collette andrew.collette at gmail.com
Thu Dec 13 16:57:23 EST 2012


> the following code using np.object_ data types works with numpy 1.5.1
> but fails with 1.6.2. Is this intended or a regression? Other data
> types, np.float64 for example, seem to work.

I am also seeing this problem; there was a change to how string types
are handled in h5py 2.1.0 which triggers this bug.  It's a serious
inconvenience, as people can't do e.g. np.copy(<hdf5 dataset object>)
any more.

> These downstream issues could be related:
> http://code.google.com/p/h5py/issues/detail?id=217

Yes, this seems to be the cause of issue 217.


More information about the NumPy-Discussion mailing list