Are Gateway Event message handler scripts known to not throw errors when imports are wrong / unimported methods are used?

It does suck that we're handcuffed to Jython and all its issues.

1 Like

It is very unfortunate, I agree. Better than nothing, but if only jython had made it to 3.x :pray: :pray: :pray: :pray:

Why? The answer to your problems with jython sockets is to use java sockets (in jython). :man_shrugging:

Whining about the situation once or twice is understandable. Beyond that, it inspires pointed commentary.

That is simply unfair to IA. They advertise support for the python language (syntax) in the form of jython, not any other bindings or libraries. And have reliably pointed this out since I started using their stuff 16 years ago.

I already finished my complaining, I was providing the reference in case it was helpful as I had previously made an unreferenced claim. It doesn't make it any more broken, nor was any of this part of my original issue -- it was all in response to your questioning about auxiliary issues. You literally asked for it.

That is simply unfair to IA. They advertise support for the python language (syntax) in the form of jython , not any other bindings or libraries. And have reliably pointed this out since I started using their stuff 16 years ago.

While I might agree that it is unfair to the IA developers who are so kind as to help with our issues, I can't say I would extend that to IA's marketing team:

Not a single reference to the word "Java" nor "Jython". That is likely not an accident, as it is not exactly going to draw attention in a positive way.

Top of the IA University scripting section. It says "Python" not "Jython".

Java and jython are also noticibly missing from this page. Entirely.

They do not advertise that these are Jython bindings, they advertise Python scripting. While digging into documentation and forums makes it more clear, that is not included in "Advertising".

Fair enough.

Psst! DatagramSocket

I'll bet you can send UDP packets out of your gateway, with that, in 30 minutes if you try.

1 Like

You're probably right, and next time I have to try I will. Already worked my way around it for now

For what it's worth, this is one area where LLMs are usually ~okay.
Either ask for "this Python snippet of code I have, translated to Jython with Java socket imports" or "write a snippet of Jython code, using Java imports". Sometimes you have to suggest specific classes to import, but there's so many examples of basic Java socket code floating around LLMs are fine at translating it.

1 Like

Oh totally -- thats how I got the Java code for the screenshot in the first place. LLMs >= GPT4 are pretty good at reading the documentation for 8.1 and are very helpful!