my-weather-indicator crashes on startup after changing weather source

Bug #1252113 reported by David Reid
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
my-weather-indicator
Fix Released
Critical
Lorenzo Carbonell

Bug Description

My-weather-indicator crashes on startup.

Ubuntu 13.04

It was running great. I changed the source of weather information from yahoo to the open source and I changed the refresh time from 1 hour to 15 minutes.

The application immediately crashed.

It now crashes as soon as I execute the command. I can't change the preference because of this.

I did an uninstall and then re-installed. I have the same problem.

This is the information reported.

Any help appreciated.

Thank you.

David

<gettext.GNUTranslations object at 0x7f3465ac1e50>
No LSB modules are available.
#####################################################
Distributor ID: Ubuntu
Description: Ubuntu 13.04
Release: 13.04
Codename: raring
Version: x86_64
#####################################################

My-Weather-Indicator version: 0.6.5
#####################################################
/home/david/.config/my-weather-indicator/my-weather-indicator.conf True
http://api.openweathermap.org/data/2.5/find?lat=42.02602&lon=-88.06554&cnt=1
4910713
Requesting timezone
OWMWeatherService Current Weather url:http://api.openweathermap.org/data/2.5/weather?lat=42.02602&lon=-88.06554
Traceback (most recent call last):
  File "./my-weather-indicator", line 45, in <module>
    mwi=MWI()
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/myweatherindicator.py", line 135, in __init__
    self.load_preferences()
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/myweatherindicator.py", line 362, in load_preferences
    self.work()
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/myweatherindicator.py", line 192, in work
    self.set_menu()
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/myweatherindicator.py", line 470, in set_menu
    weather = self.weatherservice1.get_weather()
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/wopenweathermapapi.py", line 172, in get_weather
    if parsed_json['weather'][0]['id'] not in CONDITION.keys():
KeyError: 'weather'

Changed in my-weather-indicator:
assignee: nobody → Lorenzo Carbonell (lorenzo-carbonell)
importance: Undecided → Critical
status: New → Fix Released
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.