Switch to full style
Ask all general Gimp related questions here
Post a reply

How to add Python-FU to gimp

Thu Aug 04, 2022 12:44 pm

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.

Re: How to add Python-FU to gimp

Thu Aug 04, 2022 1:49 pm

And my Gimp has no Script-Fu...

No_ScriptFu.jpg
No_ScriptFu.jpg (26.11 KiB) Viewed 2053 times

Re: How to add Python-FU to gimp

Thu Aug 04, 2022 2:17 pm

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

Re: How to add Python-FU to gimp

Thu Aug 04, 2022 2:43 pm

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

Re: How to add Python-FU to gimp

Tue Aug 29, 2023 12:11 pm

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.

Re: How to add Python-FU to gimp

Wed Aug 30, 2023 5:06 pm

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.

Re: How to add Python-FU to gimp

Thu Aug 31, 2023 11:52 am

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
Code:
python=/bin/python2
python2=/bin/python2
/usr/bin/python=/bin/python2
:Python:E::py::python2:


usr\lib\gimp\2.0\environ\pygimp.env
Code:
: 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

Re: How to add Python-FU to gimp

Thu Aug 31, 2023 12:09 pm

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?

Re: How to add Python-FU to gimp

Thu Aug 31, 2023 2:22 pm

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
Code:
python=/bin/python2
python2=/bin/python2
/usr/bin/python=/bin/python2
:Python:E::py::python2:


usr\lib\gimp\2.0\environ\pygimp.env
Code:
: 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.

Re: How to add Python-FU to gimp

Thu Aug 31, 2023 3:30 pm

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.

Re: How to add Python-FU to gimp

Thu Aug 31, 2023 3:42 pm

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.

Re: How to add Python-FU to gimp

Thu Aug 31, 2023 4:30 pm

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

Cheers.

Re: How to add Python-FU to gimp

Thu Aug 31, 2023 4:39 pm

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?

Re: How to add Python-FU to gimp

Thu Aug 31, 2023 5:14 pm

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

Re: How to add Python-FU to gimp

Fri Sep 01, 2023 3:00 am

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)

Re: How to add Python-FU to gimp

Fri Sep 01, 2023 4:41 am

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

Re: How to add Python-FU to gimp

Mon Sep 04, 2023 9:28 am

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


:rofl

Re: How to add Python-FU to gimp

Mon Sep 04, 2023 11:09 am

...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.
Post a reply