It is currently Tue Jul 02, 2024 3:05 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 18 posts ] 
Author Message
 Post subject: How to add Python-FU to gimp
PostPosted: Thu Aug 04, 2022 12:44 pm  (#1) 
Offline
GimpChat Member

Joined: Mar 06, 2015
Posts: 295
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 2049 times ]
Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: How to add Python-FU to gimp
PostPosted: Thu Aug 04, 2022 1:49 pm  (#2) 
Offline
GimpChat Member
User avatar

Joined: Aug 08, 2016
Posts: 2061
Location: East Midlands of England
And my Gimp has no Script-Fu...

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

_________________
Image

"Let no one steal your dreams."
Paul Cookson


Latest plug-in update: Paragrapher v.1.4
Custom Font Links
Tools
Character Paths
White Bases


Top
 Post subject: Re: How to add Python-FU to gimp
PostPosted: Thu Aug 04, 2022 2:17 pm  (#3) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2436
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

_________________
Image


Top
 Post subject: Re: How to add Python-FU to gimp
PostPosted: Thu Aug 04, 2022 2:43 pm  (#4) 
Offline
GimpChat Member

Joined: Mar 06, 2015
Posts: 295
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


Top
 Post subject: Re: How to add Python-FU to gimp
PostPosted: Tue Aug 29, 2023 12:11 pm  (#5) 
Offline
GimpChat Member
User avatar

Joined: Mar 23, 2012
Posts: 7316
Location: Göteborg at last!
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.


Top
 Post subject: Re: How to add Python-FU to gimp
PostPosted: Wed Aug 30, 2023 5:06 pm  (#6) 
Offline
GimpChat Member
User avatar

Joined: Nov 04, 2015
Posts: 1365
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.


Top
 Post subject: Re: How to add Python-FU to gimp
PostPosted: Thu Aug 31, 2023 11:52 am  (#7) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2260
Location: Poland
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

_________________
Image

Slava
Ukraini!


Top
 Post subject: Re: How to add Python-FU to gimp
PostPosted: Thu Aug 31, 2023 12:09 pm  (#8) 
Offline
GimpChat Member
User avatar

Joined: Mar 23, 2012
Posts: 7316
Location: Göteborg at last!
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?


Top
 Post subject: Re: How to add Python-FU to gimp
PostPosted: Thu Aug 31, 2023 2:22 pm  (#9) 
Offline
GimpChat Member
User avatar

Joined: Mar 23, 2012
Posts: 7316
Location: Göteborg at last!
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.


Top
 Post subject: Re: How to add Python-FU to gimp
PostPosted: Thu Aug 31, 2023 3:30 pm  (#10) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4752
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.

_________________
Image


Top
 Post subject: Re: How to add Python-FU to gimp
PostPosted: Thu Aug 31, 2023 3:42 pm  (#11) 
Offline
GimpChat Member
User avatar

Joined: Mar 23, 2012
Posts: 7316
Location: Göteborg at last!
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.


Top
 Post subject: Re: How to add Python-FU to gimp
PostPosted: Thu Aug 31, 2023 4:30 pm  (#12) 
Offline
GimpChat Member
User avatar

Joined: Nov 04, 2015
Posts: 1365
These appimages are just 'launchers' that add python2. The non-Ubuntu one needs 'sudo apt install fuse-overlayfs'.

Cheers.


Top
 Post subject: Re: How to add Python-FU to gimp
PostPosted: Thu Aug 31, 2023 4:39 pm  (#13) 
Offline
GimpChat Member
User avatar

Joined: Mar 23, 2012
Posts: 7316
Location: Göteborg at last!
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?


Top
 Post subject: Re: How to add Python-FU to gimp
PostPosted: Thu Aug 31, 2023 5:14 pm  (#14) 
Offline
GimpChat Member
User avatar

Joined: Mar 23, 2012
Posts: 7316
Location: Göteborg at last!
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


Top
 Post subject: Re: How to add Python-FU to gimp
PostPosted: Fri Sep 01, 2023 3:00 am  (#15) 
Offline
GimpChat Member
User avatar

Joined: Nov 04, 2015
Posts: 1365
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)


Top
 Post subject: Re: How to add Python-FU to gimp
PostPosted: Fri Sep 01, 2023 4:41 am  (#16) 
Offline
GimpChat Member
User avatar

Joined: Mar 23, 2012
Posts: 7316
Location: Göteborg at last!
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


Top
 Post subject: Re: How to add Python-FU to gimp
PostPosted: Mon Sep 04, 2023 9:28 am  (#17) 
Offline
GimpChat Member
User avatar

Joined: Mar 23, 2012
Posts: 7316
Location: Göteborg at last!
vitforlinux wrote:
If you feel a headache coming, pretend you haven't read anything.


:rofl


Top
 Post subject: Re: How to add Python-FU to gimp
PostPosted: Mon Sep 04, 2023 11:09 am  (#18) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2436
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.

_________________
Image


Top
Post new topic Reply to topic  [ 18 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Convert GIMP plugin from Python 2 to Python 3

4

No new posts Difference between "Python-Fu" and "Python" plugin

6

No new posts Python 3 With GIMP 2

0

No new posts Attachment(s) Help with pdb.plug_in_displace when using python-fu

4

No new posts Help with pdb.plug_in_displace when using python-fu in OS X

1



* Login  



Powered by phpBB3 © phpBB Group