
maxperique
Forum Replies Created
-
maxperique
MemberMarch 1, 2025 at 10:36 am in reply to: Browser or Proxy error when trying Python WorkerUPDATE: solved!
For anyone facing the same issue, the problem was that I was not passing any vListOrRow to $callmethod.
Passing an empty Row defined as
Do locRow.$define('')
and calling the module as
Do ivPythonWorker.$callmethod("omnis_test","test",locRow,,locErrorText) Returns #F
solved the issue, where ivPythonWorker is an object reference of subtype objPythonWorker defined as
Calculate ivPythonWorker as $objects.objPythonWorker.$newref()
and objPythonWorker is an object with OW3 PYTHONWorker superclass and overridden methods to send the response back to the calling item (a remote form, in my case).
-
This reply was modified 5 months ago by
maxperique. Reason: wrong formatting
-
This reply was modified 5 months ago by
-
maxperique
MemberFebruary 28, 2025 at 10:30 pm in reply to: Browser or Proxy error when trying Python WorkerHi.
I’ve got the same error 10811.
I’m on macOS 15.3.1, Apple M1, and I’m using Omnis Studio Community Edition version 11.1
There is no Python sample under Hub in the Community Edition, so I can’t compare my code with a working example.
I created an object with the OW3 Python Worker superclass, overriding $methodreturn and $methoderror methods to send the response row back to the calling instance, a remote form, where an object reference to the objPythonWorker has been set.
Python 3.11 is correctly installed in a conda environment, and all the required packages are installed, too.
I tried to call the basic omnis_test module and I can see the __pycache__ inside pyworker folder (so, at least something is actually working).
Is it an issue/limitation of the Community Edition?
Thank you.