I'm getting some strange errors with unpickling.  I've tried all
combinations of pickle/cPickle and protocol in (0,1,2) and still
getting this apparent random error:

  sqlalchemy.orm.collections:622 __setstate__
    self.attr = getattr(d['owner_state'].obj().__class__,
d['key']).impl
AttributeError: type object 'NoneType' has no attribute 'flights'

When I inspect this frame, I see that:

>>> d['owner_state'].obj
<bound method InstanceState.obj of <sqlalchemy.orm.state.InstanceState
object at 0xa1b5acc>>

So it seems that __setstate__ is not being called for the
InstanceState object.

Any ideas?

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalch...@googlegroups.com.
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.

Reply via email to