difficulties to install version 13.5.28

Asked by Hartwig Kolbe on 2013-06-18

I am using Ubuntu 12.04
Trying to updrade to the latest version, I have added the ppa, and ran apt-get update. At that time, other updates were available, so I updated. Also indicator-weather was included.
But, the weather indicator would not run.
Starting indicator-weather from command line:
Traceback (most recent call last):
  File "/usr/bin/indicator-weather", line 2782, in <module>
    wi = indicator_weather()
  File "/usr/bin/indicator-weather", line 1585, in __init__
    self.places = json.loads(self.places)
  File "/usr/lib/python2.7/json/__init__.py", line 326, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

I also tried apt-get install indicator-weather, no error messages, but result is same, indicator-weather does't run.
What am I doing wrong?

Question information

English Edit question
Weather Indicator Edit question
No assignee Edit question
Solved by:
Mattijs Riekerk
Last query:
Last reply:

This is due to a change in the format of the location/weather database, please run the "upgrade-weather-indicator.py" script available here: https://launchpad.net/weather-indicator/2.0/13.05.28/+download/upgrade-weather-indicator.py

Hartwig Kolbe (kolbeb) said : #2

Thank you, it works now.

Hartwig Kolbe (kolbeb) said : #3

Thanks Mattijs Riekerk, that solved my question.

Brian Voss (ez760) said : #4

I am also having difficulty with ubuntu 12.04. I added the ppa and ran the upgrade-weather-indicator.py script (I think). The applet indicator shows and I am able to add a location, but the 'OK' button seems to do nothing (the Weather Preferences window does not change or close). Not sure where weather is supposed to display, but it does not. Any suggestions?

Brian Voss (ez760) said : #5

Further to my last comment, on trying to run the script, the terminal shows:

Updating location database to new format...
Traceback (most recent call last):
  File "weather.py", line 20, in <module>
    locations = eval(locations_string,{"__builtins__":None},{"null":None})
  File "<string>", line 1, in <module>
NameError: name 'false' is not defined

So perhaps I am doing something wrong at this point?