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 #4237 (new)

Opened 10 years ago

Last modified 9 years ago

Create client_wrapper from client — at Version 3

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

Description (last modified by wmoore)

The use of the __init__(...client_obj...) parameter is unclear and seems to be ignored. If a client object is passed in, I would assume that resetClientObject does not get called or similar, but either way it should be documented

Change History (3)

comment:2 Changed 10 years ago by jburel

  • Sprint changed from 2011-02-10 (5) to 2011-02-24 (6)

Moved from sprint 2011-02-10 (5)

comment:3 Changed 10 years ago by wmoore

  • Description modified (diff)
  • Summary changed from Clarify use of client_obj arg to client_wrapper to Create client_wrapper from client

Tried creating a blitz client from client. See #4376

>>> 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>
}

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.199759 sec.)

We're Hiring!