[Needs 0.2.4] gtg crashed with UnboundLocalError in on_export()

Bug #531909 reported by Stefan Ebner on 2010-03-04
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Getting Things GNOME!
Low
Luca Invernizzi
gtg (Ubuntu)
Low
Luca Invernizzi

Bug Description

Binary package hint: gtg

I just enabled the "Export and Print" plugin and clicked on "Plugins/Export Tasks" then gtg crashes (still continues running and working normally though). This also happens when clicking on the printer icon (which is the same as Export Tasks I suppose)

ProblemType: Crash
Architecture: i386
Date: Thu Mar 4 14:37:57 2010
DistroRelease: Ubuntu 10.04
ExecutablePath: /usr/share/gtg/gtg
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
InterpreterPath: /usr/bin/python2.6
NonfreeKernelModules: nvidia
Package: gtg 0.2.3-1
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/gtg
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, user)
 LANG=en_GB.utf8
 LANGUAGE=en_GB.utf8
ProcVersionSignature: Ubuntu 2.6.32-15.22-generic
PythonArgs: ['/usr/bin/gtg']
SourcePackage: gtg
Title: gtg crashed with UnboundLocalError in on_export()
Traceback:
 Traceback (most recent call last):
   File "/usr/share/gtg/GTG/plugins/export/export.py", line 150, in on_export
     self.export_combo_decorator(self.export_combo_templ, template_list)
 UnboundLocalError: local variable 'template_list' referenced before assignment
Uname: Linux 2.6.32-15-generic i686
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Stefan Ebner (sebner) wrote :
visibility: private → public
tags: removed: need-duplicate-check
Changed in gtg (Ubuntu):
status: New → Triaged
importance: Undecided → Low
Alberto Milone (albertomilone) wrote :

The problem here is the lack of a template directory (named "export_templates") in /usr/share/gtg/GTG/plugins/export/ . The upstream code has this directory. I'll write a patch to fix the issue.

Changed in gtg (Ubuntu):
assignee: nobody → Alberto Milone (albertomilone)
Changed in gtg:
status: New → Triaged
importance: Undecided → Low
Changed in gtg:
status: Triaged → Fix Committed
assignee: nobody → Luca Invernizzi (invernizzi)
milestone: none → 0.2.4
Changed in gtg (Ubuntu):
assignee: Alberto Milone (albertomilone) → nobody
Changed in gtg (Ubuntu):
assignee: nobody → Luca Invernizzi (invernizzi)
Changed in gtg (Ubuntu):
status: Triaged → Fix Committed
milestone: none → lucid-updates
Changed in gtg (Ubuntu):
milestone: lucid-updates → none
Bryce Harrington (bryce) on 2010-04-08
summary: - gtg crashed with UnboundLocalError in on_export()
+ [Needs 0.2.4] gtg crashed with UnboundLocalError in on_export()
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gtg - 0.2.3-1ubuntu1

---------------
gtg (0.2.3-1ubuntu1) lucid; urgency=low

  * Cherrypick patches from upcoming 0.2.4 branch:
    - Commit 655: Re-add "schedule for" submenu
      (LP: #522470)
    - Commit 673: Export plugin doesn't hang if no templates are found
      (LP: #531909)
    - Commit 677: Restore hello_world plugin glade file
      (LP: #530256)
    - Commit 678: Fix variable reference in taskbrowser
      (LP: #544233)
    - Commit 683: Fix "schedule for" submenu date handling
      (LP: #549539)
    - Commit 685: Only launch hyperlinks on left click
      (LP: #514922)
 -- Bryce Harrington <email address hidden> Thu, 08 Apr 2010 16:46:53 -0700

Changed in gtg (Ubuntu):
status: Fix Committed → Fix Released
Changed in gtg:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers