[Bugs] #1034 HIGH: Journal Integration

SugarLabs Bugs bugtracker-noreply at sugarlabs.org
Wed Jul 15 04:21:53 EDT 2009


#1034: Journal Integration
----------------------------+-----------------------------------------------
    Reporter:  asaf         |          Owner:  asaf                       
        Type:  enhancement  |         Status:  reopened                   
    Priority:  High         |      Milestone:  Unspecified by Release Team
   Component:  Physics      |        Version:  Unspecified                
    Severity:  Unspecified  |     Resolution:                             
    Keywords:               |   Distribution:  Unspecified                
Status_field:  Assigned     |  
----------------------------+-----------------------------------------------

Comment(by erikos):

 Asaf, yes the traceback above suggests that the world object contains non
 serializable parts. Maybe looking at the pickle code in elements helps.

 {{{
 def pickle_save(self, fn, additional_vars={}):^M
         import cPickle as pickle^M
         self.add.remove_mouseJoint()^M
     ^M
         if not additional_vars and hasattr(self, '_pickle_vars'):^M
             additional_vars=dict((var, getattr(self, var)) for var in
 self._pickle_vars)^M
 ^M
         save_values = [self.world, box2d.pickle_fix(self.world,
 additional_vars, 'save')]^M
 ^M
         try:^M
             pickle.dump(save_values, open(fn, 'wb'))^M
         except Exception, s:^M
             print 'Pickling failed: ', s^M
             return^M
 ^M
         print 'Saved to %s' % fn
 }}}

-- 
Ticket URL: <http://dev.sugarlabs.org/ticket/1034#comment:8>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list