didn't add location

Bug #1248290 reported by ahmadzxc
58
This bug affects 11 people
Affects Status Importance Assigned to Milestone
Weather Indicator
Confirmed
High
Joshua Tasker

Bug Description

when add my location or any other location to the application and press ok
i have this message in the terminal
Traceback (most recent call last):
  File "/usr/bin/indicator-weather", line 2560, in ok
    wi.menu_locations()
  File "/usr/bin/indicator-weather", line 1872, in menu_locations
    self.city_show.set_submenu(locations_menu)
and nothing happend it don't show any weather information

Revision history for this message
Khurshid Alam (khurshid-alam) wrote :

I can confirm this bug in saucy. I am getting same error after applying patch from (Bug:1234529. Without that patch it complain as described in the description ).

Revision history for this message
Александр (richkofsky) wrote :

I am getting same error in Ubuntu 12.04.3 x64
When you run in a terminal and add a location, I get the following output

:~$ indicator-weather
/usr/lib/python2.7/dist-packages/gi/overrides/Gtk.py:391: Warning: g_object_set_property: construct property "type" for object `PreferencesDialog' can't be set after construction
  Gtk.Window.__init__(self, type=type, **kwds)
/usr/lib/python2.7/dist-packages/gi/overrides/Gtk.py:391: Warning: g_object_set_property: construct property "type" for object `Assistant' can't be set after construction
  Gtk.Window.__init__(self, type=type, **kwds)
Traceback (most recent call last):
  File "/usr/bin/indicator-weather", line 2560, in ok
    wi.menu_locations()
  File "/usr/bin/indicator-weather", line 1872, in menu_locations
    self.city_show.set_submenu(locations_menu)
AttributeError: 'indicator_weather' object has no attribute 'city_show'

Changed in weather-indicator:
status: New → Confirmed
Revision history for this message
Joshua Tasker (jtasker) wrote :

I can't reproduce this; would someone who is having this issue please post the output from running the following command:

  gsettings list-recursively apps.indicators.weather

Changed in weather-indicator:
assignee: nobody → Joshua Tasker (jtasker)
Revision history for this message
Александр (richkofsky) wrote :

Hi, I get the following output on the ubuntu 12.04.3 x64:

gsettings list-recursively apps.indicators.weather

apps.indicators.weather chill-estimate 'windchill'
apps.indicators.weather condition-fields '["heat-index", "humidity", "wind", "sun"]'
apps.indicators.weather filter-fields true
apps.indicators.weather global-notifications false
apps.indicators.weather heat-estimate 'humidex'
apps.indicators.weather indicator-display 1
apps.indicators.weather locations '{"924938": {"google id": ",,,50454660,30523800", "dst": false, "longitude": "30.5238", "yahoo id": "UPXX0016", "latitude": "50.45466", "label": "\\u041a\\u0438\\u0435\\u0432", "full name": "\\u041a\\u0438\\u0435\\u0432, \\u041a\\u0438\\u0435\\u0432, \\u0423\\u043a\\u0440\\u0430\\u0438\\u043d\\u0430", "timezone id": "Europe/Kiev"}, "932520": {"google id": ",,,50623080,26227430", "dst": false, "longitude": "26.22743", "yahoo id": "UPXX0032", "latitude": "50.62308", "label": "\\u0420\\u043e\\u0432\\u043d\\u043e", "full name": "\\u0420\\u043e\\u0432\\u043d\\u043e, \\u0420\\u043e\\u0432\\u043d\\u0435\\u043d\\u0441\\u043a\\u0430\\u044f \\u043e\\u0431\\u043b\\u0430\\u0441\\u0442\\u044c, \\u0423\\u043a\\u0440\\u0430\\u0438\\u043d\\u0430", "timezone id": "Europe/Kiev"}}'
apps.indicators.weather metric-system 'S'
apps.indicators.weather notifications 'N'
apps.indicators.weather placechosen 0
apps.indicators.weather places '["[", "]", ["932520", "\\u0420\\u043e\\u0432\\u043d\\u043e"]]'
apps.indicators.weather refresh-rate 15
apps.indicators.weather relative-display false
apps.indicators.weather show-forecast true
apps.indicators.weather show-locations false
apps.indicators.weather suntimes-display true
apps.indicators.weather weather '{}'
apps.indicators.weather weather-source 'Y'
apps.indicators.weather wind-display true
apps.indicators.weather wind-unit 'mps'

Revision history for this message
Joshua Tasker (jtasker) wrote :

I believe this issue has been fixed in the newest release 13.8.0, please try that version and report here if the issue is still present.

Changed in weather-indicator:
milestone: none → 13.8.0
importance: Undecided → High
Revision history for this message
Александр (richkofsky) wrote :

I can not try, as this version of indicator-weather is not in the archive ppa:weather-indicator-team/ppa for Ubuntu 12.04 Precise. Please build the release 13.8.0 of indicator-weather for Ubuntu 12.04.

Revision history for this message
Александр (richkofsky) wrote :

Thanks for assembly. Everything is working. Ubuntu 12.04.4 x64.

Revision history for this message
James Niland (nilandsplace) wrote :

I am using Ubuntu 14.04.3 (x32) on Asus M2N68-LA (Narra3) 6GB RAM WITH AMD2 4 CORE

For sometime now my weather has been stuck on sunny, 54° while it rains and rain and rains. the forecast is however correct. I cannot change, update or add a location. I can sort and find it but once selected it is never added. the icon just spins forever and I never get the continue button!
I have checked both python and weather-indicator PPA's and it is the latest 13.08. it is set to devel as there is no trusty. And it has always been this way. Yahoo or weather.com make not difference.

here is the output of gsettings list-recursively apps.indicators.weather:
apps.indicators.weather wind-display true
apps.indicators.weather locations '{"2437143": {"google id": ",,,34774050,-79462820", "weather-com id": "USNC0377", "dst": true, "longitude": "-79.46282", "yahoo id": "USNC0377", "latitude": "34.77405", "label": "Laurinburg", "full name": "Laurinburg, North Carolina, United States", "timezone id": "America/New_York"}}'
apps.indicators.weather chill-estimate 'windchill'
apps.indicators.weather relative-display true
apps.indicators.weather global-notifications false
apps.indicators.weather weather-source 'W'
apps.indicators.weather condition-fields '["heat-index", "humidity", "wind", "sun"]'
apps.indicators.weather metric-system 'I'
apps.indicators.weather refresh-rate 5
apps.indicators.weather show-locations true
apps.indicators.weather notifications 'A'
apps.indicators.weather wind-unit 'mph'
apps.indicators.weather places '[["2437143", "Laurinburg"]]'
apps.indicators.weather filter-fields true
apps.indicators.weather heat-estimate 'heatindex'
apps.indicators.weather show-forecast true
apps.indicators.weather placechosen 0
apps.indicators.weather suntimes-display true
apps.indicators.weather weather '{"2437143": {"humidity": "Humidity: 93%", "sunrise": "Sunrise: Unknown", "feelslike": "Feels Like: 54 \\u00b0F", "sunset": "Sunset: Unknown", "wind": "Wind: N (350\\u00b0) 3 mph", "icon": "weather-clear", "temper": "Temperature: 54 \\u00b0F", "condition": "Fair", "label": "54 \\u00b0F"}}'
apps.indicators.weather indicator-display 1

Thanks James NIland

Revision history for this message
LinuxLover (linux-klomp) wrote :

No still not fixed at 13.8.0 'Rainy 8'
on Ubuntu 16.04.1 LTS

Revision history for this message
Khurshid Alam (khurshid-alam) wrote :

geo.placefinder doesn't exist any more which means we have
to use geo.places which always return single places if match found.
That means weather indicator code needs to modified as well to reflect these changes.

See here (pywapi): https://github.com/khurshid-alam/python-weather-api/commit/7f05282076f6ae2d48ec9c986d45838107cd0436

And Here(for indicator-weather): https://github.com/khurshid-alam/Weather-Indicator/commit/011671668850d748d56168b937013ab925726392

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.