cannot add any location to the weather applet

Bug #769009 reported by bitles
68
This bug affects 16 people
Affects Status Importance Assigned to Milestone
indicator-weather (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: indicator-weather

I click Setup Weather, then Locations tab, choose Add button, search my location and choose a label. Then on the "review choices" window I should be able to click Apply button, but when I do, nothing happens. The only thing I can do now is click cancel or back and the location is not set.

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: indicator-weather 11.04.10+repack-0ubuntu2
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2
Uname: Linux 2.6.38-8-generic x86_64
Architecture: amd64
Date: Fri Apr 22 16:38:41 2011
ExecutablePath: /usr/bin/indicator-weather
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
InterpreterPath: /usr/bin/python2.7
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=en_US:en
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: indicator-weather
UpgradeStatus: Upgraded to natty on 2011-04-16 (5 days ago)

Revision history for this message
bitles (ubi-dzier) wrote :
Revision history for this message
Vadim Rutkovsky (roignac) wrote :

Please, attach the log from ~/.cache/indicator-weather.log

Changed in indicator-weather (Ubuntu):
status: New → Incomplete
Revision history for this message
bitles (ubi-dzier) wrote :

~/.cache/indicator-weather.log attached

bitles (ubi-dzier)
Changed in indicator-weather (Ubuntu):
status: Incomplete → New
Revision history for this message
Elie M. (elie-md) wrote :

Similar here. I can't add any location. The apply button doesn't do anything.

Revision history for this message
Wojtek Kuśnierz (z-kosci) wrote :

It works well for e.g. NY, Brooklyn. But I'm not from there so it's still sucks ;) My location (Wrocla, Poland, Europe, Earth... ;) doesn't work

Revision history for this message
Panagiotis Skintzos (ph7) wrote :

This issue has been fixed in the version included in the PPA:
https://launchpad.net/~weather-indicator-team/+archive/ppa

Revision history for this message
Wojtek Kuśnierz (z-kosci) wrote :

Thx mate. It's working

Revision history for this message
Elie M. (elie-md) wrote :

Still not working!!!

log is:

elie-m@elie-m:~$ indicator-weather
Traceback (most recent call last):
  File "/usr/bin/indicator-weather", line 1775, in on_apply
    (location_code, location_details) = self.location.export_location_details()
  File "/usr/bin/indicator-weather", line 354, in export_location_details
    return (self.location_code, self.location_details)
AttributeError: Location instance has no attribute 'location_code'

Revision history for this message
Panagiotis Skintzos (ph7) wrote : Re: [Bug 769009] Re: cannot add any location to the weather applet

>
> Still not working!!!
>
Can you please specify the location you use?

Revision history for this message
Elie M. (elie-md) wrote :

I can't remember the full string the search function gave me (i'm not on ubuntu now) but u can have it by doing this:

1- type batroun
2- click search
3 - it will give u just 1 string, it's the right town I live in given by that string
4- select it and go next next apply.

Revision history for this message
Panagiotis Skintzos (ph7) wrote :

>
>
> I can't remember the full string the search function gave me (i'm not on
> ubuntu now) but u can have it by doing this:
>
> 1- type batroun
> 2- click search
> 3 - it will give u just 1 string, it's the right town I live in given by
> that string
> 4- select it and go next next apply.
>
> Batroûn, Lebanon is working fine for me, for both Yahoo and Google. Please
attach the log file (~/.cache/indicator-weather.log)
Do you use the PPA version?

Revision history for this message
Elie M. (elie-md) wrote :

Yes I use the ppa version since 5-5-2011

the full log is attached

Revision history for this message
Panagiotis Skintzos (ph7) wrote :

This is weird. Can you access these page from the browser?
http://where.yahooapis.com/geocode?flags=J&location=Batro%C3%BBn%2C+Liban-Nord%2C+Lebanon&appid=mOawLd4s
http://where.yahooapis.com/geocode?flags=J&location=Paris%2C+%C3%8Ele-de-France%2C+France&appid=mOawLd4s

Are you using a proxy?

Please attach the output of this command:
apt-cache policy indicator-weather

Revision history for this message
Elie M. (elie-md) wrote :

Firefox gives me two JSON files to save when I click the links.

there's no proxy in my browser and the output is:

elie-m@elie-m:~$ apt-cache policy indicator-weather

indicator-weather:
  Installed: 11.05.01~natty2
  Candidate: 11.05.01~natty2
  Version table:
 *** 11.05.01~natty2 0
        500 http://ppa.launchpad.net/weather-indicator-team/ppa/ubuntu/ natty/main amd64 Packages
        100 /var/lib/dpkg/status
     11.04.10+repack-0ubuntu2 0
        500 http://archive.ubuntu.com/ubuntu/ natty/universe amd64 Packages

Revision history for this message
Panagiotis Skintzos (ph7) wrote :

Please try this command, this is the one that fails:

python -c "import urllib2; f=urllib2.urlopen('http://where.yahooapis.com/geocode?flags=J&location=Batro%C3%BBn%2C+Liban-Nord%2C+Lebanon&appid=mOawLd4s'); print f"

Revision history for this message
Aleve Sicofante (sicofante) wrote :

I'm having this issue with two locations in Spain (haven't tried any other ones yet):

Vigo, Galicia, Spain
Santiago de Compostela, Galicia, Spain

Just clicking "Apply" ("Aplicar" in the Spanish version) won't do anything.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in indicator-weather (Ubuntu):
status: New → Confirmed
Revision history for this message
Edward (ecadman) wrote :
Revision history for this message
Steve (ubuntustephen) wrote :

Hi All,

I am pretty new to Ubuntu and I just installed indicator-weather. I am having a problem running the "Setup".

When I open the setup and try to change anything, the "OK" button is never enabled. When I try to setup the location, the "Next" button is never enabled. I had entered a zipcode and the address is displayed and selected it. The spinning search icon, above the search button, just keeps spinning.

Can anyone help me with this problem?

(I attached the log file)

Thanks,
Steve

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.