gimp-python not available in Ubuntu 20.04

Ubuntu 20.04 come out on April 23 and I’ve noticed that Python2 support is basically no longer there. This has resulted in the gimp-python package being removed and has resulted in parts of resynthesizer plugin no longer working (this may also be true for Debian). In particular Heal Selection and Heal Transparency are gone.

There’s probably other plugins that are affected but I haven’t checked.

I asked the GIMP developers and their response was to basically install Python 2 and recompile GIMP, which isn’t really possible. Is there any way to rectify this situation?

Try an AppImage, flatpak, or snap version. @Carmelo_DrRaw AppImage version has resynthiziser baked in. Not sure if snap or flatpak packake python2, but they certainly could.

Tried those and it looks like the plugins are bundled but they still rely on Python being installed system wide. This is an error I got from a flatpak and appimage

Screenshot from 2020-04-25 17-55-33

This could be quite bad for a while as 20.04 is an LTS release. I’m guessing GIMP doesn’t yet support Python 3?

I believe recent gimp builds do support python3, but lots of plugins don’t.

Always worth holding off a couple of months and hope for fixes. The 'buntu PPA is not looking like updating any time soon. That leaves either a flatpak or an appimage.

I use gimp_gmic_qt for some things so that means the appimage. A try out in (k)ubuntu 20.04 and the appimage-with-plugins seems to work ok.

I had a 2.10.19 handy so used that, I unpack appimages that I use frequently, so this is running from my ‘home’. Resynthesizer + heal selection definitely working and as a test of python one of Ofnuts plugins:

gimp_gmic_qt. This my own compile, just to be up-to-date-ish Works fine.

However I think I wil be sticking with my kubuntu 18.04 for some time, the thought of installing all the little bits-and-pieces I accumulate does not appeal.

I think python 3 plugin support will arrive with gimp 3. The “old” python 2 plugins will then have to be rewritten.

python 2 is “dead” since January 1st 2020. Originally, python 2 support should end already in 2015 but because many developers did not upgrade their code the date was extended to 2020. So, actually it is not really a surprise that Ubuntu droped python 2 support with 20.04.

We should probably do a sticky thread in the gimp forum. “yes we know python2 support is disappearing and it is good”


This will not get fixed. more and more distributions will drop python 2 in the next few weeks. And it really is good they are finally doing it. people had 12 years to port to python 3 … at some point you have to say “enough” and make the cut.


Ah, sorry for not seeing the other thread.

Fortunately the main Resynthesizer plugin is still working, I’ve just had to go through all of the options to replicate the options the Python plugins provided (in my case Heal Transparency).

I opened up the python script for “heal selection” thinking that it would help me pick the correct options using the Resynthesize tool, but I couldn’t get it to work like the heal selection script works. Is the script doing more than just selecting options?

Is it possible to port the heal selection python script to python 3 manually so it works in the version of Gimp provided by Ubuntu 20.04? or is there more to it than just rewriting the python script?

Any other ideas?

@hellocatfood - Do you have any idea what options I would need to put into Resynthesize to match “Heal Selection” as you already successfully figured out “heal transparency” you might have the secret for Heal Selection as well. I’ve tried all kinds of options and I just can’t get it to look right.

Thanks in Advance

I don’t know enough Python to know exactly what it’s doing but reading the code plus the comments there’s Python code to basically properly select the area for doing the healing.

With the removal of the gimp-python package GIMP has no python bindings, so no Python plugins are working (python-fu is gone from the Filters menu). The plugin will still need to be ported to Python 3 but GIMP would wlso need to be compiled to use Python 3. The developers have said that the Master branch already uses Python 3 but that it won’t be backported.

Sorry, no. The Heal Selection plugin is more complex than Heal Transparency and I can’t work it out. Best bet would be learn more about gimp’s python bindings to figure out what it’s doing and generally wait for it to be ported to Python 3

Thank you for all your help and insight. I’ll guess I’ll have to wait. In the meantime I still have a workaround - although one I really don’t like so much. I do have a windoze 10 machine handy and heal selection works just fine on Windows 10… Sad state of affairs when I resort to going Windows for something that Linux can’t do…

I can always fire up my Ubuntu 18.04 VM - heal selection works just fine there also… Just hate firing up a vm just for a single use purpose - now to decide which of the two is the better of the two “evils” - Using Windoze or using an old vm image for a single use purpose…

I now use the AppImage from @Carmelo_DrRaw, you can find it in GitHub.
With the “release” version of the 2.10.18 AppImage with plugins bundled I’m able to use Python scripts (e.g. some scripts from @Ofnuts) and they work fine, even if my system (Manjaro 20) doesn’t have Python2, neither gimp-python.

That’s the only way I’m now able to use GIMP fully. I hope they solve this thing soon in some way, because I’m not sure if there’s (at least for me) any real alternative to GIMP.
I’ll have to stick to an old enough AppImage that still works, or to use a VM, I guess… but neither of these solutions should be long term. And I hate having out-of-date/unsopported software.

As @darix said above this isn’t something which can be “fixed”. Python 2 is gone from Ubuntu (and likely will be for other distributions soon), and Python 3 is already in latest unreleased GIMP, so it’s just a case of waiting, or porting the Resynthesizer plugins to scheme/script fu.

Still, good to know that the Appimage works!

1 Like

OK, I’m not native, maybe I mess up the wording.
What I mean is that I’d like to be able to keep using GIMP without loss of power or functionality.
I know perfectly well about Python2 (I code in Python). It would be a pity if for this reason GIMP would get worse than it was until now.
Right now, speaking purely as a user, the functionality and the user experience is getting worse, unfortunately, it’s not even staying the same. This is always a negative thing, for any software, from the user point of view.
I needed to come up with workarounds to keep doing what I was doing before. Ideally, a tool should never get worse, at the minimum it should stay the same (also here I don’t know exactly how to express it). Getting better is a plus (optional, let’s say).

Please, note I’m not complaining here, I know fully well how hard it is to keep GIMP as it is, and I’m indefinitely grateful for just having it. But I think it’s fair to say that this situation with Python is really a pity at the moment. GIMP did get worse for me in the past weeks/months. And it does not look brighter in the immediate future (unless I stick to these workarounds).

1 Like

Then don’t upgrade. that’s one of the best things about Free Software, nobody is making you do anything. If you’re happy stay with that version until its feasible to upgrade.

1 Like

I’m fully aware of that :smiley:
It is really good, and I’d setup a VM to run that. But I do want (as I always did) to take advantage of updated distros and software (e.g. for newest lib versions, especially if I have new cameras).
But I’d then have a new distro, that comes with GIMP in it, most likely, but that GIMP will be potentially an inferior version to one I was using before, so I’d have to find some workaround to make it work (e.g. a VM with a different distros).
And yes, I agree, the beauty of FOSS is that it allows for such workarounds. But I still think it’s a pity, whenever a step-back has to be made (independently of the technical reason).

I tried that a couple of days ago after reading that someone else had success going that route, but didn’t have the heal selection option. Maybe I used the wrong release version. I’ll try it again. I like the concept of having some applications all rolled into a single package so that dependencies can all be included and embedded in the “executable” without impacting other applications. Although from a security perspective - it’s a little on the scary side.

[EDIT 4/30/2020 3:24 AM Central]
Eureka!!! That worked! apparently first time I tried it was with 2.10.8 not 2.10.18.

The AppImage for 2.10.18 works just fine! Thanks everyone!

1 Like

It’s actually not that unsafe, your system is not really affected, and you run it as user.
It’s more dangerous to use PPAs (e.g. in Ubuntu), for instance. They do affect your entire system and they can update any lib/package in your system, with privileges.