Post Reply 

GIMP 2.8.10/Win. 7 Prof., 64 Bit: Python-Fu menu item not shown

Jun 25, 2014, 17:28
Post: #1
GIMP 2.8.10/Win. 7 Prof., 64 Bit: Python-Fu menu item not shown
I installed GIMP 2.8.10 in an non-standard folder. Python scripting enabled. I'm using already Python 2.6/2.7, installed in a certain folder. The Python-Fu menu item is not shown.

"ofnuts" Cool wrote me to check the corresponding settings in the folders:
Code:
C:\Users\User\.gimp-2.8\interpreters
- empty
MYFOLDER\GIMP 2\lib\gimp\2.0\interpreters
- content:
python=MYFOLDER\GIMP 2\Python\pythonw.exe
/usr/bin/python=MYFOLDER\GIMP 2\Python\pythonw.exe
:Python:E::py::python:

That's correct.

Meanwhile I installed GIMP on different VMs and on a Netbook (Windows 8.1 Update 1). No problems, the Python-Fu menu item is always shown - with/without already installed Python, default folder or my own folder. I uninstalled GIMP and reinstalled it. Compared the content of all the folders. Any additional hints?


Many thanks and greetings
ypmig
Find all posts by this user
Quote this message in a reply
Jun 25, 2014, 20:04
Post: #2
RE: GIMP 2.8.10/Win. 7 Prof., 64 Bit: Python-Fu menu item not shown
What if you remove (or at least rename) MYFOLDER\GIMP 2\Python\, and edit "MYFOLDER\GIMP 2\lib\gimp\2.0\interpreters\python-fu.interp" to point to the pythonw.exe in your system-wide Python install (must be a 2.7, not 2.6)?

Now answering your questions on
https://Gimp-Forum.net
Visit this user's website Find all posts by this user
Quote this message in a reply
Jun 26, 2014, 09:32
Post: #3
RE: GIMP 2.8.10/Win. 7 Prof., 64 Bit: Python-Fu menu item not shown
(Jun 25, 2014 20:04)ofnuts Wrote:  What if you remove (or at least rename) MYFOLDER\GIMP 2\Python\, and edit "MYFOLDER\GIMP 2\lib\gimp\2.0\interpreters\python-fu.interp" to point to the pythonw.exe in your system-wide Python install (must be a 2.7, not 2.6)?

I renamed the folder, disabled my antivirus software, changed the language to English [en_US] and later to Deutsch [de] (not as usual System Language) in different combinations without success.
Find all posts by this user
Quote this message in a reply
Jun 26, 2014, 10:02
Post: #4
RE: GIMP 2.8.10/Win. 7 Prof., 64 Bit: Python-Fu menu item not shown
(Jun 26, 2014 09:32)ypmig Wrote:  
(Jun 25, 2014 20:04)ofnuts Wrote:  What if you remove (or at least rename) MYFOLDER\GIMP 2\Python\, and edit "MYFOLDER\GIMP 2\lib\gimp\2.0\interpreters\python-fu.interp" to point to the pythonw.exe in your system-wide Python install (must be a 2.7, not 2.6)?

I renamed the folder, disabled my antivirus software, changed the language to English [en_US] and later to Deutsch [de] (not as usual System Language) in different combinations without success.

Fine and dandy, but this isn't what I asked?

Now answering your questions on
https://Gimp-Forum.net
Visit this user's website Find all posts by this user
Quote this message in a reply
Jun 26, 2014, 10:15
Post: #5
RE: GIMP 2.8.10/Win. 7 Prof., 64 Bit: Python-Fu menu item not shown
(Jun 26, 2014 09:32)ypmig Wrote:  I renamed the folder, disabled my antivirus software, changed the language to English [en_US] and later to Deutsch [de] (not as usual System Language) in different combinations without success.

With »renamed« I mean that the folder pointed to pythonw.exe in my system-wide Python install as you suggested. Additionally the other mentioned modifications.
Find all posts by this user
Quote this message in a reply
Jun 26, 2014, 10:29 (This post was last modified: Jun 26, 2014 10:35 by ofnuts.)
Post: #6
RE: GIMP 2.8.10/Win. 7 Prof., 64 Bit: Python-Fu menu item not shown
This said, in my WinXP virtual box, I have Gimp 2.8.10 installed, and I just added a system-wide Python 2.7.7 (downloaded from here) and they coexist peacefully. Gimp still runs the Python 2.7.5 it came with and in the command prompts Python is 2.7.7.

Now answering your questions on
https://Gimp-Forum.net
Visit this user's website Find all posts by this user
Quote this message in a reply
Jun 26, 2014, 11:57 (This post was last modified: Jun 26, 2014 12:10 by ofnuts.)
Post: #7
RE: GIMP 2.8.10/Win. 7 Prof., 64 Bit: Python-Fu menu item not shown
Further checking shows that installing a system-wide Python puts a Python27.dll in Windows/System32, so there is indeed some chance of conflict between Gimp-python and system-python. In my case everything is fine because the versions are close enough to be compatible.

I can change the interp file to point to the system interpreter. Things must be almost working because I get a python-fu menu entry and some sample python scripts run their registration OK. However they don't run but to run them they need a window and the system Python hasn't got the pyGTK support.

Now answering your questions on
https://Gimp-Forum.net
Visit this user's website Find all posts by this user
Quote this message in a reply
Jun 26, 2014, 22:10 (This post was last modified: Jun 26, 2014 22:11 by ypmig.)
Post: #8
RE: GIMP 2.8.10/Win. 7 Prof., 64 Bit: Python-Fu menu item not shown
Based on your tests I just uninstalled Python 2.7. I need only 2.6. I checked whether there is still the python27.dll anywhere. Only
C:\Windows\SysWOW64\python26.dll
C:\Windows\SysWOW64\pythoncom26.dll
found (Win. 7, 64 Bit), as expected.
Python-Fu menu still not shown. One more test tomorrow after rebooting.

Ah, just curious. Uninstalled GIMP again, installed it first in its default folder (not successfull) and then in my folder (not successfull).
Find all posts by this user
Quote this message in a reply
Jun 26, 2014, 22:45
Post: #9
RE: GIMP 2.8.10/Win. 7 Prof., 64 Bit: Python-Fu menu item not shown
I don't see how my tests can lead you to uninstall 2.7 and keep 2.6. Gimp 2.8.10 needs Python 2.7. I believe my setup works because the system-wide library is a Python2.7.7, very close to the one that comes with Gimp (2.7.5). There is no good reason to keep Python 2.6 when you can have 2.7 (Python v3 is a different story).

Now answering your questions on
https://Gimp-Forum.net
Visit this user's website Find all posts by this user
Quote this message in a reply
Jun 26, 2014, 22:52
Post: #10
RE: GIMP 2.8.10/Win. 7 Prof., 64 Bit: Python-Fu menu item not shown
(Jun 26, 2014 22:45)ofnuts Wrote:  I don't see how my tests can lead you to uninstall 2.7 and keep 2.6.

Because I NEED Python 2.6 system-wide. Python 2.7 was installed for tests some time ago, but I don't need it. To eliminate any conflicts with my system-wide Python 2.7 installation and GIMP I uninstalled it.
Find all posts by this user
Quote this message in a reply
Jul 3, 2014, 09:14
Post: #11
RE: GIMP 2.8.10/Win. 7 Prof., 64 Bit: Python-Fu menu item not shown
(Jun 27, 2014 07:14)ofnuts Wrote:  Why do you *NEED* 2.6? 2.7 does everything 2.6 does and is completely compatible with it as fas as I can tell.

Meanwhile I have updated to Python 2.7. So only Python 2.7 is installed system-wide. No success. Tried to change the folder settings, too.
Find all posts by this user
Quote this message in a reply
Jul 12, 2014, 18:31
Post: #12
RE: GIMP 2.8.10/Win. 7 Prof., 64 Bit: Python-Fu menu item not shown
Before installing Python 2.7, I
- uninstalled Python
- uninstalled Gimp
- installed Gimp with Python support

No Python-Fu menu item was shown.
Find all posts by this user
Quote this message in a reply
Jul 12, 2014, 22:08
Post: #13
RE: GIMP 2.8.10/Win. 7 Prof., 64 Bit: Python-Fu menu item not shown
(Jul 12, 2014 18:51)ofnuts Wrote:  Do you have the Python folder in the Gimp install, as well as the Python-fu .interp file (see above)?

Yep. And I tried again using the system-wide Python via Python-fu.interp.
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Scaling GIMP for high definition monitors kerry 1 63 Nov 18, 2017 15:01
Last Post: paynekj
  GIMP on High Sierra won't open rickyleaks 1 93 Nov 9, 2017 12:45
Last Post: paynekj
  embedding icm profile in a psd generated by gimp Richar_d 1 145 Oct 13, 2017 12:00
Last Post: paynekj
  Gimp GUI icons missed massimobarbieri 1 274 Aug 23, 2017 17:51
Last Post: ofnuts
  why gimp in mac has bad performance mcheung63 1 282 Aug 20, 2017 10:13
Last Post: ythgilb

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS