[macOS]Unable to view NetworkChart Addon Report

Gramps 6.0.4

Python 3.13.2

Mac Ventura 13.4 (M2)

I have installed all prerequisites and this has been confirmed both in code and when checking another Report addon which is working as intended.

The NetworkChart addon however does get installed correctly (I have checked the folder path and the addon is present and Gramps also confirms correct installation).

However, when I go to the Reports > Web Pages section there is no mention of NetworkChart there as an option to select. As stated before, I have also installed the “Descendant Space Tree” addon. This addon works fine and comes up under tha Reports > Web Pages section.

Seeing as everything seems to have installed correctly (including networkx, pygraphviz) I can’t see a reason why it doens’t show as an option under Reports. Any ideas?

Thanks,

Welcome.

I had the same problem on my Mac recently with NetworkChart. What I found was that pygraphviz was installed but failed to initialize (without any error or warning due to signed dso issue).

My solution was to install pydotplus and pydot (with any dependencies) also. Network Chart can either use pydotplus (primary) or pygraphviz (backup). See 0013974: [MacOS installers] Add prerequistes NetworkChart [Wontfix][MacOS use: MacPorts] - Gramps - Bugtracker – Free Genealogy Software

This solution uses pydotplus instead of pygraphviz. But the GPR still requires pygraphviz to be installed (you can remove requirement from the GPR if you want).

3 Likes

Hi, thanks for the response. I’ve installed both pydotplus and pydot whilst retaining pygraphviz but still have the issue of the NetworkChart addon not appearing in the Reports menu. Any ideas?

Away from computer until next week so cannot check exact details. First, be sure to run from command line so you see errors. Second remove pyGraphviz from gpr requires section. Third, did you install pydot plus dependencies (pyparsing, I think) too?

Next step would be to add

import pydotplus

outside the try loop so you can see the error.

1 Like

Did you follow the commands in this Feature Request? I tried to make it explicit in how to get NetworkChart to work on MacOS.

If you edit NetworkChart.py you will see the following code towards the beginning:

# pydotplus is needed for nx_pydot

try:

import pydotplus

PYDOT = True

except ImportError:

PYDOT = False

if not PYDOT:

try:

    import pygraphviz

    PYGRAPHVIZ = True

except ImportError:

    PYGRAPHVIZ = False

else:

PYGRAPHVIZ = False

add the following lines after this:

import pydotplus

This should generate an error on failure, telling you what dependency failed to load. You need to install it also to the Mac bundle as described in the Feature Request.