Flatpak - Python Dependencies in Linux?

Hello all,
Disclaimer: I’m a few days into Gramps after deciding to try and move away from my old version of FamilyHistorian running on WINE, so very much trying to figure things out still after pulling over several thousand individuals in a GEDCOM and seeing what happened…

As I try to feel-out what capabilities exist with addon gramplets, I fear I’m going to have to learn how to manage multiple versions of python!

Easy example is NumPy and OpenCV aren’t detected for Photo Tagging, although I already have numpy for python3 & python3-opencv installed (presumably both are just installed/available to my system’s default python install). I do have the “allow gramps to install required Python modules” checked in the addon manager, but that doesn’t seem to have done the required magic.
Can someone help me with what needs to be done to get these python dependencies available for the Gramps environment?

Running Linux Mint 22
Gramps 5.2.3 installed via Flatpak.
running gramps -v I see that it looks like it’s using python located at: /usr/lib/python3.11 (vs my system default of 3.12.3)

Thanks so much! Hate being the needy one!
Steve

Just for fun, here’s the dependencies run down…


You have Gramps 5.2.3. Congratulations, you have the current version.

REQUIRED
Installations of the following packages are ABSOLUTELY REQUIRED
 (Requires the minimum version or greater.):
 • Python 3.11.10 (Passed: version 3.8.0 or greater installed.)
 • GTK+ 3.24.43 (Passed: version 3.24.0 or greater installed.)
 • PyGObject 3.48.2 (Passed: version 3.29.0 or greater installed.)
 • Cairo 1.18.2 (Passed: version 1.13.1 or greater installed.)
 • Pycairo 1.27.0 (Passed: version 1.13.3 or greater installed.)
 • Pango 1.52.2 (Passed: version 1.29.3 or greater installed.)
 • PangoCairo 1.0
 • Berkeley Database library (bsddb3: not found) (Python-bsddb3 : not found)
 • SQLite Database library (sqlite3: 3.42.0) (Python-sqlite3: 2.6.0)
 • xdg-utils (Manual check see instructions link)
 • librsvg2 (Manual check see instructions link)
 • language-pack-gnome-xx (Manual check see instructions link) for your Language <show locale here TBD>

RECOMMENDED
Installations of the following packages are STRONGLY RECOMMENDED as necessary for Geography and Charts:
 • osmgpsmap 1.0 (Passed: version 1.0 or greater installed.)
 • Graphviz 10.0
 • PyICU not found but we have ICU 3.11.9
 • Ghostscript 10.03.0
 • python-fontconfig installed, version unavailable

Optional
Installations of the following packages are optional:
Gtkspell enables spell checking in the notes.
 • GtkSpell not found (Requires version 3.0 or greater installed.) (enchant module: not found)
 • rcs installed TBD (Requires version 5.9.4 or greater installed. If not on Microsoft Windows)
Python Image Library (PIL) is needed for cropping images and LaTeX output.
 • (PILLOW 10.2.0)
 • GExiv2 : 0.10 (Exiv2 library : 0.28)
 • geocodeglib 1.0 (Passed: version 1.0 or greater installed.)
For addon Networkchart, font White Rabbit provides an extremely readable result.
 • Installed font: found another font


Development & Translation Requirements
Installations of the following packages are RECOMMENDED if you intend to translate or do any development (addons etc.):
 • gettext (msgfmt): 0.22
 • intltool-update: not found
Sphinx is a tool that builds the Gramps development documentation and man pages
 • Sphinx: not found


Optional packages required by Third-party Addons
Prerequistes required for the following Third-party Addons to work:
 01. Addon:Family Sheet : (PILLOW 10.2.0)
 02. Addon:Graph View : (GooCanvas:2.0)(PyGoocanvas: TBD?)(Graphviz 10.0)
 03. Addon:PedigreeChart : (NumPy : not found )
 04. Addon:Network Chart : (networkx 3.2.1)(Graphviz 10.0)
     and one of either: (pydotplus: not installed) or (pygraphviz: not installed)
 05. Addon:GenealogyTree : (lualatex :not found)(PILLOW 10.2.0)
 06. Addon:HTMLView : (Webkit: not installed )
 07. Addon:GoogleMapKML : (Google Earth on Desktop : not found.)
 08. Addon:Webconnect Pack : (libwebconnect : not found) (Requires the gramps addon listed under 'Plugin lib')
 09. Addon:TMG Importer :  (DBF not found.)(Requires version 0.96.8 or greater installed.)
 10. Addon:PostgreSQL#Prerequisites Database library Support : (PostgreSQL not found.)(psycopg2 : not found.)
 11. Addon:Edit Image Exif Metadata : (PILLOW 10.2.0) GExiv2 : 0.10 (Exiv2 library : 0.28)
 12. Addon:Photo Tagging Gramplet : (NumPy: not found.)(OpenCV facedetection: not found.)
 13. Addon:Lxml Gramplet :  (lxml: not found. Requires version 3.3.3 or greater installed.)
 14. Addon:MongoDB :  • Requires: MongoDB TBD / pymongo TBD

Diagnostic checks
Check for potential issues.

Environment settings:
 • Operating System: linux
 kernel: 6.8.0-49-generic

Locale Settings:
 • LANG:  en_US.UTF-8
 • LANGUAGE:  en
 • LC_MESSAGES:  not set
 • LC_TIME:  not set

Gramps Environment variables:
 • GRAMPSI18N:  not set
 • GRAMPSHOME:  not set
 • GRAMPSDIR:  not set
 • GRAMPS_RESOURCES:  /app/lib/python3.11/site-packages

Welcome,

Correct :slight_smile:

So for the Gramps Flatpak version you can see what prerequisite comes with and the readme mentions:

To request another prerequisite be added to support another Gramps add-on, you can request it at the gramps project flatpak github or at the flathub Gramps flatpak github.

GitHub - gramps-project/flatpak: Manifest and data files required to make a Gramps Flatpak

GitHub - flathub/org.gramps_project.Gramps

Got it. Thanks.
Quick migration away from the flatpak made to ensure flexibility and existing packages recognized. My test case of the photo tagging/facial recognition is working, although not quite fully; as I’m experiencing a little bug with replacing the detected image to the existing person tag, but I don’t think that has anything to do with the dependencies - facial recognition is working.

I appreciate the quick response.