Python with Gimp 2.6
This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.
This is a read-only list on gimpusers.com so this discussion thread is read-only, too.
Python with Gimp 2.6 | Carusoswi | 29 Mar 15:54 |
Python with Gimp 2.6 | Joao S. O. Bueno | 29 Mar 19:03 |
Python with Gimp 2.6 | Jernej Simon?i? | 29 Mar 20:57 |
Python with Gimp 2.6 | Carusoswi | 29 Mar 22:50 |
Python with Gimp 2.6 | Jernej Simon?i? | 29 Mar 23:56 |
Python with Gimp 2.6 | Alec Burgess | 30 Mar 05:47 |
- postings
- 102
Python with Gimp 2.6
I have been browsing various websites and am intrigued by some of the Python scripts I see offered. However, to date, I don't seem to be able to get Python or any scripts working on my system. Right now, I'm running Gimp 2.6.6 on Windows XP. I am particularly interested in getting the Publish to Web script working.
In reviewing some of the instructions on installing Publish to Web, I see that Python has to be installed on my system, so, I downloaded it, ran the installer, and Python shows up in my Windows start-->all programs menu, but I don't see a Python directory in my Gimp directory tree, and, of course, py scripts are not being recognized by Gimp.
I am obviously on the wrong track here, and, not being a programmer have lost my way.
Advice would be much appreciated.
Thanks.
Caruso
Python with Gimp 2.6
On Sunday 29 March 2009, Carusoswi wrote:
I have been browsing various websites and am intrigued by some of the Python scripts I see offered. However, to date, I don't seem to be able to get Python or any scripts working on my system. Right now, I'm running Gimp 2.6.6 on Windows XP. I am particularly interested in getting the Publish to Web script working.
In reviewing some of the instructions on installing Publish to Web, I see that Python has to be installed on my system, so, I downloaded it, ran the installer, and Python shows up in my Windows start-->all programs menu, but I don't see a Python directory in my Gimp directory tree, and, of course, py scripts are not being recognized by Gimp.
I am obviously on the wrong track here, and, not being a programmer have lost my way.
Hi,
for little official as it seens to be
http://photocomix-resources.deviantart.com/art/Gimp-Python-support-easier-74889017
is the easiest resource to get gimp + python scritps running on windows.
There is a shrotcoming both in GIMP documentation and on windows propper support for an enviroment where software projects colaborate with one another instead of compete. Sorry for that.
js ->
Advice would be much appreciated.
Thanks.
Caruso
Python with Gimp 2.6
On Sun, 29 Mar 2009 15:54:24 +0200 (CEST), Carusoswi wrote:
I am obviously on the wrong track here, and, not being a programmer have lost my way.
The instructions on how to get Python to work are in the FAQ:
- postings
- 102
Python with Gimp 2.6
The instructions on how to get Python to work are in the FAQ:
First of all, thanks for the replies. I followed the link, read the instructions, downloaded the files, installed them (ran the .exe files), and now, I have a menu item under filters called Python-fu. That, I would say, is progress. When I explore to the python folder, there are a bunch of python files in there. However, I do not see any evidence of Python scripts in my Gimp application. I cannot, for instance, find that publish to web item in any of my menu drop down lists.
I thought I had previously installed that plugin, and I just now unzipped the downloaded file and placed the contents, plubishr and a folder named libpub that contains six more python files and three folders. Pasting that folder doesn't feel right to me, but, there must be a reason the zip file is packaged the way it is (six files, then more files and folders inside the libpub folder.
The instructions, I am sure, are more than adequate for some computer types, but this old geezer, while confident he is headed in the general direction of the goal, is confident only that he continues to zig-zag along the path erroneously.
Additional advice would be most appreciated.
Caruso
Python with Gimp 2.6
On Sun, 29 Mar 2009 22:50:01 +0200 (CEST), Carusoswi wrote:
I thought I had previously installed that plugin, and I just now unzipped the downloaded file and placed the contents, plubishr and a folder named libpub that contains six more python files and three folders. Pasting that folder doesn't feel right to me, but, there must be a reason the zip file is packaged the way it is (six files, then more files and folders inside the libpub folder.
You should unzip the archive either to C:\Program Files\GIMP-2.0\lib\gimp\2.0\plug-ins, or to the folder .gimp-2.6\plug-ins in your user profile folder (on XP and 2000 that is C:\Documents and Settings\, on Vista it's c:\Users\). The "Publish to web" item should then appear in the File menu.
Also, don't forget to reinstall GIMP after installing Python, because the GIMP Python components aren't installed unless Python is present on the system.
Python with Gimp 2.6
Jernej Simon i (jernej.listsonly@ena.si) wrote (in part) (on 2009-03-29 at 17:56):
On Sun, 29 Mar 2009 22:50:01 +0200 (CEST), Carusoswi wrote:
> > I thought I had previously installed that plugin, and I just now unzipped the
> > downloaded file and placed the contents, plubishr and a folder named libpub
> > that contains six more python files and three folders. Pasting that folder
> > doesn't feel right to me, but, there must be a reason the zip file is packaged
> > the way it is (six files, then more files and folders inside the libpub
> > folder.You should unzip the archive either to C:\Program Files\GIMP-2.0\lib\gimp\2.0\plug-ins, or to the folder .gimp-2.6\plug-ins in your user profile folder (on XP and 2000 that is C:\Documents and Settings\, on Vista it's c:\Users\).
The "Publish to web" item should then appear in the File menu.Also, don't forget to reinstall GIMP after installing Python, because the
GIMP Python components aren't installed unless Python is present on the
system.
This is a related GIMP 2.6.6 Python problem ... (using WinXP SP3) I had GIMP 2.6.6 installed and working with Python 2.5. I ran into a problem with a Python script by Chris Mohler posted here a couple of days ago. Count tiles for a mosaic - http://registry.gimp.org/node/15080
the command pdb.gimp_message() eg. pdb.gimp_message(u"foo") shows its output in either the separate GIMP-output window if GIMP started with parameter -c or the internal Error console instead of in the expected dialog box.
At Chris' suggestion I checked version of Python I had. Mine was Python
2.5 and checking http://gimp-win.sourceforge.net/faq.html#py found that
GIMP 2.6 is now available as are new versions of the three sub-packages
PyCairo ,
PyGObject
and
PyGTK . These
three have new versions for Python 2.6 released Jan 12, 2009
So I installed Python 2.6.6, then the three sub-packages. At first Gimp python-console was working as before (though pdb.gimp_message() continued not to display the expected dialog box). Then I noticed / remembered that GIMP has to be reinstalled after installing the Python "stuff" so I did that.
Now I'm getting error message in Error Console as soon as I try to open
python console Filters - Python-Fu - console:
=== GIMP Error
Plug-in crashed: "python-console.py"
(D:\Program
Files\GIMP-2.0\GIMP2.6.4\lib\gimp\2.0\plug-ins\python-console.py)
The dying plug-in may have messed up GIMP's internal state. You may want
to save your images and restart GIMP to be on the safe side.
============
Note I tested with previously installed GIMP 2.6.5 & 2.7.0 - Python-Fu
still works with them (presumably still using Python 2.5) install.
Note: in an attempt to correct this, I reinstalled GIMP 2.6.6 again but unchecked the python support option. It warned that python files would not be removed, requested reboot and after reboot GIMP 2.6.6 still shows Filters - Python-Fu entry. Selecting it gives error in console above. Re-installing GIMP 2.6.6 and turning Python option on again does not request reboot and attempt to run Python-Fu console still gives above error.
I haven't (yet) tried uninstalling Python 2.6
OOOOPS: just before sending I noticed that the error message above is
referring to GIMP2.6.4 not GIMP2.6.6 ?
I've got four installs of GIMP 2.6 in:
D:\Program Files\GIMP-2.0\GIMP-2.7
D:\Program Files\GIMP-2.0\GIMP2.6.3
D:\Program Files\GIMP-2.0\GIMP2.6.4
D:\Program Files\GIMP-2.0\GIMP2.6.5
D:\Program Files\GIMP-2.0\GIMP2.6.6
I checked Help-About in all four, each shows the expected version and
all except GIMP2.6.6 show in the Python-Fu console the correct GIMP
version and Python 2.5.2( except for GIMP 2.6.6 which gives the error
message instead of displaying the Python Console): eg:
====
GIMP 2.6.5 Python Console
Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)]
====
Any suggestions as to how GIMP 2.6.6 is getting to the wrong python-console.py?