Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python2 Gimp AppImages for Ubuntu Jammy and Focal
#1
Python2 was dropped in Ubuntu 20.04 but is still used by Gimp plug-ins and coders. These AppImages launch the system installed Gimp or the PPA installed Gimp and add Python2.7.18 and MathMap.

There is an Ubuntu 22.04 Jammy version and Ubuntu 20.04 Focal version of the AppImage.


A byproduct of the appimages is a minimal 'tree' collection of necessary Python2 files. This tree can be dropped-in to the system in /usr or added to appimages. I could make this into a deb file but at the moment like the idea of having it isolated from Python3 which is used by gmic.
Reply
#2
Works very well. Using a kubuntu 22.04 (VM) and the default Gimp 2.10.30 from the repo.

This is a typical installation, no python2. That needs installing and also for mathmap, libfftw3 - all in the repo, no missing dependencies issues.

First run, finding what is missing. https://i.imgur.com/MbXQMzl.jpg

Install those and as a try-out the heal selection python plugin and a mathmap filter (both showing) https://i.imgur.com/9YTqSyS.jpg

Since it calls Gimp I made a .desktop file as a starter. Where to put the appimage? To keep all together I put it in ~/.config/GIMP/ and that works ok.
Reply
#3
I really appreciate you testing it Rich. I added libfftw3 and 'python-minimal' to the appimages, that fixed pygimp.interp.
Those errors didn't show-up on my Xubuntu which I now call 'ubuntu slackware' Big Grin



On a 22.04 install /etc/alternatives/python/python    links to   /usr/bin/python3
I'm interested in making a python2 deb file that co-exists with python3.

The python2 AppImages are here.
(The 'jammy' image works on both 22.04 and 20.04)
Reply
#4
Hello, I'm on Ubuntu MATE 22.04. I have GIMP, gimp-plugin-registry and python2 installed. I tried this plugin but Heal Selection is still absent from the menu. What do you suggest trying?
Reply
#5
Quote:I tried this plugin but Heal Selection is still absent from the menu.

This is not a plugin. Heal Selection is part of Resynthesizer which I think is installed as a 'flatpack'. Not sure if there is a 'standard' Resynthesizer install or not.
Reply
#6
(05-09-2022, 04:21 AM)Healing Selections Wrote: Hello, I'm on Ubuntu MATE 22.04. I have GIMP, gimp-plugin-registry and python2 installed. I tried this plugin but Heal Selection is still absent from the menu. What do you suggest trying?

You need more than this. Python support for Gimp is a separate package (gimp-python IIRC), and could have been removed from the repos of recent distros, but there are ways around this. Your Python support is properly installed if you see a Filters > Python-fu > Console menu entry.
Reply
#7
(05-09-2022, 04:21 AM)Healing Selections Wrote: Hello, I'm on Ubuntu MATE 22.04. I have GIMP, gimp-plugin-registry and python2 installed. I tried this plugin but Heal Selection is still absent from the menu. What do you suggest trying?

It is a bit of a can-of-worms Wink Ubuntu 22.04 (jammy)

-------------
If you could check what Gimp is installed and tell us, it does help, Look in Gimp -> Edit -> Preferences -> Folders Look in any entry, first one is brushes and the top entry under folder...
if ~/.config/GIMP... then a regular installation from the repo. No python by default
if ~/.var/app/org.gimp.GIMP ... then a flatpak installation.  Python is installed
if ~/snap/gimp/.... then an ubuntu SNAP installation.  No Python in this version.
-------------

Now your gimp-plugin-registry installation, This package is ancient, it gets churned out with some modifications with each Debian release. This one has dumped resynthesizer and all python plugins, keeps some plugins that no longer work, and installs 158 useless scripts. Best thing you can do is uninstall it.  see: https://packages.ubuntu.com/jammy/amd64/...y/filelist

-------------

Resynthesizer, if it is a regular Gimp 2.10.30 without python, then Tas_mania appimage Gimp launcher will enable Python.
You can get a resynthesizer set of plugins from here: https://www.gimp-forum.net/attachment.php?aid=6867 Unzip, put the 4 files in ~/.config/GIMP/2.10/plug-ins/ Make them executable, it looks like 'buntu security kicks in and makes them 'indeterminate' I have just tried out in a jammy VM and I know it works.

If you do not want to go through all that, then install a flatpak.

Code:
sudo apt install flatpak
Code:
flatpak install https://flathub.org/repo/appstream/org.gimp.GIMP.flatpakref
and follow the instructions.  https://i.imgur.com/pqnjOJ2.jpg
Code:
flatpak install gimp
gets a list of the built-for-flatpak plugins which includes resynthesizer + the python heal plugins. Use the latest version. https://i.imgur.com/FuDDHTN.jpg
Code:
flatpak run org.gimp.GIMP
 
...to start. Tried that in my VM and not a problem except for some annoying permission issues opening 'remote' files. 

Edit 3 minute video demo: Ubuntu 22.04 showing both regular Gimp 2.10.30 + plugins + appimage launcher and the Gimp 2.10.30 flatpak installation
https://youtu.be/0vIdXdPGvpU

-----
As an aside, I have an older laptop with kubuntu 18.04 I was considering upgrading to 22.04 The more I see of it, I think I might just leave to for another year or so... beginning to hate ubuntu Wink
Reply
#8
(05-10-2022, 10:03 AM)rich2005 Wrote: Resynthesizer, if it is a regular Gimp 2.10.30 without python, then Tas_mania appimage Gimp launcher will enable Python.
You can get a resynthesizer set of plugins from here: https://www.gimp-forum.net/attachment.php?aid=6867 Unzip, put the 4 files in ~/.config/GIMP/2.10/plug-ins/ Make them executable, it looks like 'buntu security kicks in and makes them 'indeterminate' I have just tried out in a jammy VM and I know it works.

Nice, that works a treat. They remained executable for me, extracted with Engrampa.

Thanks very much! Hadn't noticed the resynthesizer had been removed from the 22.04 gimp-plugin-registry - that's the only thing I used it for.

(05-10-2022, 10:03 AM)rich2005 Wrote: As an aside, I have an older laptop with kubuntu 18.04 I was considering upgrading to 22.04 The more I see of it, I think I might just leave to for another year or so... beginning to hate ubuntu Wink

I feel really mixed about 22.04. There's a lot of good and a lot of bad. Big changes all around, at least when going from 20.04. I'll stick with it for now but will consider other Debian-based distros before doing any future installs.
Reply
#9
Thanks for helping out here Rich. I've never used Resynthesizer but I noticed Afferero had it in some of his appimages. It could go into a launcher easily I think. I would like to do the whole Python2 as one deb file to simplify it. Unfortunately the filesystem seems to fork at 'python' (a symlink) and then goes to python 2 and python3. Maybe 'pythonfu' needs to be the start point. I don't know.

If you have 18.04 then upgrading to 20.04 and then 22.04 preserves everything. I found going from 20.04 to 22.04 was easy on this box. I followed this step by step.

Ubuntu has become a mid-level OS with Xubuntu, Mate, Mint etc using it's repos. Maybe I should be using Debian because its the grandaddy of them all Smile
Reply
#10
Just my opinion.

Quote:I've never used Resynthesizer but I noticed Afferero had it in some of his appimages. It could go into a launcher easily I think.

I would leave it up to the user, Some will consider added plugins 'bloat' that will never be used. Example: I still run a Gimp 2.10.14 appimage (the last where seamless-clone works) but I did unpack it and disable most of the plugins then add my own. Some plugins can have unexpected consequences, NuFRAW for example stops svg imports.

Quote:If you have 18.04 then upgrading to 20.04 and then 22.04 preserves everything. I found going from 20.04 to 22.04 was easy on this box

I might try that on the old laptop, I have full backups. My newer laptop runs kubuntu 20.04 and has taken time to get some stuff working, side-loading lib files that have 'gone' between 18.04 and 20.04 from what I see with 22.04 that is even more of a PITA.

Quote:Maybe I should be using Debian because its the grandaddy of them all

Maybe, a bit too politically correct for me. Best thing about 'buntu are the PPA's Something there for everyone.

Anyway, bottom line is; your appimage to easily add python support is a great addition and much appreciated.
Reply


Forum Jump: