weather indicator crash, doesn't show proper icon

Bug #1391728 reported by Mark Rages
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Weather Indicator
New
Undecided
Unassigned

Bug Description

Here's the relevant part of the log, looks to be an error parsing Yahoo! data:

[MainThread] 2014-11-11 20:56:18,089 - DEBUG - Indicator: open About dialog
[MainThread] 2014-11-11 20:56:22,771 - DEBUG - Indicator: closing About dialog
[MainThread] 2014-11-11 21:03:38,357 - DEBUG - Indicator: updateWeather: updating weather for [u'2497409', u'Spearfish']
[Cache] 2014-11-11 21:03:38,358 - DEBUG - Indicator: get_cached_weather: setting previous_condition to None
[Cache] 2014-11-11 21:03:38,359 - DEBUG - Indicator: loading weather from cache for [u'2497409', u'Spearfish']
[Cache] 2014-11-11 21:03:38,359 - DEBUG - Settings: getting cached weather for 2497409
[Cache] 2014-11-11 21:03:38,359 - DEBUG - Settings: can't find value for 2497409
[Fetcher] 2014-11-11 21:03:38,359 - DEBUG - Indicator: getWeather for location 'Spearfish, South Dakota, United States'
[Fetcher] 2014-11-11 21:03:38,360 - DEBUG - Indicator: getWeather: updating weather report
[Fetcher] 2014-11-11 21:03:38,360 - DEBUG - Location: default weather source 'Yahoo' chosen for 'Spearfish'
[MainThread] 2014-11-11 21:03:38,360 - DEBUG - Indicator: show_cached_weather: no cached data exists for 2497409
[Fetcher] 2014-11-11 21:03:38,767 - DEBUG - Weather: checking Yahoo report for weather condition and icon name
[Fetcher] 2014-11-11 21:03:38,767 - DEBUG - Weather: current condition: '14', '('weather-snow', 'weather-snow', False, u'Light snow showers')'
[Fetcher] 2014-11-11 21:03:38,767 - DEBUG - Weather: Get local datetime, url http://www.earthtools.org/timezone-1.1/44.49082/-103.85937
[Fetcher] 2014-11-11 21:03:39,186 - DEBUG - Weather: Get sunrise/sunset data, url http://api.met.no/weatherapi/sunrise/1.0/?lat=44.49082;lon=-103.85937;date=2014-11-11
[Fetcher] 2014-11-11 21:03:39,556 - DEBUG - Weather: got localtime 2014-11-11 21:03:40, sunrise '2014-11-11 06:46:29-07:00', sunset '2014-11-11 16:31:58-07:00', night = True
[MainThread] 2014-11-11 21:03:39,557 - DEBUG - Weather: night, show 'weather-snow' icon
[MainThread] 2014-11-11 21:03:39,557 - DEBUG - Weather: got condition 'Light snow showers'
[MainThread] 2014-11-11 21:03:39,557 - DEBUG - Weather: night, show 'weather-snow' icon
[MainThread] 2014-11-11 21:03:39,557 - DEBUG - Indicator: updateWeather: got condition 'Light snow showers', icon 'weather-snow'
[MainThread] 2014-11-11 21:03:39,558 - ERROR - Could not parse '' as wind speed.
[MainThread] 2014-11-11 21:03:39,558 - DEBUG - Indicator: fill in menu with params: citycode='2497409', temp='Temperature: 0 °F', humid='Humidity: 66%', wind='Wind: N/A ', sunrise='Sunrise: 06:46:29 AM', sunset='Sunset: 04:31:58 PM', puretemp=0 °F
[MainThread] 2014-11-11 21:03:39,558 - DEBUG - show_new_weather_data: checking menu
[MainThread] 2014-11-11 21:03:39,559 - DEBUG - show_new_weather_data: calling city_show.set_label('Spearfish')
[MainThread] 2014-11-11 21:03:39,559 - DEBUG - show_new_weather_data: calling cond_show.set_label('Light snow showers')
[MainThread] 2014-11-11 21:03:39,559 - DEBUG - show_new_weather_data: calling temp_show.set_label('Temperature: 0 °F')
[MainThread] 2014-11-11 21:03:39,560 - DEBUG - Weather: get_wind_chill: weather_datasource is Yahoo, checking temp and humidity
[MainThread] 2014-11-11 21:03:39,560 - ERROR - could not convert string to float:
[MainThread] 2014-11-11 21:03:39,560 - DEBUG - Traceback (most recent call last):
  File "/usr/bin/indicator-weather", line 2145, in show_new_weather_data
    _relative_label = weather.get_relative_label()
  File "/usr/bin/indicator-weather", line 1144, in get_relative_label
    return "%s: %s" % (_("Feels Like"), self.get_relative_string())
  File "/usr/bin/indicator-weather", line 1134, in get_relative_string
    (_value, _unit) = self.get_wind_chill()
  File "/usr/bin/indicator-weather", line 1306, in get_wind_chill
    V = float(self.__report['wind']['speed'])
ValueError: could not convert string to float:

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.