Gimptalk - Premier Gimp Community: Python and Gimp - Gimptalk - Premier Gimp Community

Jump to content

  • 6 Pages +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

Python and Gimp

#1 User is offline   Sean-Michael 

  • Retired Staff
  • PipPipPip
  • Group: Retired Staff
  • Posts: 1,587
  • Joined: 02-May 05

Posted 31 October 2007 - 11:31 PM

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

Posted Image

DOWNLOAD LINK
http://photocomix-re...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!
0

#2 User is offline   crysman 

  • Member
  • PipPip
  • Group: Members
  • Posts: 11
  • Joined: 30-October 07

Posted 01 November 2007 - 12:38 AM

..and a small thanks to crysman, who provoked all this (http://www.gimptalk....pic.php?t=25559 :)
0

#3 User is offline   PhotoComix 

  • GT Senior Moderator
  • Group: Senior Moderators
  • Posts: 11,288
  • Joined: 13-June 05

Posted 01 November 2007 - 12:49 AM

WOW mistery solved :h: :h:
0

#4 User is offline   Sean-Michael 

  • Retired Staff
  • PipPipPip
  • Group: Retired Staff
  • Posts: 1,587
  • Joined: 02-May 05

Posted 01 November 2007 - 01:16 AM

Yes, I'm sorry crysman,

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

#5 User is offline   capnhud 

  • Member
  • PipPip
  • Group: Members
  • Posts: 576
  • Joined: 13-July 05

Posted 01 November 2007 - 09:01 AM

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
0

#6 User is offline   PhotoComix 

  • GT Senior Moderator
  • Group: Senior Moderators
  • Posts: 11,288
  • Joined: 13-June 05

Posted 01 November 2007 - 02:56 PM

The GTK should be not needed ,is already in gimp not sure for the other you listed
0

#7 User is offline   Sean-Michael 

  • Retired Staff
  • PipPipPip
  • Group: Retired Staff
  • Posts: 1,587
  • Joined: 02-May 05

Posted 01 November 2007 - 04:50 PM

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!
0

#8 User is offline   PhotoComix 

  • GT Senior Moderator
  • Group: Senior Moderators
  • Posts: 11,288
  • Joined: 13-June 05

Posted 02 November 2007 - 01:10 PM

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
0

#9 User is offline   Sean-Michael 

  • Retired Staff
  • PipPipPip
  • Group: Retired Staff
  • Posts: 1,587
  • Joined: 02-May 05

Posted 02 November 2007 - 05:23 PM

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.
0

#10 User is offline   megadyptes 

  • Member
  • PipPip
  • Group: Members
  • Posts: 601
  • Joined: 30-May 06

Posted 10 November 2007 - 09:21 PM

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

Posted Image

:a:
0

#11 User is offline   Sean-Michael 

  • Retired Staff
  • PipPipPip
  • Group: Retired Staff
  • Posts: 1,587
  • Joined: 02-May 05

Posted 10 November 2007 - 11:42 PM

Did you use custom options when installing?
0

#12 User is offline   megadyptes 

  • Member
  • PipPip
  • Group: Members
  • Posts: 601
  • Joined: 30-May 06

Posted 11 November 2007 - 09:25 AM

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

Posted Image
0

#13 User is offline   PhotoComix 

  • GT Senior Moderator
  • Group: Senior Moderators
  • Posts: 11,288
  • Joined: 13-June 05

Posted 11 November 2007 - 04:06 PM

i had the same problem i saw the option but greyed out and not selectable

I didn't try again yet
t
0

#14 User is offline   FSX 

  • Member
  • PipPip
  • Group: Members
  • Posts: 520
  • Joined: 29-June 07

Posted 12 November 2007 - 10:40 AM

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.
Posted Image
0

#15 User is offline   PhotoComix 

  • GT Senior Moderator
  • Group: Senior Moderators
  • Posts: 11,288
  • Joined: 13-June 05

Posted 12 November 2007 - 11:36 AM

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
0

#16 User is offline   megadyptes 

  • Member
  • PipPip
  • Group: Members
  • Posts: 601
  • Joined: 30-May 06

Posted 12 November 2007 - 09:05 PM

Quote

First install all the python stuff. Then restart the computer then install (or reinstall) Gimp


Nope, still not selectable :s:
0

#17 User is offline   PhotoComix 

  • GT Senior Moderator
  • Group: Senior Moderators
  • Posts: 11,288
  • Joined: 13-June 05

Posted 13 November 2007 - 11:01 AM

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
0

#18 User is offline   megadyptes 

  • Member
  • PipPip
  • Group: Members
  • Posts: 601
  • Joined: 30-May 06

Posted 13 November 2007 - 12:34 PM

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.
0

#19 User is offline   Sean-Michael 

  • Retired Staff
  • PipPipPip
  • Group: Retired Staff
  • Posts: 1,587
  • Joined: 02-May 05

Posted 13 November 2007 - 04:19 PM

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.
0

#20 User is offline   megadyptes 

  • Member
  • PipPip
  • Group: Members
  • Posts: 601
  • Joined: 30-May 06

Posted 14 November 2007 - 10:10 PM

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:

Posted Image

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

Posted Image

Success :l:
0

Share this topic:


  • 6 Pages +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic