Well, I don't think this is the same IOError, but when resuming from a
suspend during which the 15 minute update period elapses, indicator-
weather produces a URLError because the network isn't instantaneously
reconnected on resume (or, at least I guess that's the cause...):
Exception in thread Fetcher:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 505, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/bin/indicator-weather", line 1148, in get_new_weather_data
weather = self.get_weather()
File "/usr/bin/indicator-weather", line 1210, in get_weather
self.current_location.update_weather_data(self.weather_source)
File "/usr/bin/indicator-weather", line 329, in update_weather_data
self.weather = Weather(self.location_details['yahoo id'], source,
self.metric_system, self.wind_unit, self.location_details['latitude'],
self.location_details['longitude'])
File "/usr/bin/indicator-weather", line 518, in __init__
self.__report = pywapi.get_weather_from_yahoo (location_id, 'imperial')
File "/usr/lib/pymodules/python2.7/pywapi.py", line 192, in
get_weather_from_yahoo
handler = urllib2.urlopen(url)
File "/usr/lib/python2.7/urllib2.py", line 126, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 391, in open
response = self._open(req, data)
File "/usr/lib/python2.7/urllib2.py", line 409, in _open
'_open', req)
File "/usr/lib/python2.7/urllib2.py", line 369, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 1185, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/usr/lib/python2.7/urllib2.py", line 1160, in do_open
raise URLError(err)
URLError: <urlopen error [Errno -2] Name or service not known>
** Visibility changed to: Public
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/759757
Title:
indicator-weather crashed with IOError: [Errno 5] Input/output error
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs