[ome-users] OMERO failing to build - java.lang.ClassNotFoundException: org.apache.tools.ant.util.regexp.Jdk14RegexpMatcher

Bernhard Holländer bernhard.voigt at gmail.com
Tue Jul 28 11:49:38 BST 2009


Hi Renato!

AFAIK you don't have to build the python interface yourself. It comes
included in the release archive. The python packages and modules live
in /your_path_to_omero/lib/python. Put that path and the
path_to_Ice-3.3/python into the PYTHONPATH environment variable. This
should be enough to start coding against omero in python.

For example on linux (omero unpacked to /opt/omero-4.0.3 and Ice-3.3
installed in /opt/Ice-3.3) one could call python like this and import
the omero package:

$ PYTHONPATH=/opt/omero-4.0.3/lib/python:/opt/Ice-3.3/python python
>>> import  omero
...

See https://trac.openmicroscopy.org.uk/omero/wiki/OmeroPy for an
example how to get started.

Cheers! Bernhard

On Mon, Jul 27, 2009 at 7:01 PM, Renato Alves<rjalves at igc.gulbenkian.pt> wrote:
> Hello everyone,
>
> I'm currently trying to build the python interface. In order to do this
> I fetched the code from svn (both trunk and tag omero-4.0.3) and did:
>
> ant build-py
>
> After a couple of minutes of building, eventually it fails with the error:
>
> icegen2:
>
> BUILD FAILED
> /home/rjalves/omero-python/omero-4.0.3/build.xml:171: The following
> error occurred while executing this line:
> /home/rjalves/omero-python/omero-4.0.3/build.xml:137: The following
> error occurred while executing this line:
> /home/rjalves/omero-python/omero-4.0.3/components/antlib/resources/global.xml:79:
> The following error occurred while executing this line:
> /home/rjalves/omero-python/omero-4.0.3/components/blitz/build.xml:140:
> The following error occurred while executing this line:
> /home/rjalves/omero-python/omero-4.0.3/components/blitz/build.xml:58:
> Could not create type regexpmapper due to No supported regular
> expression matcher found: java.lang.ClassNotFoundException:
> org.apache.tools.ant.util.regexp.Jdk14RegexpMatcher
>
> The versions of the software I'm using are the following:
>
> Apache Ant version 1.7.0 compiled on April 29 2008
> Ice - 3.3.1 (tried with and without the slice2 extras)
> Java - Java(TM) SE Runtime Environment (build 1.6.0_14-b08) / Java
> HotSpot(TM) 64-Bit Server VM (build 14.0-b16, mixed mode)
>
> this on a Debian 64-bit machine running 'testing' (aka squeeze).
>
> I also get a few other deprecation warnings and log4j giving a non fatal
> error about being improperly setup.
>
> Am I missing something or maybe version mismatch?
>
> Thanks for all help,
> Renato
>
> _______________________________________________
> ome-users mailing list
> ome-users at lists.openmicroscopy.org.uk
> http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users
>



More information about the ome-users mailing list