# Using python libraries and flatpak

**URL:** <https://gramps.discourse.group/t/using-python-libraries-and-flatpak/2595>\
**Category:** Help\
**Tags:** flatpak\
**Created:** [July 12, 2022, 1:29pm UTC](https://gramps.discourse.group/t/using-python-libraries-and-flatpak/2595 "2022-07-12T13:29:54Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jpschewe](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/jpschewe/32/786_2.png) [@jpschewe](https://gramps.discourse.group/u/jpschewe)\
**Post date:** [July 12, 2022, 1:29pm UTC](https://gramps.discourse.group/t/using-python-libraries-and-flatpak/2595/1 "2022-07-12T13:29:54Z")

</div>

I’ve been looking at using the flatpak version of Gramps to get a more recent version than my Linux distribution ships. I also write python scripts to interact with my Gramps databases. What is right way to reference the python libraries inside the flatpak environment? Or am I better off installing Gramps outside of flatpak for this use case?

---

<div class="post-metadata">

**Author:** ![emyoulation](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/emyoulation/32/67_2.png) [@emyoulation](https://gramps.discourse.group/u/emyoulation)\
**Post date:** [July 12, 2022, 1:57pm UTC](https://gramps.discourse.group/t/using-python-libraries-and-flatpak/2595/2 "2022-07-12T13:57:29Z")

</div>

I do not know if the Gramps Flatpak contributor, Scott Mackay, is on this forum. [He communicated via the developer mailing list](https://sourceforge.net/p/gramps/mailman/gramps-devel/thread/CAP0J5SFYeUs-_yUrpmUyfdQ%3DwgrBJsoaXWo%3De-h8B8EWURCF1Q%40mail.gmail.com/#msg37147886) before the Discourse forum was created.

You might want to visit [his GitHub repository](https://github.com/OzarkShepherd) and start a discussion there?

---

<div class="post-metadata">

**Author:** ![ennoborg](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/ennoborg/32/4659_2.png) [@ennoborg](https://gramps.discourse.group/u/ennoborg)\
**Post date:** [July 12, 2022, 2:33pm UTC](https://gramps.discourse.group/t/using-python-libraries-and-flatpak/2595/3 "2022-07-12T14:33:56Z")

</div>

If you want the latest, I recommend that you download the DEB file from here,

[https://www.gramps-project.org/wiki/index.php/Download#Linux:\_Install\_latest\_version](https://www.gramps-project.org/wiki/index.php/Download#Linux:_Install_latest_version)

or build and install from source.

Installing from DEB is easier than using the flatpak, and also makes it easier to start Gramps from the command line, because you can simply type gramps, instead of some flatpak command.

Are your scripts on GitHub?

---

<div class="post-metadata">

**Author:** ![jpschewe](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/jpschewe/32/786_2.png) [@jpschewe](https://gramps.discourse.group/u/jpschewe)\
**Post date:** [July 14, 2022, 2:35am UTC](https://gramps.discourse.group/t/using-python-libraries-and-flatpak/2595/4 "2022-07-14T02:35:02Z")

</div>

I’ve used flatpak for other applications and been fine with how it launches. However I haven’t needed to reference the libraries from inside a flatpak before. Knowing that there is a deb to download is a good solution.

My scripts are not on github. So far they are just for things like automatic backup and some data cleaning.

---

<div class="post-metadata">

**Author:** ![ennoborg](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/ennoborg/32/4659_2.png) [@ennoborg](https://gramps.discourse.group/u/ennoborg)\
**Post date:** [July 14, 2022, 12:50pm UTC](https://gramps.discourse.group/t/using-python-libraries-and-flatpak/2595/5 "2022-07-14T12:50:03Z")

</div>

> [@jpschewe](#):
>
> My scripts are not on github. So far they are just for things like automatic backup and some data cleaning.

What kind of cleaning is that? I’m curious, because I’m doing that on the XML files now.

---

<div class="post-metadata">

**Author:** ![jpschewe](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/jpschewe/32/786_2.png) [@jpschewe](https://gramps.discourse.group/u/jpschewe)\
**Post date:** [July 15, 2022, 11:28am UTC](https://gramps.discourse.group/t/using-python-libraries-and-flatpak/2595/6 "2022-07-15T11:28:33Z")

</div>

I’ve got one to add a source to everything that I’m going to import into another tree so that I recognize the import as a source of information. Another checks that my Find A Grave references are using a consistent format (tracking the memorial ID and URL). Then I remove REFN and Merged Gramps ID attributes.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/gramps/original/1X/2ac1e712b7adf612e31ca08a55419f4cf37c0158.png) [@system](https://gramps.discourse.group/u/system)\
**Post date:** [August 14, 2022, 11:28am UTC](https://gramps.discourse.group/t/using-python-libraries-and-flatpak/2595/7 "2022-08-14T11:28:37Z")

</div>

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