# New FamilyTreeView Addon

**URL:** <https://gramps.discourse.group/t/new-familytreeview-addon/6641>\
**Category:** Development\
**Tags:** third-party-addon, familytreeview\
**Created:** [December 23, 2024, 4:14pm UTC](https://gramps.discourse.group/t/new-familytreeview-addon/6641 "2024-12-23T16:14:18Z")\
**Posts on this page:** 20\
**Page:** 4

<div class="post-metadata">

**Author:** ![emyoulation](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/emyoulation/32/67_2.png) [@emyoulation](https://gramps.discourse.group/u/emyoulation)\
**Post date:** [December 25, 2024, 6:12pm UTC](https://gramps.discourse.group/t/new-familytreeview-addon/6641/61 "2024-12-25T18:12:44Z")

</div>

> [@ztlxltl](#):
>
> Please bear with me for my reluctance to change something that (now) seems to work for most users.

No worries. The [Addon Manager](https://gramps-project.org/wiki/index.php/Gramps_5.2_Wiki_Manual_-_Navigation#Using_the_Addon_Manager) user docs are all from experience. Its fallback behavior is assumed from other features. We can wait for Nick to finish his holiday for the definitive answer.

We discovered the problem with the Plugin Manager Enhanced through experimentation. And I don’t think the fix ever filtered back to its ancestor, the built-in Plugin Manager. Probably because the Isotammi group expanded their builds of the addons.txt file to cover more languages so quickly… before a bug report was filed for the core.

---

<div class="post-metadata">

**Author:** ![ztlxltl](https://avatars.discourse-cdn.com/v4/letter/z/96bed5/32.png) [@ztlxltl](https://gramps.discourse.group/u/ztlxltl)\
**Post date:** [December 25, 2024, 6:19pm UTC](https://gramps.discourse.group/t/new-familytreeview-addon/6641/62 "2024-12-25T18:19:33Z")

</div>

> [@ztlxltl](#):
>
> > [@roptat](#):
> >
> > For some people the timeline looks silly. It looks like all the dates are written at the same position. I think this is because I have an event with an invalid date (this is what I found to denote a negative event “did definitely not happen”). Maybe it’s interpreted as gregorian year 1 (0?), then all other events are shown at the same place.
> 
> I had this several times and fixed a few of the causes. Obviously I didn’t catch all the edge cases. You are right about the cause: The date is interpreted as 0 in the calendar used for the timeline. Could you provide more information about the event and especially the date (e.g. screenshots) so that I can reproduce this and fix it?

@roptat  
I’ve tried a few things and found that the problem you describe also occurs for events with text-only dates. In the latest version (v0.1.10), I added a filter to remove events with text-only dates.

I kindly ask you to check if this solves your problem. If not, please provide more information about the event (and especially its date) that is shown with year 0.

---

<div class="post-metadata">

**Author:** ![Brinycoolie](https://avatars.discourse-cdn.com/v4/letter/b/e56c9b/32.png) [@Brinycoolie](https://gramps.discourse.group/u/Brinycoolie)\
**Post date:** [December 25, 2024, 8:34pm UTC](https://gramps.discourse.group/t/new-familytreeview-addon/6641/63 "2024-12-25T20:34:44Z")

</div>

Thanks for all your work.  
I have tried both ways to install the view (zip and source) and in both methods I get this ‘strange’ message when I restart gramps to see the new view.

Failed loading view  
\*\*\* No error found. Probably error in .gpr.py file\*\*\*

(can’t paste the screenshot, sorry)

I am running Mint 22 Wilma and in all other respects Gramps runs well. This the first time I have seen this error.  
I am thinking there may be a prerequisite missing somewhere, but you may know better.

Thanks and eagerly awaiting the first non-beta version

brian

---

<div class="post-metadata">

**Author:** ![emyoulation](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/emyoulation/32/67_2.png) [@emyoulation](https://gramps.discourse.group/u/emyoulation)\
**Post date:** [December 25, 2024, 8:38pm UTC](https://gramps.discourse.group/t/new-familytreeview-addon/6641/64 "2024-12-25T20:38:03Z")

</div>

> [@Brinycoolie](#):
>
> I am running Mint 22 Wilma and in all other respects Gramps runs well.

Your profile doesn’t say which Gramps version is being run. Is it 5.2.0 or better?

---

<div class="post-metadata">

**Author:** ![Brinycoolie](https://avatars.discourse-cdn.com/v4/letter/b/e56c9b/32.png) [@Brinycoolie](https://gramps.discourse.group/u/Brinycoolie)\
**Post date:** [December 25, 2024, 8:41pm UTC](https://gramps.discourse.group/t/new-familytreeview-addon/6641/65 "2024-12-25T20:41:12Z")

</div>

sorry. my bad.

GRAMPS: 5.2.3  
Python: 3.10.12  
BSDDB: 6.2.9 (5, 3, 28)  
sqlite: 3.37.2 (2.6.0)  
LANG: en\_US.UTF-8  
OS: Linux  
Distribution: 5.15.0-130-generic

---

<div class="post-metadata">

**Author:** ![ztlxltl](https://avatars.discourse-cdn.com/v4/letter/z/96bed5/32.png) [@ztlxltl](https://gramps.discourse.group/u/ztlxltl)\
**Post date:** [December 25, 2024, 9:19pm UTC](https://gramps.discourse.group/t/new-familytreeview-addon/6641/66 "2024-12-25T21:19:02Z")

</div>

> [@Brinycoolie](#):
>
> \*\*\* No error found. Probably error in .gpr.py file\*\*\*

Without further information, this will be hard to reproduce and/or debug. Is there any other information about what file might be causing the error? Please check the terminal as well.

If there is no further info: There are three .gpr.py files included when you install FamilyTreeView. In your case, I suggest you remove one of the three files, start Gramps and see if the error appears. If not, restore the deleted file and delete another .gpr.py file. Same for the third file.

Please also open an issue on GitHub or a private message in this forum to investigate this without creating too much traffic in this thread.

---

<div class="post-metadata">

**Author:** ![emyoulation](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/emyoulation/32/67_2.png) [@emyoulation](https://gramps.discourse.group/u/emyoulation)\
**Post date:** [December 25, 2024, 9:39pm UTC](https://gramps.discourse.group/t/new-familytreeview-addon/6641/67 "2024-12-25T21:39:43Z")

</div>

This is based on the Graph View addon? It does not require the that addon be installed but needs the same prerequisites to support it, right?

I notice that this plugin registration does not include the Gramps Plugin Registration “requires” attributes. Should they be added?

> <https://github.com/gramps-project/addons-source/blob/5df4699fc1024b93b213f4fef9aa69e2dcde6cff/GraphView/graphview.gpr.py#L15-L16>

@Brinycoolie without the [Addon Manager](https://gramps-project.org/wiki/index.php/Gramps_5.2_Wiki_Manual_-_Navigation#Using_the_Addon_Manager) checking the prequisites, you’ll need to check those manually. Either by verifying that the Graph View addon view works; or, by posting the results from the Prerequisites Checker addon dashboard gramplet.

---

<div class="post-metadata">

**Author:** ![ztlxltl](https://avatars.discourse-cdn.com/v4/letter/z/96bed5/32.png) [@ztlxltl](https://gramps.discourse.group/u/ztlxltl)\
**Post date:** [December 25, 2024, 10:03pm UTC](https://gramps.discourse.group/t/new-familytreeview-addon/6641/68 "2024-12-25T22:03:38Z")

</div>

> [@emyoulation](#):
>
> This is based on the Graph View addon? It does not require the that addon be installed but needs the same prerequisites to support it, right?

I wouldn’t say that it is based on Graph View (did I write this somewhere?) More like: The use of GooCanvas is inspired by Graph View. (I also tried HTML/CSS/JS but this doesn’t work on Windows because webkit is not in the AIO or something.)

> [@emyoulation](#):
>
> I notice that this plugin registration does not include the Gramps Plugin Registration “requires” attributes. Should they be added?

Yes, you are right. I missed to include the requirements in the .gpr.py files. I’ll do that soon.

---

<div class="post-metadata">

**Author:** ![Brinycoolie](https://avatars.discourse-cdn.com/v4/letter/b/e56c9b/32.png) [@Brinycoolie](https://gramps.discourse.group/u/Brinycoolie)\
**Post date:** [December 25, 2024, 10:12pm UTC](https://gramps.discourse.group/t/new-familytreeview-addon/6641/69 "2024-12-25T22:12:06Z")

</div>

Thank you @emyoulation for the hint. In my manual searches I found that a SVG reprequisite named gir1.2-rsvg-2.0 needs to be installed. Synaptic did the job. So my situation is seemingly resolved for now but maybe we should add a note in the ‘Optional’ section of the prerequisite checker blurb that this file is needed for this particular view.  
I suspect that some level of automation might resolve this type of issue at a system level going forward  
This might be local to linux mint because I have never seen it in Ubuntu 22.04, 20.04 and so on.

Thanks to all and happy festivus to all.  
brian

---

<div class="post-metadata">

**Author:** ![ztlxltl](https://avatars.discourse-cdn.com/v4/letter/z/96bed5/32.png) [@ztlxltl](https://gramps.discourse.group/u/ztlxltl)\
**Post date:** [December 25, 2024, 10:59pm UTC](https://gramps.discourse.group/t/new-familytreeview-addon/6641/70 "2024-12-25T22:59:21Z")

</div>

> [@ztlxltl](#):
>
> > [@emyoulation](#):
> >
> > I notice that this plugin registration does not include the Gramps Plugin Registration “requires” attributes. Should they be added?
> 
> Yes, you are right. I missed to include the requirements in the .gpr.py files. I’ll do that soon.

@emyoulation  
I just pushed added the gi module requirements to the gpr.py. Is there a way to check if it works? (I don’t have a system without a requirement.)

---

<div class="post-metadata">

**Author:** ![GeorgeWilmes](https://avatars.discourse-cdn.com/v4/letter/g/c57346/32.png) [@GeorgeWilmes](https://gramps.discourse.group/u/GeorgeWilmes)\
**Post date:** [December 25, 2024, 11:45pm UTC](https://gramps.discourse.group/t/new-familytreeview-addon/6641/71 "2024-12-25T23:45:16Z")

</div>

> [@Brinycoolie](#):
>
> In my manual searches I found that a SVG reprequisite named gir1.2-rsvg-2.0 needs to be installed.

Thanks, that fixed it for me too.

---

<div class="post-metadata">

**Author:** ![emyoulation](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/emyoulation/32/67_2.png) [@emyoulation](https://gramps.discourse.group/u/emyoulation)\
**Post date:** [December 25, 2024, 11:50pm UTC](https://gramps.discourse.group/t/new-familytreeview-addon/6641/72 "2024-12-25T23:50:30Z")

</div>

> [@ztlxltl](#):
>
> I just pushed added the gi module requirements to the gpr.py. Is there a way to check if it works? (I don’t have a system without a requirement.)

I’ll re-install Windows 10 and then test on a fresh 5.2.3 download install

---

<div class="post-metadata">

**Author:** ![GeorgeWilmes](https://avatars.discourse-cdn.com/v4/letter/g/c57346/32.png) [@GeorgeWilmes](https://gramps.discourse.group/u/GeorgeWilmes)\
**Post date:** [December 26, 2024, 12:05am UTC](https://gramps.discourse.group/t/new-familytreeview-addon/6641/73 "2024-12-26T00:05:57Z")

</div>

> [@roptat](#):
>
> the timeline will show “age in days”

For some people, I get a timeline with “age in ~months” which isn’t useful.

> [@DaveSch](#):
>
> The children (and subsequent generations) only show the first marriages and their children.

What might be useful (for this and other chart views) would be an option to enter an “as-of” date, which would cause the chart to filter out people not yet born as of that date, as well as other events that had not yet occurred, and also default the display to the marriages that were last in effect as of that date rather than the first marriage.

---

<div class="post-metadata">

**Author:** ![emyoulation](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/emyoulation/32/67_2.png) [@emyoulation](https://gramps.discourse.group/u/emyoulation)\
**Post date:** [December 26, 2024, 1:28am UTC](https://gramps.discourse.group/t/new-familytreeview-addon/6641/74 "2024-12-26T01:28:03Z")

</div>

> [@ztlxltl](#):
>
> I just pushed added the gi module requirements to the gpr.py. Is there a way to check if it works? (I don’t have a system without a requirement.)

The requirements don’t show in the Windows 10 Gramps FamilyTreeView 5.2.3r1 Addon&nbsp;Manager’s list. But the 0.1.11 view loads after being installed and seems operational. So does the “Children Quick View” quick view.

Still exploring

---

<div class="post-metadata">

**Author:** ![ztlxltl](https://avatars.discourse-cdn.com/v4/letter/z/96bed5/32.png) [@ztlxltl](https://gramps.discourse.group/u/ztlxltl)\
**Post date:** [December 26, 2024, 11:04am UTC](https://gramps.discourse.group/t/new-familytreeview-addon/6641/75 "2024-12-26T11:04:58Z")

</div>

> [@Woody](#):
>
> ![Screenshot 2024-12-25 162706](https://global.discourse-cdn.com/free1/uploads/gramps/original/2X/0/05ea415128cda0f96d9c6e358e1c0a74ee17b556.png)
> 
> Screenshot 2024-12-25 1627062601×1148 221 KB

@Woody  
I’ve just implemented and pushed a new experimental feature (v0.1.14) that allows you to double-click on one end of a connection to move to the other end. You should be able to activate it in the experimentals tab in the config window of FTV. This should make it easier to follow the lines in your…

> [@Woody](#):
>
> spaghetti

---

<div class="post-metadata">

**Author:** ![roptat](https://avatars.discourse-cdn.com/v4/letter/r/51bf81/32.png) [@roptat](https://gramps.discourse.group/u/roptat)\
**Post date:** [December 26, 2024, 12:49pm UTC](https://gramps.discourse.group/t/new-familytreeview-addon/6641/77 "2024-12-26T12:49:39Z")

</div>

> [@ztlxltl](#):
>
> I’ve tried a few things and found that the problem you describe also occurs for events with text-only dates. In the latest version (v0.1.10), I added a filter to remove events with text-only dates.
> 
> I kindly ask you to check if this solves your problem. If not, please provide more information about the event (and especially its date) that is shown with year 0.

That seems to have fixed the issue, thanks 🙂

---

<div class="post-metadata">

**Author:** ![emyoulation](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/emyoulation/32/67_2.png) [@emyoulation](https://gramps.discourse.group/u/emyoulation)\
**Post date:** [December 26, 2024, 1:30pm UTC](https://gramps.discourse.group/t/new-familytreeview-addon/6641/78 "2024-12-26T13:30:32Z")

</div>

@kmikkels recently created a Historical Context gramplet which needs to determine a lifespan for the Active Person.

The initial version needed an explicit valid Birth and/or Death date. It had a hard-coded maximum lifespan to estimate if one endpoint was missing.

The next step in the evolution was to use the [fallback utilities](https://www.gramps-project.org/docs/search.html?q=Fallback) for the endpoints. And to use the Preferences value for the the maximum lifespan.

Then he discovered the **ProbablyAlive** gramps utility that did all that plus more… like considering nearby relatives or life events to estimate the missing endpoints.

See the `gramps.gen.utils.alive.probably_alive_range`  
[https://www.gramps-project.org/docs/gen/gen\_utils.html#gramps.gen.utils.alive.ProbablyAlive](https://www.gramps-project.org/docs/gen/gen_utils.html#gramps.gen.utils.alive.ProbablyAlive)

---

<div class="post-metadata">

**Author:** ![Woody](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/woody/32/3406_2.png) [@Woody](https://gramps.discourse.group/u/Woody)\
**Post date:** [December 26, 2024, 2:50pm UTC](https://gramps.discourse.group/t/new-familytreeview-addon/6641/79 "2024-12-26T14:50:47Z")

</div>

> [@ztlxltl](#):
>
> @Woody  
> I’ve just implemented and pushed a new experimental feature (v0.1.14) that allows you to double-click on one end of a connection to move to the other end. You should be able to activate it in the experimentals tab in the config window of FTV. This should make it easier to follow the lines in your…

Unfortunately nothing happens. If I click on the person box the person opens. If I click on a line nothing happens either…  
Where do I have to/should I click?  
The checkbox is set.

---

<div class="post-metadata">

**Author:** ![ztlxltl](https://avatars.discourse-cdn.com/v4/letter/z/96bed5/32.png) [@ztlxltl](https://gramps.discourse.group/u/ztlxltl)\
**Post date:** [December 26, 2024, 4:10pm UTC](https://gramps.discourse.group/t/new-familytreeview-addon/6641/80 "2024-12-26T16:10:39Z")

</div>

I just tested on Ubuntu and Windows and it works on my machines.

You have to double-click on the connection line, not the person/family box.  
If the connection is just vertical, the bottom half will take you to the ancestor family and the top half will take you to the descendant.  
If the connection has a horizontal line, the boundary between these two different “zones” is at the horizontal line itself: the vertical line connecting the descendant to the horizontal part can be double-clicked to jump to the ancestor family, the vertical line connecting the ancestor family to the horizontal line lets you jump to the descendant. The horizontal part itself is not clickable.

Note that jumping to a descendant is disabled when there are multiple descendants, since the target would be ambiguous.  
Also note that the view is only scrolled, the active person doesn’t change.

You might have to zoom in a little bit, maybe the clickable area is too small if you zoomed out a lot.

It sounds very complicated when writing it down, but I think it is intuitive once you do it. Just remember that you have to double-click.

---

<div class="post-metadata">

**Author:** ![csam](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/csam/32/5361_2.png) [@csam](https://gramps.discourse.group/u/csam)\
**Post date:** [December 27, 2024, 7:51am UTC](https://gramps.discourse.group/t/new-familytreeview-addon/6641/81 "2024-12-27T07:51:52Z")

</div>

Gramps v5.2.3 om Mac Ventura  
When installing (upgrading) FamilyTreeView v0.1.15 I got this error message in [Addon Manager](https://gramps-project.org/wiki/index.php/Gramps_5.2_Wiki_Manual_-_Navigation#Using_the_Addon_Manager):

```python
ERROR .: Unhandled exception
Traceback (most recent call last):
  File "/Applications/Gramps.app/Contents/Resources/lib/python3.11/site-packages/gramps/gui/widgets/styledtexteditor.py", line 698, in __set_fallback_icons
    icon = tool_button.get_child().get_child()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'get_child'

```

However, the update went thru and all seems to work ok

[Previous page](https://gramps.discourse.group/t/new-familytreeview-addon/6641.md?page=3)

[Next page](https://gramps.discourse.group/t/new-familytreeview-addon/6641.md?page=5)
