Post Reply 

Loading PythonFu Plugin: ImportError for .../python/ (GIMP 2.8.22/OSX/Py2.7.9)

Jul 11, 2017, 07:07 (This post was last modified: Jul 11, 2017 07:09 by joroek.)
Post: #1
Loading PythonFu Plugin: ImportError for .../python/ (GIMP 2.8.22/OSX/Py2.7.9)
Hi Fellow Gimpers,

Im using GIMP 2.8.22 bundled for OSX with Python 2.7.9 installed alongside Python 3.5.2 since before. I start my plugins by pointing to the 2.7.9 version of python. OSX version is Sierra (10.12.5 (16F73)).

The manifested problem I'm having is that pythonfu plugins does not show up in the menu I selected in the register function. I think I've narrowed the problem down but got stuck and can't find a resource for how to solve it. (Or, possibly, I don't understand that it is the answer I am looking for... Undecided)

After some debugging and going through a few youtube videos on building python plugins for Gimp I copied an example made by Kota Weaver in a youtube tutorial ( but even before adding the actual logic, when he got his plug-in to show up in the selected menu, mine did not (around 3:00 into the tutorial).
I made sure there was no syntax-errors in the code by running the script from the command line. It resulted in the gimpfu import error since that package isn't loaded when run from outside gimp, but I've learned that syntax checking occurs before this step.
To get better error output I ran gimp from the command line (/Applications/ --verbose --console-messages) and got this error output when Gimp is loading:

Querying plug-in: '/Users/[REDACTED]/Library/Application Support/GIMP/2.8/plug-ins/'

Traceback (most recent call last):
File "/Users/[REDACTED]/Library/Application Support/GIMP/2.8/plug-ins/", line 3, in <module> from gimpfu import * File "/Applications/", line 76, in <module> import gimp

ImportError: dlopen(/Applications/, 2):
Library not loaded: @executable_path/../Resources/lib/libgimp-2.0.0.dylib
Referenced from: /Applications/ Reason: image not found

(GIMP-bin:44558): LibGimpBase-WARNING **: GIMP-bin: gimp_wire_read(): error Terminating plug-in: '/Users/[REDACTED]/Library/Application Support/GIMP/2.8/plug-ins/'

The thing that I wonder about here, and where I am stuck is the ImportError. Why is this, and how can I correct it? The files it cannot load are all in the right place.

Does anyone have any advice?

Kind regards, John
Find all posts by this user
Quote this message in a reply
Jul 11, 2017, 07:26
Post: #2
RE: Loading PythonFu Plugin: ImportError for .../python/ (GIMP 2.8.22/OSX/Py2.7.9)
This forum has been dead for a long time. Nobody left here to answer questions.
Most folk moved to
Please ask there to get questions answered
Find all posts by this user
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Does gimp have optical filter imitations? godek 1 127 Dec 11, 2017 11:40
Last Post: paynekj
  Any plugin for open multiple image in shinprog 1 368 Oct 31, 2017 11:38
Last Post: paynekj
  plugin save for web in Gimp 2.9.6 Dkk 1 231 Oct 19, 2017 09:02
Last Post: paynekj
  Script-fu: How to create new, addressable layer using gimp-floating-sel-to-layer Bertholom√§us 1 278 Aug 31, 2017 14:32
Last Post: Bertholomäus
  Late binding / COM for opening an image into GIMP? i73 2 227 Aug 4, 2017 17:39
Last Post: i73

Forum Jump:

GIMP ForumPortalArchiveContactTermsRSS