It is currently Mon Oct 23, 2017 6:28 am


Latest GIMP Scripts & Plug-ins

All times are UTC - 5 hours [ DST ]



Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: How to correctly install Python for Windows in Gimp-2.6.11
PostPosted: Tue Jul 26, 2011 11:11 am  (#1) 
Offline
GimpChat Member

Joined: May 16, 2010
Posts: 13982
Location: USA
First let me introduce you to Python-Fu for Gimp.

Python-Fu is yet another way to add additional plug-ins and filters to your Gimp installation.
There are many, many fantastic Python scripts that Gimp can use.Most of these Python filters or modules can be found at http://registry.gimp.org/ , home of most of the user submitted Gimp filters and scripts.

With that let's get started installing Python for Gimp-2.6.11 in Windows.
The first thing you will need to do is un-install your Gimp installation if you have already installed it.
You can either do this via the Control Panel/Add Remove Programs OR via the Gimp-2.0/settings/ uninstall script.Either will work.

If you have installed Gimp-2.6.11 you will have a gimp-2.6 folder in your Documents and Settings/user/ folder.
Keep that intact there is no need to remove it.

Now you have Gimp-2.6.11 un-installed you need to download and install Python-2.6.4
You MUST use Python-2.6.4 no other version will work!
You will also need 3 other Python modules that Gimp needs to run scripts correctly.These are
PyGTK
PyCairo
PyObject
The entire package of Python and the 3 extra modules can be found here.
http://download945.mediafire.com/51qzkl ... tricks.zip

This folder contains Python-2.6.4 , and the other 3 modules you need.
Begin by downloading and unzipping the file to a folder on your desktop.
Inside you will see a setup for Python-2.6.4 - before you open it make sure no other programs are running.
Run the Python-2.6.4 installer INSTALL into the C directory, and when it is finished restart your computer.
After you restart you should find a new folder in C directory named Python26.
Browse to the folder on your desktop where you unzipped the other 3 modules.
First run the PyGTK installer (The installer will find Python26 for you), just except all the defaults as it installs,and when it is finished restart your computer.
Next - Run the installer for PyCairo - Same thing, restart your machine.
Finally run the installer for PyObject - Restart again.

Restarting is important because every time you restart Windows will initiate the new modules path variable.So make sure you have restarted after EACH install!I can not emphasize that enough.This is the problem with most installs.

Okay you are done with the hard part now you need to re-install Gimp-2.6.11.
This time however when it starts to install you will see a new button named "customize" if you do not see that button you have installed Python incorrectly and must do it again.
Click the customize button once - click next and a new area of the installer will open with an option to enable Python in Gimp.Place a tick in the square next to it or select it.
Select next and then select install....Gimp will install with a new Python setup.
Start Gimp and go to Filters/Python-fu/Console and click the console button.If all went well you will have a console for Python editing pop up.
If there is no Filters/Python-fu/Console entry or no Filters/Render/Clouds/Fog entry you have not installed Python correctly and must do it again.

It is important that you just let all 4 installers install into their default directories.
This places Python26 and all 3 other modules where Gimp can find them easily.
Trouble shooting -
I was able to customize and add python to Gimp but none of my filters (fog or console) show in the menus!

You probably need to add the PATH variable.To do this go to Start/Control Panel/System/ click the advanced tab.
Now you will see an area called system variables.In the window you should be able to scroll to an entry named Path.Click the path line in the window - now click edit - another dialog will open in the VALUE area you will see a long line of variables add this at the very end INCLUDING the semicolon at the beginning.
;C:\Python26\bin;C:\Python26\lib;C:\Python26\tcl;C:\Python26\Libs

Select ok, then ok, then ok again
Now restart your machine.
The variable value should be recognizable by Windows and Gimp now.Restart Gimp and look for the menu entries, and test to make sure they work.I usually run the Filters/Render/Clouds/Fog filter.

If this does not fix the problem check to see if the files
YourProgramDirectory\GIMP-2.0\lib\gimp\2.0\interpreters\pygimp,interp AND
YourProgramDirectory\GIMP-2.0\lib\gimp\2.0\environ\pygimp.env are in those two directories!
DO NOT MOVE OR EDIT THESE TWO FILES! - unless you know what you are doing.

So now if you do have those entries in the Gimp menu (console, and fog), and you can run them it is now time to add some new features to Gimp.Let's start with LayerFX.py.You can download it here.
http://registry.gimp.org/files/layerfx.py -- if you have to download it as a page be sure and save it with a py extension.NOT TXT!
Download the LayerFX.py file and place it in your Documents And Settings/User/gimp-2.6/plug-ins folder and restart Gimp.You will find the new filter in Layer/Layer Effects. OR it may be in a new menu entry named Layers at the top of the image window.

If you need any further help just post on the Gimp Help area of the forum and someone will help you pretty quickly.


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Cannot Install Python Plugin On OSX

2

No new posts Python Install Question

10

No new posts how to install brushed into gimp using windows 8

2

No new posts Install beautify in Windows 7 with gimp 2.8

1

No new posts Attachment(s) How to install photivo as GIMP plugin in windows 7 ?

5



* Login  



Powered by phpBB3 © phpBB Group