[ome-devel] using blitz

josh.moore at gmx.de josh.moore at gmx.de
Wed Nov 19 11:35:16 GMT 2008


Bernhard Voigt writes:
 > Hi Josh!

Good morning, Bernhard. Wish you had better news for us. :)
 
 > > Yes. You'll need Ice 3.3.0. What OS are you using?
 > 
 > I'm on Kubuntu 8.04 (hardy) which provides Ice-3.2.1 including the c++
 > lib and language mapping for java and  python. However, python-ice
 > needs to be compiled manually since the package is linked against
 > python2.4 but the system ships with 2.5.

Right, there were several issues with the packaging on the Ubuntu
derivatives prior to 8.10 (intrepid).

http://www.zeroc.com/forums/help-center/3451-problem-installing-icepy-3-2-1-a.html
https://bugs.launchpad.net/ubuntu/+source/zeroc-ice-python/+bug/213508

which basically required installing from source. If it's possible, you
might try upgrading.

 > I'm still facing almost the same problems after switching to
 > Ice-3.3.0. BTW, what do I need to install for omero-blitz? I have
 > ice-cpp, ice-py and ice-java. I only compiled Ice.jar, is this enough
 > from the ice-java suite?

Do you mind telling us how you installed Ice 3.3? Perhaps there are
issues with the installation. If it helps, I only have two packages
installed on Ubuntu 8.10:

dpkg -l | grep zeroc
ii  libzeroc-ice33   -- 3.3.0-5 -- Ice for C++ runtime library
ii  python-zeroc-ice -- 3.3.0-5 -- Ice for Python libraries

You don't need any of the jars since those are present in the
omero/lib/repository directory. For the build, if you have:

$ slice2py -v
3.3.0
$ slice2java -v
3.3.0

then things should completely normally.

 > I can work with OmeroPy withouth the need to change the generated
 > files, but there are still classes missing e.g the
 > omero.util.ParametersI class is not there.

Are you working from trunk or from Beta3.1? If you are working from
Beta3.1 then you will need to use the omero.sys.Parameters (no "I")
object directly. The "util" in the above is a typo that I'll fix in
the documentation. From trunk, you can see ParametersI in action at:

https://trac.openmicroscopy.org.uk/omero/browser/trunk/components/tools/OmeroPy/test/t_parameters.py

 > Compilation does not work, too. Attached is the output from java omero
 > build-blitz, I couldn't figure out what the root cause of the errors
 > is. What do I have to put in the classpath, e.g Ice.jar and the
 > "berkeley-db".jar used during Ice.jar compilation... what about all
 > the jars in the omero/lib/repository folder, I guess the problem I
 > have are missing libraries in the classpath?!

The problem here also looks like a mismatch between the Ice
versions. Since the classpath is automatically handled, my guess is
that slice2java and slice2py still point to 3.2.1 versions. If not,
let me know and we'll do some more tracking.

 > Thanks for help! Bernhard

Definitely. Good luck,
~Josh.

 > On Tue, Nov 18, 2008 at 2:00 PM,  <josh.moore at gmx.de> wrote:
 > > Bernhard Voigt writes:
 > >  > Dear all,
 > >
 > > Hi Bernhard,
 > >
 > >  > I've started working with the ice-python interface of omero blitz.
 > >  > Unfortunately, I came across some problems. Using the binary
 > >  > distribution of Beta3.1.1 does not work right away since there is a
 > >  > problem with the generated python code. There are several method calls
 > >  > in many files of the form:
 > >  > return _M_omero.model.IObject._op_unload.invoke(self, ((), _ctx))
 > >  >
 > >  > The call on the python ice object yields an error that the method
 > >  > needs 3 rather than 2 arguments. Removing the tuple parantheses around
 > >  > ((), _ctx) solves the problem. I had to do this change in many files,
 > >  > tough. Is this a problem with my Python-Ice version, which is 3.2.1?
 > >
 > > Yes. You'll need Ice 3.3.0. What OS are you using?
 > >
 > >  > Another problem I see is that not all classes are present, e.g. I
 > >  > can't follow the examples on
 > >  > http://trac.openmicroscopy.org.uk/omero/wiki/OmeroClients#TreeList
 > >  > since there is no omero.util.ParametersI python class available.
 > >
 > > ParametersI is in trunk. The documentation on the wiki is slowly
 > > moving to match Beta4, and the *most* Beta4 is OmeroClients since it
 > > is being written currently while we port all the clients.
 > >
 > >  > I then tried to compile blitz and ice-python myself to see whether
 > >  > this is just a problem of the binary package. I'm using the sources
 > >  > from  http://cvs.openmicroscopy.org.uk/svn/omero/tags/Beta3.1.1  and
 > >  > ran $java omero setup before compilation.
 > >  >
 > >  > I tried several build targets build-default, build-blitz, build-py but
 > >  > none of them created dist/bin/omero or bin/omero to start the blitz
 > >  > server, neither the python bindings were generated in dist/lib/
 > >
 > > In the Beta3 line, where blitz is not turned on by default, it's
 > > necessary to edit:
 > >
 > >  etc/local.properties
 > >
 > > and add the values:
 > >
 > >  no.ice=false
 > >  ice.home=<The top-level Ice directory with slice subdir>
 > >
 > > These instructions (which haven't been updated to Beta4 yet) are at:
 > >
 > >  http://trac.openmicroscopy.org.uk/omero/wiki/BlitzBuild
 > >
 > >  > Would be great if someone can give me advice how to setup the build
 > >  > and/or help to fix the problems with the binary distribution.
 > >
 > > Once you have the right Ice version and the configuration above:
 > >
 > >  ant
 > >
 > > which calls build-default should suffice to build blitz. At that
 > > point, you might want to take a look at:
 > >
 > >  http://trac.openmicroscopy.org.uk/omero/wiki/OmeroGridInstall
 > >
 > > for getting the server up and running. Let us know what else would
 > > help.
 > >
 > >  > Thanks!  Bernhard
 > >
 > > Best wishes,
 > > ~Josh.
 > >


More information about the ome-devel mailing list