gtg threw ... is not children of ... exception

Bug #1069257 reported by Muelli on 2012-10-21
30
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Getting Things GNOME!
Medium
Lionel Dricot

Bug Description

I got this when starting:

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/liblarch/processqueue.py", line 42, in process_queue
    func(*action[1:])
  File "/usr/lib/python2.7/dist-packages/liblarch/tree.py", line 230, in _add_node
    self._callback("node-added", node_id)
  File "/usr/lib/python2.7/dist-packages/liblarch/tree.py", line 80, in _callback
    func(node_id)
  File "/usr/lib/python2.7/dist-packages/liblarch/filteredtree.py", line 139, in __external_modify
    return self.__update_node(node_id,direction="both")
  File "/usr/lib/python2.7/dist-packages/liblarch/filteredtree.py", line 203, in __update_node
    self.__update_node(parent,direction="up")
  File "/usr/lib/python2.7/dist-packages/liblarch/filteredtree.py", line 263, in __update_node
    self.tree.modify_node(parent)
  File "/usr/lib/python2.7/dist-packages/liblarch/tree.py", line 90, in modify_node
    self._external_request(self._modify_node, priority, node_id)
  File "/usr/lib/python2.7/dist-packages/liblarch/tree.py", line 110, in _external_request
    self._queue.process_queue()
  File "/usr/lib/python2.7/dist-packages/liblarch/processqueue.py", line 42, in process_queue
    func(*action[1:])
  File "/usr/lib/python2.7/dist-packages/liblarch/tree.py", line 230, in _add_node
    self._callback("node-added", node_id)
  File "/usr/lib/python2.7/dist-packages/liblarch/tree.py", line 80, in _callback
    func(node_id)
  File "/usr/lib/python2.7/dist-packages/liblarch/filteredtree.py", line 139, in __external_modify
    return self.__update_node(node_id,direction="both")
  File "/usr/lib/python2.7/dist-packages/liblarch/filteredtree.py", line 203, in __update_node
    self.__update_node(parent,direction="up")
  File "/usr/lib/python2.7/dist-packages/liblarch/filteredtree.py", line 239, in __update_node
    paths = self.get_paths_for_node(node_id)
  File "/usr/lib/python2.7/dist-packages/liblarch/filteredtree.py", line 442, in get_paths_for_node
    raise Exception("%s is not children of %s\n%s" % (node_id, parent_id,str(self.nodes)))
Exception: c932945c-c5aa-40f7-a57a-8d7d1903d79d is not children of root*90124810293810238*!@ébpo@@+épboébpon/*»«%«»(+-¡a
{'2ab66dfe-0b11-4cc3-b94e-41f5224c95c7': {'parents': ['root*90124810293810238*!@\xc3\xa9bpo@@+\xc3\xa9pbo\xc3\xa9bpon/*\xc2\xbb\xc2\xab%\xc2\xab\xc2\xbb(+-\xc2\xa1a'], 'children': []}, 'c932945c-c5aa-40f7-a57a-8d7d1903d79d': {'parents': ['root*90124810293810238*!@\xc3\xa9bpo@@+\xc3\xa9pbo\xc3\xa9bpon/*\xc2\xbb\xc2\xab%\xc2\xab\xc2\xbb(+-\xc2\xa1a'], 'children': []}, 'root*90124810293810238*!@\xc3\xa9bpo@@+\xc3\xa9pbo\xc3\xa9bpon/*\xc2\xbb\xc2\xab%\xc2\xab\xc2\xbb(+-\xc2\xa1a': {'parents': [], 'children': ['2@1', '909647ef-16c3-4a48-92ce-daf058da50f4', '126f6607-6b6b-41f7-8a96-fb6bad56bb41', '99a9807a-bf0e-42ce-a62b-092c78d7682a']}, '2@1': {'parents': ['root*90124810293810238*!@\xc3\xa9bpo@@+\xc3\xa9pbo\xc3\xa9bpon/*\xc2\xbb\xc2\xab%\xc2\xab\xc2\xbb(+-\xc2\xa1a'], 'children': []}, '126f6607-6b6b-41f7-8a96-fb6bad56bb41': {'parents': ['root*90124810293810238*!@\xc3\xa9bpo@@+\xc3\xa9pbo\xc3\xa9bpon/*\xc2\xbb\xc2\xab%\xc2\xab\xc2\xbb(+-\xc2\xa1a'], 'children': []}, '99a9807a-bf0e-42ce-a62b-092c78d7682a': {'parents': ['root*90124810293810238*!@\xc3\xa9bpo@@+\xc3\xa9pbo\xc3\xa9bpon/*\xc2\xbb\xc2\xab%\xc2\xab\xc2\xbb(+-\xc2\xa1a'], 'children': []}, '909647ef-16c3-4a48-92ce-daf058da50f4': {'parents': ['root*90124810293810238*!@\xc3\xa9bpo@@+\xc3\xa9pbo\xc3\xa9bpon/*\xc2\xbb\xc2\xab%\xc2\xab\xc2\xbb(+-\xc2\xa1a'], 'children': []}}

I think all my data is still there and displayed though.

An indication as to how to make the fix the error would be nice...

Related branches

Lionel Dricot (ploum) wrote :

What version of liblarch are you using?

python-liblarch:
  Installed: 0.1.0-1
  Candidate: 0.1.0-1
  Version table:
 *** 0.1.0-1 0
        500 http://ppa.launchpad.net/gtg/ppa/ubuntu/ precise/main amd64 Packages
        100 /var/lib/dpkg/status

Nimit Shah (nimit-svnit) on 2012-10-21
tags: added: liblarch
Lionel Dricot (ploum) wrote :

This might have been fixed in liblarch upstream, we will need you to test with the latest liblarch trunk (and gtg viewcount branch because there was some API changes in liblarch). You need bzr and git installed

In a folder :

bzr branch lp:~gtg/gtg/viewcount
git clone https://github.com/liblarch/liblarch.git
cd viewcount
./scripts/import_my_tasks_into_debug_tasks.sh
./scripts/debug.sh

If there's still a problem, please paste the output.

Changed in gtg:
assignee: nobody → Lionel Dricot (ploum)

On Sun, Oct 21, 2012 at 11:33:01AM -0000, Lionel Dricot wrote:
> bzr branch lp:~gtg/gtg/viewcount
> git clone https://github.com/liblarch/liblarch.git
> cd viewcount
> ./scripts/import_my_tasks_into_debug_tasks.sh
> ./scripts/debug.sh
>
PYTHONPATH=../liblarch/ ./scripts/debug.sh
works better :)

> If there's still a problem, please paste the output.
>
That seems to have fixed the issue. At least I don't get any prompt anymore.

Thanks!

Closing it then as fixed upstream.

Changed in gtg:
status: New → Fix Committed
milestone: none → 0.3
importance: Undecided → Medium
summary: - gtg thew ... is not children of ... exception
+ gtg threw ... is not children of ... exception
Lionel Dricot (ploum) on 2012-10-29
Changed in gtg:
status: Fix Committed → In Progress
Changed in gtg:
status: In Progress → Fix Committed
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