Problems with pickler in comination with pygnome/pygtk
Peter Mueller
pmueller at decrc.abb.de
Mon Jun 5 07:33:26 EDT 2000
Hi,
I use the pickler to store the current object state within a small
cashbook application. With Redhat 6.1 everything works fine. After
upgrading to redhat 6.2 (python has the same version) I get the
following error message when the pygnome/pygtk modules are included in
my application:
>python cb.py
Traceback (innermost last):
File "cb.py", line 414, in ?
cb_obj = cashbook.load("test1", cb_obj)
File "cashbook.py", line 27, in load
cb = p.load()
File "/usr/lib/python1.5/pickle.py", line 495, in load
dispatch[key](self)
File "/usr/lib/python1.5/pickle.py", line 551, in load_float
self.append(string.atof(self.readline()[:-1]))
ValueError: invalid literal for atof(): 5000.0
The application code and the pickeled object are exacly the same for
Redhat6.1/6.2
And I can't leave out the pygnome stuff, because the app's gui is built
upon this libs.
Does anyone have an idea?
Peter
More information about the Python-list
mailing list