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

Bug #1087986 reported by Dariusz Panasiuk
42
This bug affects 8 people
Affects Status Importance Assigned to Milestone
Weather Indicator
Confirmed
Undecided
Unassigned
indicator-weather (Ubuntu)
Confirmed
Medium
Unassigned

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

Revision history for this message
Dariusz Panasiuk (dariusz.panasiuk) wrote :
information type: Private → Public
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
affects: weather-indicator → indicator-weather (Ubuntu)
Changed in indicator-weather (Ubuntu):
status: New → Confirmed
Revision history for this message
Sasa Paporovic (melchiaros) wrote :

In respect that the indicator-weather version used on this report

and in respect to

https://bugs.launchpad.net/weather-indicator/+bug/1088070

which is marked as duplicate here and that was direct filed against the Ubuntu13.04 Ubuntu indicator-weather package
this report will be taged as "raring".

tags: added: raring
Revision history for this message
Sasa Paporovic (melchiaros) wrote :

In respect that 5 people are affected and the stacktrace of this report and the marked dublicate are the same the status of the upstream report will be set to "confirmed".

Changed in weather-indicator:
status: New → Confirmed
Revision history for this message
Apport retracing service (apport) wrote : This bug is a duplicate

Thank you for taking the time to report this crash and helping to make this software better. This particular crash has already been reported and is a duplicate of bug #821233, so is being marked as such. Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally, any further discussion regarding the bug should occur in the other report. Please continue to report any other bugs you may find.

tags: removed: need-duplicate-check
Changed in indicator-weather (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Uco (ucomesdag) wrote :

/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.

Revision history for this message
Etienne Lawlor (lawloretienne) wrote :

Uco's fix has worked for me as well. I guess the hash values are of type String.

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.