Stack Trace
self = <test.integration.scriptstest.test_rand.TestRand object at 0x7f43604fe5d0>
def testRand(self):
root_client = self.new_client(system=True)
scripts = root_client.sf.getScriptService()
id = scripts.uploadScript(
"/tests/rand_py/%s.py" % self.uuid(), SENDFILE)
input = {"x": rlong(3), "y": rlong(3)}
impl = omero.processor.usermode_processor(root_client)
try:
process = scripts.runScript(id, input, None)
cb = omero.scripts.ProcessCallbackI(root_client, process)
cb.block(2000) # ms
cb.close()
try:
> output = process.getResults(0)
^^^^^^^^^^^^^^^^^^^^^
test/integration/scriptstest/test_rand.py:95:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = ProcessCallback/cc16710e-67f7-4ba9-b8ca-c8bbee4baace -t -e 1.1:tcp -h 172.18.0.6 -p 33799 -t 60000
waitSecs = 0, _ctx = None
def getResults(self, waitSecs, _ctx=None):
> return _M_omero.grid.ScriptProcess._op_getResults.invoke(self, ((waitSecs, ), _ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E omero.ApiUsageException: exception ::omero::ApiUsageException
E {
E serverStackTrace =
E serverExceptionClass =
E message = Process still running.
E }
../../../../.venv3/lib64/python3.11/site-packages/omero_Scripts_ice.py:1321: ApiUsageException