My-weather-indicator crashes on ubuntu 13.10

Bug #1252092 reported by Michiel Janssens
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
my-weather-indicator
Fix Released
Critical
Lorenzo Carbonell

Bug Description

Sometime it crashes just after starting up Ubuntu, just after login.

Starting my-weather-indicator form terminal gives the following trace:

<gettext.GNUTranslations object at 0x7fe51b37c490>
No LSB modules are available.
#####################################################
Distributor ID: Ubuntu
Description: Ubuntu 13.10
Release: 13.10
Codename: saucy
Version: x86_64
#####################################################

My-Weather-Indicator version: 0.6.5
#####################################################
/home/michiel/.config/my-weather-indicator/my-weather-indicator.conf True
http://api.openweathermap.org/data/2.5/find?lat=51.44293884559608&lon=5.470390719604552&cnt=1
2756253
http://api.openweathermap.org/data/2.5/find?lat=50.844759555258904&lon=5.702820223998988&cnt=1
2751283
Requesting timezone
OWMWeatherService Current Weather url:http://api.openweathermap.org/data/2.5/weather?lat=51.44293884559608&lon=5.470390719604552
############################################################
07:57 23:13 16:49
############################################################
{'precip_1hr': None, 'moon_phase': 'Full Moon', 'condition_icon_light': 'mwil-fog-night.png', 'UV': None, 'windchill': 0.0, 'solarradiation': None, 'condition_icon_dark': 'mwid-fog-night.png', 'sunset_time': '16:49', 'moon_icon': 'mwi-moon14.png', 'sunrise': '07:57', 'dusk': '17:25', 'visibility': None, 'heat_index': 0, 'rawOffset': 1.0, 'dusk_time': '17:25', 'condition_image': 'mwig-fog-night.png', 'temperature': '6 °C', 'sunrise_time_utc': '06:57', 'pressure': '1019 millibar', 'precip_today': None, 'feels_like': '6 °C', 'cloudiness': '90 %', 'wind_condition': '3 km/h (EBN)', 'dew_point': '5 °C', 'sunrise_time': '07:57', 'dawn_time': '07:20', 'sunset': '16:49', 'wind_icon': 'mwi-wind07.png', 'sunset_time_utc': '15:49', 'humidity': '93 %', 'condition': 'mist', 'condition_text': 'Mist', 'dawn': '07:20'}
OWMWeatherService Forecast url:http://api.openweathermap.org/data/2.5/forecast/daily?lat=51.44293884559608&lon=5.470390719604552
########################################################
{'city': {'id': 2756253, 'population': 0, 'name': 'Eindhoven', 'coord': {'lat': 51.44083, 'lon': 5.47778}, 'country': 'NL'}, 'message': 0.0916, 'cod': '200', 'cnt': 7, 'list': [{'pressure': 1028.35, 'weather': [{'id': 804, 'main': 'Clouds', 'icon': '04n', 'description': 'overcast clouds'}], 'humidity': 99, 'temp': {'min': 276.26, 'day': 277.12, 'max': 277.12, 'night': 276.26, 'eve': 277.12, 'morn': 277.12}, 'dt': 1384686000, 'deg': 89, 'clouds': 92, 'speed': 2.11}, {'pressure': 1019.38, 'weather': [{'id': 500, 'main': 'Rain', 'icon': '10d', 'description': 'light rain'}], 'humidity': 100, 'temp': {'min': 275.49, 'day': 278.31, 'max': 278.31, 'night': 277.12, 'eve': 276.75, 'morn': 275.49}, 'dt': 1384772400, 'rain': 0.5, 'deg': 217, 'clouds': 68, 'speed': 3.91}, {'pressure': 1016.64, 'weather': [{'id': 501, 'main': 'Rain', 'icon': '10d', 'description': 'moderate rain'}], 'humidity': 98, 'temp': {'min': 275.34, 'day': 280.32, 'max': 280.32, 'night': 275.34, 'eve': 278.04, 'morn': 277.81}, 'dt': 1384858800, 'rain': 5, 'deg': 325, 'clouds': 92, 'speed': 5}, {'pressure': 1008, 'weather': [{'id': 501, 'main': 'Rain', 'icon': '10d', 'description': 'moderate rain'}], 'humidity': 97, 'temp': {'min': 275.55, 'day': 277.2, 'max': 277.24, 'night': 275.55, 'eve': 277.15, 'morn': 276.06}, 'dt': 1384945200, 'rain': 7, 'deg': 204, 'clouds': 76, 'speed': 9.15}, {'pressure': 1005.59, 'weather': [{'id': 601, 'main': 'Snow', 'icon': '13d', 'description': 'snow'}], 'humidity': 100, 'temp': {'min': 272.96, 'day': 277.23, 'max': 277.23, 'night': 273.82, 'eve': 273.25, 'morn': 273.18}, 'dt': 1385031600, 'deg': 194, 'snow': 3.5, 'clouds': 0, 'speed': 2.06}, {'pressure': 1008.65, 'weather': [{'id': 600, 'main': 'Snow', 'icon': '13d', 'description': 'light snow'}], 'humidity': 100, 'temp': {'min': 274.31, 'day': 275.85, 'max': 277.24, 'night': 277.24, 'eve': 276.23, 'morn': 274.31}, 'dt': 1385118000, 'rain': 3, 'deg': 29, 'snow': 1.5, 'clouds': 88, 'speed': 1.95}, {'pressure': 1018.64, 'weather': [{'id': 800, 'main': 'Clear', 'icon': '01d', 'description': 'sky is clear'}], 'humidity': 0, 'temp': {'min': 274.41, 'day': 277.52, 'max': 277.52, 'night': 276.08, 'eve': 276.92, 'morn': 274.41}, 'dt': 1385204400, 'rain': 0.66, 'deg': 42, 'snow': 0.01, 'clouds': 76, 'speed': 5.77}]}
########################################################
0
1
2
3
4
5
6
Requesting timezone
OWMWeatherService Current Weather url:http://api.openweathermap.org/data/2.5/weather?lat=50.844759555258904&lon=5.702820223998988
Traceback (most recent call last):
  File "/opt/extras.ubuntu.com/my-weather-indicator/bin/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 197, in work
    self.set_menu2()
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/myweatherindicator.py", line 550, in set_menu2
    weather = self.weatherservice2.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'

Revision history for this message
MorrisseyJ (morrissey-james1) wrote :

Possibly related: crash seems to occur if there is no internet connection.

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.