Addon Manager reports "Addon Registration Failed" during install

While doing the due diligence for the newly published Historical Context addon documentation, I stripped all (gramps.ini and splitbar .ini) traces of the beta addon from my Gramps 5.2.3 installation and used the Addon Manager to Install.

Clicking the Install reports in the following dialog… which I haven’t seen before.

My 1st attempt was with a pre-existing .gramps/gramps52/plugins/HistContext folder that contained a customized default_data_v1_0.txt. (To verify that it was not overwritten during install/update.)

This Install button click resulted in an “Addon Registration Failed” dialog.
Restarting Gramps registered the addon without warning.

register(GRAMPLET,
         id="HistContext", 
         name=_("Historical Context"),
         description = _("Displaying a historical context"),
         status = STABLE,
         version = '0.2.11',
         fname="HistContext.py",
         height = 20,
         detached_width = 510,
         detached_height = 480,
         expand = True,
         gramplet = "HistContext",
         gramplet_title=_("Historical Context"),
         gramps_target_version="5.2",
#         help_url="https://github.com/kajmikkelsen/TimeLineGramplet",
         help_url="Addon:Historical_Context",
         navtypes=["Person","Dashboard"],
         include_in_listing = True,
         )

So I quit Gramps, deleted the pre-existing .gramps/gramps52/plugins/HistContext folder and tried installing again.

Same “Addon Registration Failed” dialog recurred.
Again restarting Gramps registered the addon without warning.

What are the conditions for this Failure message. And how can it be resolved?

The Gramps Plugin Registration fails the Black format compliance. The most significant item seems to be the comment indentation. But there is a double indent for the rest too. And the close Parenthesis should not be indented.

Is that the cause of the warning?

HistContext installed correctly when given the option to install as part of the once Daily update of New and Updated addons on the launch of Gramps.

5.2.3 on Win10

From anecdotal experience, the Install of the Addons tab seems to be using a different method than the Install Selected Addons button of the Available Gramps Updates for Addons dialog spawned by the Check for updated addons now button in the Settings tab. They exhibit different results.

Conversely, the GrampsWebSync showed up for the daily update every day and I installed it every day. Finally, I deleted the addon’s folder and then used the new Addons install to finally install the 1.1.2 version.

1 Like

That worked without error for me but my system (Gramps AIO64-5.2.3-r1-aa03f5a on Win 11 Pro 23H2) was ‘clean’, i.e. there were no previous versions of this Gramplet on my machine.

1 Like