#10261 NORM 10.1.2: sugar-control-panel -c registration fails with error

Zarro Boogs per Child bugtracker at laptop.org
Thu Jul 29 19:40:35 EDT 2010


#10261: sugar-control-panel -c registration fails with error
-------------------------+--------------------------------------------------
 Reporter:  Quozl        |                 Owner:  dsd                                
     Type:  defect       |                Status:  new                                
 Priority:  normal       |             Milestone:  10.1.2                             
Component:  sugar        |               Version:  1.5 Software Build os206 aka 10.1.1
 Keywords:  os302 os207  |           Next_action:  diagnose                           
 Verified:  0            |   Deployment_affected:                                     
Blockedby:               |              Blocking:                                     
-------------------------+--------------------------------------------------
 Per [http://bugs.sugarlabs.org/ticket/362 SL 362] and some prior tickets
 here (#see references), the correct way to clear the registration of a
 laptop with a school server is a shell command in Terminal:

 {{{
 sugar-control-panel -c registration
 }}}

 However this fails in 10.1.1 and current builds because the network model
 source cannot be imported properly by the control panel section module:

 {{{
 [olpc at xo-a7-37-ad ~]$ sugar-control-panel -g registration
 /usr/lib/python2.6/site-packages/sugar/util.py:25: DeprecationWarning: the
 sha module is deprecated; use the hashlib module instead
   import sha
 ERROR:root:Exception while loading extension:
 Traceback (most recent call last):
   File "/usr/lib/python2.6/site-packages/jarabe/controlpanel/cmd.py", line
 66, in load_modules
     globals(), locals(), ['model'])
   File
 "/usr/share/sugar/extensions/cpsection/modemconfiguration/model.py", line
 19, in <module>
     from jarabe.model.network import GSM_USERNAME_PATH, GSM_PASSWORD_PATH,
 \
   File "/usr/lib/python2.6/site-packages/jarabe/model/network.py", line
 279, in <module>
     class NMSettings(dbus.service.Object):
 AttributeError: 'module' object has no attribute 'service'

 ERROR:root:Exception while loading extension:
 Traceback (most recent call last):
   File "/usr/lib/python2.6/site-packages/jarabe/controlpanel/cmd.py", line
 66, in load_modules
     globals(), locals(), ['model'])
   File "/usr/share/sugar/extensions/cpsection/network/model.py", line 21,
 in <module>
     from jarabe.model import network
   File "/usr/lib/python2.6/site-packages/jarabe/model/network.py", line
 279, in <module>
     class NMSettings(dbus.service.Object):
 AttributeError: 'module' object has no attribute 'service'

 sugar-control-panel: key=registration not an available option
 [olpc at xo-a7-37-ad ~]$
 }}}

 Related tickets: #9725 (do the registration as part of clearing of network
 history - denied), #7765 (reset registration for school server; long term
 fix), #7764 (reset Registration with school servers - short term
 solution), #6857 (unable to register a laptop after trying on the wrong
 network), #5380 (control Panel should include Registration).

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


More information about the Bugs mailing list