[Bugs] #3301 UNSP: Sugar doesn't start up if ~/.sugar/default/nm/connections.cfg was written by previous version
Sugar Labs Bugs
bugtracker-noreply at sugarlabs.org
Tue Jan 24 06:22:38 EST 2012
#3301: Sugar doesn't start up if ~/.sugar/default/nm/connections.cfg was written
by previous version
------------------------------------------+---------------------------------
Reporter: sascha_silbe | Owner: m_anish
Type: defect | Status: new
Priority: Unspecified by Maintainer | Milestone: Unspecified by Release Team
Component: Dextrose | Version: Git as of bugdate
Severity: Blocker | Keywords:
Distribution: | Status_field: New
------------------------------------------+---------------------------------
When updating from a previous version of Sugar, Sugar will fail to start
up at all if {{{~/.sugar/default/nm/connections.cfg}}} contains any
network:
{{{
Traceback (most recent call last):
File "/home/sascha.silbe/sugar-jhbuild/install/bin/sugar-session", line
329, in <module>
main()
File "/home/sascha.silbe/sugar-jhbuild/install/bin/sugar-session", line
305, in main
home_window = homewindow.get_instance()
File "/home/sascha.silbe/sugar-jhbuild/install/lib/python2.6/site-
packages/jarabe/desktop/homewindow.py", line 244, in get_instance
_instance = HomeWindow()
File "/home/sascha.silbe/sugar-jhbuild/install/lib/python2.6/site-
packages/jarabe/desktop/homewindow.py", line 79, in __init__
self._mesh_box = MeshBox()
File "/home/sascha.silbe/sugar-jhbuild/install/lib/python2.6/site-
packages/jarabe/desktop/meshbox.py", line 460, in __init__
netmgr_observer.listen()
File "/home/sascha.silbe/sugar-jhbuild/install/lib/python2.6/site-
packages/jarabe/desktop/meshbox.py", line 323, in listen
settings = network.get_settings()
File "/home/sascha.silbe/sugar-jhbuild/install/lib/python2.6/site-
packages/jarabe/model/network.py", line 826, in get_settings
load_connections()
File "/home/sascha.silbe/sugar-jhbuild/install/lib/python2.6/site-
packages/jarabe/model/network.py", line 975, in load_connections
load_wifi_connections()
File "/home/sascha.silbe/sugar-jhbuild/install/lib/python2.6/site-
packages/jarabe/model/network.py", line 922, in load_wifi_connections
value = eval(config.get(section, 'proto'))
File "<string>", line 1, in <module>
NameError: name 'rsn' is not defined
}}}
This is because the patch to add support for WPA-Enterprise changed the
configuration syntax without any upgrade path.
Also, because the new syntax is not backwards-compatible, it also makes
testing the Dextrose version of Sugar in sugar-jhbuild cumbersome: as
Sugar 0.94 (using NM 0.8) doesn't work with system settings, the user
(developer) needs to have two different versions of
{{{~/.sugar/default/nm/connections.cfg}}}, switching them whenever they
change between Dextrose and upstream branches.
--
Ticket URL: <http://bugs.sugarlabs.org/ticket/3301>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system
More information about the Bugs
mailing list