Problem changing home person in report

In the Detailed Descendant Report start window there’s an option for changing the home person.
When I click the “Choose another person” icon I get the following error:

8853870: ERROR: grampsapp.py: line 188: Unhandled exception
Traceback (most recent call last):
  File "/Applications/Gramps.app/Contents/Resources/lib/python3.13/site-packages/gramps/gui/plug/_guioptions.py", line 716, in __get_person_clicked
    sel = select_class(
        self.__dbstate,
    ...<3 lines>...
        filter=rfilter,
    )
  File "/Applications/Gramps.app/Contents/Resources/lib/python3.13/site-packages/gramps/gui/selectors/selectperson.py", line 80, in __init__
    BaseSelector.__init__(
    ~~~~~~~~~~~~~~~~~~~~~^
        self, dbstate, uistate, track, filter, skip, show_search_bar, default
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/Applications/Gramps.app/Contents/Resources/lib/python3.13/site-packages/gramps/gui/selectors/baseselector.py", line 135, in __init__
    self.search_bar.filter_list.set_active(filter[0])
                                           ~~~~~~^^^
TypeError: 'GenericFilter' object is not subscriptable

System Information:

Gramps version: 6.0.0
Python version: 3.13.2
BSDDB version: 18.1.13 (4, 8, 30)
sqlite version: 3.49.1
orjson version: 3.10.15
LANG: da_DK.UTF-8
OS: Darwin
Distribution: 22.6.0

GTK version : 3.24.48
gobject version: 3.51.0
cairo version : (1, 26, 0)

Hi @csam
This problem should be fixed in gramps 6.0.1 which was released yesterday. Apologies for the inconvenience that this bug caused.

Steve

2 Likes

Thanks, Steve
It’s actually not a big problem, as the workaround is to set home person before starting the report.

Just installed v6.0.1 on MacOS Ventura (Intel).
Unfortunately the problem still exist :sleepy_face:

@SteveY

Could you mention the Pull Request that applies to this problem of changing the Home Person in a report?

I installed Gramps 6.0.1 from the file Gramps-Intel-6.0.1-1.dmg, but the “About” still reports “6.0.0”.
So not sure whether this is actually v6.0.0 or v6.0.1
Maybe someone can detect what Gramps version is in the package file from this output:

➜  /Applications /Applications/Gramps.app/Contents/MacOS/Gramps -v
Gramps Settings:
----------------
 gramps    : 6.0.0
 o.s.      : Darwin
 kernel    : 22.6.0

Required:
---------
 Python    : 3.13.2
 Gtk++     : 3.24.48
 pygobject : 3.51.0
 Cairo     : 1.18.2
 pycairo   : 1.26.0
 Pango     : 1.56.1
 PangoCairo: 1.0
 orjson    : 3.10.15

Recommended:
------------
 osmgpsmap : 1.0
 Graphviz  : 12.2
 Ghostscr. : Ghostscript not in system PATH
 ICU       : 3.13.2
 PyICU     : not found

Optional:
---------
 Gspell     : 1
 RCS        : not found
 PILLOW     : 11.1.0
 GExiv2     : 0.10
 Exiv2 lib. : not found because exiv2 is not installed
 geocodeglib: 1.0

I was thinking of PS #2032
Prevent Unhandled Exception in GuiPersonOption by stevenyoungs · Pull Request #2032 · gramps-project/gramps

@csam in gramps 6.0.0, I can reproduce the problem by click the button to the right of the “Center Person”
In gramps 6.0.1 the button works correctly:

The crash report in your initial message matches the problem I fixed in PR #2032 which is included in gramps 6.0.1

I tested on Windows using both the official 6.0.1 release as well as a development version. I’m wondering if you are still running gramps 6.0.0?

Gramps Settings:
----------------
 gramps    : AIO64-6.0.1--1
 o.s.      : Windows

Required:
---------
 Python    : 3.12.10
 Gtk++     : 3.24.49
 pygobject : 3.52.3
 Cairo     : 1.18.4
 pycairo   : 1.28.0
 Pango     : 1.56.3
 PangoCairo: 1.0
 orjson    : 3.10.16
1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.