Help on building gramps from source

I am trying to install gramps from a git repository.
Here is what I did:

I cloned the branch maintenance/gramps52 into a local repository using git clone --single-branch --branch maintenance/gramps52 https://github.com/gramps-project/gramps.git

I cd to the repository

Then run python3 setup.py build

And got this message:

running build
error: [Errno 2] No such file or directory: 'msgfmt'

I think the error occurs when creating the mo file for arabic, as in the “build/mo” folder there is only an “ar” folder.

Am I doing something wrong?

gramps: 5.2.1-e9b8026ae
o.s.: linux
kernel: 6.5.0-17-generic

Did you read the contents of the INSTALL file?

You need to install the gettext package. It is required by the intltool package which is listed in our build dependencies.

If you want v5.2.0 then checkout that tag:

git checkout v5.2.0

Otherwise you will get the wrong version number and possibly other changes made since the release. (There are none at the moment.)

Then you can build with:

python setup.py build

Finall install with:

sudo python setup.py install --root=/

The --root=/ is needed to prevent Gramps being installed as a Python egg.

1 Like

As far as I can see the user has the right branch, because he cloned just that.

And I can also see that he’s running Ubuntu 20.04.

And for that, we have instructions in the INSTALL file that mention a single command that can download all the dependencies for him. That´s why I mentioned that file, and did not spell it out for him.

The gramps52 branch is now 2 commits ahead of the v5.2.0 tag.

If you build from the tip of the gramps52 branch, Gramps will report a development version (5.2.1-e9b8026ae) along with the usual warning. It shouldn’t cause a problem though.

1 Like

The proper install command is

sudo python setup.py install --root=/

And that works on Fedora too. I put that on my laptop to test.

1 Like

Thanks. I didn’t notice that I had build twice.

1 Like

Thanks! this worked!

1 Like

Looking at the Fedora BuildSystem for packageID 1969 (Gramps) :
And idea why is there a “fc41” finished before the “fc40”

1 through 50 of 217 >>>

NVR Built by Finished descending sort State
gramps-5.2.0-1.fc40 limb 2024-02-23 19:10:44 complete
gramps-5.2.0-1.fc41 limb 2024-02-23 19:10:26 complete

Because someone’s building it for Rawhide.

Had to lookup that Rawhide is the Fedora codename for its development branch.

How can you tell which is release vs. Rawhide?

By checking the version codes, and their status. Fedora 39 is the one that I used to test the install from source, so I was a little suprised to find a version 41 being built already. And then I mentioned the Rawhide term to see how you would react. :slight_smile:

Anyway, here’s the release plan according to Wikipedia:

And that suggests that we may simply concentrate on fc39 and fc40, or even just fc39.

I found the name here:

1 Like

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