GTG

AttributeError: TaskEditor instance has no attribute 'vtree_panes' on Fedora 20

Bug #1253735 reported by Noe Nieto
28
This bug affects 5 people
Affects Status Importance Assigned to Milestone
GTG
Fix Released
Medium
Parin Porecha

Bug Description

GTG 0.3 Crash when enabling the "Urgency Color" plugin
===============================================

Hi. This is the traceback:

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/GTG/gtk/plugins.py", line 258, in on_plugin_toggle
    self.pengine.activate_plugins([plugin])
  File "/usr/lib/python2.7/site-packages/GTG/core/plugins/engine.py", line 214, in activate_plugins
    plugin.instance.activate(api)
  File "/usr/lib/python2.7/site-packages/GTG/plugins/urgency_color/urgency_color.py", line 45, in activate
    self._refresh_task_color()
  File "/usr/lib/python2.7/site-packages/GTG/plugins/urgency_color/urgency_color.py", line 48, in _refresh_task_color
    self._plugin_api.set_bgcolor_func(self.bgcolor)
  File "/usr/lib/python2.7/site-packages/GTG/core/plugins/api.py", line 189, in set_bgcolor_func
    for pane in browser.vtree_panes.itervalues():
AttributeError: TaskEditor instance has no attribute 'vtree_panes'

GTG does not die itself.

This is the info of the yum package:

[nnieto@bohm Applications]$ yum info gtg
Loaded plugins: langpacks, refresh-packagekit
Installed Packages
Name : gtg
Arch : noarch
Version : 0.3
Release : 4.fc20
Size : 6.8 M
Repo : installed
From repo : fedora
Summary : Personal organizer for the GNOME desktop
URL : http://gtg.fritalk.com
License : GPLv3+
Description : Getting Things GNOME! (GTG) is a personal organizer for the GNOME desktop
            : environment inspired by the Getting Things Done (GTD) methodology. GTG is
            : designed with flexibility, adaptability, and ease of use in mind so it can be
            : used as more than just GTD software.

Is this a bug GTG or Fedora?

Revision history for this message
Parin Porecha (parinporecha) wrote :

Noe > I just downloaded 0.3 branch, and I am not able to reproduce this error in it and neither in the development branch.
I am running ArchLinux.

Can you please try to check this by running it from dev branch ?
Steps to do so -

bzr branch lp:gtg gtg_dev
cd gtg_dev
./gtg

Revision history for this message
Noe Nieto (tzicatl) wrote : Re: [Bug 1253735] Re: AttributeError: TaskEditor instance has no attribute 'vtree_panes' on Fedora 20

Yes, the same with bzr dev.

Steps:

* Get GTG
* cd into GTG's dir and Run it
* Open plugins dialog box, enable Urgency Color plugin.
* Traceback is printed on console.
* If i choose to ignore the error, GTG does not die and I can open the
config dialog of the plugin.
* When saving settings for Urgency Color Plugin, the same traceback is
printed again.

Here's the console output:

[nnieto@bohm gtg_dev]$ ./gtg
2013-11-25 12:25:40,439 - WARNING - __init__:__init__:74 - Backend
backend_rtm could not be loaded: No module named dateutil.tz
2013-11-25 12:25:40,440 - WARNING - __init__:__init__:74 - Backend
backend_mantis could not be loaded: No module named suds.client
2013-11-25 12:25:40,441 - WARNING - __init__:__init__:74 - Backend
backend_launchpad could not be loaded: No module named
launchpadlib.launchpad
2013-11-25 12:25:40,442 - WARNING - __init__:__init__:74 - Backend
backend_evolution could not be loaded: No module named evolution
Traceback (most recent call last):
  File "/home/nnieto/Code/gtg_dev/GTG/gtk/plugins.py", line 254, in
on_plugin_toggle
    self.pengine.activate_plugins([plugin])
  File "/home/nnieto/Code/gtg_dev/GTG/core/plugins/engine.py", line 221, in
activate_plugins
    plugin.instance.activate(api)
  File
"/home/nnieto/Code/gtg_dev/GTG/plugins/urgency_color/urgency_color.py",
line 45, in activate
    self._refresh_task_color()
  File
"/home/nnieto/Code/gtg_dev/GTG/plugins/urgency_color/urgency_color.py",
line 48, in _refresh_task_color
    self._plugin_api.set_bgcolor_func(self.bgcolor)
  File "/home/nnieto/Code/gtg_dev/GTG/core/plugins/api.py", line 216, in
set_bgcolor_func
    for pane in browser.vtree_panes.itervalues():
AttributeError: TaskEditor instance has no attribute 'vtree_pane

2013/11/21 Parin Porecha <email address hidden>

> Noe > I just downloaded 0.3 branch, and I am not able to reproduce this
> error in it and neither in the development branch.
> I am running ArchLinux.
>
> Can you please try to check this by running it from dev branch ?
> Steps to do so -
>
> bzr branch lp:gtg gtg_dev
> cd gtg_dev
> ./gtg
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1253735
>
> Title:
> AttributeError: TaskEditor instance has no attribute 'vtree_panes' on
> Fedora 20
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/gtg/+bug/1253735/+subscriptions
>

--
---
Noe Nieto
NNieto Consulting Services
M: <email address hidden>
W: http://noenieto.com
T: @tzicatl <https://twitter.com/#%21/tzicatl>
Li: Perfil en LinkedIn <http://www.linkedin.com/profile/view?id=84300665>

Revision history for this message
Nimit Shah (nimit-svnit) wrote :

Hi,
I am unable to reproduce this bug in my Ubuntu machine. Are you able to use the plugin or is it a fatal error?

Revision history for this message
Noe Nieto (tzicatl) wrote :

I'm still able to use GTG after the traceback. But I don't know how to use
the plugin,
 therefore I cannot say whether the plugin still works or not.

2013/11/25 Nimit Shah <email address hidden>

> Hi,
> I am unable to reproduce this bug in my Ubuntu machine. Are you able to
> use the plugin or is it a fatal error?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1253735
>
> Title:
> AttributeError: TaskEditor instance has no attribute 'vtree_panes' on
> Fedora 20
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/gtg/+bug/1253735/+subscriptions
>

--
---
Noe Nieto
NNieto Consulting Services
M: <email address hidden>
W: http://noenieto.com
T: @tzicatl <https://twitter.com/#%21/tzicatl>
Li: Perfil en LinkedIn <http://www.linkedin.com/profile/view?id=84300665>

Revision history for this message
Parin Porecha (parinporecha) wrote :

Nimit > I can now reproduce this bug -

- Make sure you haven't enabled 'Urgency Color' and 'Bugzilla' plugin (If they were enabled, disable them)
- Open the task editor
- While the task editor is open, go to the plugins list and try to select any of the two plugins (they both face almost same problem)

This bug and bug #1265349 are related.

Both are caused in PluginAPI, and both requested a browser instance, got TaskEditor instance instead.
I'll be working on this

Changed in gtg:
status: New → Triaged
importance: Undecided → Medium
assignee: nobody → Parin Porecha (parinporecha)
milestone: none → 0.3.2
Revision history for this message
Parin Porecha (parinporecha) wrote :

Fixed in revision 1340

Changed in gtg:
status: Triaged → Fix Committed
Revision history for this message
Jakub Klecki (jabuk) wrote :

Hello, just wanted t signal that this bug happened to me in GTG 0.3.1 on Ubuntu 15.04, Gnome 3.16

Traceback (most recent call last):
  File "/usr/share/gtg/GTG/gtk/plugins.py", line 254, in on_plugin_toggle
    self.pengine.activate_plugins([plugin])
  File "/usr/share/gtg/GTG/core/plugins/engine.py", line 221, in activate_plugins
    plugin.instance.activate(api)
  File "/usr/share/gtg/GTG/plugins/urgency_color/urgency_color.py", line 45, in activate
    self._refresh_task_color()
  File "/usr/share/gtg/GTG/plugins/urgency_color/urgency_color.py", line 48, in _refresh_task_color
    self._plugin_api.set_bgcolor_func(self.bgcolor)
  File "/usr/share/gtg/GTG/core/plugins/api.py", line 216, in set_bgcolor_func
    for pane in browser.vtree_panes.itervalues():
AttributeError: TaskEditor instance has no attribute 'vtree_panes'

Revision history for this message
David Oneill (david-m-oneill) wrote :

This is happening for me:
Traceback (most recent call last):
  File "/usr/share/gtg/GTG/gtk/plugins.py", line 254, in on_plugin_toggle
    self.pengine.activate_plugins([plugin])
  File "/usr/share/gtg/GTG/core/plugins/engine.py", line 221, in activate_plugins
    plugin.instance.activate(api)
  File "/usr/share/gtg/GTG/plugins/urgency_color/urgency_color.py", line 45, in activate
    self._refresh_task_color()
  File "/usr/share/gtg/GTG/plugins/urgency_color/urgency_color.py", line 48, in _refresh_task_color
    self._plugin_api.set_bgcolor_func(self.bgcolor)
  File "/usr/share/gtg/GTG/core/plugins/api.py", line 216, in set_bgcolor_func
    for pane in browser.vtree_panes.itervalues():
AttributeError: TaskEditor instance has no attribute 'vtree_panes'

GTG 0.3.1
xububuntu 14.04
xfce 4.10

I get this when I try to turn on the urgency color plugin.

Revision history for this message
David Oneill (david-m-oneill) wrote :

Note: I had already turned on the Not Today and Notification Area plugins.

I was able to avoid this bug by turning both Not Today and Notification Area plugins off, then turning the urgency color, not today, and notification area plugins on (in that order, one at a time)

Revision history for this message
L. P. Luigi Espenlaub (luigiwriter2) wrote :

Same Error on Ubuntu 18.04
I am adding this comment because this error is "not exclusive" to Fedora 20 and may happen on any Linux distro.

Traceback (most recent call last):
  File "/usr/share/gtg/GTG/gtk/plugins.py", line 254, in on_plugin_toggle
    self.pengine.activate_plugins([plugin])
  File "/usr/share/gtg/GTG/core/plugins/engine.py", line 221, in activate_plugins
    plugin.instance.activate(api)
  File "/usr/share/gtg/GTG/plugins/urgency_color/urgency_color.py", line 45, in activate
    self._refresh_task_color()
  File "/usr/share/gtg/GTG/plugins/urgency_color/urgency_color.py", line 48, in _refresh_task_color
    self._plugin_api.set_bgcolor_func(self.bgcolor)
  File "/usr/share/gtg/GTG/core/plugins/api.py", line 216, in set_bgcolor_func
    for pane in browser.vtree_panes.itervalues():
AttributeError: TaskEditor instance has no attribute 'vtree_panes'

Only occurs when a task window is open.
    Freezes program, had to close and re-open
    When re-opened, the plug-in was no longer checked.
As long as only main window is open this error does not occur.

Workaround in Ubuntu 18.04 is:
Ensure only main window is open before adding a plugin.

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.