[Bugs] #623 UNSP: traceback in jarabe/model/network.py getting timestamp
SugarLabs Bugs
bugtracker-noreply at sugarlabs.org
Wed Mar 25 01:47:43 EDT 2009
#623: traceback in jarabe/model/network.py getting timestamp
------------------------------------------+---------------------------------
Reporter: skierpage | Owner: tomeu
Type: defect | Status: new
Priority: Unspecified by Maintainer | Milestone: Unspecified by Release Team
Component: sugar | Version: 0.84.x
Severity: Major | Keywords:
Distribution: Fedora | Status_field: Unconfirmed
------------------------------------------+---------------------------------
I booted recent Rawhide-XO on my XO off SD card. After logging in to
Sugar, after the cursor got chunky but before the Home view appeared, the
screen went black and the Gnome spinning cursor returned.
I looked in Sugar's shell.log and saw:
{{{
Traceback (most recent call last):
File "/usr/bin/sugar-session", line 173, in <module>
main()
File "/usr/bin/sugar-session", line 157, in main
home_window = HomeWindow()
File "/usr/lib/python2.6/site-packages/jarabe/desktop/homewindow.py",
line 57, in __init__
self._mesh_box = MeshBox()
File "/usr/lib/python2.6/site-packages/jarabe/desktop/meshbox.py", line
755, in __init__
netmgr_observer.listen()
File "/usr/lib/python2.6/site-packages/jarabe/desktop/meshbox.py", line
654, in listen
settings = network.get_settings()
File "/usr/lib/python2.6/site-packages/jarabe/model/network.py", line
312, in get_settings
load_connections()
File "/usr/lib/python2.6/site-packages/jarabe/model/network.py", line
365, in load_connections
timestamp = int(config.get(section, 'timestamp'))
ValueError: invalid literal for int() with base 10: 'None'
}}}
I guess Python won't turn 'None' into an int, so the code needs to handle
this. I looked in older shell.log files and it happened another time. I
don't know whether this is the reason my Sugar session didn't start. If
it is, it seems all this networking code should be in a try-catch block --
a network failure shouldn't stop the Sugar desktop from launching.
--
Ticket URL: <http://dev.sugarlabs.org/ticket/623>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system
More information about the Bugs
mailing list