ValueError: insecure string pickle ?

Steve Holden steve at
Tue Sep 11 20:50:42 CEST 2007

robert wrote:
> cPickle.loads  raised "ValueError: insecure string pickle".
> The error is from a log file and I cannot reproduce it (quickly). 
> What can be the cause for that error?
> Robert

Make sure that your pickle files are being read and written in binary 
mode ("rb" and "wb" as the second argument to open()).

Steve Holden        +1 571 484 6266   +1 800 494 3119
Holden Web LLC/Ltd 
Skype: holdenweb
--------------- Asciimercial ------------------
Get on the web: Blog, lens and tag the Internet
Many services currently offer free registration
----------- Thank You for Reading -------------

More information about the Python-list mailing list