ValueError: insecure string pickle ?

R

robert

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
 
P

Peter Otten

Am Tue, 11 Sep 2007 17:19:36 +0200 schrieb robert:
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?

A corrupted pickle. The error is raised if a string in the dump does not
both start and end with " or '. One way to provoke the error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: insecure string pickle

Peter
 
S

Steve Holden

robert said:
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()).

regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://del.icio.us/steve.holden
--------------- Asciimercial ------------------
Get on the web: Blog, lens and tag the Internet
Many services currently offer free registration
----------- Thank You for Reading -------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top