It is currently Sat Jul 06, 2024 6:38 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 41 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
 Post subject: Re: Error: ( : 1) atom->string: needs 1 argument(s)
PostPosted: Mon May 14, 2018 8:25 pm  (#21) 
Offline
GimpChat Member
User avatar

Joined: Nov 04, 2015
Posts: 1365
Quote:
It would be helpful if others could try the same test, stating which GIMP version and operating system.

Script-fu console.
> (atom->string 5 2)
Error: ( : 1) atom->string: needs 1 argument(s)

Gimp version 2.10.0+om-1ubu18.04.1~ppa from Otto Meier <otto@kesselgulasch.org>
Ubuntu 18.04 LTS (Bionic Beaver)


Top
 Post subject: Re: Error: ( : 1) atom->string: needs 1 argument(s)
PostPosted: Tue May 15, 2018 3:35 am  (#22) 
Offline
GimpChat Member
User avatar

Joined: Apr 15, 2017
Posts: 1826
> (atom->string 5)
>"5"

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


Gimp 2.10.1 AppImage.


Top
 Post subject: Re: Error: ( : 1) atom->string: needs 1 argument(s)
PostPosted: Tue May 15, 2018 3:59 am  (#23) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
I'm currently thinking that those of you where this is failing for two parameters to atom->string have a build of GIMP that hasn't been done cleanly as the tinyscheme code appears to have been changed during 2.10 development.

To judge from the code on main,
in the file root/plug-ins/script-fu/tinyscheme/opdefines.h atom->string is defined as accepting a minimum of 1 parameters and a maximum of 2

And the code for atom->string in root/plug-ins/script-fu/tinyscheme/scheme.c is allowing for 2 parameters.

So I think that the failing builds haven't updated their tinyscheme sufficiently recently.


Top
 Post subject: Re: Error: ( : 1) atom->string: needs 1 argument(s)
PostPosted: Tue May 15, 2018 12:25 pm  (#24) 
Offline
GimpChat Member
User avatar

Joined: Sep 27, 2016
Posts: 345
Location: Germany, BW
> (number->string 5) //works in GIMP 2.8 though
Error: ( : 1) atom->string: needs 1 argument(s)

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

> (number->string 5 . 10)
Error: ( : 1) atom->string: needs 1 argument(s)

Gimp 2.10 flatpak on Linux Mint 18.3

These are my results.
Tried to find examples in the provided scripts ... but they have the same problem. i.e they look as not being transferred to GIMP 2.10

Well with the information you gave me I'll have to wait for an update of GIMP I guess.
Thanks a lot for helping me so far. I appreciate that.

_________________
Regards
nelo

(Gimp 2.10 on Linux Mint MATE 20.1)


Top
 Post subject: Re: Error: ( : 1) atom->string: needs 1 argument(s)
PostPosted: Tue May 15, 2018 1:23 pm  (#25) 
Offline
GimpChat Member
User avatar

Joined: Sep 27, 2016
Posts: 345
Location: Germany, BW
Just tested gimp-2.10.0-RC1-20180327 AppImage
worked as expected!
> (number->string 5)
"5"
> (number->string 5 10)
"5"
> (number->string 5 16)
"5"
> (number->string 5 2)
"101"

_________________
Regards
nelo

(Gimp 2.10 on Linux Mint MATE 20.1)


Top
 Post subject: Re: Error: ( : 1) atom->string: needs 1 argument(s)
PostPosted: Tue May 15, 2018 2:28 pm  (#26) 
Offline
GimpChat Member
User avatar

Joined: Sep 27, 2016
Posts: 345
Location: Germany, BW
Shouldn't we have a problem with old scripts at all?

Read this from one of the GIMP devs:

Quote:
Everything that doesn't work under 2.10 that worked under 2.8 would be a bug in GIMP, unless the plug-ins are somehow wrongly built, or are doing something that was actually forbidden even before (2.10 does some stricter error checking).

found here: http://www.gimpusers.com/forums/gimp-de ... ssage90016

_________________
Regards
nelo

(Gimp 2.10 on Linux Mint MATE 20.1)


Top
 Post subject: Re: Error: ( : 1) atom->string: needs 1 argument(s)
PostPosted: Wed May 16, 2018 3:48 am  (#27) 
Offline
GimpChat Member
User avatar

Joined: Apr 15, 2017
Posts: 1826
paynekj wrote:
I'm currently thinking that those of you where this is failing for two parameters to atom->string have a build of GIMP that hasn't been done cleanly as the tinyscheme code appears to have been changed during 2.10 development.

To judge from the code on main,
in the file root/plug-ins/script-fu/tinyscheme/opdefines.h atom->string is defined as accepting a minimum of 1 parameters and a maximum of 2

And the code for atom->string in root/plug-ins/script-fu/tinyscheme/scheme.c is allowing for 2 parameters.

So I think that the failing builds haven't updated their tinyscheme sufficiently recently.


Gimp 2.8
> (atom->string 5)
>"5"

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


I guess that throws that theory out the window.


Top
 Post subject: Re: Error: ( : 1) atom->string: needs 1 argument(s)
PostPosted: Wed May 16, 2018 5:11 am  (#28) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
racer-x wrote:
Gimp 2.8
> (atom->string 5)
>"5"

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


I guess that throws that theory out the window.


You demonstrated that there was a problem in GIMP 2.8 but my argument is that nelo's Flatpak has only got half the fix and other builds have got the full fix.


Top
 Post subject: Re: Error: ( : 1) atom->string: needs 1 argument(s)
PostPosted: Wed May 16, 2018 5:37 am  (#29) 
Offline
GimpChat Member
User avatar

Joined: Nov 04, 2015
Posts: 1365
Quote:
nelo's Flatpak has only got half the fix and other builds have got the full fix.


Could it be possible that GIMP-2.10-RC1 has the fix but Gimp-2.10 final has a broken TinyScheme?


Top
 Post subject: Re: Error: ( : 1) atom->string: needs 1 argument(s)
PostPosted: Wed May 16, 2018 7:44 am  (#30) 
Offline
GimpChat Member
User avatar

Joined: Sep 27, 2016
Posts: 345
Location: Germany, BW
looks like it .. at least to me as a non-developer

_________________
Regards
nelo

(Gimp 2.10 on Linux Mint MATE 20.1)


Top
 Post subject: Re: Error: ( : 1) atom->string: needs 1 argument(s)
PostPosted: Thu May 17, 2018 7:10 pm  (#31) 
Offline
GimpChat Member
User avatar

Joined: Apr 15, 2017
Posts: 1826
I'll go one further. Gimp 2.10-RC1 is more forgiving with poorly coded scripts. They tightened it up with the final release, so it won't run un-compliant scripts.

That's my un-qualified opinion anyway.


Top
 Post subject: Re: Error: ( : 1) atom->string: needs 1 argument(s)
PostPosted: Fri May 18, 2018 5:13 am  (#32) 
Offline
GimpChat Member
User avatar

Joined: Nov 04, 2015
Posts: 1365
Quote:
They tightened it up with the final release, so it won't run un-compliant scripts.

I just checked gimp/plug-ins/script-fu/tinyscheme/ on github. It looks like there has been no drastic work done on TinyScheme.
https://github.com/GNOME/gimp/tree/mast ... tinyscheme
Somebody just ran a spell-checker over a lot of Gimp files and fixed typos in comments.
That should have no effect.


Top
 Post subject: Re: Error: ( : 1) atom->string: needs 1 argument(s)
PostPosted: Sat May 19, 2018 7:11 am  (#33) 
Offline
GimpChat Member
User avatar

Joined: Nov 04, 2015
Posts: 1365
I was able to fix my scrip-fu console.

Image


What I did was delete the script-fu file in username/.config/GIMP/2.10/plug-ins/
It is <helpfully> carried-on by the Gimp 2.10 install and conflicts with the script-fu installed by Gimp 2.10 in /usr/lib/gimp/2.0/plug-ins/script-fu.
Just re-naming it wasn't enough. I had to delete it. :bigthup


Top
 Post subject: Re: Error: ( : 1) atom->string: needs 1 argument(s)
PostPosted: Sat May 19, 2018 7:50 am  (#34) 
Offline
GimpChat Member
User avatar

Joined: Sep 27, 2016
Posts: 345
Location: Germany, BW
Indeed ... that worked for me, too ! :jumpclap
Thanks for finding that.
Now we need a replacement for script-fu scrolling interface, don't we?

_________________
Regards
nelo

(Gimp 2.10 on Linux Mint MATE 20.1)


Top
 Post subject: Re: Error: ( : 1) atom->string: needs 1 argument(s)
PostPosted: Sat May 19, 2018 3:13 pm  (#35) 
Offline
GimpChat Member
User avatar

Joined: Apr 15, 2017
Posts: 1826
Awesome find Tas_mania! Works great here too....

As for scrolling, I just hold down the Ctrl key while moving the window up with the mouse.


Top
 Post subject: Re: Error: ( : 1) atom->string: needs 1 argument(s)
PostPosted: Sun May 20, 2018 2:54 am  (#36) 
Offline
GimpChat Member
User avatar

Joined: Sep 27, 2016
Posts: 345
Location: Germany, BW
racer-x wrote:

As for scrolling, I just hold down the Ctrl key while moving the window up with the mouse.


What a trick! So easy.
Works on Linux Mint using Ctrl+Alt
Thanks a lot for posting :bigthup

_________________
Regards
nelo

(Gimp 2.10 on Linux Mint MATE 20.1)


Top
 Post subject: Re: Error: ( : 1) atom->string: needs 1 argument(s)
PostPosted: Sun May 20, 2018 6:52 am  (#37) 
Offline
GimpChat Member
User avatar

Joined: Apr 15, 2017
Posts: 1826
Actually, I was wrong about the key. I just need to hold down the Alt key and move the settings window with the mouse on my Linux Mint 18.3 and Gimp 2.10.1 AppImage.


Top
 Post subject: Re: Error: ( : 1) atom->string: needs 1 argument(s)
PostPosted: Sun May 20, 2018 8:14 pm  (#38) 
Offline
GimpChat Member
User avatar

Joined: Nov 04, 2015
Posts: 1365
The script I was testing worked perfectly after deleting the old script-fu.

I logged it as a bug here:
https://bugzilla.gnome.org/show_bug.cgi?id=796263
That was an experience. Gimp bugzilla uses ancient software :(

I'm sure Gimp 2.10 imports plugins and scripts from old Gimp versions into the .config folder.
We'll see what happens........


Top
 Post subject: Re: Error: ( : 1) atom->string: needs 1 argument(s)
PostPosted: Mon May 21, 2018 3:21 am  (#39) 
Offline
GimpChat Member
User avatar

Joined: Sep 27, 2016
Posts: 345
Location: Germany, BW
Quote:
Michael Natterer 2018-05-20 13:10:37 UTC

Why would you have an older script-fu, or any other plug-in shipped
with GIMP in ~/.config/GIMP/2.10/plug-ins/ ?


In principle he's right. It doesn't come with GIMP natively. But we use it, because we need scrolling script-fu windows sometimes. And I wonder why the devs don't integrate scrolling when it's easily done by a simple plugin. I think there was even a feature request years ago ( can't find it at the moment).

_________________
Regards
nelo

(Gimp 2.10 on Linux Mint MATE 20.1)


Top
 Post subject: Re: Error: ( : 1) atom->string: needs 1 argument(s)
PostPosted: Mon May 21, 2018 4:47 am  (#40) 
Offline
GimpChat Member
User avatar

Joined: Nov 04, 2015
Posts: 1365
"It doesn't come with GIMP natively".
Now I remember we needed it to scroll windows. No wonder you are using the keyboard again.

Maybe 3 of us had Gimp 2.9, then we installed Gimp 2.10 and the new Gimp picked-up our plugins from the 2.9 folder (which was also in /.config)

Either that or we copy and pasted our scripts and plugins into Gimp 2.10 from previous Gimps.
That means we caused the problem :( and my bug report was a waste of time.

Either way we found out what makes "Error: ( : 1) atom->string: needs 1 argument(s)" and it's here for others.


Top
Post new topic Reply to topic  [ 41 posts ]  Go to page Previous  1, 2, 3  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Columbine String Art.

6

No new posts Attachment(s) String Art Plug-in

26

No new posts Attachment(s) String Trussed Dalia

5

No new posts Attachment(s) Free – Selection Tool – Stopping the String

4

No new posts Attachment(s) GEGL calls GMIC, REMBG, AIs or any bash string with our bash plugin

87



* Login  



Powered by phpBB3 © phpBB Group