Ticket #10261 (closed defect: fixed)
sugar-control-panel -c registration fails with error
| Reported by: | Quozl | Owned by: | dsd |
|---|---|---|---|
| Priority: | normal | Milestone: | 10.1.2 |
| Component: | sugar | Version: | 1.5 Software Build os64 aka 10.1.0 |
| Keywords: | os302 os207 | Cc: | sridhar |
| Action Needed: | no action | Verified: | no |
| Deployments affected: | Blocked By: | ||
| Blocking: |
Description
Per 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@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@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).


