Numpy and cPickle

Mr. M a at bc.de
Sun Apr 16 00:29:35 EDT 2006


Martin Manns wrote:
> Robert Kern wrote:
>> Martin Manns wrote:
> 
>>> If I cPickle a numpy array under Linux and un-cPickle it under Solaris
>>> 10, my arrays seem to be transposed. 
>> Transposed? That's odd. There was a byteorder issue with pickles going across
>> differently-endianed platforms that was fixed in the past few days. Could you
>> come up with a small bit of code that shows the problem and post it and the
>> incorrect output to the bug tracker?
> 
> Sorry, I my ad-hoc small example does not reproduce the error even
> though the files generated on both platforms differ. I will try to set
> up the code tomorrow.

Somehow, the bug does not show up any more. I believe it was due to the 
numpy version that is fetched by cPickle. Is there any way to control 
(or even determine), which library version cPickle grabs for unpickling 
a numpy array (numpy, scipy, etc)?




More information about the Python-list mailing list