durusmail: durus-users: Can't pickle
Can't pickle
2005-02-06
Can't pickle
Michael Watkins
2005-02-06
Greetings - after some late night refactoring I've managed to break
something that was working. I suppose I should no better than to code in
the wee hours.

----
Traceback (most recent call last):
  File "migrate.py", line 366, in ?
    db.get_connection().commit()
  File "/usr/local/lib/python2.4/site-packages/durus/connection.py", line
227, in commit
    data, refs = writer.get_state(obj)
  File "/usr/local/lib/python2.4/site-packages/durus/serialize.py", line
108, in get_state
    self.pickler.dump(obj.__getstate__())
cPickle.PicklingError: Can't pickle : attribute
lookup __builtin__.instancemethod failed
--------

My call for advice is not so much to uncover what I have done, but to
learn where you would suggest I start looking to find the issue.

Cheers
Mike

reply