Weather indicator not working can't re-install can't uninstall old version

Asked by Denis Fitzpatrick

Weather indicator not refreshing, forecast gives unknown error, Tried to re-install no success. Guidance in uninstalling and re- installing or a fix would be helpful. Has indicated -5 degrees, partly cloudy for Selkirk for two months now.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu indicator-weather Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

For diagnostic purposes please provide the output of the following commands (to be executed in a terminal window):

uname -a
lsb_release -crid
dpkg -l | grep weather

Revision history for this message
Denis Fitzpatrick (fitzpatr-z) said :
#2

Get weather information for your town with My-Weather-Indicator
My-Weather-Indicator is an an application especially designed for Ubuntu, you will be informed of current weather and the weather forecast. Integrated with the Ubuntu desktop via an indicator. With local maps, showing the conditions in nearby towns. The weather forecast for the next few days in your city. You can have up to two indicators for two cities, and choose the best weather service information that you provide. You select customizable widgets to make your desktop more personalized. Package: my-weather-indicator
Version: 0.8.1-0extras16.04.1
Architecture: all
Maintainer: Lorenzo Carbonell Cerezo <email address hidden>
Installed-Size: 15957
Depends: gir1.2-gtk-3.0, gir1.2-glib-2.0, gir1.2-gdkpixbuf-2.0, gir1.2-appindicator3-0.1, gir1.2-notify-0.7, gir1.2-webkit-3.0, gir1.2-geocodeglib-1.0, python3-tz, python3-cairo, python3-lxml, python3-dateutil, python3-requests, python3-requests-oauthlib, geoclue-hostip, geoclue-ubuntu-geoip
Section: utils
Priority: extra
Homepage: http://www.atareao.es
Description: Get weather information for your town with My-Weather-Indicator
 My-Weather-Indicator is an an application especially designed for Ubuntu,
 you will be informed of current weather and the weather forecast.
 Integrated with the Ubuntu desktop via an indicator. With local maps,
 showing the conditions in nearby towns. The weather forecast for the
 next few days in your city. You can have up to two indicators for two
 cities, and choose the best weather service information that you provide.
 You select customizable widgets to make your desktop more personalized.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

What is the output of:

find $HOME | grep -i weather

Thanks

Revision history for this message
Denis Fitzpatrick (fitzpatr-z) said :
#4

/home/fitzpatrick/.cache/indicator-weather.log.4
/home/fitzpatrick/.cache/indicator-weather.log.2
/home/fitzpatrick/.cache/indicator-weather.log.3
/home/fitzpatrick/.cache/software-center/icons/ my-weather-indicator:i386-icon-mwi_064.png
/home/fitzpatrick/.cache/indicator-weather.log
/home/fitzpatrick/.cache/indicator-weather.log.1
/home/fitzpatrick/.cache/indicator-weather.log.5
/home/fitzpatrick/.cache/upstart/update-notifier-crash-_var_crash__usr_bin_indicator-weather.1000.crash.log.6.gz
/home/fitzpatrick/.cache/upstart/update-notifier-crash-_var_crash__usr_bin_indicator-weather.1000.crash.log.3.gz
/home/fitzpatrick/.cache/upstart/update-notifier-crash-_var_crash__usr_bin_indicator-weather.1000.crash.log.2.gz
/home/fitzpatrick/.cache/upstart/update-notifier-crash-_var_crash__usr_bin_indicator-weather.1000.crash.log.7.gz
/home/fitzpatrick/.cache/upstart/update-notifier-crash-_var_crash__usr_bin_indicator-weather.1000.crash.log.1.gz
/home/fitzpatrick/.cache/upstart/update-notifier-crash-_var_crash__usr_bin_indicator-weather.1000.crash.log.5.gz
/home/fitzpatrick/.cache/upstart/update-notifier-crash-_var_crash__usr_bin_indicator-weather.1000.crash.log.4.gz
/home/fitzpatrick/.config/autostart/indicator-weather.desktop
/home/fitzpatrick/.config/chromium/Default/Extensions/cifndhjjchjamcecpjhpggeaacihcjnl/12.9.6.8603_0/common/components/weather
/home/fitzpatrick/.config/chromium/Default/Extensions/cifndhjjchjamcecpjhpggeaacihcjnl/12.9.6.8603_0/common/components/weather/background
/home/fitzpatrick/.config/chromium/Default/Extensions/cifndhjjchjamcecpjhpggeaacihcjnl/12.9.6.8603_0/common/components/weather/background/weatherButton.js
/home/fitzpatrick/.config/chromium/Default/Extensions/cifndhjjchjamcecpjhpggeaacihcjnl/12.9.6.8603_0/common/widget-api/widgets/weather
/home/fitzpatrick/.config/chromium/Default/Extensions/cifndhjjchjamcecpjhpggeaacihcjnl/12.9.6.8603_0/common/widget-api/widgets/weather/js
/home/fitzpatrick/.config/chromium/Default/Extensions/cifndhjjchjamcecpjhpggeaacihcjnl/12.9.6.8603_0/common/widget-api/widgets/weather/js/weather.js
/home/fitzpatrick/.config/chromium/Default/Extensions/cifndhjjchjamcecpjhpggeaacihcjnl/12.9.6.8603_0/common/widget-api/widgets/weather/weatherButton.html
/home/fitzpatrick/.config/chromium/Default/Extensions/cifndhjjchjamcecpjhpggeaacihcjnl/12.9.6.8603_0/common/widget-api/widgets/weather/css
/home/fitzpatrick/.config/chromium/Default/Extensions/cifndhjjchjamcecpjhpggeaacihcjnl/12.9.6.8603_0/common/widget-api/widgets/weather/css/weatherButton.css
/home/fitzpatrick/.config/chromium/Default/Extensions/pcpehlgijbdajfafffojllcaecaecngb/12.9.6.8621_0/common/components/weather
/home/fitzpatrick/.config/chromium/Default/Extensions/pcpehlgijbdajfafffojllcaecaecngb/12.9.6.8621_0/common/components/weather/background
/home/fitzpatrick/.config/chromium/Default/Extensions/pcpehlgijbdajfafffojllcaecaecngb/12.9.6.8621_0/common/components/weather/background/weatherButton.js
/home/fitzpatrick/.config/chromium/Default/Extensions/pcpehlgijbdajfafffojllcaecaecngb/12.9.6.8621_0/common/widget-api/widgets/weather
/home/fitzpatrick/.config/chromium/Default/Extensions/pcpehlgijbdajfafffojllcaecaecngb/12.9.6.8621_0/common/widget-api/widgets/weather/js
/home/fitzpatrick/.config/chromium/Default/Extensions/pcpehlgijbdajfafffojllcaecaecngb/12.9.6.8621_0/common/widget-api/widgets/weather/js/weather.js
/home/fitzpatrick/.config/chromium/Default/Extensions/pcpehlgijbdajfafffojllcaecaecngb/12.9.6.8621_0/common/widget-api/widgets/weather/weatherButton.html
/home/fitzpatrick/.config/chromium/Default/Extensions/pcpehlgijbdajfafffojllcaecaecngb/12.9.6.8621_0/common/widget-api/widgets/weather/css
/home/fitzpatrick/.config/chromium/Default/Extensions/pcpehlgijbdajfafffojllcaecaecngb/12.9.6.8621_0/common/widget-api/widgets/weather/css/weatherButton.css
find: `/home/fitzpatrick/.config/nautilus-actions': Permission denied
fitzpatrick@fitzpatrick-PC:~$

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

As already requested:

For diagnostic purposes please provide the output of the following commands (to be executed in a terminal window):

uname -a
lsb_release -crid
dpkg -l | grep weather

Revision history for this message
Denis Fitzpatrick (fitzpatr-z) said :
#6

Where do I find that in the terminal window?
I attempted to follow that command but got no result

Revision history for this message
Manfred Hampl (m-hampl) said :
#7

Just open a terminal window (e.g. by simultaneously pressing ctrl-alt-t) and type or copy/paste the given commands.
When done, use the terminal window's menu entries "edit - select all" and "edit - copy" and paste everything into this question document.

Revision history for this message
Denis Fitzpatrick (fitzpatr-z) said :
#8

Linux fitzpatrick-PC 3.13.0-86-generic #131-Ubuntu SMP Thu May 12 23:33:13 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
fitzpatrick@fitzpatrick-PC:~$ lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 14.04.4 LTS
Release: 14.04
Codename: trusty
fitzpatrick@fitzpatrick-PC:~$ dpkg -l | grep weather

Revision history for this message
Manfred Hampl (m-hampl) said :
#9

The command
dpkg -l | grep weather
does not produce any output?

What output do you get if you start the command
/usr/bin/indicator-weather
in a terminal window?

It seems that there is no version of weather-indicator for Ubuntu trusty, and the one you that you have installed is from an earlier Ubuntu release, and has been preserved across a release upgrade.

Revision history for this message
Denis Fitzpatrick (fitzpatr-z) said :
#10

is there a fix? It has been stuck for two months. How can I remove it/

Revision history for this message
Manfred Hampl (m-hampl) said :
#11

Please provide the output as asked above.

dpkg -l | grep weather

What output do you get if you start the command
/usr/bin/indicator-weather
in a terminal window?

Revision history for this message
Denis Fitzpatrick (fitzpatr-z) said :
#12

fitzpatrick@fitzpatrick-PC:~$ /usr/bin/indicator-weather
/usr/lib/python2.7/dist-packages/gobject/constants.py:24: Warning: g_boxed_type_register_static: assertion 'g_type_from_name (name) == 0' failed
  import gobject._gobject

Revision history for this message
Denis Fitzpatrick (fitzpatr-z) said :
#13

fitzpatrick@fitzpatrick-PC:~$ /usr/bin/indicator-weather
/usr/lib/python2.7/dist-packages/gobject/constants.py:24: Warning: g_boxed_type_register_static: assertion 'g_type_from_name (name) == 0' failed
  import gobject._gobject
/usr/bin/indicator-weather:1288: Warning: Source ID 53 was not found when attempting to remove it
  gobject.source_remove(self.rate_id)
/usr/bin/indicator-weather:1288: Warning: Source ID 68 was not found when attempting to remove it
  gobject.source_remove(self.rate_id)
/usr/bin/indicator-weather:1288: Warning: Source ID 82 was not found when attempting to remove it
  gobject.source_remove(self.rate_id)
/usr/bin/indicator-weather:1288: Warning: Source ID 94 was not found when attempting to remove it
  gobject.source_remove(self.rate_id)
/usr/bin/indicator-weather:1288: Warning: Source ID 109 was not found when attempting to remove it
  gobject.source_remove(self.rate_id)
/usr/bin/indicator-weather:1288: Warning: Source ID 125 was not found when attempting to remove it
  gobject.source_remove(self.rate_id)
/usr/bin/indicator-weather:1288: Warning: Source ID 139 was not found when attempting to remove it

Revision history for this message
Manfred Hampl (m-hampl) said :
#14

The messages shown are just warnings and should not hinder the weather indicator from running.

What is the output of

dpkg -l | grep weather
apt-cache policy indicator-weather
cat /home/fitzpatrick/.cache/indicator-weather.log
cat /home/fitzpatrick/.cache/indicator-weather.log.1

Revision history for this message
Denis Fitzpatrick (fitzpatr-z) said :
#15

Cache] 2016-05-23 09:25:35,854 - DEBUG - Indicator: menu_normal: filling in a menu for found places
[Fetcher] 2016-05-23 09:25:35,854 - DEBUG - Location: default weather source 'Yahoo' chosen for 'Selkirk'
[Cache] 2016-05-23 09:25:35,861 - DEBUG - Indicator: update_label: setting label to ' '
[Cache] 2016-05-23 09:25:35,864 - DEBUG - Indicator: update_label: setting label to '-5 ˚C'
[Fetcher] 2016-05-23 09:25:35,981 - ERROR - Weather: could not get Yahoo weather condition from report
[Fetcher] 2016-05-23 09:25:35,981 - ERROR - Weather: got data '{'error': 'Could not connect to Yahoo! Weather'}'
[Fetcher] 2016-05-23 09:25:35,982 - ERROR - local variable 'icon_name' referenced before assignment
[Fetcher] 2016-05-23 09:25:35,982 - DEBUG - Traceback (most recent call last):
  File "/usr/bin/indicator-weather", line 1368, in get_new_weather_data
    weather = self.get_weather()
  File "/usr/bin/indicator-weather", line 1453, in get_weather
    self.current_location.update_weather_data(self.weather_source)
  File "/usr/bin/indicator-weather", line 446, in update_weather_data
    self.location_details['longitude'])
  File "/usr/bin/indicator-weather", line 694, in __init__
    log.debug("Weather: current condition: '%s', '%s'" % (icon_name, str(self.__current_condition)))
UnboundLocalError: local variable 'icon_name' referenced before assignment

[Fetcher] 2016-05-23 09:25:35,982 - DEBUG - Indicator: updateWeather: waiting for 'Cacher' thread to terminate
[Fetcher] 2016-05-23 09:25:35,983 - ERROR - Indicator: updateWeather: could not get weather, leaving cached data
[MainThread] 2016-05-23 09:26:36,043 - DEBUG - Indicator: updateWeather: updating weather for ['2593', 'Selkirk']
[Cache] 2016-05-23 09:26:36,044 - DEBUG - Settings: getting cached weather for 2593
[Fetcher] 2016-05-23 09:26:36,044 - DEBUG - Indicator: getWeather for location 'Selkirk, Manitoba, Canada'
[Fetcher] 2016-05-23 09:26:36,045 - DEBUG - Indicator: getWeather: updating weather report
[Cache] 2016-05-23 09:26:36,045 - DEBUG - Indicator: loading weather from cache for ['2593', 'Selkirk']
[Fetcher] 2016-05-23 09:26:36,045 - DEBUG - Location: default weather source 'Yahoo' chosen for 'Selkirk'
[Cache] 2016-05-23 09:26:36,046 - DEBUG - Indicator: menu_normal: filling in a menu for found places
[Cache] 2016-05-23 09:26:36,052 - DEBUG - Indicator: update_label: setting label to ' '
[Cache] 2016-05-23 09:26:36,055 - DEBUG - Indicator: update_label: setting label to '-5 ˚C'
[Fetcher] 2016-05-23 09:26:36,170 - ERROR - Weather: could not get Yahoo weather condition from report
[Fetcher] 2016-05-23 09:26:36,170 - ERROR - Weather: got data '{'error': 'Could not connect to Yahoo! Weather'}'
[Fetcher] 2016-05-23 09:26:36,170 - ERROR - local variable 'icon_name' referenced before assignment
[Fetcher] 2016-05-23 09:26:36,171 - DEBUG - Traceback (most recent call last):
  File "/usr/bin/indicator-weather", line 1368, in get_new_weather_data
    weather = self.get_weather()
  File "/usr/bin/indicator-weather", line 1453, in get_weather
    self.current_location.update_weather_data(self.weather_source)
  File "/usr/bin/indicator-weather", line 446, in update_weather_data
    self.location_details['longitude'])
  File "/usr/bin/indicator-weather", line 694, in __init__
    log.debug("Weather: current condition: '%s', '%s'" % (icon_name, str(self.__current_condition)))
UnboundLocalError: local variable 'icon_name' referenced before assignment

[Fetcher] 2016-05-23 09:26:36,171 - DEBUG - Indicator: updateWeather: waiting for 'Cacher' thread to terminate
[Fetcher] 2016-05-23 09:26:36,171 - ERROR - Indicator: updateWeather: could not get weather, leaving cached data
[MainThread] 2016-05-23 09:27:36,232 - DEBUG - Indicator: updateWeather: updating weather for ['2593', 'Selkirk']
[Cache] 2016-05-23 09:27:36,232 - DEBUG - Settings: getting cached weather for 2593
[Cache] 2016-05-23 09:27:36,233 - DEBUG - Indicator: loading weather from cache for ['2593', 'Selkirk']
[Cache] 2016-05-23 09:27:36,233 - DEBUG - Indicator: menu_normal: filling in a menu for found places
[Fetcher] 2016-05-23 09:27:36,234 - DEBUG - Indicator: getWeather for location 'Selkirk, Manitoba, Canada'
[Fetcher] 2016-05-23 09:27:36,235 - DEBUG - Indicator: getWeather: updating weather report
[Fetcher] 2016-05-23 09:27:36,236 - DEBUG - Location: default weather source 'Yahoo' chosen for 'Selkirk'
[Cache] 2016-05-23 09:27:36,240 - DEBUG - Indicator: update_label: setting label to ' '
[Cache] 2016-05-23 09:27:36,244 - DEBUG - Indicator: update_label: setting label to '-5 ˚C'
[Fetcher] 2016-05-23 09:27:36,400 - ERROR - Weather: could not get Yahoo weather condition from report
[Fetcher] 2016-05-23 09:27:36,400 - ERROR - Weather: got data '{'error': 'Could not connect to Yahoo! Weather'}'
[Fetcher] 2016-05-23 09:27:36,400 - ERROR - local variable 'icon_name' referenced before assignment
[Fetcher] 2016-05-23 09:27:36,401 - DEBUG - Traceback (most recent call last):
  File "/usr/bin/indicator-weather", line 1368, in get_new_weather_data
    weather = self.get_weather()
  File "/usr/bin/indicator-weather", line 1453, in get_weather
    self.current_location.update_weather_data(self.weather_source)
  File "/usr/bin/indicator-weather", line 446, in update_weather_data
    self.location_details['longitude'])
  File "/usr/bin/indicator-weather", line 694, in __init__
    log.debug("Weather: current condition: '%s', '%s'" % (icon_name, str(self.__current_condition)))
UnboundLocalError: local variable 'icon_name' referenced before assignment

[Fetcher] 2016-05-23 09:27:36,401 - DEBUG - Indicator: updateWeather: waiting for 'Cacher' thread to terminate
[Fetcher] 2016-05-23 09:27:36,401 - ERROR - Indicator: updateWeather: could not get weather, leaving cached data
[MainThread] 2016-05-23 09:28:36,462 - DEBUG - Indicator: updateWeather: updating weather for ['2593', 'Selkirk']
[Cache] 2016-05-23 09:28:36,462 - DEBUG - Settings: getting cached weather for 2593
[Fetcher] 2016-05-23 09:28:36,463 - DEBUG - Indicator: getWeather for location 'Selkirk, Manitoba, Canada'
[Cache] 2016-05-23 09:28:36,463 - DEBUG - Indicator: loading weather from cache for ['2593', 'Selkirk']
[Cache] 2016-05-23 09:28:36,464 - DEBUG - Indicator: menu_normal: filling in a menu for found places
[Fetcher] 2016-05-23 09:28:36,463 - DEBUG - Indicator: getWeather: updating weather report
[Fetcher] 2016-05-23 09:28:36,465 - DEBUG - Location: default weather source 'Yahoo' chosen for 'Selkirk'
[Cache] 2016-05-23 09:28:36,470 - DEBUG - Indicator: update_label: setting label to ' '
[Cache] 2016-05-23 09:28:36,473 - DEBUG - Indicator: update_label: setting label to '-5 ˚C'
[Fetcher] 2016-05-23 09:28:36,584 - ERROR - Weather: could not get Yahoo weather condition from report
[Fetcher] 2016-05-23 09:28:36,585 - ERROR - Weather: got data '{'error': 'Could not connect to Yahoo! Weather'}'
[Fetcher] 2016-05-23 09:28:36,585 - ERROR - local variable 'icon_name' referenced before assignment
[Fetcher] 2016-05-23 09:28:36,585 - DEBUG - Traceback (most recent call last):
  File "/usr/bin/indicator-weather", line 1368, in get_new_weather_data
    weather = self.get_weather()
  File "/usr/bin/indicator-weather", line 1453, in get_weather
    self.current_location.update_weather_data(self.weather_source)
  File "/usr/bin/indicator-weather", line 446, in update_weather_data
    self.location_details['longitude'])
  File "/usr/bin/indicator-weather", line 694, in __init__
    log.debug("Weather: current condition: '%s', '%s'" % (icon_name, str(self.__current_condition)))
UnboundLocalError: local variable 'icon_name' referenced before assignment

[Fetcher] 2016-05-23 09:28:36,586 - DEBUG - Indicator: updateWeather: waiting for 'Cacher' thread to terminate
[Fetcher] 2016-05-23 09:28:36,586 - ERROR - Indicator: updateWeather: could not get weather, leaving cached data
[MainThread] 2016-05-23 09:29:36,647 - DEBUG - Indicator: updateWeather: updating weather for ['2593', 'Selkirk']
[Cache] 2016-05-23 09:29:36,647 - DEBUG - Settings: getting cached weather for 2593
[Fetcher] 2016-05-23 09:29:36,648 - DEBUG - Indicator: getWeather for location 'Selkirk, Manitoba, Canada'
[Cache] 2016-05-23 09:29:36,648 - DEBUG - Indicator: loading weather from cache for ['2593', 'Selkirk']
[Fetcher] 2016-05-23 09:29:36,648 - DEBUG - Indicator: getWeather: updating weather report
[Cache] 2016-05-23 09:29:36,648 - DEBUG - Indicator: menu_normal: filling in a menu for found places
[Fetcher] 2016-05-23 09:29:36,649 - DEBUG - Location: default weather source 'Yahoo' chosen for 'Selkirk'
[Cache] 2016-05-23 09:29:36,654 - DEBUG - Indicator: update_label: setting label to ' '
[Cache] 2016-05-23 09:29:36,656 - DEBUG - Indicator: update_label: setting label to '-5 ˚C'
[Fetcher] 2016-05-23 09:29:36,769 - ERROR - Weather: could not get Yahoo weather condition from report
[Fetcher] 2016-05-23 09:29:36,769 - ERROR - Weather: got data '{'error': 'Could not connect to Yahoo! Weather'}'
[Fetcher] 2016-05-23 09:29:36,770 - ERROR - local variable 'icon_name' referenced before assignment
[Fetcher] 2016-05-23 09:29:36,770 - DEBUG - Traceback (most recent call last):
  File "/usr/bin/indicator-weather", line 1368, in get_new_weather_data
    weather = self.get_weather()
  File "/usr/bin/indicator-weather", line 1453, in get_weather
    self.current_location.update_weather_data(self.weather_source)
  File "/usr/bin/indicator-weather", line 446, in update_weather_data
    self.location_details['longitude'])
  File "/usr/bin/indicator-weather", line 694, in __init__
    log.debug("Weather: current condition: '%s', '%s'" % (icon_name, str(self.__current_condition)))
UnboundLocalError: local variable 'icon_name' referenced before assignment

[Fetcher] 2016-05-23 09:29:36,770 - DEBUG - Indicator: updateWeather: waiting for 'Cacher' thread to terminate
[Fetcher] 2016-05-23 09:29:36,771 - ERROR - Indicator: updateWeather: could not get weather, leaving cached data
[MainThread] 2016-05-23 09:30:36,831 - DEBUG - Indicator: updateWeather: updating weather for ['2593', 'Selkirk']
[Cache] 2016-05-23 09:30:36,832 - DEBUG - Settings: getting cached weather for 2593
[Cache] 2016-05-23 09:30:36,832 - DEBUG - Indicator: loading weather from cache for ['2593', 'Selkirk']
[Cache] 2016-05-23 09:30:36,832 - DEBUG - Indicator: menu_normal: filling in a menu for found places
[Fetcher] 2016-05-23 09:30:36,833 - DEBUG - Indicator: getWeather for location 'Selkirk, Manitoba, Canada'
[Fetcher] 2016-05-23 09:30:36,834 - DEBUG - Indicator: getWeather: updating weather report
[Fetcher] 2016-05-23 09:30:36,834 - DEBUG - Location: default weather source 'Yahoo' chosen for 'Selkirk'
[Cache] 2016-05-23 09:30:36,839 - DEBUG - Indicator: update_label: setting label to ' '
[Cache] 2016-05-23 09:30:36,842 - DEBUG - Indicator: update_label: setting label to '-5 ˚C'
[Fetcher] 2016-05-23 09:30:36,959 - ERROR - Weather: could not get Yahoo weather condition from report
[Fetcher] 2016-05-23 09:30:36,960 - ERROR - Weather: got data '{'error': 'Could not connect to Yahoo! Weather'}'
[Fetcher] 2016-05-23 09:30:36,960 - ERROR - local variable 'icon_name' referenced before assignment
[Fetcher] 2016-05-23 09:30:36,960 - DEBUG - Traceback (most recent call last):
  File "/usr/bin/indicator-weather", line 1368, in get_new_weather_data
    weather = self.get_weather()
  File "/usr/bin/indicator-weather", line 1453, in get_weather
    self.current_location.update_weather_data(self.weather_source)
  File "/usr/bin/indicator-weather", line 446, in update_weather_data
    self.location_details['longitude'])
  File "/usr/bin/indicator-weather", line 694, in __init__
    log.debug("Weather: current condition: '%s', '%s'" % (icon_name, str(self.__current_condition)))
UnboundLocalError: local variable 'icon_name' referenced before assignment

[Fetcher] 2016-05-23 09:30:36,960 - DEBUG - Indicator: updateWeather: waiting for 'Cacher' thread to terminate
[Fetcher] 2016-05-23 09:30:36,961 - ERROR - Indicator: updateWeather: could not get weather, leaving cached data
[MainThread] 2016-05-23 09:31:37,022 - DEBUG - Indicator: updateWeather: updating weather for ['2593', 'Selkirk']
[Cache] 2016-05-23 09:31:37,022 - DEBUG - Settings: getting cached weather for 2593
[Cache] 2016-05-23 09:31:37,023 - DEBUG - Indicator: loading weather from cache for ['2593', 'Selkirk']
[Cache] 2016-05-23 09:31:37,023 - DEBUG - Indicator: menu_normal: filling in a menu for found places
[Fetcher] 2016-05-23 09:31:37,024 - DEBUG - Indicator: getWeather for location 'Selkirk, Manitoba, Canada'
[Fetcher] 2016-05-23 09:31:37,025 - DEBUG - Indicator: getWeather: updating weather report
[Fetcher] 2016-05-23 09:31:37,025 - DEBUG - Location: default weather source 'Yahoo' chosen for 'Selkirk'
[Cache] 2016-05-23 09:31:37,030 - DEBUG - Indicator: update_label: setting label to ' '
[Cache] 2016-05-23 09:31:37,033 - DEBUG - Indicator: update_label: setting label to '-5 ˚C'
[Fetcher] 2016-05-23 09:31:37,148 - ERROR - Weather: could not get Yahoo weather condition from report
[Fetcher] 2016-05-23 09:31:37,148 - ERROR - Weather: got data '{'error': 'Could not connect to Yahoo! Weather'}'
[Fetcher] 2016-05-23 09:31:37,149 - ERROR - local variable 'icon_name' referenced before assignment
[Fetcher] 2016-05-23 09:31:37,149 - DEBUG - Traceback (most recent call last):
  File "/usr/bin/indicator-weather", line 1368, in get_new_weather_data
    weather = self.get_weather()
  File "/usr/bin/indicator-weather", line 1453, in get_weather
    self.current_location.update_weather_data(self.weather_source)
  File "/usr/bin/indicator-weather", line 446, in update_weather_data
    self.location_details['longitude'])
  File "/usr/bin/indicator-weather", line 694, in __init__
    log.debug("Weather: current condition: '%s', '%s'" % (icon_name, str(self.__current_condition)))
UnboundLocalError: local variable 'icon_name' referenced before assignment

[Fetcher] 2016-05-23 09:31:37,149 - DEBUG - Indicator: updateWeather: waiting for 'Cacher' thread to terminate
[Fetcher] 2016-05-23 09:31:37,150 - ERROR - Indicator: updateWeather: could not get weather, leaving cached data
[MainThread] 2016-05-23 09:32:37,211 - DEBUG - Indicator: updateWeather: updating weather for ['2593', 'Selkirk']
[Cache] 2016-05-23 09:32:37,211 - DEBUG - Settings: getting cached weather for 2593
[Cache] 2016-05-23 09:32:37,212 - DEBUG - Indicator: loading weather from cache for ['2593', 'Selkirk']
[Fetcher] 2016-05-23 09:32:37,212 - DEBUG - Indicator: getWeather for location 'Selkirk, Manitoba, Canada'
[Fetcher] 2016-05-23 09:32:37,213 - DEBUG - Indicator: getWeather: updating weather report
[Fetcher] 2016-05-23 09:32:37,213 - DEBUG - Location: default weather source 'Yahoo' chosen for 'Selkirk'
[Cache] 2016-05-23 09:32:37,213 - DEBUG - Indicator: menu_normal: filling in a menu for found places
[Cache] 2016-05-23 09:32:37,216 - DEBUG - Indicator: update_label: setting label to ' '
[Cache] 2016-05-23 09:32:37,218 - DEBUG - Indicator: update_label: setting label to '-5 ˚C'
[Fetcher] 2016-05-23 09:32:37,370 - ERROR - Weather: could not get Yahoo weather condition from report
[Fetcher] 2016-05-23 09:32:37,370 - ERROR - Weather: got data '{'error': 'Could not connect to Yahoo! Weather'}'
[Fetcher] 2016-05-23 09:32:37,371 - ERROR - local variable 'icon_name' referenced before assignment
[Fetcher] 2016-05-23 09:32:37,371 - DEBUG - Traceback (most recent call last):
  File "/usr/bin/indicator-weather", line 1368, in get_new_weather_data
    weather = self.get_weather()
  File "/usr/bin/indicator-weather", line 1453, in get_weather
    self.current_location.update_weather_data(self.weather_source)
  File "/usr/bin/indicator-weather", line 446, in update_weather_data
    self.location_details['longitude'])
  File "/usr/bin/indicator-weather", line 694, in __init__
    log.debug("Weather: current condition: '%s', '%s'" % (icon_name, str(self.__current_condition)))
UnboundLocalError: local variable 'icon_name' referenced before assignment

[Fetcher] 2016-05-23 09:32:37,371 - DEBUG - Indicator: updateWeather: waiting for 'Cacher' thread to terminate
[Fetcher] 2016-05-23 09:32:37,372 - ERROR - Indicator: updateWeather: could not get weather, leaving cached data
[MainThread] 2016-05-23 09:33:37,432 - DEBUG - Indicator: updateWeather: updating weather for ['2593', 'Selkirk']
[Cache] 2016-05-23 09:33:37,433 - DEBUG - Settings: getting cached weather for 2593
[Fetcher] 2016-05-23 09:33:37,433 - DEBUG - Indicator: getWeather for location 'Selkirk, Manitoba, Canada'
[Cache] 2016-05-23 09:33:37,434 - DEBUG - Indicator: loading weather from cache for ['2593', 'Selkirk']
[Fetcher] 2016-05-23 09:33:37,434 - DEBUG - Indicator: getWeather: updating weather report
[Cache] 2016-05-23 09:33:37,434 - DEBUG - Indicator: menu_normal: filling in a menu for found places
[Fetcher] 2016-05-23 09:33:37,434 - DEBUG - Location: default weather source 'Yahoo' chosen for 'Selkirk'
[Cache] 2016-05-23 09:33:37,440 - DEBUG - Indicator: update_label: setting label to ' '
[Cache] 2016-05-23 09:33:37,444 - DEBUG - Indicator: update_label: setting label to '-5 ˚C'
[Fetcher] 2016-05-23 09:33:37,559 - ERROR - Weather: could not get Yahoo weather condition from report
[Fetcher] 2016-05-23 09:33:37,559 - ERROR - Weather: got data '{'error': 'Could not connect to Yahoo! Weather'}'
[Fetcher] 2016-05-23 09:33:37,560 - ERROR - local variable 'icon_name' referenced before assignment
[Fetcher] 2016-05-23 09:33:37,560 - DEBUG - Traceback (most recent call last):
  File "/usr/bin/indicator-weather", line 1368, in get_new_weather_data
    weather = self.get_weather()
  File "/usr/bin/indicator-weather", line 1453, in get_weather
    self.current_location.update_weather_data(self.weather_source)
  File "/usr/bin/indicator-weather", line 446, in update_weather_data
    self.location_details['longitude'])
  File "/usr/bin/indicator-weather", line 694, in __init__
    log.debug("Weather: current condition: '%s', '%s'" % (icon_name, str(self.__current_condition)))
UnboundLocalError: local variable 'icon_name' referenced before assignment

[Fetcher] 2016-05-23 09:33:37,560 - DEBUG - Indicator: updateWeather: waiting for 'Cacher' thread to terminate
[Fetcher] 2016-05-23 09:33:37,561 - ERROR - Indicator: updateWeather: could not get weather, leaving cached data
[MainThread] 2016-05-23 09:34:37,614 - DEBUG - Indicator: updateWeather: updating weather for ['2593', 'Selkirk']
[Cache] 2016-05-23 09:34:37,615 - DEBUG - Settings: getting cached weather for 2593
[Cache] 2016-05-23 09:34:37,615 - DEBUG - Indicator: loading weather from cache for ['2593', 'Selkirk']
[Fetcher] 2016-05-23 09:34:37,616 - DEBUG - Indicator: getWeather for location 'Selkirk, Manitoba, Canada'
[Cache] 2016-05-23 09:34:37,616 - DEBUG - Indicator: menu_normal: filling in a menu for found places
[Fetcher] 2016-05-23 09:34:37,616 - DEBUG - Indicator: getWeather: updating weather report
[Fetcher] 2016-05-23 09:34:37,617 - DEBUG - Location: default weather source 'Yahoo' chosen for 'Selkirk'
[Cache] 2016-05-23 09:34:37,622 - DEBUG - Indicator: update_label: setting label to ' '
[Cache] 2016-05-23 09:34:37,625 - DEBUG - Indicator: update_label: setting label to '-5 ˚C'
[Fetcher] 2016-05-23 09:34:37,737 - ERROR - Weather: could not get Yahoo weather condition from report
[Fetcher] 2016-05-23 09:34:37,737 - ERROR - Weather: got data '{'error': 'Could not connect to Yahoo! Weather'}'
[Fetcher] 2016-05-23 09:34:37,738 - ERROR - local variable 'icon_name' referenced before assignment
[Fetcher] 2016-05-23 09:34:37,738 - DEBUG - Traceback (most recent call last):
  File "/usr/bin/indicator-weather", line 1368, in get_new_weather_data
    weather = self.get_weather()
  File "/usr/bin/indicator-weather", line 1453, in get_weather
    self.current_location.update_weather_data(self.weather_source)
  File "/usr/bin/indicator-weather", line 446, in update_weather_data
    self.location_details['longitude'])
  File "/usr/bin/indicator-weather", line 694, in __init__
    log.debug("Weather: current condition: '%s', '%s'" % (icon_name, str(self.__current_condition)))
UnboundLocalError: local variable 'icon_name' referenced before assignment

[Fetcher] 2016-05-23 09:34:37,738 - DEBUG - Indicator: updateWeather: waiting for 'Cacher' thread to terminate
[Fetcher] 2016-05-23 09:34:37,738 - ERROR - Indicator: updateWeather: could not get weather, leaving cached data
[MainThread] 2016-05-23 09:35:37,799 - DEBUG - Indicator: updateWeather: updating weather for ['2593', 'Selkirk']
[Cache] 2016-05-23 09:35:37,800 - DEBUG - Settings: getting cached weather for 2593
[Fetcher] 2016-05-23 09:35:37,800 - DEBUG - Indicator: getWeather for location 'Selkirk, Manitoba, Canada'
[Cache] 2016-05-23 09:35:37,801 - DEBUG - Indicator: loading weather from cache for ['2593', 'Selkirk']
[Fetcher] 2016-05-23 09:35:37,801 - DEBUG - Indicator: getWeather: updating weather report
[Cache] 2016-05-23 09:35:37,801 - DEBUG - Indicator: menu_normal: filling in a menu for found places
[Fetcher] 2016-05-23 09:35:37,801 - DEBUG - Location: default weather source 'Yahoo' chosen for 'Selkirk'
[Cache] 2016-05-23 09:35:37,808 - DEBUG - Indicator: update_label: setting label to ' '
[Cache] 2016-05-23 09:35:37,811 - DEBUG - Indicator: update_label: setting label to '-5 ˚C'
[Fetcher] 2016-05-23 09:35:37,942 - ERROR - Weather: could not get Yahoo weather condition from report
[Fetcher] 2016-05-23 09:35:37,942 - ERROR - Weather: got data '{'error': 'Could not connect to Yahoo! Weather'}'
[Fetcher] 2016-05-23 09:35:37,943 - ERROR - local variable 'icon_name' referenced before assignment
[Fetcher] 2016-05-23 09:35:37,943 - DEBUG - Traceback (most recent call last):
  File "/usr/bin/indicator-weather", line 1368, in get_new_weather_data
    weather = self.get_weather()
  File "/usr/bin/indicator-weather", line 1453, in get_weather
    self.current_location.update_weather_data(self.weather_source)
  File "/usr/bin/indicator-weather", line 446, in update_weather_data
    self.location_details['longitude'])
  File "/usr/bin/indicator-weather", line 694, in __init__
    log.debug("Weather: current condition: '%s', '%s'" % (icon_name, str(self.__current_condition)))
UnboundLocalError: local variable 'icon_name' referenced before assignment

[Fetcher] 2016-05-23 09:35:37,943 - DEBUG - Indicator: updateWeather: waiting for 'Cacher' thread to terminate
[Fetcher] 2016-05-23 09:35:37,944 - ERROR - Indicator: updateWeather: could not get weather, leaving cached data
[MainThread] 2016-05-23 09:36:38,004 - DEBUG - Indicator: updateWeather: updating weather for ['2593', 'Selkirk']
[Cache] 2016-05-23 09:36:38,005 - DEBUG - Settings: getting cached weather for 2593
[Fetcher] 2016-05-23 09:36:38,005 - DEBUG - Indicator: getWeather for location 'Selkirk, Manitoba, Canada'
[Cache] 2016-05-23 09:36:38,006 - DEBUG - Indicator: loading weather from cache for ['2593', 'Selkirk']
[Fetcher] 2016-05-23 09:36:38,006 - DEBUG - Indicator: getWeather: updating weather report
[Cache] 2016-05-23 09:36:38,006 - DEBUG - Indicator: menu_normal: filling in a menu for found places
[Fetcher] 2016-05-23 09:36:38,006 - DEBUG - Location: default weather source 'Yahoo' chosen for 'Selkirk'
[Cache] 2016-05-23 09:36:38,013 - DEBUG - Indicator: update_label: setting label to ' '
[Cache] 2016-05-23 09:36:38,016 - DEBUG - Indicator: update_label: setting label to '-5 ˚C'
[Fetcher] 2016-05-23 09:36:38,124 - ERROR - Weather: could not get Yahoo weather condition from report
[Fetcher] 2016-05-23 09:36:38,124 - ERROR - Weather: got data '{'error': 'Could not connect to Yahoo! Weather'}'
[Fetcher] 2016-05-23 09:36:38,125 - ERROR - local variable 'icon_name' referenced before assignment
[Fetcher] 2016-05-23 09:36:38,125 - DEBUG - Traceback (most recent call last):
  File "/usr/bin/indicator-weather", line 1368, in get_new_weather_data
    weather = self.get_weather()
  File "/usr/bin/indicator-weather", line 1453, in get_weather
    self.current_location.update_weather_data(self.weather_source)
  File "/usr/bin/indicator-weather", line 446, in update_weather_data
    self.location_details['longitude'])
  File "/usr/bin/indicator-weather", line 694, in __init__
    log.debug("Weather: current condition: '%s', '%s'" % (icon_name, str(self.__current_condition)))
UnboundLocalError: local variable 'icon_name' referenced before assignment

[Fetcher] 2016-05-23 09:36:38,125 - DEBUG - Indicator: updateWeather: waiting for 'Cacher' thread to terminate
[Fetcher] 2016-05-23 09:36:38,126 - ERROR - Indicator: updateWeather: could not get weather, leaving cached data
[MainThread] 2016-05-23 09:37:38,186 - DEBUG - Indicator: updateWeather: updating weather for ['2593', 'Selkirk']
[Cache] 2016-05-23 09:37:38,187 - DEBUG - Settings: getting cached weather for 2593
[Fetcher] 2016-05-23 09:37:38,187 - DEBUG - Indicator: getWeather for location 'Selkirk, Manitoba, Canada'
[Fetcher] 2016-05-23 09:37:38,188 - DEBUG - Indicator: getWeather: updating weather report
[Fetcher] 2016-05-23 09:37:38,188 - DEBUG - Location: default weather source 'Yahoo' chosen for 'Selkirk'
[Cache] 2016-05-23 09:37:38,189 - DEBUG - Indicator: loading weather from cache for ['2593', 'Selkirk']
[Cache] 2016-05-23 09:37:38,189 - DEBUG - Indicator: menu_normal: filling in a menu for found places
[Cache] 2016-05-23 09:37:38,194 - DEBUG - Indicator: update_label: setting label to ' '
[Cache] 2016-05-23 09:37:38,197 - DEBUG - Indicator: update_label: setting label to '-5 ˚C'
[Fetcher] 2016-05-23 09:37:38,346 - ERROR - Weather: could not get Yahoo weather condition from report
[Fetcher] 2016-05-23 09:37:38,347 - ERROR - Weather: got data '{'error': 'Could not connect to Yahoo! Weather'}'
[Fetcher] 2016-05-23 09:37:38,347 - ERROR - local variable 'icon_name' referenced before assignment
[Fetcher] 2016-05-23 09:37:38,347 - DEBUG - Traceback (most recent call last):
  File "/usr/bin/indicator-weather", line 1368, in get_new_weather_data
    weather = self.get_weather()
  File "/usr/bin/indicator-weather", line 1453, in get_weather
    self.current_location.update_weather_data(self.weather_source)
  File "/usr/bin/indicator-weather", line 446, in update_weather_data
    self.location_details['longitude'])
  File "/usr/bin/indicator-weather", line 694, in __init__
    log.debug("Weather: current condition: '%s', '%s'" % (icon_name, str(self.__current_condition)))
UnboundLocalError: local variable 'icon_name' referenced before assignment

[Fetcher] 2016-05-23 09:37:38,348 - DEBUG - Indicator: updateWeather: waiting for 'Cacher' thread to terminate
[Fetcher] 2016-05-23 09:37:38,348 - ERROR - Indicator: updateWeather: could not get weather, leaving cached data
fitzpatrick@fitzpatrick-PC:~$ cat /home/fitzpatrick/.cache/indicator-weather.log

Revision history for this message
Manfred Hampl (m-hampl) said :
#16

This is now the fifth time that I ask for the output of

dpkg -l | grep weather

Only if you provide that information, we can provide more help.

Revision history for this message
Denis Fitzpatrick (fitzpatr-z) said :
#17

I have copied and pasted the command you provided into the terminal and have copied and pasted the result into this forum. please indicate what else I can do as right now I am at a loss as to how to obtain the output you requestedfitzpatrick@fitzpatrick-PC:~$ dpkg -l | grep weather
ii indicator-weather 11.11.28-0ubuntu1.3 all indicator that displays weather information
ii libgweather-3-0 3.4.1-0ubuntu1 amd64 GWeather shared library
ii libgweather-3-6 3.10.2-0ubuntu2 amd64 GWeather shared library
ii libgweather-common 3.10.2-0ubuntu2 all GWeather common files
ii my-weather-indicator 0.8.1-0extras16.04.1 all Get weather information for your town with My-Weather-Indicator
ii python-pywapi 0.3.8-0ubuntu0ppa1 all Python wrapper around different weather APIs
fitzpatrick@fitzpatrick-PC:~$

Revision history for this message
Manfred Hampl (m-hampl) said :
#18

Thank you for finally providing the required information.

I see that you have TWO programs installed that should show weather information - indicator-weather and my-weather-indicator

There is no version of indicator-weather for your Ubuntu release (14.04); it was published for Ubuntu 12.04 and apparently has been carried over through a release upgrade that you have done.

There is a PPA with an updated version for trusty, ppa:noobslab/indicators
You can try upgrading to that version.

Another possibility would be to uninstall indicator-weather and using my-weather-indicator instead. The version that you have installed seems to be current (probably from ppa:atareao/atareao)

Revision history for this message
Denis Fitzpatrick (fitzpatr-z) said :
#19

Thank you how do I uninstall it throught the terminal?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#20

sudo apt-get --purge remove indicator-weather
sudo apt-get --purge autoremove
sudo apt-get clean

Revision history for this message
Denis Fitzpatrick (fitzpatr-z) said :
#21

Thank you

Can you help with this problem?

Provide an answer of your own, or ask Denis Fitzpatrick for more information if necessary.

To post a message you must log in.