Build from source: ResourcePath.ERROR: Unable to determine resource path

Hi,
I’m trying to build the latest (master) from source, using the instructions in the INSTALL:

python3 setup.py build

sudo python3 setup.py install

I can run Gramps from the source/build directory by using:

Gramps.py

But when trying to run normally, by using the command:

gramps

The following error shows: ResourcePath.ERROR: Unable to determine resource path

Googling around, I came across this : [SOLVED] gramps doesn’t open, but I’m not sure, if this is the same issue.
I’m probably missing something… any ideas?

Environment:
OS: Linux Mint 20.3 x86_64
Kernel: 5.13.0-40-generic
Gramps: Latest (build from source)

Thanks
Avi

I had the same problem, and it’s been discussed before:

I always use the git repo. I never use the gramps script (/usr/bin/gramps)
At each time, I only do:
python3 setup.py build;LANG=en_US.utf8 python3 Gramps.py
If you want to have gramps in english or:
python3 setup.py build;python3 Gramps.py
if you want to have it in your own language.

I was doing that too, but since I last pulled the source from git and ran python3 setup.py build;python3 Gramps.py, this error comes up when trying to approach the Preference menu:

24739: ERROR: grampsapp.py: line 173: Unhandled exception
Traceback (most recent call last):
File “/home/avi/git/gramps/gramps/gui/viewmanager.py”, line 677, in preferences_activate
GrampsPreferences(self.uistate, self.dbstate)
File “/home/avi/.gramps/gramps52/plugins/Themes/themes.py”, line 111, in init
self.add_behavior_panel,
AttributeError: ‘GrampsPreferences’ object has no attribute ‘add_behavior_panel’

So I was thinking if I actually install Gramps’ it will solve this problem.

Third party addons have not been updated for Gramps 5.2.x yet, so you may want to report that to the addon developer?

Thanks, I will, How can I remove it until it is fixed? Should I just delete /Themes/themes.py?

If you want to have this module working, you need to modify the following lines:

            page_funcs = (
                self.add_data_panel,
                self.add_general_panel,
                self.add_addons_panel,
                self.add_famtree_panel,
                self.add_import_panel,
                self.add_limits_panel,
                self.add_color_panel,
                self.add_symbols_panel,
                self.add_idformats_panel,
                self.add_text_panel,
                self.add_warnings_panel,
                self.add_researcher_panel,
                self.add_themes_panel)
            ConfigureDialog.__init__(self, uistate, dbstate, page_funcs,
                                     GrampsPreferences, config,
                                     on_close=self._close)
        else:
            page_funcs = (
                self.add_data_panel,
                self.add_general_panel,
                self.add_addons_panel,
                self.add_famtree_panel,
                self.add_import_panel,
                self.add_limits_panel,
                self.add_color_panel,
                self.add_symbols_panel,
                self.add_idformats_panel,
                self.add_text_panel,
                self.add_warnings_panel,
                self.add_researcher_panel,
                self.add_themes_panel)

This is due to the configure.py update related to PR Update Preferences dialog by DaveSch-gramps · Pull Request #1149 · gramps-project/gramps · GitHub

2 Likes

Yep, this worked! I can now use Gramps again… Thank you very much

There is a PR to bring Themes into agreement with the modified configure.py

2 Likes

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