Config settings left behind

Gramps 6.0.5 on macOS 15.7.1 but note that Gramps is installed from MacPorts (not the dmg). As such, gramps operates under X11 and behaves more like a Linux installation.

For reasons, I had not upgraded my Mac operating system or Gramps for quite some time. I believe Gramps was at version 5.1. In October, I upgraded the OS to the latest version supported on my machine (Intel based iMac). This forced me to upgrade MacPorts. There was a lot of cruft in MacPorts so I chose to uninstall everything including Gramps. After the OS upgrade, I installed MacPorts and Gramps 6.0. The Pre-requisites Checker identified a number of python modules that I needed to install. After that Gramps was functional, but…

Problem: none of the add-ons that I had previously used were installed. I believe the problem is that my Gramps configuration data directory has moved and is now in ~/.config/gramps/gramps60 where previously it was in ~/.gramps/gramps51

Question: What is the best way to get the old add-ons into Gramps 6? BTW, I’ve been using Gramps for over 10 years and there were some add-ons carried forward into Gramps 5.1 that I wasn’t using and some that I have no recollection of installing. Maybe half of the old add-ons don’t need to come forward but they probably won’t cause any harm if they do.

Complaint: Because my Gramps 6 had no add-ons, I tried to use the shipped Plugin Manager. I think it is terrible. Despite going through the list multiple times, I could not find the enhance Plugin Manager to install that. Add-ons are pretty important to Gramps and I think the shipped Plugin Manager should be ā€˜taken out behind the barn’ and put out of its misery.

Thanks,

Craig

There is a thread discussing how to get a list of installed Plug-ins

Since you were using the Plugin Manager Enhanced (good choice, by the way), the new_addons.txt file should be in the old User Directory. You can use it as a checklist for installing the 6.0 versions via the Addon Manager. (Those versions, at the very least, have different .gpr.py files with different versioning and additional attributes.) This will allow you to identify the addons that will have to be manually installed.

The other option (of taking an active reading of the installed plugins with SuperTool) would require re-installing a 5.1.x version.

The Plugin Manager Enhanced DOES exist for Gramps 6.0 installation. (Here’s the .gpr.py file for it so that you can see the name and category. And its listing in the manifest for the Addon Manager.)

Thanks. I was able to locate and install the enhanced addon manager and then the addons that I wanted.

Note that the file new_addons.txt didn’t help. In my case, it is 146 lines long. It seems to be a type of csv file and I would guess that one of the columns indicates whether an addon was installed or not. I didn’t try to process it. From my 5.1 config, I used the list of folders in the plugins directory and found the corresponding 6.0 plugin.

Craig

1 Like

Something that you might not have noticed. The new versions of the built-in plug-ins ALL have Help buttons now in the Plugin Manager Enhanced.

That means that you can quickly find the appropriate part of the wiki for each of those features. Views, importers, tools as well as Gramplets and Reports.

I never noticed before that there is a ā€œPlugin Managerā€ (Help>Plugin Manager) and an ā€œAddon Managerā€ (Edit>Addon Manager…). Despite very different interfaces, do these not do the same thing? Why both?

Craig

Plugin Manager search is not working for me. Whenever I type a character in the search field, Gramps throws an error. Details are:

341224: ERROR: grampsapp.py: line 188: Unhandled exception
Traceback (most recent call last):
  File "/Users/craigtreleaven/.local/share/gramps/gramps60/plugins/PluginManager/PluginManager.py", line 491, in filter_str_changed
    self.__rebuild_reg_list(rescan=False)
    ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
  File "/Users/craigtreleaven/.local/share/gramps/gramps60/plugins/PluginManager/PluginManager.py", line 536, in __rebuild_reg_list
    self._cursor_changed(None)
    ~~~~~~~~~~~~~~~~~~~~^^^^^^
  File "/Users/craigtreleaven/.local/share/gramps/gramps60/plugins/PluginManager/PluginManager.py", line 580, in _cursor_changed
    self.__info(pid)  # get text of plugin data
    ~~~~~~~~~~~^^^^^
  File "/Users/craigtreleaven/.local/share/gramps/gramps60/plugins/PluginManager/PluginManager.py", line 655, in __info
    txt = " ".join(req_lst[0])
                   ~~~~~~~^^^
IndexError: list index out of range

I quit and restarted Gramps after installing the enhanced Plugin Manager. Is something more required?

Craig

(I used the Addon Manager to install a bunch of things yesterday. I don’t think I have yet used the Plugin Manager for an install.)

Also, clicking the checkbox to Show hidden items also results in a similar error:

341224: ERROR: grampsapp.py: line 188: Unhandled exception
Traceback (most recent call last):
  File "/Users/craigtreleaven/.local/share/gramps/gramps60/plugins/PluginManager/PluginManager.py", line 491, in filter_str_changed
    self.__rebuild_reg_list(rescan=False)
    ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
  File "/Users/craigtreleaven/.local/share/gramps/gramps60/plugins/PluginManager/PluginManager.py", line 536, in __rebuild_reg_list
    self._cursor_changed(None)
    ~~~~~~~~~~~~~~~~~~~~^^^^^^
  File "/Users/craigtreleaven/.local/share/gramps/gramps60/plugins/PluginManager/PluginManager.py", line 580, in _cursor_changed
    self.__info(pid)  # get text of plugin data
    ~~~~~~~~~~~^^^^^
  File "/Users/craigtreleaven/.local/share/gramps/gramps60/plugins/PluginManager/PluginManager.py", line 655, in __info
    txt = " ".join(req_lst[0])
                   ~~~~~~~^^^
IndexError: list index out of range

Craig

The Plugin Manager can disable/enable built-in plug-ins… as well as addons.

They way I am reading that error is that something may have corrupted the list of registered plugins.

Is there a chance you dragged some files/folders from the 5.1 plugins folder to the one for 6.0?

Gramps! ā€œWe’re not just confusing for new users!!ā€

1 Like

No dragging. That was the motivation for my first post. I was concerned that Gramps might have done some ā€˜first-run’ processing to bring forward plugins/addons up to current versions and that I’d missed that opportunity.

I do notice that it fails after using the process ID (pid). I wonder if there is some code that if Gramps is running on a Mac that it must be running from a bundle and therefore affects the pid? Totally a WAG on my part.

BTW, I should mention that the search function in the Addon manager works as expected.

Craig

In the Enhanced Plugin Manager (the addon), there is a Reload button.

I have seen list issues after an initial install of the app. (I do not remember the circumstances.) The Reload solved any issue I was seeing.

The Reload seems to function but entering any character in the search bar results in the same error as above.

Interestingly, if I try to Reload after the search error, the Reload button also throws an error:

33486: ERROR: grampsapp.py: line 188: Unhandled exception
Traceback (most recent call last):
  File "/Users/craigtreleaven/.local/share/gramps/gramps60/plugins/PluginManager/PluginManager.py", line 219, in done
    self.__reload(dialog)
    ~~~~~~~~~~~~~^^^^^^^^
  File "/Users/craigtreleaven/.local/share/gramps/gramps60/plugins/PluginManager/PluginManager.py", line 243, in __reload
    self.__rebuild_reg_list("0")
    ~~~~~~~~~~~~~~~~~~~~~~~^^^^^
  File "/Users/craigtreleaven/.local/share/gramps/gramps60/plugins/PluginManager/PluginManager.py", line 536, in __rebuild_reg_list
    self._cursor_changed(None)
    ~~~~~~~~~~~~~~~~~~~~^^^^^^
  File "/Users/craigtreleaven/.local/share/gramps/gramps60/plugins/PluginManager/PluginManager.py", line 580, in _cursor_changed
    self.__info(pid)  # get text of plugin data
    ~~~~~~~~~~~^^^^^
  File "/Users/craigtreleaven/.local/share/gramps/gramps60/plugins/PluginManager/PluginManager.py", line 655, in __info
    txt = " ".join(req_lst[0])
                   ~~~~~~~^^^
IndexError: list index out of range

No idea what this means.

Craig

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