Does the flatpak distribution of Gramps 6.0.5 allow Installation of prerequisites using 'pip'?

6.05 on Linux Mint 22.2 Zara (Ubuntu Noble)

just tried to install the ‘lifeline ancestor and lifeline descendant’ charts and got an error which I have not seen anywhere else and which seems to need pip to install the prerequisites, so its possible that pip may need to be added to the flatpak manifest for the add-on manager to do its job.

521404: ERROR: grampsapp.py: line 188: Unhandled exception
Traceback (most recent call last):
File “/app/lib/python3.12/site-packages/gramps/gui/plug/_windows.py”, line 295, in __on_install_clicked
subprocess.check_output(
File “/usr/lib/python3.12/subprocess.py”, line 466, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3.12/subprocess.py”, line 548, in run
with Popen(*popenargs, **kwargs) as process:
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3.12/subprocess.py”, line 1026, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File “/usr/lib/python3.12/subprocess.py”, line 1955, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: ‘pip’

or maybe its a system install issue. Not sure.

If its a bug I will file it but if its only a needed addon to the manifest I will refrain.

Brian

Flatpaks hosted by Flathub are compiled by Github and are not meant to be modified by the user. So pip tends to be unusable for flatpaks in general. This is a security issue meant to protect flatpak users by having apps operate in a sandbox and not allowing flatpak apps or runtimes to be modified after being compiled. This is the downside of flatpaks for apps like Gramps that have a lot of customizations available which depends on a variety of additional prerequisites.

The Gramps flatpak has some extra dependencies compiled into the flatpak so that common addons can be used by users. The list of dependencies are in the ReadMe at GitHub - gramps-project/flatpak: Manifest and data files required to make a Gramps Flatpak If you want a dependency added to the Gramps flatpak, please post an issue at the Gramps Project flatpak repo at GitHub · Where software is built if you have a Github account, or at the Gramps bugtracker where someone could tag me.

This is also the case for our Snap package.