Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #5636

Re: cPickle -> invalid signature

From "Gabriel Genellina" <gagsl-py2@yahoo.com.ar>
Subject Re: cPickle -> invalid signature
Date 2011-05-17 21:47 -0300
References <iqtmtl$77g$1@dough.gmane.org> <op.vvmkynldx6zn5v@gabriel.sleipnir-bsas> <iqueld$tnu$1@dough.gmane.org>
Newsgroups comp.lang.python
Message-ID <mailman.1732.1305680109.9059.python-list@python.org> (permalink)

Show all headers | View raw


En Tue, 17 May 2011 15:26:53 -0300, Neal Becker <ndbecker2@gmail.com>
escribió:

> Gabriel Genellina wrote:
>
>> En Tue, 17 May 2011 08:41:41 -0300, Neal Becker <ndbecker2@gmail.com>
>> escribió:
>>
>>> What does it mean when cPickle.load says:
>>> RuntimeError: invalid signature
>>>
>>> Is binary format not portable?
>>
>> Are you sure that's the actual error message?
>> I cannot find such message anywhere in the sources.
>> The pickle format is quite portable, even cross-version. As a generic
>> answer, make sure you open the file in binary mode, both when writing  
>> and
>> reading.
>>
>
> Yes, that's the message.
>
> Part of what is pickled is a numpy array.  I am writing on a 32-bit  
> linux system
> and reading on a 64-bit system.  Reading on the 64-bit system is no  
> problem.
>
> Maybe the message comes from numpy's unpickling?

Maybe, at least 'invalid signature' makes sense in Numpy. In that case, a
better place to ask would be a numpy specific list, see
http://www.scipy.org/Mailing_Lists


-- 
Gabriel Genellina

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: cPickle -> invalid signature "Gabriel Genellina" <gagsl-py2@yahoo.com.ar> - 2011-05-17 21:47 -0300

csiph-web