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
  Script Fu Errors Gimp 2.10.4 lightsaber jd3481 1 378 Aug 2, 2018 05:13
Last Post: paynekj
  GIMP Resynthesizer Plugin not working Mikkel Andersen 1 531 Jun 26, 2018 16:36
Last Post: paynekj
  Tablet issues with GIMP 2.10 Phoenisca 1 646 May 30, 2018 14:30
Last Post: paynekj
  addonCollectionManager-3.0 on Gimp 2.10.2 (Solved) Pocholo 0 398 May 26, 2018 02:26
Last Post: Pocholo
  Gimp 2.10 with old vignette from Plugin registry. DenisT 2 385 May 19, 2018 20:42
Last Post: DenisT

Forum Jump:

GIMP ForumPortalArchiveContactTermsRSS