Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with arrowdesigner on MacOS #17

Open
MaurizioLoreti opened this issue Feb 15, 2024 · 3 comments
Open

Problems with arrowdesigner on MacOS #17

MaurizioLoreti opened this issue Feb 15, 2024 · 3 comments

Comments

@MaurizioLoreti
Copy link

MaurizioLoreti commented Feb 15, 2024

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?

@akkana
Copy link
Owner

akkana commented Feb 15, 2024

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).

@akkana
Copy link
Owner

akkana commented Feb 15, 2024

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

@MaurizioLoreti
Copy link
Author

MaurizioLoreti commented Feb 16, 2024

This old version works, indeed. Many thanks for your help; and I hope that a 2.99.18 MacOS GIMP can be released soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants