My-Weather-Indicator has stopped working after the last update

Bug #1409103 reported by Mikhail Minyaev
This bug report is a duplicate of:  Bug #1539789: Seems broken in 15.04 and 14.04. Edit Remove
60
This bug affects 12 people
Affects Status Importance Assigned to Milestone
my-weather-indicator
New
Undecided
Unassigned

Bug Description

After one of the last updates My-Weather-Indicator has stopped working.
The Weather-Indicator does not start from the ClassicMenu Indicator or Dash.
I have tried reinstalling it and installing python3, however all of these have failed.
From the command line I keep getting the following:

... ~$ /opt/extras.ubuntu.com/my-weather-indicator/bin/my-weather-indicator

<gettext.GNUTranslations instance at 0x2b0d248>
#####################################################
LSB Version: core-2.0-amd64:core-2.0-noarch:core-3.0-amd64:core-3.0-noarch:core-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch:core-4.0-amd64:core-4.0-noarch
Distributor ID: Ubuntu
Description: Ubuntu 12.04.5 LTS
Release: 12.04
Codename: precise
Version: x86_64
#####################################################

My-Weather-Indicator version: 0.6.3
#####################################################
('/home/misha/.config/my-weather-indicator/my-weather-indicator.conf', True)
{"sunrise":"2015-01-09 08:55","lng":37.6156,"countryCode":"RU","gmtOffset":4,"rawOffset":3,"sunset":"2015-01-09 16:18","timezoneId":"Europe/Moscow","dstOffset":4,"countryName":"Russia","time":"2015-01-09 22:26","lat":55.7522}
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 134, in __init__
    self.load_preferences()
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/myweatherindicator.py", line 311, in load_preferences
    units = self.units)
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/wopenweathermapapi.py", line 103, in __init__
    self.id = find_city(longitude,latitude)
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/wopenweathermapapi.py", line 91, in find_city
    json_string = read_from_url(URL_FIND_CITY%(latitude,longitude))
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/comun.py", line 179, in read_from_url
    f = urllib2.urlopen(request)
  File "/usr/lib/python2.7/urllib2.py", line 126, in urlopen
    return _opener.open(url, data, timeout)
  File "/usr/lib/python2.7/urllib2.py", line 406, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 519, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 444, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 527, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 512:

Revision history for this message
Nicolai Tassani (nicolai-c) wrote :
Download full text (4.5 KiB)

Same here... In elementary os Luna. i get:
nicolai@nicolai-SATELLITE-L845:~$ /opt/extras.ubuntu.com/my-weather-indicator/bin/my-weather-indicator

(my-weather-indicator:22757): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:73:9: Unknown pseudo-class 'activate'

(my-weather-indicator:22757): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:740:0: Expected a valid selector

(my-weather-indicator:22757): Gtk-WARNING **: Theme parsing error: button.css:145:13: Not using units is deprecated. Assuming 'px'.

(my-weather-indicator:22757): Gtk-WARNING **: Theme parsing error: button.css:145:13: Junk at end of value

(my-weather-indicator:22757): Gtk-WARNING **: Theme parsing error: granite-widgets.css:149:14: Not using units is deprecated. Assuming 'px'.

(my-weather-indicator:22757): Gtk-WARNING **: Theme parsing error: granite-widgets.css:149:16: Not using units is deprecated. Assuming 'px'.

(my-weather-indicator:22757): Gtk-WARNING **: Theme parsing error: granite-widgets.css:149:22: Not using units is deprecated. Assuming 'px'.

(my-weather-indicator:22757): Gtk-WARNING **: Theme parsing error: toolbar.css:112:13: Not using units is deprecated. Assuming 'px'.

(my-weather-indicator:22757): Gtk-WARNING **: Theme parsing error: toolbar.css:112:13: Junk at end of value

(my-weather-indicator:22757): Gtk-WARNING **: Theme parsing error: apps.css:214:20: Not using units is deprecated. Assuming 'px'.

(my-weather-indicator:22757): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:1442:14: Unknown pseudo-class 'button'
<gettext.GNUTranslations instance at 0x2a760e0>
#####################################################
LSB Version: core-2.0-amd64:core-2.0-noarch:core-3.0-amd64:core-3.0-noarch:core-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch:core-4.0-amd64:core-4.0-noarch:cxx-3.0-amd64:cxx-3.0-noarch:cxx-3.1-amd64:cxx-3.1-noarch:cxx-3.2-amd64:cxx-3.2-noarch:cxx-4.0-amd64:cxx-4.0-noarch:desktop-3.1-amd64:desktop-3.1-noarch:desktop-3.2-amd64:desktop-3.2-noarch:desktop-4.0-amd64:desktop-4.0-noarch:graphics-2.0-amd64:graphics-2.0-noarch:graphics-3.0-amd64:graphics-3.0-noarch:graphics-3.1-amd64:graphics-3.1-noarch:graphics-3.2-amd64:graphics-3.2-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-3.2-amd64:printing-3.2-noarch:printing-4.0-amd64:printing-4.0-noarch:qt4-3.1-amd64:qt4-3.1-noarch
Distributor ID: elementary OS
Description: elementary OS Luna
Release: 0.2.1
Codename: luna
Version: x86_64
#####################################################

My-Weather-Indicator version: 0.6.3
#####################################################
('/home/nicolai/.config/my-weather-indicator/my-weather-indicator.conf', True)
{"time":"2015-01-13 21:59","countryName":"Uruguay","sunset":"2015-01-14 21:01","rawOffset":-3,"dstOffset":-3,"countryCode":"UY","gmtOffset":-2,"lng":-56.1708,"sunrise":"2015-01-14 06:46","timezoneId":"America/Montevideo","lat":-34.8581}
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 134, in __init__
    self....

Read more...

Revision history for this message
Bill Miller (wbmilleriii) wrote :

Appears to have stopped working after the kernel update to 3.13.0-44-generic on 12.04LTS. Still works in 14.10 after its kernel update.

Revision history for this message
Bill Miller (wbmilleriii) wrote :

My prior comment is incorrect, it also stopped working on 14.10

Revision history for this message
rob006 (robo006) wrote :

Kernel has nothing to do with it, its look like openweathermap api stops working properly. After changing to Yahoo everything is OK, so it can be considered as a temporary solution.
After all widget should not crashed because of wrong response from api.

Revision history for this message
Bill Miller (wbmilleriii) wrote :

I cannot change to Yahoo because the program will not start.

Revision history for this message
rob006 (robo006) wrote :

You can delete ~/.config/my-weather-indicator directory (that restore default settings) or change it directly in config file (it's simple JSON) in that directory.

Revision history for this message
Mikhail Minyaev (mminyaev) wrote :

Information in the last comment has worked for me.

Revision history for this message
Bill Miller (wbmilleriii) wrote :

Thanks, I was able to edit the config file and get it to work again.

Revision history for this message
IngPaolo (ingpaolo) wrote :

On my Ubuntu 14.04.2 amd64 after kernel update to Linux 3.16.0.49 suddenly stopped working. Never had any problem before. Version my-weather-indicator0.6.9-0extras14.04.2; crashed with keyerror in get_weather(): 'list'.

Changing to "weather-service": "yahoo" (editing the configuration file ~/.config/my-weather-indicator/my-weather-indicator.conf) worked for me too.

Revision history for this message
Gerald (gfe) wrote :

I'm using Ubuntu 14.04 64-bit, and the weather indicator also stopped working for me recently. I don't know if the failure was due to an update; I assumed that the problem was with Yahoo.

I was able to get the indicator working (sort of) by getting an API key from Weather Underground and using it instead of Yahoo. But the temperatures were off because apparently WU wasn't getting my location correct.

I have been unable to use the Preferences dialog to change (or set after reinstallation) my location -- it simply doesn't list possible locations, and the readings don't change regardless of what I put in for a location. I was finally able to get things working properly by manually editing the configuration file to include my latitude and longitude.

Revision history for this message
Bill Miller (wbmilleriii) wrote : Re: [Bug 1409103] Re: My-Weather-Indicator has stopped working after the last update

It quit working for me again after this last kernel update. I gave up,
uninstalled it, and just updated my conky to show the weather info.

On 01/22/2016 10:40 AM, Gerald wrote:
> I'm using Ubuntu 14.04 64-bit, and the weather indicator also stopped
> working for me recently. I don't know if the failure was due to an
> update; I assumed that the problem was with Yahoo.
>
> I was able to get the indicator working (sort of) by getting an API key
> from Weather Underground and using it instead of Yahoo. But the
> temperatures were off because apparently WU wasn't getting my location
> correct.
>
> I have been unable to use the Preferences dialog to change (or set after
> reinstallation) my location -- it simply doesn't list possible
> locations, and the readings don't change regardless of what I put in for
> a location. I was finally able to get things working properly by
> manually editing the configuration file to include my latitude and
> longitude.
>

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

Other bug subscribers

Related questions

Remote bug watches

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