Can't find xgettext or msguniq but gettext-base is installed
As part of a django project, I need to build translation *.po files, but I have the error
CommandError: Can't find xgettext. Make sure you have GNU gettext tools 0.19 or newer installed.
when I run django-admin makemessages -a and
CommandError: Can't find msguniq. Make sure you have GNU gettext tools 0.19 or newer installed.
when I run django-admin makemessages -l en.
I see that what is missing is supposed to come from the os and I run Ubuntu 25.04. So I tried to run xgettext and msguniq on their own. Each time I get
Command 'xgettext' not found, but can be installed with:
sudo apt install gettext
So I tried doing just that but apt fails with Error: Unable to locate package gettext.
However when I try to run gettext -V I do have gettext v.0.23.1 installed. It seems to come from package gettext-base that is indeed installed but can't seem to be used. I searched this over the internet but can't seem to find anything helpful.
I don't know if it is necessary but I do have python-gettext installed in my python venv also.
Any idea how to make python find gettext in this situation?