pickle problem - frexp() out of range

Irmen de Jong irmen.NOSPAM at xs4all.nl
Mon Feb 26 18:20:47 EST 2007


ahaldar wrote:
> Hi:
> 
> I have some large data structure objects in memory, and when I attempt
> to pickle them, I get the following error:
> 
> SystemError: frexp() out of range
> 
> Are there some objects that are just too large to serialize, and if
> so, is there an easy workaround without breaking up the object and
> reconstructing it during deserialization?
> 
> Here's the code I use to pickle the object:
> 
> f = open(dir+file, "w+b")
> pickle.dump(structure, f, protocol=2) # throws error
> f.close()
> 
> - abhra
> 

Could it be that your data contains floating point numbers,
where at least one of them is Inf or NaN?
I think these floats cannot be pickled reliably.

--Irmen



More information about the Python-list mailing list