[ome-devel] Python bindings when creating new service

Josh Moore josh at glencoesoftware.com
Fri May 11 13:03:09 BST 2012


On May 11, 2012, at 1:23 PM, Donald MacDonald wrote:

> Hi,
> 
> I have created a new service in OMERO. I originally had the service as a pure blitz service, 
> but I have had to push it down into the lower EJB services as I need the PixelService to have 
> access to it.
> 
> I can access the service from Java, but when I try and call the service from Python I get the 
> following error:
> 
>>>> import omero.clients
>>>> a = omero.client('localhost')
>>>> b = a.createSession('root','ome')
>>>> c = b.createHPCService()
> Traceback (most recent call last):
>  File "<stdin>", line 1, in <module>
>  File "/home/donald/openmicroscopy/dist/lib/python/omero_API_ice.py", line 283, in createHPCService
>    return _M_omero.api.ServiceFactory._op_createHPCService.invoke(self, ((), _ctx))
> RuntimeError: class ::omero::api::IHPCServicePrx is declared but not defined
>>>> 
> 
> 
> Any ideas as to what I have missed?

Hi Donald,

might you need to import the slice generated file?

  import IceImport
  IceImport.load("module_HPCService_ice") # Or whatever name

> Regards
> D.

Cheers,
~J.


More information about the ome-devel mailing list