Comment 7 for bug 821233

Revision history for this message
fred (fredonweb) wrote : Re: [Bug 821233] Re: indicator-weather crashed with AttributeError in export_location_details(): Location instance has no attribute 'location_code'

Thanks a lot !

2012/12/10 Mantas Kriaučiūnas <email address hidden>

> I can confirm, thay ucomesdag proposal fixed crash when adding new
> location (city) in Weather indicator versions 11.11.28 and 12.07.30 :)
> I'm attaching a patch, which can be applied against Ubuntu 12.04 and newer
> indicator-weather packages.
>
> Uco (ucomesdag) wrote 16 hours ago: #4
> > /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'
>
> ** Patch added: "Patch for fixing crash when adding new location in
> Weather indicator"
>
> https://bugs.launchpad.net/ubuntu/+source/indicator-weather/+bug/821233/+attachment/3455982/+files/indicator-weather-crash-AttributeError-in-export_location_details.patch
>
> ** Also affects: indicator-weather (Baltix)
> Importance: Undecided
> Status: New
>
> ** Changed in: indicator-weather (Baltix)
> Status: New => In Progress
>
> ** Changed in: indicator-weather (Baltix)
> Importance: Undecided => Medium
>
> ** Changed in: indicator-weather (Baltix)
> Assignee: (unassigned) => Mantas Kriaučiūnas (mantas)
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (1088179).
> 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
> Status in “indicator-weather” package in Baltix:
> In Progress
>
> 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
>