GIMP Chat
http://gimpchat.com/

How to add Python-FU to gimp
http://gimpchat.com/viewtopic.php?f=8&t=20061
Page 1 of 1

Author:  doronf2 [ Thu Aug 04, 2022 12:44 pm ]
Post subject:  How to add Python-FU to gimp

GIMP Version: 2.10.30
Operating System: Linux
OS Version: Linum Mint
GIMP Experience: New User



Dear Gimp Users

How can I add gimp Python-FU to my gimp.
I add a photo.
You can see in the photo that I only have Script-FU


Thanks
Doron.

Attachments:
Gimp without Python-FU.png
Gimp without Python-FU.png [ 394.65 KiB | Viewed 2069 times ]

Author:  Skinnyhouse [ Thu Aug 04, 2022 1:49 pm ]
Post subject:  Re: How to add Python-FU to gimp

And my Gimp has no Script-Fu...

Attachment:
No_ScriptFu.jpg
No_ScriptFu.jpg [ 26.11 KiB | Viewed 2054 times ]

Author:  rich2005 [ Thu Aug 04, 2022 2:17 pm ]
Post subject:  Re: How to add Python-FU to gimp

doronf2 wrote:
GIMP Version: 2.10.30
Operating System: Linux
OS Version: Linum Mint
GIMP Experience: New User
How can I add gimp Python-FU to my gimp.
I add a photo.
You can see in the photo that I only have Script-FU
Doron.


That looks like a brand new Mint21 installation. Good Choice ;)

The most recent Linux distros use python3 and Gimp uses a python2 package.

To cut a long story short, use Tas_mania appimage launcher from here:

https://github.com/TasMania17/Gimp-Appi ... s/releases

Download the second one gimp-python2-overlay-launcher-ubuntu22.04.AppImage

Put it in its own folder for convenience and run it:

This a brand new Mint21 / Gimp 2.10.30 installation. https://i.imgur.com/wj5kDdx.mp4

Author:  doronf2 [ Thu Aug 04, 2022 2:43 pm ]
Post subject:  Re: How to add Python-FU to gimp

rich2005 wrote:
doronf2 wrote:
GIMP Version: 2.10.30
Operating System: Linux
OS Version: Linum Mint
GIMP Experience: New User
How can I add gimp Python-FU to my gimp.
I add a photo.
You can see in the photo that I only have Script-FU
Doron.


That looks like a brand new Mint21 installation. Good Choice ;)

The most recent Linux distros use python3 and Gimp uses a python2 package.

To cut a long story short, use Tas_mania appimage launcher from here:

https://github.com/TasMania17/Gimp-Appi ... s/releases

Download the second one gimp-python2-overlay-launcher-ubuntu22.04.AppImage

Put it in its own folder for convenience and run it:

This a brand new Mint21 / Gimp 2.10.30 installation. https://i.imgur.com/wj5kDdx.mp4



Thank you rich2005
I will use yours gimp appimage

Doron

Author:  Erisian [ Tue Aug 29, 2023 12:11 pm ]
Post subject:  Re: How to add Python-FU to gimp

I am using a Debian VM on a chromebook and I have tried both versions of the appimage. Both versions launch Gimp but neither give me python-fu. I have python 2 installed.

Author:  Tas_mania [ Wed Aug 30, 2023 5:06 pm ]
Post subject:  Re: How to add Python-FU to gimp

Hi Erisian, you don't need python2 installed because it's considered obsolete and the appimage contains it. For Debian use the 'fuse-overlay' appimage.
Never tried the appimage in a VM.
If any problems post your Debian version also. Also the Gimp flatpack version has python2.

Author:  MareroQ [ Thu Aug 31, 2023 11:52 am ]
Post subject:  Re: How to add Python-FU to gimp

Hi Erisian

Only theoretically (this is what i have in Ubuntu):
Since you have python2 installed check if Gimp can find it:

\usr\lib\gimp\2.0\interpreters\pygimp.interp
python=/bin/python2
python2=/bin/python2
/usr/bin/python=/bin/python2
:Python:E::py::python2:


usr\lib\gimp\2.0\environ\pygimp.env
: PYTHONPATH=${gimp_plug_in_dir}/python


and required files:
usr\lib\gimp\2.0\python\
_gimpenums.la
_gimpenums.so
_gimpui.la
_gimpui.so
gimp.la
gimp.so
gimpcolor.la
gimpcolor.so
gimpenums.py
gimpenums.pyc
gimpenums.pyo
gimpfu.py
gimpfu.pyc
gimpfu.pyo
gimpplugin.py
gimpplugin.pyc
gimpplugin.pyo
gimpshelf.py
gimpshelf.pyc
gimpshelf.pyo
gimpthumb.la
gimpthumb.so
gimpui.py
gimpui.pyc
gimpui.pyo
pygimp-logo.png

Author:  Erisian [ Thu Aug 31, 2023 12:09 pm ]
Post subject:  Re: How to add Python-FU to gimp

Tas_mania wrote:
Hi Erisian, you don't need python2 installed because it's considered obsolete and the appimage contains it. For Debian use the 'fuse-overlay' appimage.
Never tried the appimage in a VM.
If any problems post your Debian version also. Also the Gimp flatpack version has python2.

Flatpack is out of the question, it takes up far too much space on a Chromebook. Is there a particular folder I have to put the appimage in? Could the Python 2 that I installed be interfering?

Author:  Erisian [ Thu Aug 31, 2023 2:22 pm ]
Post subject:  Re: How to add Python-FU to gimp

MareroQ wrote:
Hi Erisian

Only theoretically (this is what i have in Ubuntu):
Since you have python2 installed check if Gimp can find it:

\usr\lib\gimp\2.0\interpreters\pygimp.interp
python=/bin/python2
python2=/bin/python2
/usr/bin/python=/bin/python2
:Python:E::py::python2:


usr\lib\gimp\2.0\environ\pygimp.env
: PYTHONPATH=${gimp_plug_in_dir}/python


and required files:
usr\lib\gimp\2.0\python\
_gimpenums.la
_gimpenums.so
_gimpui.la
_gimpui.so
gimp.la
gimp.so
gimpcolor.la
gimpcolor.so
gimpenums.py
gimpenums.pyc
gimpenums.pyo
gimpfu.py
gimpfu.pyc
gimpfu.pyo
gimpplugin.py
gimpplugin.pyc
gimpplugin.pyo
gimpshelf.py
gimpshelf.pyc
gimpshelf.pyo
gimpthumb.la
gimpthumb.so
gimpui.py
gimpui.pyc
gimpui.pyo
pygimp-logo.png

I don't have any of the pygimp files. The two folders contain only default.interp and default.env and I do not have a python folder.

Author:  ofnuts [ Thu Aug 31, 2023 3:30 pm ]
Post subject:  Re: How to add Python-FU to gimp

Erisian wrote:
Tas_mania wrote:
Hi Erisian, you don't need python2 installed because it's considered obsolete and the appimage contains it. For Debian use the 'fuse-overlay' appimage.
Never tried the appimage in a VM.
If any problems post your Debian version also. Also the Gimp flatpack version has python2.

Flatpack is out of the question, it takes up far too much space on a Chromebook. Is there a particular folder I have to put the appimage in? Could the Python 2 that I installed be interfering?


FlatPak and AppImage ought to take roughly the same space. The idea is the same in both; come with all the dependencies so you don't care much about what is installed in the OS. Otherwise you can also install Pythinv2 (still on the repos) and retrofit an old gimp-python DEB in your recent Ubuntu/Debian.

Author:  Erisian [ Thu Aug 31, 2023 3:42 pm ]
Post subject:  Re: How to add Python-FU to gimp

ofnuts wrote:
Erisian wrote:
Tas_mania wrote:
Hi Erisian, you don't need python2 installed because it's considered obsolete and the appimage contains it. For Debian use the 'fuse-overlay' appimage.
Never tried the appimage in a VM.
If any problems post your Debian version also. Also the Gimp flatpack version has python2.

Flatpack is out of the question, it takes up far too much space on a Chromebook. Is there a particular folder I have to put the appimage in? Could the Python 2 that I installed be interfering?


FlatPak and AppImage ought to take roughly the same space. The idea is the same in both; come with all the dependencies so you don't care much about what is installed in the OS. Otherwise you can also install Pythinv2 (still on the repos) and retrofit an old gimp-python DEB in your recent Ubuntu/Debian.

The flatpack packages and whatever else flatpack installs take up far more space than the appimage. Quite a large GB foundation! I absolutely had to remove them! I have tried the gimp-python DEB packages and they tell me that I need some dependencies that are uninstallable.

Author:  Tas_mania [ Thu Aug 31, 2023 4:30 pm ]
Post subject:  Re: How to add Python-FU to gimp

These appimages are just 'launchers' that add python2. The non-Ubuntu one needs 'sudo apt install fuse-overlayfs'.

Cheers.

Author:  Erisian [ Thu Aug 31, 2023 4:39 pm ]
Post subject:  Re: How to add Python-FU to gimp

Tas_mania wrote:
These appimages are just 'launchers' that add python2. The non-Ubuntu one needs 'sudo apt install fuse-overlayfs'.

Cheers.


THAT WORKED! :hi5 :jumpclap :clap :yes Thank you Tas! :)

Is there anything like this for windows 10 32 bit?

Author:  Erisian [ Thu Aug 31, 2023 5:14 pm ]
Post subject:  Re: How to add Python-FU to gimp

It is showing Python fu and the console in the menu but my python plugins are still not showing. :(

EDIT: Never mind, I just had to make them executable and now they are showing. :yes

Author:  Tas_mania [ Fri Sep 01, 2023 3:00 am ]
Post subject:  Re: How to add Python-FU to gimp

Glad it worked Erisian. There is also MathMap in that appimage. It's at Filters > Generic > MathMap > MathMap. It needs gcc which may or may not be in your Debian (sudo apt install gcc)

Author:  Erisian [ Fri Sep 01, 2023 4:41 am ]
Post subject:  Re: How to add Python-FU to gimp

Tas_mania wrote:
Glad it worked Erisian. There is also MathMap in that appimage. It's at Filters > Generic > MathMap > MathMap. It needs gcc which may or may not be in your Debian (sudo apt install gcc)

Nice! I installed gcc and now I have it. :tyspin

Author:  Erisian [ Mon Sep 04, 2023 9:28 am ]
Post subject:  Re: How to add Python-FU to gimp

vitforlinux wrote:
If you feel a headache coming, pretend you haven't read anything.


:rofl

Author:  rich2005 [ Mon Sep 04, 2023 11:09 am ]
Post subject:  Re: How to add Python-FU to gimp

Quote:
...on PClinuxOS you don't have to use the terminal to update the system... it breaks down.


That is usually user error. I used PClinuxOS for several years and since a rolling distro the rule was

Update Everything or Update Nothing. The sure-fire way to break PCLOS is choose parts to update.

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