URL: <http://gna.org/bugs/?12437> Summary: Failure of state.save() after running state.load(). Project: relax Submitted by: bugman Submitted on: Sunday 10/12/2008 at 10:10 Category: relax's source code Severity: 2 - Minor Priority: 3 - Low Status: None Privacy: Public Assigned to: bugman Originator Name: Originator Email: Open/Closed: Open Discussion Lock: Any Release: 1.3.2 Operating System: All systems _______________________________________________________ Details: If the program state is saved, loaded, and then saved again, the following error occurs: relax> pipe.create(pipe_name='test', pipe_type='mf') relax> state.save(state='/home/edward/tmp/tmpxnkhBk', dir_name=None, force=True, compress_type=1) Opening the file '/home/edward/tmp/tmpxnkhBk.bz2' for writing. relax> state.load(state='/home/edward/tmp/tmpxnkhBk', dir_name=None) Opening the file '/home/edward/tmp/tmpxnkhBk.bz2' for reading. relax> state.save(state='/home/edward/tmp/tmpxnkhBk', dir_name=None, force=True, compress_type=1) Opening the file '/home/edward/tmp/tmpxnkhBk.bz2' for writing. Traceback (most recent call last): File "/data/relax/relax-1.3/test_suite/system_tests/state.py", line 69, in test_state self.relax.interpreter._State.save(self.tmpfile, force=True) File "/data/relax/relax-1.3/prompt/state.py", line 181, in save save_state(state=state, dir_name=dir_name, force=force, compress_type=compress_type) File "/data/relax/relax-1.3/generic_fns/state.py", line 102, in save_state dump(ds, file, 1) File "/usr/lib64/python2.5/copy_reg.py", line 69, in _reduce_ex raise TypeError, "can't pickle %s objects" % base.__name__ TypeError: can't pickle instancemethod objects This has been caught in a new system test. _______________________________________________________ Reply to this item at: <http://gna.org/bugs/?12437> _______________________________________________ Message sent via/by Gna! http://gna.org/