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 9 years ago

Last modified 9 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)


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("",)

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/", line 24, in client_wrapper
    return omero.gateway.BlitzGateway(*args, **kwargs)
  File "/Users/will/Desktop/OMERO/dist/lib/python/omero/gateway/", line 1156, in __init__
  File "/Users/will/Desktop/OMERO/dist/lib/python/omero/gateway/", line 1449, in _resetOmeroClient
    self.c = omero.client(pmap=['--Ice.Config='+','.join(self.ice_config)])
  File "/Users/will/Desktop/OMERO/dist/lib/python/omero/", line 28, in client
    return omero.clients.BaseClient(*args, **kwargs)
  File "/Users/will/Desktop/OMERO/dist/lib/python/omero/", line 122, in __init__
  File "/Users/will/Desktop/OMERO/dist/lib/python/omero/", line 224, in _initData
    self.__ic = Ice.initialize(id)
  File "/opt/Ice-3.3.1/python/", line 340, in initialize
    communicator = IcePy.Communicator(args, data)
Ice.EndpointParseException: exception ::Ice::EndpointParseException
    str = ssl  -p 4064 -h <"" 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.204464 sec.)

We're Hiring!