Gimp-Forum.net
RMA_label_points.scm Error - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: Extending the GIMP (https://www.gimp-forum.net/Forum-Extending-the-GIMP)
+---- Forum: Scripting questions (https://www.gimp-forum.net/Forum-Scripting-questions)
+---- Thread: RMA_label_points.scm Error (/Thread-RMA-label-points-scm-Error)

Pages: 1 2


RMA_label_points.scm Error - Krikor - 08-29-2020

Hi,

What change can I make to make the script functional again?

Script: RMA_label_points.scm
Gimp: Samj's portable 2.10.21 / win10

Messages:
--------------------------------------------------------------------------------------------------------------------------
    Label Path Points Warning
Error while executing RMA_label_points:

Error: (: 1) eval: unbound variable: NORMAL-MODE


   GIMP Warning
'Label Path Points' plug-in left image undo in inconsistent state, closing open undo groups.
--------------------------------------------------------------------------------------------------------------------------

Thank you very much in advance!


RE: RMA_label_points.scm Error - Ofnuts - 08-29-2020

Put a 0 instead. But that works on regular Gimp, it is likely that SamJ doesn't compile Gimp with the backwards compatibility flags (which is OK for a development version, but not for a "general audience" version).


RE: RMA_label_points.scm Error - rich2005 - 08-29-2020

I was using this just the other day with no problems (Gimp 2.10.20)

However the attached run through tin-trans script/plugin updater (also in the zip, try it next time you get similar error) to change those old modes.

New version working here, problem might be that samj Gimp version, I do not have one to try.


RE: RMA_label_points.scm Error - Krikor - 08-29-2020

(08-29-2020, 05:08 PM)Ofnuts Wrote: Put a 0 instead. But that works on regular Gimp, it is likely that SamJ doesn't compile Gimp with the backwards compatibility flags (which is OK for a development version, but not for a "general audience" version).
Huh  where to put a '0'?

(08-29-2020, 05:09 PM)rich2005 Wrote: I was using this just the other day with no problems (Gimp 2.10.20)

However the attached run through tin-trans script/plugin updater (also in the zip, try it next time you get similar error) to change those old modes.

New version working here, problem might be that samj Gimp version, I do not have one to try.

I used the attached script but it generated another message:

   Label Path Points Warning
Error while executing RMA_label_points:

Error: (: 1) atom-> string: needs 1 argument (s)


   GIMP Warning
'Label Path Points' plug-in left image undo in inconsistent state, closing open undo groups.


Should I use gimp10_constantize.py again?

Thx!


RE: RMA_label_points.scm Error - rich2005 - 08-29-2020

No, that will not fix it.


RE: RMA_label_points.scm Error - rich2005 - 08-30-2020

@Krikor

Try the attached, deprecated procedures replaced, no legacy modes.

Checked in a Gimp with switch --pdb-compat-mode=off 
The problem with the samj portable is it uses launchers to set variables and start Gimp. No way of adding --pdb-compat-mode=on to the launcher. I should add that the regular Gimp 2.10.20 from gimp.org has better backward compatibility than previous version.

However proof Wink Win10 (VM) samj2.10.21  https://i.imgur.com/K4yLvuv.jpg


RE: RMA_label_points.scm Error - Krikor - 08-30-2020

Hi @rich2005,

I don't know anything about pdb ... On or pdb ... Off. I'm just a very lay user.

I don't understand, I installed the version of the previous attachment and I was confident that this time it would work, but somehow it didn't work, it still generates windows with errors.
[attachment=4825]
At least I can still use the Label arrows from path and Label numbers from actives paths points plug-ins

Thank you very much for your effort with the script!

(08-30-2020, 06:42 PM)Krikor Wrote: Hi @rich2005,

I don't know anything about pdb ... On or pdb ... Off. I'm just a very lay user.

I don't understand, I installed the version of the previous attachment and I was confident that this time it would work, but somehow it didn't work, it still generates windows with errors.

At least I can still use the Label arrows from path and Label numbers from actives paths points plug-ins
[attachment=4826]
Thank you very much for your effort with the script!



RE: RMA_label_points.scm Error - nelo - 08-30-2020

Quote: Error: (: 1) atom-> string: needs 1 argument (s)

You don't by any chance have this scrollable script-fu thingy installed?
That's the kind of error it produces


RE: RMA_label_points.scm Error - rich2005 - 08-30-2020

OK strange that worked in the samj gimp I used however, that NORMAL-MODE should have been LAYER-MODE-NORMAL I have replaced the zip in the previous post, can you please check it.


RE: RMA_label_points.scm Error - Krikor - 08-30-2020

(08-30-2020, 07:16 PM)nelo Wrote:
Quote: Error: (: 1) atom-> string: needs 1 argument (s)

You don't by any chance have this scrollable script-fu thingy installed?
That's the kind of error it produces

Which script more precisely? I could check it.

(08-30-2020, 07:17 PM)rich2005 Wrote: OK strange that worked in the samj gimp I used however, that NORMAL-MODE should have been LAYER-MODE-NORMAL  I have replaced the zip in the previous post, can you please check it.

Rich2005,
Okay, I checked the new attachment. The error message again changed to:

==============================================
  Label Path Points Warning
Error while executing RMA_label_points:

Error: ( : 1) atom->string: needs 1 argument(s) 


  GIMP Warning
Plug-in 'Label Path Points' left image undo in inconsistent state, closing open undo groups.
==============================================


I don't understand why it worked on your Samj 2.10.21 and it gives me an error.