Re: [Numpy-discussion] cPickle.load says 'invalid signature'

2011-05-18 Thread Olivier Delalleau
It's a wild guess, but try to save your pickle with 'wb' as argument of open, and protocol=-1. Then open it with 'rb'. It helped me fix some cross-platform issues in the past. -=- Olivier 2011/5/18 Neal Becker > The file is pickle saved on i386 and loaded on x86_64. It contains a numpy > array

Re: [Numpy-discussion] cPickle.load says 'invalid signature'

2011-05-18 Thread Pauli Virtanen
Wed, 18 May 2011 07:39:18 -0400, Neal Becker wrote: > The file is pickle saved on i386 and loaded on x86_64. It contains a > numpy array (amoungst other things). > > On load it says: > > RuntimeError: invalid signature There's no such message in Numpy source code, so the error does not come dir

[Numpy-discussion] cPickle.load says 'invalid signature'

2011-05-18 Thread Neal Becker
The file is pickle saved on i386 and loaded on x86_64. It contains a numpy array (amoungst other things). On load it says: RuntimeError: invalid signature Is binary format not portable? ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org h