weather applet loses connectivity permanently
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Awn Extras |
Incomplete
|
Low
|
onox | ||
awn-extras (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Hi. I'm using AWN from bzr as my panel, and awn-extras from bzr, with libdesktop-agnostic compiled with the flat file backend, on an Acer Aspire One netbook running 32-bit Arch Linux. I take the netbook pretty much everywhere with me, which means I lose my internet connectivity once I am sufficiently far from my house.
Once I lose internet connectivity, the weather applet stops working, permanently. What I mean is that even once I'm reconnected to the internet, the weather applet is still unable to get info. It shows the notification about network connectivity issues every 10 minutes or so. Right clicking and selecting refresh doesn't fix it.
The only way to fix it is by restarting AWN, which is a serious pain due to applications such as pidgin residing in the system tray.
Changed in awn-extras: | |
assignee: | nobody → onox (onox) |
tags: | added: patch |
Same problem with bzr from March 9 2010. Rev 1218. If I hibernate my laptop for more than 30 minutes when it resume the weather applet fails to get its updates. Not sure if it is a "urllib2" problem or weather.py. Also if I have the network disabled in network manager (as a test) when I start AWN or load the applet, same thing, except of course the icon stays as the weather channel logo. I slightly patched weather.py to force it to traceback when any network error happens and this is the traceback.
NetworkException in Weather: error in get_forecast: <urlopen error [Errno -3] Temporary failure in name resolution>
Traceback (most recent call last): python2. 6/site- packages/ awn/extras/ threadqueue. py", line 64, in run avant-window- navigator/ applets/ weather/ weather. py", line 159, in bound_func avant-window- navigator/ applets/ weather/ weather. py", line 188, in bound_func n("error in %s: %s" % (func.__name__, e))
File "/usr/lib/
r = func(*args, **kwargs)
File "/usr/share/
result = func(obj, *args, **kwargs)
File "/usr/share/
raise NetworkExceptio
NetworkException: error in get_forecast: <urlopen error [Errno -3] Temporary failure in name resolution>
The cause is due to the fact that the applet tries to get the update before NetworkManager has completely restored the network connectivity on thaw/resume.
OT of the bug, I have to say what an excellent job on AWN you guys are doing. the 0.4.0 / trunk is a major improvement over something that was already really good.