GIMP Chat
http://gimpchat.com/

Gimp 3 deprecating Python2 could cause a regression. Can we fix it?
http://gimpchat.com/viewtopic.php?f=4&t=19326
Page 1 of 1

Author:  contrast_ [ Fri Apr 16, 2021 5:49 pm ]
Post subject:  Gimp 3 deprecating Python2 could cause a regression. Can we fix it?

Hello, I made this thread to talk about python2's deprecation and how that can negatively effect Gimp users. I am really excited about Gimp 3's GEGL improvements, multilayer selection, GTK3 for HDMI scaling, and new "paint select wand". But I am not happy that they are deprecating python2 scripts. This is going to break 95% or more of the alpha to logo and script fu and stuff the Gimp community has made over the last fifteen years. In my personal case, Resynthesizer and a few script fus to bevel, chisel and outline grids are the only things that I am in danger of losing. And I am extremely worried about Resynthesizer as that will do severe damage to the Gimp community if it is lost.

I know some people here love specific scriptFU stuff like alpha to logo shenanigans. So I just made this thread to ask if we can find a hack to run python2 stuff in Gimp 3 or if anyone is up for porting py2 scripts to py3. I can also keep you guys updated on Resynthesizer's porting to py3 here. https://github.com/bootchk/resynthesize ... precations

Author:  Tas_mania [ Fri Apr 16, 2021 7:18 pm ]
Post subject:  Re: Gimp 3 deprecating Python2 could cause a regression. Can we fix it

This has already happened for Ubuntu users I think?
I would like to see a python3 code checker script. Something that would highlight deprecated code.

Author:  racer-x [ Fri Apr 16, 2021 7:29 pm ]
Post subject:  Re: Gimp 3 deprecating Python2 could cause a regression. Can we fix it

If you run "gimp --verbose" you will see tons of scripts that would be in error on Gimp 3. I suppose porting py2 scripts to py3 would be ideal. Don't look at me, because I can't code my way out of a paper bag. I guess it would be a good idea to keep a copy of Gimp 2.10x appimage just in case.

Author:  contrast_ [ Fri Apr 16, 2021 7:34 pm ]
Post subject:  Re: Gimp 3 deprecating Python2 could cause a regression. Can we fix it

racer-x wrote:
If you run "gimp --verbose" you will see tons of scripts that would be in error on Gimp 3. I suppose porting py2 scripts to py3 would be ideal. Don't look at me, because I can't code my way out of a paper bag. I guess it would be a good idea to keep a copy of Gimp 2.10x appimage just in case.


I am going to make a personal flatpak of Gimp 2.10.2X (last version). From what I understand, Appimage will not bundle the python2 libraries. Only Flatpak can do stuff like that. It will need a python2 runtime though.

Author:  racer-x [ Fri Apr 16, 2021 7:39 pm ]
Post subject:  Re: Gimp 3 deprecating Python2 could cause a regression. Can we fix it

No, Appimages for version 2.10.x contain python2 libraries already.

Author:  ofnuts [ Fri Apr 16, 2021 7:55 pm ]
Post subject:  Re: Gimp 3 deprecating Python2 could cause a regression. Can we fix it

Porting general Python2 stuff to Python3 isn't hard, there are even programs for that. However,

1) The Gimp API has changed somewhat
2) AFAIK the auto-generated dialogs are no longer available (so script authors will have to invest a lot more time to write an UI)
3) This could also mean that Gimp is no longer distributed with a Python runtime

But all in all, sticking to Python2 is a dead end, I wish Gimp moved to Python3 (while keeping the same interface) ages ago.

Author:  contrast_ [ Tue Apr 20, 2021 11:33 pm ]
Post subject:  Re: Gimp 3 deprecating Python2 could cause a regression. Can we fix it

@racer-x

I have been testing the Gimp Appimages with Plugins and I can't get resynthesizer's heal to work.

Author:  racer-x [ Wed Apr 21, 2021 4:55 am ]
Post subject:  Re: Gimp 3 deprecating Python2 could cause a regression. Can we fix it

contrast_ wrote:
@racer-x

I have been testing the Gimp Appimages with Plugins and I can't get resynthesizer's heal to work.
I use the appimage without plugins, but it shouldn't mater. This resyntheser plugin was compiled by rich2005. Unpack and put it in your: /home/user/.config/GIMP-AppImage/2.10/plug-ins/ folder. It works fine here.

Attachment:
ResynthesizerPlugin.zip [111.96 KiB]
Downloaded 97 times

Author:  contrast_ [ Wed Apr 21, 2021 4:40 pm ]
Post subject:  Re: Gimp 3 deprecating Python2 could cause a regression. Can we fix it

I tried and it is not working on my Gimp appimage, despite detecting it. Resyth's heal simply does not work. I go to >Enhance and select Heal and nothing happens.

https://github.com/aferrero2707/gimp-ap ... 4.AppImage

Author:  racer-x [ Wed Apr 21, 2021 5:10 pm ]
Post subject:  Re: Gimp 3 deprecating Python2 could cause a regression. Can we fix it

You're obviously doing something wrong. I can't see what you are doing, so I can only guess. Did you make your selection before running the filter?

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/