← Back to team overview

desktop-packages team mailing list archive

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

 

This bug is "Fix Released" but error still happened in 12.04.5 with last
updates for Saint-Petersburg city, Russia.

Same with Google and Yahoo weather service:

$ indicator-weather 
/usr/lib/python2.7/dist-packages/gobject/constants.py:24: Warning: g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' failed
  import gobject._gobject
Traceback (most recent call last):
  File "/usr/bin/indicator-weather", line 1883, in on_apply
    (location_code, location_details) = self.location.export_location_details()
  File "/usr/bin/indicator-weather", line 405, in export_location_details
    return (self.location_code, self.location_details)
AttributeError: Location instance has no attribute 'location_code'
Traceback (most recent call last):
  File "/usr/bin/indicator-weather", line 1883, in on_apply
    (location_code, location_details) = self.location.export_location_details()
  File "/usr/bin/indicator-weather", line 405, in export_location_details
    return (self.location_code, self.location_details)
AttributeError: Location instance has no attribute 'location_code'

indicator-weather ver 11.11.28-0ubuntu1.3.

-- 
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 Raring Backports:
  Invalid
Status in Indicator-Weather:
  Fix Released
Status in indicator-weather package in Ubuntu:
  Fix Released
Status in indicator-weather source package in Precise:
  Fix Released
Status in indicator-weather source package in Quantal:
  Fix Released
Status in indicator-weather package in Baltix:
  Fix Released

Bug description:
  TEST CASE:
  1. install indicator-weather, and run it from the commandline (or if you have it already, the guest session works too)
  2. click on "Setup weather"
  3. add a location and click on the wizard until "apply"
  4. verify the crash

  5. install the new version
  6. repeat step 2,3 and verify that it does not crash anymore

  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/raring-backports/+bug/821233/+subscriptions