Switch to full style
Ask all general Gimp related questions here
Post a reply

How can you get python to function on the PortableApps version of Gimp

Sat Dec 10, 2011 11:05 am

GIMP Version: 2.6.11
Operating System: Windows
OS Version: Vista Ultimate 64-bit
GIMP Experience: Basic Level



Hello!

I had previously asked this question in another thread. I'm having problems getting this to function (at all). Below is the original question and replies.

http://gimpchat.com/viewtopic....#p41379

Rod had instructed me to do the following:



I did it once before. :)
Just add/copy the entire python 26 folder from (C:\python26 )
into the App/gimp folder. rename it to just python
Now you need the python folder from the lib/gimp/2.0 folder in the installed Gimp-2.6.11
Copy that to the \App\gimp\lib\gimp\2.0 folder in your portable version.
copy the pygimp.interp and pygimp.env files from the installed gimp-2.6.11 ...
Copy those two files to their respective folders.

&

If i remember correctly you will also have to start Gimp portable from the execute file in the bin folder. :)
Otherwise it doesn't see the Python26 folder in the portable directory.
Try them both though i could be mistaken.Like i said it's been a while. :P


I stand corrected - you need to edit the pygimp.interp to the exact path you have for python execute
And you need to launch from the portable icon (not the bin exe)

my pygimp.interp looks like this for instance
Code:
python=F:\Gimp_Portable-2.6.11\GIMPPortable\App\gimp\python\pythonw.exe
/usr/bin/python=F:\Gimp_Portable-2.6.11\GIMPPortable\App\gimp\python\pythonw.exe
:Python:E::py::python:


And I've done that:

Note: My flash drive on my PC is my 'G' drive.

Copied the python26 as python to G:\PortableApps\GIMPPortable\App\gimp\python
Image

Next I copied the python folder from the lib folder that was in the PC install of Gimp
(C:\Program Files (x86)\GIMP-2.0\lib\gimp\2.0\python)
Image

I then copied the interpreters & environ folders from the lib folder that was in the PC install of Gimp
(C:\Program Files (x86)\GIMP-2.0\lib\gimp\2.0)
Image

I then edited the pygimp.interp file to reflect my PortableApps python files as such:
Code:
python=G:\PortableApps\GIMPPortable\App\gimp\python\pythonw.exe
/usr/bin/python=G:\PortableApps\GIMPPortable\App\gimp\python\pythonw.exe
:Python:E::py::python:


I then copied files that had .py and .pyc from (C:\Program Files (x86)\GIMP-2.0\lib\gimp\2.0\plug-ins) to my PortableApps install plug-in folder (G:\PortableApps\GIMPPortable\App\gimp\lib\gimp\2.0\plug-ins) **NOTE: this is NOT the folder that holds 'user' or additional scripts/plugins

I then fire up Gimp from G:\PortableApps\GIMPPortable\App\gimp\bin\Gimp-2.6.exe. I've pasted in the console-messages in verbose mode. There are no errors. But python does not load as there is no Python-Fu in the filters menu.
INIT: gimp_load_config
Parsing 'C:\Users\Dave\.gimp-2.6\unitrc'
Parsing 'G:\PortableApps\GIMPPortable\App\gimp\etc\gimp\2.0\gimprc'
Parsing 'C:\Users\Dave\.gimp-2.6\gimprc'
gimp_composite: use=yes, verbose=no
Processor instruction sets: +mmx +sse +sse2 -3dnow -altivec -vis
Adding theme 'Default' (C:\Program Files (x86)\GIMP-2.0\share\gimp\2.0\themes\De
fault)
Adding theme 'Small' (C:\Program Files (x86)\GIMP-2.0\share\gimp\2.0\themes\Smal
l)
Writing 'C:\Users\Dave\.gimp-2.6\themerc'
Trying splash 'C:\Users\Dave\.gimp-2.6\gimp-splash.png' ... failed
Trying splash 'C:\Users\Dave\.gimp-2.6\splashes\Splash_GPS V2_001.png' ... OK
INIT: gimp_initialize
INIT: gimp_real_initialize
INIT: gui_initialize_after_callback
INIT: gimp_restore
Parsing 'C:\Users\Dave\.gimp-2.6\parasiterc'
Loading 'brush factory' data
Loading 'pattern factory' data
Loading 'palette factory' data
Loading 'gradient factory' data
Loading fonts
Parsing 'C:\Users\Dave\.gimp-2.6\templaterc'
Parsing 'C:\Users\Dave\.gimp-2.6\modulerc'
INIT: gui_restore_callback
clipboard: writable pixbuf format: image/png
clipboard: writable pixbuf format: image/bmp
clipboard: writable pixbuf format: image/x-bmp
clipboard: writable pixbuf format: image/x-MS-bmp
clipboard: writable pixbuf format: image/tiff
clipboard: writable pixbuf format: image/gif
clipboard: writable pixbuf format: image/jpeg
Parsing 'C:\Users\Dave\.gimp-2.6\sessionrc'
Parsing 'C:\Users\Dave\.gimp-2.6\dockrc'
Parsing 'C:\Users\Dave\.gimp-2.6\toolrc'
Parsing 'C:\Users\Dave\.gimp-2.6\contextrc'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-rect-select-tool'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-rect-select-tool.presets'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-ellipse-select-tool'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-ellipse-select-tool.presets'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-free-select-tool'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-free-select-tool.presets'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-fuzzy-select-tool'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-fuzzy-select-tool.presets'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-by-color-select-tool'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-by-color-select-tool.presets'

Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-iscissors-tool'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-iscissors-tool.presets'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-foreground-select-tool'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-foreground-select-tool.preset
s'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-vector-tool'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-vector-tool.presets'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-color-picker-tool'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-color-picker-tool.presets'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-zoom-tool'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-zoom-tool.presets'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-measure-tool'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-measure-tool.presets'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-align-tool'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-align-tool.presets'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-crop-tool'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-crop-tool.presets'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-move-tool'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-move-tool.presets'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-rotate-tool'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-rotate-tool.presets'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-scale-tool'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-scale-tool.presets'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-shear-tool'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-shear-tool.presets'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-perspective-tool'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-perspective-tool.presets'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-flip-tool'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-flip-tool.presets'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-text-tool'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-text-tool.presets'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-bucket-fill-tool'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-bucket-fill-tool.presets'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-blend-tool'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-blend-tool.presets'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-pencil-tool'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-pencil-tool.presets'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-paintbrush-tool'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-paintbrush-tool.presets'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-smudge-tool'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-smudge-tool.presets'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-airbrush-tool'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-airbrush-tool.presets'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-eraser-tool'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-eraser-tool.presets'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-ink-tool'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-ink-tool.presets'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-clone-tool'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-clone-tool.presets'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-heal-tool'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-heal-tool.presets'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-perspective-clone-tool'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-perspective-clone-tool.preset
s'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-convolve-tool'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-convolve-tool.presets'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-dodge-burn-tool'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-dodge-burn-tool.presets'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-desaturate-tool'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-desaturate-tool.presets'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-color-balance-tool'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-color-balance-tool.presets'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-hue-saturation-tool'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-hue-saturation-tool.presets'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-colorize-tool'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-colorize-tool.presets'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-brightness-contrast-tool'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-brightness-contrast-tool.pres
ets'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-threshold-tool'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-threshold-tool.presets'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-levels-tool'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-levels-tool.presets'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-curves-tool'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-curves-tool.presets'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-posterize-tool'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-posterize-tool.presets'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-gegl-tool'
Parsing 'C:\Users\Dave\.gimp-2.6\tool-options\gimp-gegl-tool.presets'
INIT: gimp_real_restore
Parsing 'C:\Users\Dave\.gimp-2.6\pluginrc'
Starting extension: 'extension-script-fu'
INIT: gui_restore_after_callback
Parsing 'C:\Users\Dave\.gimp-2.6\menurc'
Parsing 'C:\Users\Dave\.gimp-2.6\devicerc'
Parsing 'C:\Users\Dave\.gimp-2.6\controllerrc'
Parsing 'C:\Users\Dave\.gimp-2.6\colorrc'
loading menu 'G:\PortableApps\GIMPPortable\App\gimp\share\gimp\2.0\menus\image-m
enu.xml' for /image-menubar
EXIT: gimp_exit
EXIT: gui_exit_callback
Writing 'C:\Users\Dave\.gimp-2.6\sessionrc'
Writing 'C:\Users\Dave\.gimp-2.6\dockrc'
Writing 'C:\Users\Dave\.gimp-2.6\colorrc'
Writing 'C:\Users\Dave\.gimp-2.6\menurc'
Writing 'C:\Users\Dave\.gimp-2.6\controllerrc'
Writing 'C:\Users\Dave\.gimp-2.6\toolrc'
EXIT: gimp_real_exit
Writing 'C:\Users\Dave\.gimp-2.6\templaterc'
Writing 'C:\Users\Dave\.gimp-2.6\parasiterc'
Writing 'C:\Users\Dave\.gimp-2.6\unitrc'
EXIT: gui_exit_after_callback
EXIT: app_exit_after_callback

(Type any character to close this window)


So, is there something I'm missing or have to do yet???

Re: How can you get python to function on the PortableApps version of

Sat Dec 10, 2011 2:53 pm

For the portable was not planned the python support (maybe because there is not a portable python ?)
I know that Rod successes in add to its portable gimp but when i tried with a later version of the portable it didn't work

I didn't try much because i use mainly 2,7 so i stop at the first..not maybe at the second attempt

Re: How can you get python to function on the PortableApps version of

Sat Dec 10, 2011 3:15 pm

You are missing one crucial thing the python26.dll needs to be in the App/gimp/python folder :)
Do a search for it and add it to that folder.Search the windows/system32 folder.Copy it from there (don't move it)

Image

Re: How can you get python to function on the PortableApps version of

Sat Dec 10, 2011 7:33 pm

PhotoComix wrote:For the portable was not planned the python support (maybe because there is not a portable python ?)
I know that Rod successes in add to its portable gimp but when i tried with a later version of the portable it didn't work

I didn't try much because i use mainly 2,7 so i stop at the first..not maybe at the second attempt


True! I have the 2.7 version as well. But once 2.7-2.8 goes into production I'm sure that PortableApps will have a new app in place.

I would be nice if there were and 'official' portable version of Gimp complete with python support.

Rod wrote:You are missing one crucial thing the python26.dll needs to be in the App/gimp/python folder :)
Do a search for it and add it to that folder.Search the windows/system32 folder.Copy it from there (don't move it)

Image


Rod, my python26.dll was in C:\Windows\SysWOW64. I have Vista 64-bit OS. I still copied this file to that location and started gimp from the 'bin' directory. No python-fu in the filters menu. :(

Re: How can you get python to function on the PortableApps version of

Sat Dec 10, 2011 10:03 pm

You have to start Gimp from the portable icon not the bin icon. :)
I thought i fixed that statement in the other post. Yes i did fix it.

http://gimpchat.com/viewtopic.php?f=8&t ... =40#p41384

Re: How can you get python to function on the PortableApps version of

Sat Dec 10, 2011 11:21 pm

Sorry my dyslexic AADD must have kicked in right at that moment!

And I tried that and still no python! bah!

Re: How can you get python to function on the PortableApps version of

Sun Dec 11, 2011 2:44 am

It should work the way i showed you. It works fine on my 32 bit Windows XP setup.
You do not need a path because Python is now built into the portable.
Could be either because you have 64 bit, or because it is Windows Vista. I really do not think that should matter though. Have you tried transporting it to another machine?

Re: How can you get python to function on the PortableApps version of

Sun Dec 11, 2011 9:28 am

Another machine will have to wait till Monday eve. Both PC's here are 64-bit one Vista the other Win7.

Although the python install is all 32-bit as well as the portable Gimp install. I'll go and back track or even one better I'll just wipe out that portable install and get a fresh one since all my user folders are in a different folder on the thumb drive.

BTW: Do you know what 'rc' file holds the information for were your 'folder' preferences are? I can copy that some place and that will save me a few minutes from clicking around! :)

Re: How can you get python to function on the PortableApps version of

Sun Dec 11, 2011 7:17 pm

More options.
Portable Python
http://portablepython.com/

Re: How can you get python to function on the PortableApps version of

Mon Dec 12, 2011 4:00 am

MrBiggz wrote:Another machine will have to wait till Monday eve. Both PC's here are 64-bit one Vista the other Win7.

Although the python install is all 32-bit as well as the portable Gimp install. I'll go and back track or even one better I'll just wipe out that portable install and get a fresh one since all my user folders are in a different folder on the thumb drive.

BTW: Do you know what 'rc' file holds the information for were your 'folder' preferences are? I can copy that some place and that will save me a few minutes from clicking around! :)


Save all the rc files into another folder along with the tool options folder.

Re: How can you get python to function on the PortableApps version of

Mon Dec 12, 2011 7:13 pm

Wunderbar! It's alive! The problem I had be for was that I most likely screwed up the path in the interpreter file. Alls good now!

Thanks Rod!
Post a reply