problem with pickle

Uwe Schmitt uwe at rocksport.de
Fri Nov 16 16:53:10 CET 2001


Hi, I tried to save an object with pickle and load it afterwards.
When I try to load my object I get:

Traceback (most recent call last):
 File "rnetgui.py", line 556, in Load
  obj=pickle.load(fp)
 File "/usr/local/ActivePython-2.1/lib/python2.1/pickle.py", line 947, in load return Unpickler(file).load()
 File "/usr/local/ActivePython-2.1/lib/python2.1/pickle.py", line 567, in load dispatch[key](self)
  File
  "/usr/local/ActivePython-2.1/lib/python2.1/pickle.py",
  line 623, in load_float
  self.append(float(self.readline()[:-1]))
ValueError: invalid literal for float(): 150.0

What happened ?

Yours, Uwe Schmitt

-- 
Dr. Uwe Schmitt                                 Uwe.Schmitt at num.uni-sb.de
Universitaet des Saarlandes                     Angewandte Mathematik
Building 36.1 Room 4.17         PO-Box 151150   D-66041 Saarbruecken
Mobile:0177/6806587    Fax:+49(0)681/302-4435   Office:+49(0)681/302-2468



More information about the Python-list mailing list