Python and Gimp
#22
Posted 22 November 2007 - 09:55 PM
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
#23
Posted 22 November 2007 - 10:58 PM
#24
Posted 25 November 2007 - 02:24 PM
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
#25
Posted 17 January 2008 - 10:46 PM
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
#28
Posted 31 January 2008 - 03:31 PM
#29
Posted 16 March 2008 - 04:46 AM
#30
Posted 16 March 2008 - 05:23 PM
Here's one link that might be helpful, maybe not.
http://www.gimp.org/...thon/index.html
#31
Posted 16 March 2008 - 06:54 PM
Quote
well the usefulness should be that if you have gimp and you know Phyton you may write your script in a language you know instead that learn a new one
then even if less complex then C it may be more powerful then script fu ,and anyway is more widely know and used...hem...Not sure if "more powerful "is a right term
But as example with script fu you CAN NOT add a preview display in the GUI of your script while that with Python is possible
Possible even ,if i well understand not without effort and fiddling with maybe not too documented Py-GTK thingies
Anyway scripting is not in my field of knowledge, if you want better info i will suggest to ask also on the gimp-developers mailing list where you may expect more competent answers
#32
Posted 17 March 2008 - 01:45 PM
Traceback (most recent call last):
File "C:\Program Files\GIMP-2.0\lib\gimp\2.0\python\gimpfu.py", line 662, in response
dialog.res = run_script(params)
File "C:\Program Files\GIMP-2.0\lib\gimp\2.0\python\gimpfu.py", line 347, in run_script
return apply(function, params)
File "C:\Program Files\GIMP-2.0\lib\gimp\2.0\plug-ins\Edit-Brushes-Tanda-v2.1.py", line 179, in actual
pdb.gimp_context_set_brush(nombre_pincel)
RuntimeError: execution errorYep runtime error (i got the latest python (2.5.2) and pyobject pycairo and other. I have no clue why this isn't working.

You also have an image filled with the color black. (It makes me think of Amy Winehouse, but I digress)<--ccbarr :DAdd me on xfire: stradivuckos
#33
Posted 16 April 2008 - 08:10 AM
Basic procedure:
Install Python 2.5.2
Restart (not sure if this is needed)
Install Gimp 2.4.5 (python support greyed out)
Install pycairo 1.4.12-1 (run as administrator)
Install pygobject 2.14.1-1 (run as administrator)
install pygtk 2.12.1-2 (run as administrator)
Restart (not sure if this is needed)
ReInstall Gimp (python support enabled)
Now for the problems / tweaks
- import gtk from python console fails, python cannot find libglib, I think this is a path problem, gtk is installed in gimp folder and python can't find it, just ignore this problem because when gimp is started libglib IS in the path
- When GIMP is started it gives an error on pyconsole.py with a message that g_assertion_message is not defined in libglib. To fix this you need the last version of this dll, I used 2.16.2 at http://ftp.acc.umu.s...in32/glib/2.16/. Place all the files in the bin folder of the zip in the gimp bin folder (replace the old files).
I tested the install with this useful script http://fforw.megamet.../code/SaveLayer
#34
Posted 05 May 2008 - 03:08 AM
An error message occurs.
The procedure entry point g_timeout_add_seconds_full could not be located in the dynamic link library libglib-2.0-0.dll.
Pls help me.
#35
Posted 05 May 2008 - 10:35 PM
Using my favorite search engine, I entered the search terms:
Quote
Just as it read from your error. I was lead to this link:
http://www.asahi-net...pantograph.html
While it addresses Python and Blender, it addresses the specific error towards the bottom of that page along with a recommended solution. I don't use Windows, so I cannot be of any further help with this. Just mentioning this in case it can help you.
:h:
#36
Posted 06 May 2008 - 05:47 AM
But on the other hand, the troubleshooting said that maybe other programs are using it so I may have to remove other paths.
These are the paths on the System Variabl>Paths
%GTK_BASEPATH%\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\ATI Technologies\ATI Control Panel;C:\Program Files\GIMP-2.0\bin
Help plz.
#37
Posted 06 May 2008 - 10:31 AM
Just above your first message there is one that report a similar problem and possible solution
Anyway i believe the path problem happen if you instead that install the GTK you try to use that bundled with gimp,even if that is the advice on http://www.asahi-net.or.jp/~rd6t-kjym/t ... graph.html
i'm not sure is the best solution
your second path seems connected with the graphic card at least with the program that control it, i would no touch it, the third is to gimp, about the first i have no idea, howver adding a path should not create problem to other sw that already have a path for the gtk
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
anyway should be some other problem with Gimp-python on windows:
after a upgrade to gimp 2.4.5 (i suppose may be that the reason but i can't be sure may be some new sw that i installed ) python do no work anymore for me and even reistalling everything didn't solve, i have the python console but no any python script show up in the menu.
#38
Posted 06 May 2008 - 11:18 AM
#39
Posted 06 May 2008 - 11:39 AM
Quote
well a radical way to solve the problem.
i wish i could offer a better one but as i said my own install do not work anymore so i don't feel to give advice
#40
Posted 09 May 2008 - 10:24 PM
Any help really apreciated, thanks.
By the way, installing this python extension was a pain, for me using Windows XP SP2, it took python 2.5.2 and gimp 2.4.5.
Cheers.

Help
















