New FamilyTreeView Addon (Thread 2)

Sorry for the late response. I’ve been pretty busy the past few weeks. I apologize in advance for periods of delayed responses over the coming months.

I think it should be possible to display a message without opening a message dialog. A short message could be added message to the bottom of the Addon Manager (between the Help and the Refresh buttons) or inside the “addon box”.

This is also possible, but it should also indicate when preferences require a restart to take effect. When you click on the the warning icon, a list could appear showing which preferences and addons require a restart of Gramps.

3 Likes

In case you consider updating packages related to Gnome/PyGObject/Pango or a Gramps package (e.g. Flatpak) shipped with an updated versions of those:
Over the past few hours, two users have reported errors, likely due to an Pango update with an undocumented change in the signature of Pango’s extents_to_pixels() function: #60 #61

Rolling back to an earlier version of Pango seems to solve the problem.

1 Like

0013920: FTV error relating to interaction with possible recent system updates.

Sudden major error with FamilyTreeViwe. Happened on Fedora42 after a few updates and is certainly related to interaction FTV according to the trace.
Thankfully the core can proceed and I can return to the ‘old’ way of doing things but I will surely miss the FTV ‘new way’ util it is investigated and fixed!
Happy summer and stay safe!
Brian

Surely @ztlxltl will need more details? Could post a screenshot of the error message?

@stuck,

It’s all in the linked bug report indicated. It looks like this has happened to others and @ztlxltl already knows the cause and has indicated a work-around. Although I must confess I don’t know how to safely revert to an earlier version while adjustments are being made. Any help would be appreciated in that department.

brian

Sorry, yes, my oversight.

@ztlxltl I can’t get Gramps AIO v6.0.4 to run to Win 11 unless I disable FTV. Is it just me or can you / others reproduce this?

@stuck
I don’t have any problems with Gramps 6.0.4 on Win 10. Could you create a GitHub issue with more details, such as the error message or the console output when running GrampsAIO64 6.0.4-console instead of GrampsAIO64 6.0.4.

I’m away from home at the moment so it will be a while before I can create a GitHub issue.

Meanwhile this might help you:

  1. When I last ran v6.0.3 I closed Gramps with FTV as the current view.
  2. I left v6.0.3 in place and installed v6.0.4, no errors during the installation.
  3. Now unless I first navigate to the Gramps plugin folder and rename the FTV folder then when I try to run of v6.0.4 I always get:
User Information: 
===================




Error Details: 
===================

4199: ERROR: grampsapp.py: line 188: Unhandled exception
Traceback (most recent call last):
  File "C:\Program Files\GrampsAIO64-6.0.4\gramps\gui\grampsgui.py", line 773, in do_activate
    Gramps(self.argparser, self)
  File "C:\Program Files\GrampsAIO64-6.0.4\gramps\gui\grampsgui.py", line 603, in __init__
    self._vm.open_activate(filename)
  File "C:\Program Files\GrampsAIO64-6.0.4\gramps\cli\grampscli.py", line 241, in open_activate
    self._read_recent_file(path, username, password)
  File "C:\Program Files\GrampsAIO64-6.0.4\gramps\cli\grampscli.py", line 284, in _read_recent_file
    self._post_load_newdb(filename, "x-directory/normal", title)
  File "C:\Program Files\GrampsAIO64-6.0.4\gramps\gui\viewmanager.py", line 1103, in _post_load_newdb
    self._post_load_newdb_gui(filename, filetype, title)
  File "C:\Program Files\GrampsAIO64-6.0.4\gramps\gui\viewmanager.py", line 1152, in _post_load_newdb_gui
    self.__change_page(self.notebook.get_current_page())
  File "C:\Program Files\GrampsAIO64-6.0.4\gramps\gui\viewmanager.py", line 984, in __change_page
    self.active_page.set_active()
  File "C:\Users\Common\AppData\Roaming\gramps\gramps60\plugins\FamilyTreeView\family_tree_view.py", line 570, in set_active
    NavigationView.set_active(self)
  File "C:\Program Files\GrampsAIO64-6.0.4\gramps\gui\views\navigationview.py", line 159, in set_active
    self.goto_active(None)
  File "C:\Program Files\GrampsAIO64-6.0.4\gramps\gui\views\navigationview.py", line 194, in goto_active
    self.goto_handle(active_handle)
  File "C:\Users\Common\AppData\Roaming\gramps\gramps60\plugins\FamilyTreeView\family_tree_view.py", line 566, in goto_handle
    self.rebuild_tree()
  File "C:\Users\Common\AppData\Roaming\gramps\gramps60\plugins\FamilyTreeView\family_tree_view.py", line 640, in rebuild_tree
    self._rebuild_tree(root_person_handle, offset, reset=reset)
  File "C:\Users\Common\AppData\Roaming\gramps\gramps60\plugins\FamilyTreeView\family_tree_view.py", line 669, in _rebuild_tree
    self.widget_manager.panel_manager.open_person_panel(root_person_handle, 0, 0)
  File "C:\Users\Common\AppData\Roaming\gramps\gramps60\plugins\FamilyTreeView\family_tree_view_panel_manager.py", line 132, in open_person_panel
    timeline = FamilyTreeViewTimeline(self.widget_manager, person, self.panel_scrolled)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Common\AppData\Roaming\gramps\gramps60\plugins\FamilyTreeView\family_tree_view_timeline.py", line 176, in __init__
    self.create_timeline()
  File "C:\Users\Common\AppData\Roaming\gramps\gramps60\plugins\FamilyTreeView\family_tree_view_timeline.py", line 424, in create_timeline
    - get_label_line_height(event_label)/2
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Common\AppData\Roaming\gramps\gramps60\plugins\FamilyTreeView\family_tree_view_utils.py", line 140, in get_label_line_height
    Pango.extents_to_pixels(logical_extent_rect)
TypeError: Pango.extents_to_pixels() takes exactly 2 arguments (1 given)


System Information: 
===================

Gramps version: AIO64-6.0.4--1 
Python version: 3.12.11 
BSDDB version: not found 
sqlite version: 3.50.4 
orjson version: 3.11.2
LANG: en_GB.UTF-8
OS: Windows

GTK version    : 3.24.50
gobject version: 3.52.3
cairo version  : (1, 28, 0)

It looks like you are not using the latest version of FTV. Could you please make sure, you are using v0.1.164? This version should fix this particular bug.

Manually edit your gramps.ini file.

Change
last-view='FamilyTreeView'
to
last-view='dashboardview'

This should get you into 6.0.4. Then you can see what errors arise navigating to FTV.

Ah! that fixed it. Not sure why I wasn’t on FTV 1.64 but I am now and all is well again.

1 Like

Thanks for the hint but I still have v6.0.3 installed, which worked without error so I was able to update FTV in v6.0.3 and that meant v6.0.4 was OK when I switched to that version.

1 Like

I was playing with the empty database function today (FTV 0.1.164 in Gramps 6.0.4 on macOS) and found a couple of issues.

After clicking on [Import data] and returning to the empty view, then clicking [Add a new person] also opens the Import window. After jumping to another view and then back to FTV then [Add a new person] works ok.

I think the [Import data] should be changed to two buttons: [Import Gramps database] and [Import GEDCOM file]. Many new users come from another genealogy software and therefore (hopefully) already have an exported GEDCOM file.

Thank you for testing this feature of FTV. I will try to reproduce and fix it soon.


Do you mean .gramps files by “Gramps database”? The import window should work with GEDCOM, .gramps, .gpkg and other file formats. Are you having issues with any of these formats?
Should I be more explicit? For example, should the label read, “Import GEDCOM, Gramps backups or other files”?

Sorry for the confusion. On my system when clicking [Import data] it defaults to a directory, where I only have .gramps files. So my mistake.
Changing to a directory with gedcom files, and it loads the gedcom flawlessly.

2 Likes

A more streamlined process for importing GEDCOMs starts with Gramps not running.

Use the “Open with” context menu choice on your OS desktop for the GEDCOM and choose Gramps. The new tree will created, re-named similarly to the file, loaded, and the import will be started.

1 Like

Do you think it would be possible to have a Gramps for beginners packaged with this view pre-installed in the Plugins directory and a script added, a .bat for example on Windows, which would create an empty database, an .ini file indicating that the last database opened is this empty database and that the last view used is FTV. It would end by opening Gramps. This new user would arrive directly on the previous image offering to create an individual or to download a file.

1 Like

I was able to reproduce this bug, but only on macOS. This bug doesn’t occur on Ubuntu or Windows. I’m not sure why this is happening and why it only occurs on macOS. I tried to fix it on macOS, but nothing worked. I’m out of ideas.

@emyoulation
I noticed that you suggest this method of importing a GEDCOM in multiple threads, and I agree that it is very straightforward. I tried to understand what is happening in order to add this feature as an additional button for the “no tree loaded” case, but I wasn’t successful. I could try to reimplement the process on my own, but I’m not sure how stable it would be. Ideally, someone could point me to the existing functions/methods that could be called when the user clicks the new button. As far as I understand, these methods are part of the CLI argument handler. Therefore, they might not be directly accessible once Gramps is running.