cPickle -> invalid signature

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Tue May 17 08:29:01 EDT 2011


En Tue, 17 May 2011 08:41:41 -0300, Neal Becker <ndbecker2 at 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.

-- 
Gabriel Genellina




More information about the Python-list mailing list