GT Portal . Forums . Official Tutorials . Art Galleries . FAQs . Search . New Posts . Contact Us Login  .  Register


GimpTalk Announcement :
Try your digital-art skills against your fellow gimpers in GIMPtalk's Biweekly Art competition !


Board index » GIMP Art Galleries and Resources » GIMP Plugins, Filters, and Scripts Make Money Online . Free Image Hosting Script . Convert FLV to Cell Phone Format
Featured Tutorial : Learn how to create characters by Griatch
Search for :  


Post new topic Reply to topic   [ 57 posts ]   Go to page 1, 2, 3  Next


Author Message
 Post subject: Python and Gimp
PostPosted: Wed Oct 31, 2007 11:31 pm 
Offline
User avatar

Joined:
Mon May 02, 2005 5:49 pm

Topics: 105
Posts: 1578

Find User's Topics

UPDATE 15 november 2008

I just update the content, to the last available versions and all seems working well at least on my PC (windows xp)

Note that Python can't be fully updated at the moment
The last Python version is 2.6.1 but the other libraries require Python 2.5.x ,best i can do is replace the previous version 2.5.0 with 2.5.2

Also about Python note that for windows installers are available for 3 different architectures so if you have special requirement (i.e X64 )
download it directly from the Python main side

For the rest should be no problem


EDIT 18/1/2008
To make life easier to Gimp windows users i prepared a pack with everything needed (installers+ how to).
Cover is not needed but i can't resist to show it here

Image

DOWNLOAD LINK
http://photocomix-resources.deviantart.com/art/Gimp-Phython-support-easier-74889017


Thank to Sean Michael, to Michael Shoumaker and to all others that make this possible


PhotoComix 18\1\2008
------------------------------------------------------------------------------------------------------------------------------------------------
With a bit of confusion and lack of available documentation "that I could find" I stopped by the gimp.org irc channel to ask how to get python working completely with the new 2.4 version and this is what I was told,

To get python fully working you will need 4 things,

Python 2.5, get it HERE.

pygtk, pygobject and pycairo, you can get those HERE. Make sure you get the newest versions, "towards the bottom of the lists". :w:

Now... you also need to know that the python-fu scripts go in the users directory plug-ins folder "C:\Documents and Settings\Sean-Michael\.gimp-2.4\plug-ins", not the scripts folder!

I used THIS script to test and confirm that python was working with gimp 2.4.

I'd like to add that this worked for me, using Windows XP SP2, I all ready have GTK+ Runtime environment installed at this time. Anyone with specific issues not covered please share and I'll add them to this post.

I would like to give thanks to the gimp.org irc channel for providing this information, I knew nothing about this stuff and could have shared this with out there help.

SPECIAL THANKS to SCHUMAML and ARI and our very own CRYSMAN for there help with this!


_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 01, 2007 12:38 am 
Offline

Joined:
Tue Oct 30, 2007 9:53 pm

Topics: 1
Posts: 11

Find User's Topics
..and a small thanks to crysman, who provoked all this (http://www.gimptalk.com/forum/topic.php?t=25559 :)


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 01, 2007 12:49 am 
Offline
User avatar

Joined:
Mon Jun 13, 2005 11:15 am

Topics: 583
Posts: 7097

Find User's Topics
WOW mistery solved :h: :h:

_________________
Image

http://www.flickr.com/photos/97844002@N00/


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 01, 2007 1:16 am 
Offline
User avatar

Joined:
Mon May 02, 2005 5:49 pm

Topics: 105
Posts: 1578

Find User's Topics
Yes, I'm sorry crysman,

I did forget to mention your spark, your such an instigator! :w:

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 01, 2007 9:01 am 
Offline
User avatar

Joined:
Wed Jul 13, 2005 11:31 am

Topics: 119
Posts: 464

Find User's Topics
Do you also need these ?

Both PyGTK and gtkmm require a GTK+ runtime and/or developement environment.
PyGTK 2.8 : GTK+ 2.8 or newer, available as a nice installer from the gladewin32 project.
PyGTK 2.10 and gtkmm 2.10 : GTK+ 2.10 or newer, also available from gladewin32.


Do you only get the .exe file or both exe. and exe.asf files?

_________________
I know I'm in my own little world. But its ok. They know me HERE


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 01, 2007 2:56 pm 
Offline
User avatar

Joined:
Mon Jun 13, 2005 11:15 am

Topics: 583
Posts: 7097

Find User's Topics
The GTK should be not needed ,is already in gimp not sure for the other you listed

_________________
Image

http://www.flickr.com/photos/97844002@N00/


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 01, 2007 4:50 pm 
Offline
User avatar

Joined:
Mon May 02, 2005 5:49 pm

Topics: 105
Posts: 1578

Find User's Topics
All I needed was as I mentioned, and only the .exe files.

AS for gtk+, I have this installed on my system for other applications, I still use gimp 2.2.17 and gaim ect. PhotoComix metioned that gimp 2.4 comes with gtk but maybe you can let us know your experience, try the minimal requirements that I posted, if more is needed for your particular case let us know, along with operating system information if you don't mind. This will build information for those that follow our foot steps?

Thanks capnhud for posting your questions!

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 02, 2007 1:10 pm 
Offline
User avatar

Joined:
Mon Jun 13, 2005 11:15 am

Topics: 583
Posts: 7097

Find User's Topics
humm..
1 i can't install pygobject, it ask for python 2.4 and doesn't accept (or doesn't detect?) python 2.5
2 First time i installed Gimp i can't saw that option you wrote about python...
Now i installed first Python i suppose that option appear only if Python is detected...or not ? :a:

EDIT

now i have Python2.5 still i can 't see during Gimp install any option about python

_________________
Image

http://www.flickr.com/photos/97844002@N00/


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 02, 2007 5:23 pm 
Offline
User avatar

Joined:
Mon May 02, 2005 5:49 pm

Topics: 105
Posts: 1578

Find User's Topics
Try using the custom options during installation, that is where the option shows up for me. It is also stated in those options that python 2.5 is required.

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 10, 2007 9:21 pm 
Offline
User avatar

Joined:
Tue May 30, 2006 9:53 pm

Topics: 24
Posts: 601

Find User's Topics
Well, I've spent most of the afternoon trying to get GIMP and Python playing nicely, all to no avail. Despite downloading and installing various combinations of the following nothing seems to make the Python option selectable during the install

Image

:a:

_________________
ImageSometimes the best solution to morale problems is just to fire all of the unhappy people


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 10, 2007 11:42 pm 
Offline
User avatar

Joined:
Mon May 02, 2005 5:49 pm

Topics: 105
Posts: 1578

Find User's Topics
Did you use custom options when installing?

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 11, 2007 9:25 am 
Offline
User avatar

Joined:
Tue May 30, 2006 9:53 pm

Topics: 24
Posts: 601

Find User's Topics
Yep, the Python option appears but is always greyed out and there isn't a way to put a tick in the checkbox.

Image

_________________
ImageSometimes the best solution to morale problems is just to fire all of the unhappy people


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 11, 2007 4:06 pm 
Offline
User avatar

Joined:
Mon Jun 13, 2005 11:15 am

Topics: 583
Posts: 7097

Find User's Topics
i had the same problem i saw the option but greyed out and not selectable

I didn't try again yet
t

_________________
Image

http://www.flickr.com/photos/97844002@N00/


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 12, 2007 10:40 am 
Online
User avatar

Joined:
Fri Jun 29, 2007 9:47 am

Topics: 24
Posts: 342

Find User's Topics
I got it working. First install all the python stuff. Then restart the computer then install (or reinstall) Gimp. Choose custom install and you should be able to choose the gimp python extnsion.

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 12, 2007 11:36 am 
Offline
User avatar

Joined:
Mon Jun 13, 2005 11:15 am

Topics: 583
Posts: 7097

Find User's Topics
Quote:
First install all the python stuff.... Then restart the computer


that...maybe was that the problem...restart the computer once was asked by a installer (maybe python 2.5)but then i didn't thought to reload again after installed all the other things

well ' i will see now

_________________
Image

http://www.flickr.com/photos/97844002@N00/


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 12, 2007 9:05 pm 
Offline
User avatar

Joined:
Tue May 30, 2006 9:53 pm

Topics: 24
Posts: 601

Find User's Topics
Quote:
First install all the python stuff. Then restart the computer then install (or reinstall) Gimp


Nope, still not selectable :s:

_________________
ImageSometimes the best solution to morale problems is just to fire all of the unhappy people


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 13, 2007 11:01 am 
Offline
User avatar

Joined:
Mon Jun 13, 2005 11:15 am

Topics: 583
Posts: 7097

Find User's Topics
same problem...
1 then exactly what version Gimp 2.4.0 or 2.4.1 used who successfully install phyton (and what who fails)?
2 no way to try to add PY support for gimp after gimp install ?

and then is possible that if the first time2 4 was installed and the option was not available or not chosen, by some mistake that info is saved as sort of preference , and reused automatically for any new install ?

seems as in windows 2.4 easy go hunting and misuse info and preference from previous Gimp
install

maybe is just a blind shoot in the darkness but i can't imagine any other reasons

_________________
Image

http://www.flickr.com/photos/97844002@N00/


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 13, 2007 12:34 pm 
Offline
User avatar

Joined:
Tue May 30, 2006 9:53 pm

Topics: 24
Posts: 601

Find User's Topics
Well, I unistalled the lot, then ran a registry cleaner to get rid of any thing that may have been lurking and also deleted all the Python and Gimp folders I could find. Didn't seem to make a difference.

_________________
ImageSometimes the best solution to morale problems is just to fire all of the unhappy people


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 13, 2007 4:19 pm 
Offline
User avatar

Joined:
Mon May 02, 2005 5:49 pm

Topics: 105
Posts: 1578

Find User's Topics
I wish I could help you more, have you tried the gimp.org irc channel or even the developers mailing list as PhotoComix has suggested in the past? Seems there is a pro out there that would help to clear things up for us.

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 14, 2007 10:10 pm 
Offline
User avatar

Joined:
Tue May 30, 2006 9:53 pm

Topics: 24
Posts: 601

Find User's Topics
Got it working finally..... not quite sure why it worked this time, but here's what I did and the order in which I did it:

Uninstall all the previous failed attempts!
Download and install Python 2.5.1
Restart Computer
Download and install the GTK+ Runtime Environment
Download and install PyCairo
Download and install PyGobject
Download and install PyGTK
Restart Computer
Check all this is working by using the Python console to display a window:

Image

Download and install The GIMP, select the Customise button and put a tick in the GIMP Python extension checkbox

Image

Success :l:

_________________
ImageSometimes the best solution to morale problems is just to fire all of the unhappy people


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 14, 2007 10:46 pm 
Offline
User avatar

Joined:
Mon Jun 13, 2005 11:15 am

Topics: 583
Posts: 7097

Find User's Topics
:l:

You my hero!...now i can try again... :h: :h:

_________________
Image

http://www.flickr.com/photos/97844002@N00/


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 22, 2007 9:55 pm 
Offline
User avatar

Joined:
Mon Jun 13, 2005 11:15 am

Topics: 583
Posts: 7097

Find User's Topics
DAMN...

now i got python option...

but gimp install(2.4.2) is screwed up...no filter, no script fu in Xtns menu, ...it can not even open a jpg (unknow file type...)
As usual should be a problem of wrong paths...i hoped was fixed but again happened

PS
i had to correct all paths in preference....now i get all menu back...more python

_________________
Image

http://www.flickr.com/photos/97844002@N00/


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 22, 2007 10:58 pm 
Offline
User avatar

Joined:
Sat Aug 13, 2005 11:25 am

Topics: 362
Posts: 4742

Find User's Topics
I followed the instructions in the thread (basically the last bit posted by megadyptes) and everything worked just fine. Interestingly enough, when I went to save the test script from Sean-Michael's initial post...I discovered that there are some python scripts apparently already installed in the 2.4.1 base install. Now I just have to figure out where they are buried in the menus.

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 25, 2007 2:24 pm 
Offline
User avatar

Joined:
Mon Jun 13, 2005 11:15 am

Topics: 583
Posts: 7097

Find User's Topics
@Clayogre
i just discover a handy py script that you may like

is to create and edit brush...I always wonder why was no possible in gimp edit brush on the fly as is possible with any other image (brush are images) well the script help doing it

Author is Tanda and the script "edit brush" is listed in the Plugin repository, there is a english and a spanish version...only little disturbance it create a new menu (...i already get too much extra menu: pandora, video,python -fu, script-fu, FX_foundry...and more ....)...anyway that could be changed by simply opening the script with a text editor and changing the script path(s) as for script fu...only the paths to correct are much more then one and must be corrected all (or none) for the script to work

_________________
Image

http://www.flickr.com/photos/97844002@N00/


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 17, 2008 10:46 pm 
Offline
User avatar

Joined:
Mon Jun 13, 2005 11:15 am

Topics: 583
Posts: 7097

Find User's Topics
I edited the first message to provide a link i hope useful:
all you need to add Python to Gimp in a single pack (installers+ how to)

Pack is updated at 18/1/2008, but all the links to check if newer version are available are included, anyway if you notice the need to update something, please, let me know

_________________
Image

http://www.flickr.com/photos/97844002@N00/


Top
 Profile  
 
Display posts from previous:  Sort by  

Post new topic Reply to topic
 [ 57 posts ]  Go to page 1, 2, 3  Next



Who is online

Users browsing this forum: Exabot [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Related Website
Gimp tutorials database
All rights reserved © GimpTalk 2008
forum software by
phpBB