indicator-weather on Quantal throws exception when adding location
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Indicator-weather |
New
|
Undecided
|
Unassigned |
Bug Description
I just installed the weather indicator and tried to set up a location. The location I've tried to set up was "Cambridge, England," but other locations didn't work either. When I set up a location, the GUI allows me to proceed through the entire wizard process. After I press the "Apply" button, nothing happens in the GUI, but I get a stack trace on the CLI:
/usr/lib/
import gobject._gobject
Traceback (most recent call last):
File "/usr/bin/
(location_code, location_details) = self.location.
File "/usr/bin/
return (self.location_
AttributeError: Location instance has no attribute 'location_code'
Python 2.7.3
indicator-weather version: 12.07.30-0ubuntu1
description: | updated |
I just found the debug log for this app. Here is a snippet from the log immediately after I search for, and then select, "Cambridge, England":
[MainThread] 2013-01-17 09:03:49,583 - DEBUG - Assistant: looking for location 'Cambridge, England' api.geonames. org/getJSON? geonameId= 2653941& username= indicatorweathe r where.yahooapis .com/geocode? flags=J& location= Cambridge% 2C+England% 2C+United+ Kingdom& appid=mOawLd4s
[MainThread] 2013-01-17 09:03:52,179 - DEBUG - Assistant: moved to page 0
[MainThread] 2013-01-17 09:03:52,179 - DEBUG - Assistant: Page 0: got location with code 2653941
[MainThread] 2013-01-17 09:03:52,180 - DEBUG - Location: Get GeoNames location details, url http://
[MainThread] 2013-01-17 09:03:52,446 - DEBUG - Location: Get Yahoo WOEID, url http://
[MainThread] 2013-01-17 09:03:52,817 - ERROR - Location: Yahoo woeid return error. Full response:
{'@lang': 'en-US', 'ResultSet': {'@lang': 'en-US', 'Error': '0', 'Locale': 'en-US', 'Found': '1', 'ErrorMessage': 'No error', '@version': '2.0', 'Quality': '40', 'Results': [{'neighborhood': '', 'house': '', 'county': 'Cambridgeshire', 'street': '', 'radius': '7200', 'quality': '40', 'unit': '', 'city': 'Cambridge', 'countrycode': 'GB', 'woeid': '14979', 'xstreet': '', 'line4': 'United Kingdom', 'line3': '', 'line2': 'Cambridge', 'line1': '', 'state': 'England', 'latitude': '52.209801', 'hash': '', 'unittype': '', 'offsetlat': '52.209801', 'statecode': 'ENG', 'postal': '', 'name': '', 'uzip': 'CB3 9', 'country': 'United Kingdom', 'longitude': '0.11147', 'countycode': 'CAM', 'offsetlon': '0.11147', 'woetype': '7'}]}}
[MainThread] 2013-01-17 09:03:52,817 - ERROR - Assistant: Page 0: City with code Cambridge, England, United Kingdom was NOT found
So it seems that the Yahoo! service API has changed, and this app is expecting a key that isn't being returned anymore?