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 Web Development Services . Convert FLV to Cell Phone Format
Featured Tutorial : Learn how to create characters by Griatch
Search for :  


Post new topic Reply to topic   [ 100 posts ]   Go to page Previous  1, 2, 3, 4


Author Message
Offline
 Post subject: Re: Python and Gimp
PostPosted: Mon Mar 30, 2009 4:40 pm 
User avatar

Joined:
Sun Mar 29, 2009 4:02 pm

Topics:
Posts: 25

Find User's Topics

I see the read me says you have to uninstall and reinstall GIMP. I was waiting to DL 2.6.x because I heard it was buggy and my 2.4 is working beautifully. Can anybody tell me just how buggy 2.6 is with Windows? I feel like I'm trying to fix something that isn't broken, but I really want GURM and it requires Python.



Top
 Profile E-mail  
 
Offline
 Post subject: Re: Python and Gimp
PostPosted: Mon Mar 30, 2009 6:24 pm 

Joined:
Tue Aug 12, 2008 12:15 am

Topics:
Posts: 7

Find User's Topics
I hope you have success with it and if you do, maybe you could help me. I did exactly what all the read me's said to do and the Python will not load up for me.

Anyway Gimp 2.6.6 doesn't seem to have any bugs in it.

2.6.4, on the other hand did have some issues, but .6 seems to have them ironed out.

Not a big fan of 2.6, as I really liked having the file opening mechanism on the toolbox.

_________________
Image


Top
 Profile E-mail  
 
Offline
 Post subject: Re: Python and Gimp
PostPosted: Mon Mar 30, 2009 6:56 pm 
User avatar

Joined:
Sun Mar 29, 2009 4:02 pm

Topics:
Posts: 25

Find User's Topics
I see that Python is updated to 3.0.1 as of February, but it has changed significantly from the series 2 language. I also see that there is a conversion tool for series 3 so that it will read series 2 language.

I'm going to try to DL the latest Python with the conversion tool and then continue on with the Read Me instructions.

Is there any reason why I should not do it this way? I don't know enough about it for any red flags to pop up for me.

Dirty Eddie, I'll let you know how that turns out for me. Thanks for your opinion of 2.6. I guess I'll have to give it a try. Hopefully I won't mourn my 2.4.

Edit: I can't seem to find the download for the conversion tool, so maybe I won't be getting the latest version. When I click it, I am taken to a log and when I select the download link in the log I only get text. Anybody know how to get this conversion tool downloaded or is this something I have to change in the coding? Where can I find info on how to do that?

Also, these appear to be the latest versions of these components. Is there any reason why I should not be using the latest versions?
Python 3.0.1 http://www.python.org/ftp/python/2.6.1/python-2.6.1.msi
GTK+ Runtime Environment http://garr.dl.sourceforge.net/sourceforge/gladewin32/gtk-2.10.11-win32-1.exe
PyCairo http://ftp.gnome.org/pub/GNOME/binaries/win32/pycairo/1.4/pycairo-1.4.12-2.win32-py2.6.exe
PyGobject http://ftp.gnome.org/pub/GNOME/binaries/win32/pygobject/2.14/pygobject-2.14.2-2.win32-py2.6.exe
PyGTK http://ftp.gnome.org/pub/GNOME/binaries/win32/pygtk/2.12/pygtk-2.12.1-3.win32-py2.6.exe

Edit2:

The latest binaries above only support Python 2.6 - good reason not to get 3.0.1 at this point.

Also, the image in the read me comes up as unavailable. Do you still have it posted?


Last edited by Anianna on Mon Mar 30, 2009 9:43 pm, edited 1 time in total.

Top
 Profile E-mail  
 
Offline
 Post subject: Re: Python and Gimp
PostPosted: Mon Mar 30, 2009 9:36 pm 
GT Manager

User avatar

Joined:
Mon Jun 13, 2005 11:15 am

Topics:
Posts: 10850

Find User's Topics
you found the reason by yourself, i try to maintain everything updated but for each major release of gimp, now should work fine with gimp 2.6.

Maybe now you should be able to use phython 2.6 before gimp 2.6.5 was needed a older version,(i didn't update because would be confusing having 2 different pack for gimp 2.6 (1 for before gimp 2.6.5 and one for after).

Basically that combination works, is possible now that some component may be updated but updating a component comport test compatibility with all the others,
and in this case i do not think will give perceptible advantages,

...in some cases already tested may be more safe then "fully updated"

_________________
Image

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


Top
 Profile  
 
Offline
 Post subject: Re: Python and Gimp
PostPosted: Mon Mar 30, 2009 9:59 pm 
User avatar

Joined:
Sun Mar 29, 2009 4:02 pm

Topics:
Posts: 25

Find User's Topics
I see. I will give Python 2.6 a try with GIMP 2.6.6 and see how it goes. If it doesn't work, I can always revert to the older files you have listed. Thanks a bunch for putting all of this together.


Top
 Profile E-mail  
 
Offline
 Post subject: Re: Python and Gimp
PostPosted: Mon Mar 30, 2009 10:34 pm 
GT Manager

User avatar

Joined:
Mon Jun 13, 2005 11:15 am

Topics:
Posts: 10850

Find User's Topics
Python 2.6 should work well

_________________
Image

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


Top
 Profile  
 
Offline
 Post subject: Re: Python and Gimp
PostPosted: Tue Mar 31, 2009 4:43 am 
User avatar

Joined:
Sun Mar 29, 2009 4:02 pm

Topics:
Posts: 25

Find User's Topics
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.


Top
 Profile E-mail  
 
Offline
 Post subject: Re: Python and Gimp
PostPosted: Tue Mar 31, 2009 11:56 am 
User avatar

Joined:
Sun Mar 29, 2009 4:02 pm

Topics:
Posts: 25

Find User's Topics
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.


Top
 Profile E-mail  
 
Offline
 Post subject: Re: Python and Gimp
PostPosted: Tue Mar 31, 2009 12:09 pm 
User avatar

Joined:
Sun Mar 29, 2009 4:02 pm

Topics:
Posts: 25

Find User's Topics
Dirty Eddie wrote:
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.


Top
 Profile E-mail  
 
Offline
 Post subject: Re: Python and Gimp
PostPosted: Wed Apr 01, 2009 3:30 am 

Joined:
Tue Aug 12, 2008 12:15 am

Topics:
Posts: 7

Find User's Topics
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.

_________________
Image


Top
 Profile E-mail  
 
Offline
 Post subject: Re: Python and Gimp
PostPosted: Wed Apr 01, 2009 3:40 am 

Joined:
Tue Aug 12, 2008 12:15 am

Topics:
Posts: 7

Find User's Topics
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.

_________________
Image


Top
 Profile E-mail  
 
Offline
 Post subject: Re: Python and Gimp
PostPosted: Wed Apr 01, 2009 12:25 pm 
User avatar

Joined:
Sun Mar 29, 2009 4:02 pm

Topics:
Posts: 25

Find User's Topics
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.


Top
 Profile E-mail  
 
Offline
 Post subject: Re: Python and Gimp
PostPosted: Tue Apr 21, 2009 4:18 am 

Joined:
Mon Mar 23, 2009 5:25 pm

Topics:
Posts: 4

Find User's Topics
AAAHHHHRRRGGGGGG

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


Top
 Profile E-mail  
 
Offline
 Post subject: Re: Python and Gimp
PostPosted: Tue Apr 21, 2009 4:22 am 
GT Manager

User avatar

Joined:
Mon Jun 13, 2005 11:15 am

Topics:
Posts: 10850

Find User's Topics
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

_________________
Image

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


Top
 Profile  
 
Offline
 Post subject: Re: Python and Gimp
PostPosted: Tue Apr 21, 2009 1:56 pm 

Joined:
Mon Mar 23, 2009 11:37 am

Topics:
Posts: 13

Find User's Topics
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.gnome.org/show_bug.cgi?id=579726


Top
 Profile E-mail  
 
Offline
 Post subject: Re: Python and Gimp
PostPosted: Tue Jul 21, 2009 1:40 am 

Joined:
Tue Jul 21, 2009 1:33 am

Topics:
Posts: 3

Find User's Topics
stuaxo wrote:
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.gnome.org/show_bug.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?

:-)


Top
 Profile E-mail  
 
Offline
 Post subject: Re: Python and Gimp
PostPosted: Tue Jul 21, 2009 10:01 am 
GT Manager

User avatar

Joined:
Mon Jun 13, 2005 11:15 am

Topics:
Posts: 10850

Find User's Topics
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 )

_________________
Image

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


Top
 Profile  
 
Offline
 Post subject: Re: Python and Gimp
PostPosted: Tue Jul 21, 2009 11:14 am 

Joined:
Tue Jul 21, 2009 1:33 am

Topics:
Posts: 3

Find User's Topics
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!


Top
 Profile E-mail  
 
Offline
 Post subject: Re: Python and Gimp
PostPosted: Tue Jul 21, 2009 11:37 am 
GT Manager

User avatar

Joined:
Mon Jun 13, 2005 11:15 am

Topics:
Posts: 10850

Find User's Topics
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 )

_________________
Image

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


Top
 Profile  
 
Offline
 Post subject: Re: Python and Gimp
PostPosted: Tue Jul 21, 2009 12:03 pm 
GT Manager

User avatar

Joined:
Mon Jun 13, 2005 11:15 am

Topics:
Posts: 10850

Find User's Topics
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 :?:

_________________
Image

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


Top
 Profile  
 
Offline
 Post subject: Re: Python and Gimp
PostPosted: Tue Jul 21, 2009 7:13 pm 

Joined:
Tue Jul 21, 2009 1:33 am

Topics:
Posts: 3

Find User's Topics
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.


:-)


Top
 Profile E-mail  
 
Offline
 Post subject: Re: Python and Gimp
PostPosted: Fri Jul 24, 2009 11:42 am 
GT Manager

User avatar

Joined:
Mon Jun 13, 2005 11:15 am

Topics:
Posts: 10850

Find User's Topics
you miss something ,check this list


Python http://www.python.org/ftp/python/2.6.1/python-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

_________________
Image

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


Top
 Profile  
 
Offline
 Post subject: Re: Python and Gimp
PostPosted: Sun Aug 02, 2009 2:15 pm 

Joined:
Sun Aug 02, 2009 2:06 pm

Topics:
Posts: 1

Find User's Topics
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


Top
 Profile E-mail  
 
Offline
 Post subject: Re: Python and Gimp
PostPosted: Sun Nov 29, 2009 2:12 am 
User avatar

Joined:
Thu Sep 24, 2009 7:59 pm

Topics:
Posts: 37
Location: Oregon USA

Find User's Topics
gasto wrote:
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". :)


Top
 Profile E-mail  
 
Offline
 Post subject: Re: Python and Gimp
PostPosted: Thu Jun 10, 2010 9:55 am 

Joined:
Thu Jun 10, 2010 9:47 am

Topics:
Posts: 1

Find User's Topics
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.


Top
 Profile E-mail  
 
Display posts from previous:  Sort by  

Post new topic Reply to topic
 [ 100 posts ]  Go to page Previous  1, 2, 3, 4



Who is online

Users browsing this forum: No registered users and 3 guests


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