#10367 NORM 10.1.3: [CL1B] Moon activity cannot open.

Zarro Boogs per Child bugtracker at laptop.org
Mon Oct 25 10:38:04 EDT 2010


#10367: [CL1B] Moon activity cannot open.
--------------------------------+-------------------------------------------
           Reporter:  Andy Pei  |       Owner:  dsd                                    
               Type:  defect    |      Status:  new                                    
           Priority:  normal    |   Milestone:  10.1.3                                 
          Component:  sugar     |     Version:  1.5/1.0 Software Build os852 aka 10.1.2
         Resolution:            |    Keywords:                                         
        Next_action:  diagnose  |    Verified:  0                                      
Deployment_affected:            |   Blockedby:                                         
           Blocking:            |  
--------------------------------+-------------------------------------------
Changes (by erikos):

 * cc: garycmartin (added)


Comment:

 From the zip file I found the following:

 {{{
 /usr/lib/python2.6/site-packages/sugar/util.py:25: DeprecationWarning: the
 sha module is deprecated; use the hashlib module instead
   import sha
 944009693.132356 WARNING root: No gtk.AccelGroup in the top level window.
 944009693.141592 WARNING root: No gtk.AccelGroup in the top level window.
 Journal resume.
 Traceback (most recent call last):
   File "/usr/bin/sugar-activity", line 21, in <module>
     main.main()
   File "/usr/lib/python2.6/site-packages/sugar/activity/main.py", line
 147, in main
     create_activity_instance(activity_constructor, activity_handle)
   File "/usr/lib/python2.6/site-packages/sugar/activity/main.py", line 35,
 in create_activity_instance
     activity = constructor(handle)
   File "/home/olpc/Activities/Moon.activity/moon.py", line 169, in
 __init__
     self.update_text_information_view()
   File "/home/olpc/Activities/Moon.activity/moon.py", line 255, in
 update_text_information_view
     self.data_model.update_moon_calculations(time.time())
   File "/home/olpc/Activities/Moon.activity/moon.py", line 474, in
 update_moon_calculations
     last_new_moon_sec = self.last_new_moon_sec_at_time(the_date)
   File "/home/olpc/Activities/Moon.activity/moon.py", line 618, in
 last_new_moon_sec_at_time
     return now - last
 UnboundLocalError: local variable 'last' referenced before assignment
 }}}

-- 
Ticket URL: <http://dev.laptop.org/ticket/10367#comment:3>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system


More information about the Bugs mailing list