get_liking from type social_link

19 views
Skip to first unread message

Dario Dubberstein

unread,
Oct 14, 2025, 2:17:23 AMOct 14
to GAMA
Hello everyone, 

I recently switched from Gama 1.9.3 to 2025-06 and now getting a no operator found error when using get_liking on a social_link type veriable. I have not seen any changes in the Changelog in regards to the social link. If someone has some advice that would be appreciated, currently a bit lost on how to approach the issue.

I am looping over a list containing social links and then trying to access the value of "liking" for the current social link ("tempDestination") via the get_liking operator. Until the update that worked fine but now gives me the following error:
No operator found for applying 'get_liking' to type social_linkcode snipped.PNG

Benoit Gaudou

unread,
Nov 4, 2025, 10:56:45 AM (6 days ago) Nov 4
to gama-p...@googlegroups.com
Dear,
I had a look at the GAMA code, and indeed there is not more get_liking operator ... 
I admit I do not know why.

I am not really familiar with that part of the code, but it seems that "liking" is a attribute of a SocialLink object.
So if you can get an object of that type  (e.g. tempDestination in your code) you can simply get the liking by calling the value of its liking attribute (tempDestination.liking, instead of get_liking(tempDestination) ).
Cheers
Benoit

--
You received this message because you are subscribed to the Google Groups "GAMA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gama-platfor...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/gama-platform/554e7401-9c15-4ec1-aef8-d4fd481979f9n%40googlegroups.com.

Dario Dubberstein

unread,
Nov 7, 2025, 1:35:14 AM (4 days ago) Nov 7
to GAMA
Hello Benoit,

thank you so much, that worked perfectly. Was orienting myself on some of the provided examples and documentation for the SocialLink but since this works I keep it this way. I also could have sworn I tried that but maybe I messed up somewhere. 
Now just have to figure out other problems the new patch introduced but that's unrelated to this one. 

Cheers for the help.
Dario

Reply all
Reply to author
Forward
0 new messages