Problems with arrowdesigner on MacOS
Closed this issue · 5 comments
I am running GIMP 2.99.16-2 (downloaded from the GIMP site) on a Mac Studio, with MacOs Sonoma 14.3.1. I downloaded your script; mkdir'ed a new directory in GIMP/2.99/plug-ins/ named arrowdesigner; copied the arrowdesigner.py file there; chmod a+x the file; and started GIMP. Actually, "Arrow Designer" shows itself in Files > Render.
I loaded a JPG file, and tried to run arrowdesigner both with and without a rectangular selection; nothing happens.
Then I opened the python console, and tried to run arrowdesigner interactively; I got the following output:
GIMP 2.99.16 Python Console
Python 3.10.12 (main, Jun 14 2023, 16:51:03) [Clang 14.0.3 (clang-1403.0.22.14.1)]
>>> Gimp.get_pdb().run_procedure('python-fu-arrow-designer', [ Gimp.RunMode.INTERACTIVE, image, num_drawables, drawables, angle, size, direction])
Traceback (most recent call last):
File "<input>", line 1, in <module>
NameError: name 'image' is not defined
>>>
Any suggestion?
It doesn't look like it's even getting into arrowdesigner.py at all: that run_procedure call isn't in that file, so it must be in how GIMP is calling python plug-ins. Do any other python plug-ins work?
It's possible 2.99.16 is before GIMP changed the plug-in API to what it is now; I'm trying to get more info on when that version came out, to see whether it was before or after Dec 30 when I last updated Arrow Designer. It's working for me using current git master. I think 2.99.18 is supposed to come out pretty soon, so if so, the problem might cure itself then (but I'll keep this issue open until we figure it out).
Apparently 2.99.16 dates back to July, so I bet your GIMP still has the old API, and the new arrowdesigner will work when you get 2.99.18.
Meanwhile, it might work to use the arrowdesigner.py from before that API update:
https://github.com/akkana/gimp-plugins/blob/a42f8a083bbe2f8ea7824acf0f1ca54fa3fb8356/gimp3/arrowdesigner.py
This old version works, indeed. Many thanks for your help; and I hope that a 2.99.18 MacOS GIMP can be released soon.
Sorry, forgot about this bug. But arrowdesigner should be up to date now with the latest GIMP3 API.