It is currently Wed Apr 24, 2024 6:09 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: How can you get python to function on the PortableApps version of Gimp
PostPosted: Sat Dec 10, 2011 11:05 am  (#1) 
Offline
GimpChat Member
User avatar

Joined: Jul 04, 2011
Posts: 395
Location: Indianapolis, IN
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:



Quote:
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
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:
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.
Quote:
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???

_________________
"That which does not kill us makes us stronger." ~ Friedrich Nietzsche


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: How can you get python to function on the PortableApps version of
PostPosted: Sat Dec 10, 2011 2:53 pm  (#2) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
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

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: How can you get python to function on the PortableApps version of
PostPosted: Sat Dec 10, 2011 3:15 pm  (#3) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
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

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: How can you get python to function on the PortableApps version of
PostPosted: Sat Dec 10, 2011 7:33 pm  (#4) 
Offline
GimpChat Member
User avatar

Joined: Jul 04, 2011
Posts: 395
Location: Indianapolis, IN
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. :(

_________________
"That which does not kill us makes us stronger." ~ Friedrich Nietzsche


Top
 Post subject: Re: How can you get python to function on the PortableApps version of
PostPosted: Sat Dec 10, 2011 10:03 pm  (#5) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
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

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: How can you get python to function on the PortableApps version of
PostPosted: Sat Dec 10, 2011 11:21 pm  (#6) 
Offline
GimpChat Member
User avatar

Joined: Jul 04, 2011
Posts: 395
Location: Indianapolis, IN
Sorry my dyslexic AADD must have kicked in right at that moment!

And I tried that and still no python! bah!

_________________
"That which does not kill us makes us stronger." ~ Friedrich Nietzsche


Top
 Post subject: Re: How can you get python to function on the PortableApps version of
PostPosted: Sun Dec 11, 2011 2:44 am  (#7) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
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?

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: How can you get python to function on the PortableApps version of
PostPosted: Sun Dec 11, 2011 9:28 am  (#8) 
Offline
GimpChat Member
User avatar

Joined: Jul 04, 2011
Posts: 395
Location: Indianapolis, IN
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! :)

_________________
"That which does not kill us makes us stronger." ~ Friedrich Nietzsche


Top
 Post subject: Re: How can you get python to function on the PortableApps version of
PostPosted: Sun Dec 11, 2011 7:17 pm  (#9) 
Offline
Global Moderator
User avatar

Joined: Nov 16, 2011
Posts: 5128
Location: Metro Vancouver, BC
More options.
Portable Python
http://portablepython.com/

_________________
Image
Gimp 2.8.18, Linux, median user
Gimp Chat Tutorials Index
Spirit Bear (Kermode)


Top
 Post subject: Re: How can you get python to function on the PortableApps version of
PostPosted: Mon Dec 12, 2011 4:00 am  (#10) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
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.

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: How can you get python to function on the PortableApps version of
PostPosted: Mon Dec 12, 2011 7:13 pm  (#11) 
Offline
GimpChat Member
User avatar

Joined: Jul 04, 2011
Posts: 395
Location: Indianapolis, IN
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!

_________________
"That which does not kill us makes us stronger." ~ Friedrich Nietzsche


Top
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Plug-in crashes after OS upgrade: python version mismatch? maybe?

4

No new posts Attachment(s) Normal Map scripting function

6

No new posts Warp Transform tool PDB function? (Solved)

2

No new posts Convert GIMP plugin from Python 2 to Python 3

4

No new posts Install new version without uninstalling old version?

3



* Login  



Powered by phpBB3 © phpBB Group