Crashes after I configure

Bug #1327804 reported by Joeman1
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
my-weather-indicator
Fix Released
High
Lorenzo Carbonell

Bug Description

Hello,

I tried to look at the current bugs to see if this fell into any of them, and I though I found one, but it doesnt appear to be relevant to the version I am using.

I can launch my-weather-indicator and the configuration screen comes up fine. After I configure the app, and click ok, it simply disappears and does not run.

After this, I cannot launch it again unless I delete the config file in .config/my-weather-indicator.

Here is the error from the command line:

 ########################################################
0
1
2
3
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 364, 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 497, in set_menu
    weather = self.weatherservice1.get_weather()
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/wopenweathermapapi.py", line 235, in get_weather
    velocity = data['speed']
KeyError: 'speed'

########################################################

I am using a fully updated version of Ubuntu 14.04 64bit and just added this PPA... The version of my-weather-indicator I am using is:

ii my-weather-indicator 0.6.7-0extras14.04.5

Please let me know if you need more information.

Thanks!
Joe

Revision history for this message
Bernmeister (thebernmeister) wrote :

Not so much "crash after configure" for me. I've not touched the configuration since install of Ubuntu 14.04 64 bit back in April 2014. I simply turned on the computer and the indicator just didn't come up. Running via the terminal I see the same dump as that above.

I also removed the .conf file, restarted, the preferences dialog comes up, I hit save, and get another dump of different error messages, finishing with the dump above.

Revision history for this message
John Felso (felso) wrote :

You can clear the configuration with the following command:

rm ~/.config/my-weather-indicator/my-weather-indicator.conf

After attempting to reconfigure several times, I was able to get it working by changing the weather service from Open Weather Map to Yahoo.

HTH

Revision history for this message
Joeman1 (jgiles) wrote :

Hi John,

Thanks for the information!!!

I will try this when I get home from work.

Joe

Revision history for this message
Joeman1 (jgiles) wrote :

Hi Bernmeister,

Yeah, I noticed it too on an already existing setup also. Try John's fix to see if that works - for now.

Maybe the author/developer can chime in and let us know when its going to be fixed for good.

Thanks!
Joe

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