I would like to create a new report add-on for Gramps version 5,1.
My local environment is MacOS 13.7.4, Python 3.13.2, Xcode 15.2, and Xcode command line tools 15.1.
I have tried for over a month to get Gramps Development installed. Every instruction I could find to do this has failed: GTK installation failed, JHbuild installation failed, and Meson installation failed. I’m exhausted and very frustrated.
Could someone PLEASE outline the correct procedure for creating a development for Gramps in my MacOS?
All I want to do is create a report add-on for Gramps.
I suspect that you may not need so many extra development packages. There is a GTK and Python that is installed when you install Gramps.
I needed to install Glade to lay out new interface with a GUI instead of via hand plotting the widgets. And all the experiments with with scripts for SuperTool, Python Shell, and Python Eval have not required any additional setup. Nor have the minor tweaks.
I suppose if you’re doing something radically different… like r or C/C++ modules… that might be a different case.
What is your objective for the Report? For most basic reports, you probably only need the modules provided by Gramps.
If you want to create a new Report addon, you wont need any new dev environment. Everything you need is already set up.
The following will create a new folder for your report (change ReportName as appropriate) in the default location for addons for gramps51. You can create your addon in this folder and test it.
cd ~/Library/Application Support/gramps/gramps51/plugins
mkdir <ReportName>
cd <ReportName>
Gary, the sample report is exactly what I need, however, when I place it in the plugins directory, I see it in the Reports/Text Reports menu, but running the sample report fails: Failed Loading Plugin – The plugin Sample Report did not load and reported an error.
My mac console says: error 16:18:40.019423-0500 cfprefsd Couldn’t open parent path due to [2: No such file or directory]
The sample report registry file looks a bit different than other registry files. Is this sample plugin up to date with Gramps version 5.1.5?
Fixed the file (removed the import of the form module). The gpr sets the target version to 5.1 .
Yes, the gpr file looks a bit different than many other gramplets since reports have some additional options. There are a number of options in a gpr that are dependent on the type of module. This report can be run from CLI or from GUI, for instance.
Send me a PM if you have other issues with this report or have questions about how it works.
Bill if you decide to share your report with the community (and I hope you do), please remember to change the unique identifier (in the report plugin’s .gpr.py file) first. This ensures that your report won’t conflict with other reports based on Gary’s sample.