Ticket #10261 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

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).

Change History

Changed 4 years ago by dsd

easy fix should be: import dbus.service

Changed 4 years ago by Quozl

yes, is a fix.

Changed 4 years ago by Quozl

  • next_action changed from diagnose to package

dsd, please use your procedural expertise to push for review of SL 2106 and backport the fix to 0.84, thanks.

it tests out fine for me here on xo-1.5 os206.

Changed 4 years ago by dsd

  • next_action changed from package to test in build

sugar-0.84.20 queued for next build

Changed 4 years ago by dsd

  • status changed from new to closed
  • resolution set to fixed

confirmed fixed in 10.1.2 build 303 for XO-1.5

Changed 4 years ago by Quozl

  • next_action changed from test in build to no action
  • version changed from 1.5 Software Build os206 aka 10.1.1 to 1.5 Software Build os64 aka 10.1.0

Verified fixed in 10.1.2 build os303 on XO-1.5. Fix ticket version affected and action required.

Changed 4 years ago by sridhar

  • cc sridhar added
Note: See TracTickets for help on using tickets.