I spent awhile trying to get GIMP to register an example of the classic "hello world" plugin that I wrote to begin learning. Finally, I got it to register after double checking the file location and the path for plugins in GIMP's preferences as well as changing user permissions for executing the .py in terminal using chmod.
Got it to work! The "hello" appears under the File drop down menu, as I had written in the code. The problem is it doesn't display the console box with my much awaited message!
If I go to the python-fu console in GIMP I can find my plugin in the PDB and when I click apply and run it from the console, I get an execution error,
Traceback (most recent call last):
File "<input>", line 1, in <module>
RuntimeError: execution error
I was hoping I had the code correct and that my big issue was just the registration, but now my hopes are crushed! Is there anything wrong with my code:
#!/usr/bin/env python
from gimpfu import *
def hello_world(image, drawable):
pdb.gimp_message("Hello World")
register("python-fu-hello-world", "hello", "helloooo", "X. D.", "X. D.", "2018", "Hello", "", [], [], hello_world, menu="<Image>/File")
main()
(Macbook OS 10.11, python 2.7, GIMP 2.8)