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

Christoph Gohlke cgohlke@uci....
Thu Dec 13 16:02:45 CST 2012

On 12/13/2012 1:57 PM, Andrew Collette wrote:
> Hi,
>> 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.
> Andrew

Sorry, I forgot to mention that I submitted a pull request at 


More information about the NumPy-Discussion mailing list