Python and Gimp
Posted 31 October 2007 - 11:31 PM
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
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
Thank to Sean Michael, to Michael Shoumaker and to all others that make this possible
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!
Posted 01 November 2007 - 09:01 AM
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?
Posted 01 November 2007 - 04:50 PM
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!
Posted 02 November 2007 - 01:10 PM
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:
now i have Python2.5 still i can 't see during Gimp install any option about python
Posted 10 November 2007 - 09:21 PM
Posted 11 November 2007 - 09:25 AM
Posted 12 November 2007 - 11:36 AM
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
Posted 12 November 2007 - 09:05 PM
Nope, still not selectable :s:
Posted 13 November 2007 - 11:01 AM
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
maybe is just a blind shoot in the darkness but i can't imagine any other reasons
Posted 13 November 2007 - 12:34 PM
Posted 14 November 2007 - 10:10 PM
Uninstall all the previous failed attempts!
Download and install Python 2.5.1
Download and install the GTK+ Runtime Environment
Download and install PyCairo
Download and install PyGobject
Download and install PyGTK
Check all this is working by using the Python console to display a window:
Download and install The GIMP, select the Customise button and put a tick in the GIMP Python extension checkbox