GTG

gtg 0.3 won't launch in ubuntu 12.04

Bug #1088706 reported by David Elliott
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
GTG
Won't Fix
High
Unassigned

Bug Description

2012-12-10 13:08:54,219 - WARNING - __init__:__init__:77 - Backend backend_mantis could not be loaded: No module named suds.client
2012-12-10 13:08:54,300 - WARNING - __init__:__init__:77 - Backend backend_twitter could not be loaded: No module named tweepy.models
Traceback (most recent call last):
  File "/usr/bin/gtg", line 85, in <module>
    main()
  File "/usr/bin/gtg", line 81, in main
    sys.exit(gtg.main(options, args))
  File "/usr/share/gtg/GTG/gtg.py", line 120, in main
    manager = Manager(req)
  File "/usr/share/gtg/GTG/gtk/manager.py", line 75, in __init__
    self.browser = TaskBrowser(self.req, self)
  File "/usr/share/gtg/GTG/gtk/browser/browser.py", line 89, in __init__
    self.tv_factory.active_tasks_treeview(self.activetree)
  File "/usr/share/gtg/GTG/gtk/browser/treeview_factory.py", line 332, in active_tasks_treeview
    treeview = self.build_task_treeview(tree,desc)
  File "/usr/share/gtg/GTG/gtk/browser/treeview_factory.py", line 419, in build_task_treeview
    treeview = TreeView(tree,desc)
  File "/usr/lib/python2.7/dist-packages/liblarch_gtk/__init__.py", line 189, in __init__
    self.show()
  File "/usr/lib/python2.7/dist-packages/liblarch_gtk/__init__.py", line 268, in show
    self.basetreemodel.connect_model()
  File "/usr/lib/python2.7/dist-packages/liblarch_gtk/treemodel.py", line 64, in connect_model
    self.tree.get_current_state()
  File "/usr/lib/python2.7/dist-packages/liblarch/viewtree.py", line 138, in get_current_state
    self.__ft.get_current_state()
  File "/usr/lib/python2.7/dist-packages/liblarch/filteredtree.py", line 606, in get_current_state
    self.send_add_tree(node_id, self.root_id)
  File "/usr/lib/python2.7/dist-packages/liblarch/filteredtree.py", line 267, in send_add_tree
    self.callback('added', node_id, path)
  File "/usr/lib/python2.7/dist-packages/liblarch/filteredtree.py", line 124, in callback
    func(node_id,path)
  File "/usr/lib/python2.7/dist-packages/liblarch/viewtree.py", line 115, in __emit
    func(node_id,path)
  File "/usr/lib/python2.7/dist-packages/liblarch_gtk/treemodel.py", line 140, in add_task
    value = access_method(node)
  File "/usr/share/gtg/GTG/gtk/browser/treeview_factory.py", line 76, in task_tags_column
    tags = node.get_tags()
  File "/usr/share/gtg/GTG/core/task.py", line 653, in get_tags
    tag = self.req.new_tag(tname)
  File "/usr/share/gtg/GTG/core/requester.py", line 170, in new_tag
    return self.ds.new_tag(tagname)
  File "/usr/share/gtg/GTG/core/datastore.py", line 128, in new_tag
    self._add_new_tag(name, tag, self.treefactory.tag_filter, parameters)
  File "/usr/share/gtg/GTG/core/datastore.py", line 117, in _add_new_tag
    self.__tasks.add_filter(name, filter_func, parameters=parameters)
  File "/usr/lib/python2.7/dist-packages/liblarch/__init__.py", line 164, in add_filter
    return self.__fbank.add_filter(filter_name, filter_func, parameters)
  File "/usr/lib/python2.7/dist-packages/liblarch/filters_bank.py", line 111, in add_filter
    self.custom_filters[filter_name] = filter_obj
UnboundLocalError: local variable 'filter_obj' referenced before assignment

Revision history for this message
Izidor Matušov (izidor) wrote :

Hi David,

you found a very interesting bug -- in code that wasn't changed for 1.5 years. I will fix it shortly.

I am very interested how it happened. The reason why you can't start GTG is because one of your tags starts with '!'. GTG itself should have prevented that situation. Did you create a tag like that? Maybe a search tag? You can look at your ~/.local/share/gtg/tags.xml

If you don't use our GTG Daily PPA (development version), the workaround is to delete that '!' from the name of your tags.

Changed in gtg:
status: New → In Progress
importance: Undecided → High
assignee: nobody → Izidor Matušov (izidor)
milestone: none → 0.3.1
tags: added: liblarch
Revision history for this message
David Elliott (davidrelliott) wrote : Re: [Bug 1088706] Re: gtg 0.3 won't launch in ubuntu 12.04

Good morning Izidor!

I was using the daily PPA, encountered the bug, purged gtg and liblarch,
then installed the stable ppa. When I still encountered the bug running
the stable, I submitted the report.

I don't have a tag starting with a '!', but I do have a tag that was
created by error containing a '!'. I believe the gtg tag editor changed
syntax from dividing tags using a ',' to dividing using a space. When
attempting to create and delete tags simultaneously I ended up with
'newtag,!tagtoremove' . This was while running the daily. I've
attached my tags.xml file (no sensitive data) if you would like to take
a look.

I deleted the tag containing '!' from tags.xml and the gtg data file and
now it fires up. Whew - what a relief! Thanks for all of the great
development work and for the quick response on this bug. I depend on
gtg every day. I'm going to stick with the stable ppa to avoid losing
the functionality in the future.

D

12/10/2012 08:57 PM, Izidor Matušov wrote:
> Hi David,
>
> you found a very interesting bug -- in code that wasn't changed for 1.5
> years. I will fix it shortly.
>
> I am very interested how it happened. The reason why you can't start GTG
> is because one of your tags starts with '!'. GTG itself should have
> prevented that situation. Did you create a tag like that? Maybe a search
> tag? You can look at your ~/.local/share/gtg/tags.xml
>
> If you don't use our GTG Daily PPA (development version), the workaround
> is to delete that '!' from the name of your tags.
>
> ** Changed in: gtg
> Status: New => In Progress
>
> ** Changed in: gtg
> Importance: Undecided => High
>
> ** Changed in: gtg
> Assignee: (unassigned) => Izidor Matušov (izidor)
>
> ** Changed in: gtg
> Milestone: None => 0.3.1
>
> ** Tags added: liblarch
>

--
Dave Elliott
m 808 354 1567
h 808 672 2244

Revision history for this message
Izidor Matušov (izidor) wrote :

Hi David, thank you for your info. If I get it correctly, the steps to reproduce:

1, open "Modify tags" dialog (CTRL+T)
2, enter "@cold,!4week"
3, restart GTG

Is it correct?

Revision history for this message
David Elliott (davidrelliott) wrote :

That is my memory of how the bug happened, though I never precede tag
names with '@' when using the "Modify Tags" dialogue. However, I just
tried using the stable ppa and cannot reproduce. Let me know if I can
provide you with any further information.

Dave

On 12/12/2012 12:03 AM, Izidor Matušov wrote:
> Hi David, thank you for your info. If I get it correctly, the steps to
> reproduce:
>
> 1, open "Modify tags" dialog (CTRL+T)
> 2, enter "@cold,!4week"
> 3, restart GTG
>
> Is it correct?
>

--
Dave Elliott
m 808 354 1567
h 808 672 2244

Izidor Matušov (izidor)
Changed in gtg:
milestone: 0.3.1 → 0.4
status: In Progress → Confirmed
assignee: Izidor Matušov (izidor) → nobody
Izidor Matušov (izidor)
tags: added: github
Revision history for this message
Jeff Fortin Tam (kiddo) wrote :

Closing this ticket as we do not use LaunchPad anymore, see https://wiki.gnome.org/Apps/GTG to learn more about the current status of the project and to find the new location where our code and bug reports are hosted.

Changed in gtg:
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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