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

Jump to content

  • 6 Pages +
  • « First
  • 3
  • 4
  • 5
  • 6
  • You cannot start a new topic
  • You cannot reply to this topic

Python and Gimp

#81 User is offline   PhotoComix 

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

Posted 30 March 2009 - 10:34 PM

Python 2.6 should work well
0

#82 User is offline   Anianna 

  • Member
  • PipPip
  • Group: Members
  • Posts: 25
  • Joined: 29-March 09

Posted 31 March 2009 - 04:43 AM

OK, I got python to open a command line window, so I know it is functioning. I then DLed GURM and followed the read me for it. When I open GURM in the Filters menu, I get "Following paths in the gurm.ini couldn't be verified:" and it lists each of my gimpPaths.

Originally, I had them set to C:\Documents and Settings\Anianna\gimp-2.6\brushes. After that gave me an error, I opened up C: and followed the pathing, which no longer shows "Documents and Settings" in VISTA, so I changed it to follow the exact pathing I followed from C:, which was C:\Users\Anianna\gimp-2.6\brushes. That gave me the same error, so I attempted C:\Documents and Settings\Users\Anianna\gimp-2.6\brushes and still got the same error. I'm not sure what I'm doing wrong.
0

#83 User is offline   Anianna 

  • Member
  • PipPip
  • Group: Members
  • Posts: 25
  • Joined: 29-March 09

Posted 31 March 2009 - 11:56 AM

Woot! I fixed it. Turns out it's not gimp-2.6, it's .gimp-2.6. That one little dot made all the difference.

I will point out that the pathing on my VISTA machine is "Users" rather than "Documents and Settings". Dirty Eddie, could that be your problem?

I used Python 2.6.1, version 2.6 of each of the binaries, and the same version of the GTK+ Runtime that PhotoComix listed in the Read Me. It works beautifully with GIMP 2.6.6 and I am a very happy camper.

Thanks all and thanks PhotoComix for posting all the bits and pieces together to make things easier. Good stuff.
0

#84 User is offline   Anianna 

  • Member
  • PipPip
  • Group: Members
  • Posts: 25
  • Joined: 29-March 09

Posted 31 March 2009 - 12:09 PM

Dirty Eddie said:

Photocomix, I discussed this in pm and will bring it here for further guidance. I made a folder for the brushes I want to put in python brush manager. Here is what I put in the .ini file that is not saved as a .txt file :

[Brush Manager]
useManager = yes
gimpPath = C:\Program Files\GIMP-2.0\share\gimp\2.0\brushes
userPath = C:\Gimp Brush Palette\Brushes
extensions = .gbr,.vbr,.gih,.abr,
installedOptions =

Here is my gurm.py command line :

GURMINI = "C:\Program Files\GIMP-2.0\lib\gimp\2.0\plug-ins\gurm.ini"

That should be correct as I followed the read me for installing python and gimp to the letter as stated in this thread. Maybe I am missing something?

When I try to start the gurm console, it says that the .ini file cannot be found. It is in the plug in folder as stated in the read me's.


Did GIMP install like that itself or did you move the files? Usually, your brushes and all that aren't in the Program Files area, but in the Documents and Settings or Users area.

Typically, it would like like C:\Documents and Settings\Dirty Eddie\gimp-2.6\brushes or C:\Users\Dirty Eddie\gimp-2.6\brushes. I don't know if moving it to the Program Files area would affect it, but you might try a standard installation and see if you can get it to work that way.
0

#85 User is offline   Dirty Eddie 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 7
  • Joined: 12-August 08

Posted 01 April 2009 - 03:30 AM

I'll double check my paths and see if that works, Anianna. I was and am still perplexed when I made a very simple path to my alternate brush folder on the C drive. I never thought of Program Files being listed under user or Admin. Thought they were on the C drive outside the Admin. Thanks for posting your results.

You have to put the dot in front of Gimp 2.6 in the path also? Am I reading that right?

Thanks again.
Posted Image
0

#86 User is offline   Dirty Eddie 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 7
  • Joined: 12-August 08

Posted 01 April 2009 - 03:40 AM

I just checked it out and this is the path to my brush folder.

C:\Program Files\GIMP-2.0\share\gimp\2.0\brushes

It's not listed under admin or user, so I am just going to assume that the path is correct.

According to your results, I need to put a dot in front of GIMP-2.0.
Posted Image
0

#87 User is offline   Anianna 

  • Member
  • PipPip
  • Group: Members
  • Posts: 25
  • Joined: 29-March 09

Posted 01 April 2009 - 12:25 PM

Dirty Eddie, I had to put the dot in there because that is how it is listed in my folders. I didn't add it myself, that is how it installed automatically. Previous versions did not install that way.

My thoughts on your unusual pathing would be that it may have something to do with it not working properly, though I wouldn't know enough about it to know why. If I were in your place, I would uninstall and reinstall everything, allowing the automatic pathing. If you can get it working with the auto pathing, you could then move your files and change the file to reflect it if you wanted to continue to keep your folders in the Program Files. If they continued working, then everything is fine, but if they stop working, you know it has something to do with having those folders in that location. Honestly, I don't know what else to tell you other than to look very closely at the file name and see if you have that dot in there or if it just doesn't exactly match what you have entered.
0

#88 User is offline   polyidus 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 4
  • Joined: 23-March 09

Posted 21 April 2009 - 04:18 AM

AAAHHHHRRRGGGGGG

can anyone help im using gimp 2,6.6 with vista and i cant get the .py plug-ins to work
0

#89 User is offline   PhotoComix 

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

Posted 21 April 2009 - 04:22 AM

do you followed the instruction in the first message ? :?:

Anyway in Windows i prefer use Gimp-2.6.5 then 2.6.6 , that for me is too buggy
however that bugs should not interfere with the possibility to add python plugins
0

#90 User is offline   stuaxo 

  • Member
  • PipPip
  • Group: Members
  • Posts: 13
  • Joined: 23-March 09

Posted 21 April 2009 - 01:56 PM

The gimp installers pygtk detection is broken!
Actually I didn't find this out, L W warp9pnt9 did:
http://sourceforge.net/forum/forum.php? ... _id=412898

It looks for PythonDir\site-packages\gtk-2.0 - which if you installed pygtk from an egg doesn't exist (instead I have a file pygtk-x.yy.z-py2.5-win32.egg

I tested creating the directory "gtk-2.0" in the site-packages folder and the option was available in the gimp installer. I installed and pyfu works ok.

So 1. - There is now a workaround.
2. - How do we get the pygtk detection fixed in the installer (and hopefully stop many more screams of anguish in this thread?)

Update - filed a bug:
http://bugzilla.gnom...g.cgi?id=579726
0

#91 User is offline   Zena 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 3
  • Joined: 21-July 09

Posted 21 July 2009 - 01:40 AM

stuaxo said:

The gimp installers pygtk detection is broken!
Actually I didn't find this out, L W warp9pnt9 did:
http://sourceforge.net/forum/forum.php? ... _id=412898

It looks for PythonDir\site-packages\gtk-2.0 - which if you installed pygtk from an egg doesn't exist (instead I have a file pygtk-x.yy.z-py2.5-win32.egg

I tested creating the directory "gtk-2.0" in the site-packages folder and the option was available in the gimp installer. I installed and pyfu works ok.

So 1. - There is now a workaround.
2. - How do we get the pygtk detection fixed in the installer (and hopefully stop many more screams of anguish in this thread?)

Update - filed a bug:
http://bugzilla.gnom...g.cgi?id=579726



It seems that a version of this bug is affecting the install of GIMP 2.6.6 on WinXP sp3.

I have all the prerequisites installed and even have the directory gtk-2.0 created but still no checkbox for Python-Fu.

Is there a workaround for this?

:-)
0

#92 User is offline   PhotoComix 

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

Posted 21 July 2009 - 10:01 AM

Quote

if you installed pygtk from an egg


i can't follow here.... what means "install from a egg"? :?:
I installed just running the installer and everything works

Quote

seems that a version of this bug is affecting the install of GIMP 2.6.6 on WinXP sp3.


I can imagine any good reason on Windows to use the Gimp 2.6.6 installer, since that build has obviously something wrong.
2.6.5 has exactly same features but without the added bugs and oddities of the win version of 2.6.6

Not sure if just use 2.6.5 will solve but solved for me:
On XP SP3 i had no problem to install Gimp python with Gimp 2.6.5.

the library i used are the same included in the Python pack (link in the first message)
( About the content of the pack: May be well newer version of some libraries including pygtk , GTK installer was indicated as superfluous...
but since in practice that combination works i let as it was )
0

#93 User is offline   Zena 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 3
  • Joined: 21-July 09

Posted 21 July 2009 - 11:14 AM

Quote

I can imagine any good reason on Windows to use the Gimp 2.6.6 installer, since that build has obviously something wrong.
2.6.5 has exactly same features but without the added bugs and oddities of the win version of 2.6.6

Not sure if just use 2.6.5 will solve but solved for me:
On XP SP3 i had no problem to install Gimp python with Gimp 2.6.5.

the library i used are the same included in the Python pack (link in the first message)
( About the content of the pack: May be well newer version of some libraries including pygtk , GTK installer was indicated as superfluous...
but since in practice that combination works i let as it was )



I experience the same bug with 2.6.5 as I do with 2.6.6

Maybe GIMP installer needs to include all dependencies instead of this searching around the Internet for solutions!
0

#94 User is offline   PhotoComix 

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

Posted 21 July 2009 - 11:37 AM

Quote

Maybe GIMP installer needs to include all dependencies instead of this searching around the Internet for solutions!


It does, except for Python that is seen as optional

All dependency needed to install Gimp with Python (including Python ) are here
http://photocomix-resources.deviantart. ... r-74889017


With Gimp 2.6 you may use a newer version of Python of that i included (but NOT the last) and the GTK installer is now superfluous .
But anyway is all there


And again ....what is the "egg" :!:

Quote

if you installed pygtk from an egg


PS HERE http://www.gimpusers.com/tutorials/inst ... ndows.html a recent tut on installing Gimp-Python on windows
Maybe a tut is not strictly needed but if you do not like use what i packed or google around hunting for libraries, that may help.
(but the tutorial don't deal with "eggs" as far i can see )
0

#95 User is offline   PhotoComix 

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

Posted 21 July 2009 - 12:03 PM

Uff ..sorry to double post but i have some questions on this

Quote

I experience the same bug with 2.6.5 as I do with 2.6.6


1 what is "same bug" exactly: the Gimp installer did not show Python in customize option?
Is that ?
Are sure that bugzilla report is related to your problem :?:



2 you used this http://photocomix-resources.deviantart. ... r-74889017 pack or you found/installed more recent libraries on the NET? :?:

3 what version of python you have installed :?:
0

#96 User is offline   Zena 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 3
  • Joined: 21-July 09

Posted 21 July 2009 - 07:13 PM

For my WinXP-32 system, I have Python 2.6.2 installed (which I use use for Blender) as downloaded from here: http://www.python.org/download/

I installed the PyGTK files (for Python 2.6) as downloaded from here: http://www.pygtk.org/downloads.html

When I install GIMP 2.6.5 & 2.6.6, I click on the "Customize" button. The checkbox for the install of the Python Extension is "grayed out" and I am not able to check it. Thus, Python-Fu does not get installed during the GIMP installation.

It seems that the GIMP installer is not recognizing my installed dependencies. Which one it is not recognizing I do not know.


:-)
0

#97 User is offline   PhotoComix 

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

Posted 24 July 2009 - 11:42 AM

you miss something ,check this list


Python http://www.python.or...ython-2.6.1.msi
PyCairo http://ftp.gnome.org/pub/GNOME/binaries ... -py2.6.exe
PyGobject http://ftp.gnome.org/pub/GNOME/binaries ... -py2.6.exe

PyGTK http://ftp.gnome.org/pub/GNOME/binaries ... -py2.6.exe

This instead may be superfluous
GTK+ Runtime Environment http://garr.dl.sourceforge.net/sourcefo ... in32-1.exe
0

#98 User is offline   drums 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 02-August 09

Posted 02 August 2009 - 02:15 PM

Hi Zena, Stuaxo (and others).

I had the problem with the Python checkbox being greyed out in GIMP under XP, but I found if I selected to make the installed Python apps available for all users (rather than just current logged in user), the box was no longer greyed out.

Hopefully this works for you too. Good luck.

@Photocomix - keep up the great work - your python install guide was a real help for me!

Drums
0

#99 User is offline   mahvin 

  • Member
  • PipPip
  • Group: Members
  • Posts: 42
  • Joined: 24-September 09
  • LocationOregon USA

Posted 29 November 2009 - 02:12 AM

gasto said:

Only problem is that some python scripts like python_fu_yinyang Cubic_patterns, Random_shapes, are not working:



"SystemError: new style getargs format but argument is not a tuple "

Others are working though.


On the Cubic Patterns Py plug-in, all you need to do is remove the [ ] from the ([184,182,17]) on line 10 and again on line 28 ([0,0,0])

As for Random Shapes PY plug-in, when saving the file to export on the prompt, make sure its within your selected default image folder for GIMP.

I realize this post is LATE in regards to the posting date, but as they say "Better LATE than never". :)
0

#100 User is offline   LPent 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 10-June 10

Posted 10 June 2010 - 09:55 AM

I am a total nitwit when it comes to python so I hope someone can answer me this:

I am currently using blender 2.5 alpha. It uses Python 3.0 if I am not mistaken. I did not install python, but it seems some python libraries were installed with blender?

Anyway, I made the switch from PS to Gimp and now I want to use some of the plug-ins, but for this I need to install python 2.5.2 right? Won't this interfere with my blender installation?

Oh yeah, I am on Windows 7. And the plug-in I am most interested in using is GURM.
0

Share this topic:


  • 6 Pages +
  • « First
  • 3
  • 4
  • 5
  • 6
  • You cannot start a new topic
  • You cannot reply to this topic