Page 1 of 1

connecting to a remote server in OMERO.web

PostPosted: Mon Aug 15, 2011 9:17 pm
by bhcho
hi again,

I'm trying to connect to another remote server from my OMERO.web function.

in my own function in views.py,
I was trying to connect to another remote server like
Code: Select all
def getSearchContentDBfromRemoteServer( request, **kwargs):
   ...
   client = omero.client(server,port)


and I got the following error

exception ::Ice::EndpointParseException
{
str = ssl -p 4064 -h <"omero.host" not set>
}

Request Method: POST
Request URL: http://omepslid.compbio.cs.cmu.edu/sear ... oteServer/
Exception Type: EndpointParseException
Exception Value:

exception ::Ice::EndpointParseException
{
str = ssl -p 4064 -h <"omero.host" not set>
}

Exception Location: /usr/lib64/python2.5/site-packages/Ice/Ice.py in initialize, line 340


Could any one tell me a correct way to do this?
What I eventually want to do is ....to connect to a remote server and get a session in order to download some attached files from there.

bk

Re: connecting to a remote server in OMERO.web

PostPosted: Tue Aug 16, 2011 6:14 am
by jmoore
Hi BK,

how are server and port being set? The error you are seeing is expected if server == None.

Cheers,
~Josh

Re: connecting to a remote server in OMERO.web

PostPosted: Tue Aug 16, 2011 11:11 am
by bhcho
Oops!

That's my bad bad~. there was a typo. and it works.
Thanks Josh.