[Desktop-packages] [Bug 821233] Re: indicator-weather crashed with AttributeError in export_location_details(): Location instance has no attribute 'location_code'

2012-12-09 Thread Uco
/usr/bin/indicator-weather line 367: if
(yahoo_woeid_result['ResultSet']['Error'] != 0) and
(yahoo_woeid_result['ResultSet']['Results'] != None):

...replace ['Error'] != 0 with ['Error'] != '0' so it reads : if
(yahoo_woeid_result['ResultSet']['Error'] != '0') and
(yahoo_woeid_result['ResultSet']['Results'] != None):

This fixed it for me.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to indicator-weather in Ubuntu.
https://bugs.launchpad.net/bugs/821233

Title:
  indicator-weather crashed with AttributeError in
  export_location_details(): Location instance has no attribute
  'location_code'

Status in “indicator-weather” package in Ubuntu:
  Confirmed

Bug description:
  On Oneiric Alpha3 on trying to set up this application at the apply
  stage

  ProblemType: Crash
  DistroRelease: Ubuntu 11.10
  Package: indicator-weather 11.05.31-0ubuntu2
  ProcVersionSignature: Ubuntu 3.0.0-7.9-generic 3.0.0
  Uname: Linux 3.0.0-7-generic i686
  Architecture: i386
  Date: Fri Aug  5 03:16:15 2011
  ExecutablePath: /usr/bin/indicator-weather
  InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Alpha i386 (20110802.1)
  InterpreterPath: /usr/bin/python2.7
  PackageArchitecture: all
  ProcCmdline: /usr/bin/python /usr/bin/indicator-weather
  ProcEnviron:
   LANGUAGE=en_GB:en
   LANG=en_GB.UTF-8
   SHELL=/bin/bash
  PythonArgs: ['/usr/bin/indicator-weather']
  SourcePackage: indicator-weather
  Title: indicator-weather crashed with AttributeError in 
export_location_details(): Location instance has no attribute 'location_code'
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/indicator-weather/+bug/821233/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 1087986] Re: indicator-weather crashed with AttributeError in export_location_details(): Location instance has no attribute 'location_code'

2012-12-09 Thread Uco
*** This bug is a duplicate of bug 821233 ***
https://bugs.launchpad.net/bugs/821233

/usr/bin/indicator-weather line 367:  if
(yahoo_woeid_result['ResultSet']['Error'] != 0) and
(yahoo_woeid_result['ResultSet']['Results'] != None):

...replace ['Error'] != 0 with ['Error'] != '0' so it reads :  if
(yahoo_woeid_result['ResultSet']['Error'] != '0') and
(yahoo_woeid_result['ResultSet']['Results'] != None):

This fixed it for me.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to indicator-weather in Ubuntu.
https://bugs.launchpad.net/bugs/1087986

Title:
  indicator-weather crashed with AttributeError in
  export_location_details(): Location instance has no attribute
  'location_code'

Status in Indicator-Weather:
  Confirmed
Status in “indicator-weather” package in Ubuntu:
  Confirmed

Bug description:
  after latest updates, there is no possible to set new location in
  weather indicator applet

  ProblemType: Crash
  DistroRelease: Ubuntu 12.04
  Package: indicator-weather 12.07.30~precise1 [origin: 
LP-PPA-weather-indicator-team]
  ProcVersionSignature: Ubuntu 3.2.0-33.52-generic 3.2.31
  Uname: Linux 3.2.0-33-generic x86_64
  ApportVersion: 2.0.1-0ubuntu15
  Architecture: amd64
  CrashDB: indicator_weather
  Date: Sat Dec  8 15:11:22 2012
  ExecutablePath: /usr/bin/indicator-weather
  InstallationMedia: This
  InterpreterPath: /usr/bin/python2.7
  MarkForUpload: True
  PackageArchitecture: all
  ProcCmdline: /usr/bin/python /usr/bin/indicator-weather
  PythonArgs: ['/usr/bin/indicator-weather']
  SourcePackage: indicator-weather
  ThirdParty: True
  Title: indicator-weather crashed with AttributeError in 
export_location_details(): Location instance has no attribute 'location_code'
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo

To manage notifications about this bug go to:
https://bugs.launchpad.net/weather-indicator/+bug/1087986/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp