Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #4376 (new)

Opened 13 years ago

Last modified 13 years ago

Scripting service to use blitz gateway — at Initial Version

Reported by: wmoore Owned by: wmoore
Priority: major Milestone: OMERO-Beta4.3
Component: OmeroPy Version: n.a.
Keywords: n.a. Cc: cneves
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: 1.0d
Sprint: 2011-02-24 (6)

Description

If we can use the blitz gateway in the scripting service, then all Python API users can start in the same place - docs, API learning etc and this functionality is available to Script writers.

Need to be able to create a blitz wrapper from the 'client' object provided by the scripting service.

client = script.client("Script.py",)

First attempt:

>>> import omero
>>> c = omero.client("localhost")
>>> s = c.createSession("root", "omero")

>>> import omero.gateway
>>> from omero import client_wrapper
>>> conn = client_wrapper(client_obj=c)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/will/Desktop/OMERO/dist/lib/python/omero/__init__.py", line 24, in client_wrapper
    return omero.gateway.BlitzGateway(*args, **kwargs)
  File "/Users/will/Desktop/OMERO/dist/lib/python/omero/gateway/__init__.py", line 1156, in __init__
    self._resetOmeroClient()
  File "/Users/will/Desktop/OMERO/dist/lib/python/omero/gateway/__init__.py", line 1449, in _resetOmeroClient
    self.c = omero.client(pmap=['--Ice.Config='+','.join(self.ice_config)])
  File "/Users/will/Desktop/OMERO/dist/lib/python/omero/__init__.py", line 28, in client
    return omero.clients.BaseClient(*args, **kwargs)
  File "/Users/will/Desktop/OMERO/dist/lib/python/omero/clients.py", line 122, in __init__
    self._initData(id)
  File "/Users/will/Desktop/OMERO/dist/lib/python/omero/clients.py", line 224, in _initData
    self.__ic = Ice.initialize(id)
  File "/opt/Ice-3.3.1/python/Ice.py", line 340, in initialize
    communicator = IcePy.Communicator(args, data)
Ice.EndpointParseException: exception ::Ice::EndpointParseException
{
    str = ssl  -p 4064 -h <"omero.host" not set>
}

Change History (0)

Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.70160 sec.)

We're Hiring!