07-15-2023, 04:51 PM
(This post was last modified: 07-15-2023, 05:02 PM by TobyEggitt.)
(07-15-2023, 03:53 PM)Ofnuts Wrote: Still on 20.04? IIRC it's out of service since April.20.04 is an LTS release, still good for a while yet: https://ubuntu.com/about/release-cycle
[...]
Installing the gimp-python .deb from an earlier Ubuntu release (19.10 likely the latest) may be the easiest way, see here.
[...]
However I have a laptop I use for newer stuff, and it's built on 22.04, so perhaps I'll move this little project over to that. The machine I'm using is key infrastructure and I don't like the sound of all the messing around this is starting to involve!
The link you added seems to suggest that if I use the snap version, "It works"... This is the snap version, so I'm not sure I understand that. It also seems to suggest that the issue is Python versions, I have both 2.7 and 3.10, can I simply create a virtual environment (or tweek $PATH appropriately) and point it at the older python? Indeed, default "python" is 2.7 on this, I have to issue "python3" to get 3.10.
But, while the other machine sounds like the best option, I'm not clear what's incompatible with what, and therefore what I should try to change. Let my try to pin down a question. If I look for a version for an older release, does it need to be an old version of GIMP? Or should it be the latest GIMP available for that old version of Ubuntu? Or, alternatively, if I have newer Ubuntu, does that magically fix things?
Actually, for now, maybe let's not worry too much about the myriad questions that this has brought up, I'll try the laptop, see if the newer version works, and try harder again later if it doesn't.
Thanks again for your help!
(07-15-2023, 04:31 PM)rich2005 Wrote: The default Gimp version for 'buntu 20.04 is Gimp 2.10.18 and you have Gimp 2.10.30 ?
However, first thing to try is an appimage launcher that adds python support to Gimp
[...]
I'm using the snap version of this, but yes, I have the versions indicated as far as I can tell:
Mind you, in investigating versions, I notice this:
$ which python
/usr/bin/python
$ python --version
Python 2.7.18
$ which gimp
/snap/bin/gimp
$ gimp
/usr/bin/env: ‘python’: No such file or directory
/snap/gimp/393/usr/bin/gimp: LibGimpBase-WARNING: gimp: gimp_wire_read(): error
$
I'm not sure if it's worth my while to try to teach "env" where my python is, or how I'd do that (what arguments is it being executed with and where are they stored?) Is this likely to be relevant?
Anyway, I'll try what you've suggested, thanks!