[ome-users] Python error

Simon Li s.p.li at dundee.ac.uk
Tue Jul 9 16:01:52 BST 2013


Hi John

This sounds familiar- it was due to a bug in 4.4.6 with Python 2.4:
http://lists.openmicroscopy.org.uk/pipermail/ome-users/2013-March/003593.html

Simon

On 9 Jul 2013, at 15:53, "John Webber (NBI)" <John.Webber at nbi.ac.uk<mailto:John.Webber at nbi.ac.uk>>
 wrote:

All,

Sorry for another email from me  - I do not seem to be getting very far with Omero today!

Due to issues with the LDAP authentication (as per my last email) for OMERO.server version 4.4.8, I thought I would attempt to use a previous version of OMERO.server (4.4.6) that I already have running on another server.  To this end I have therefore downloaded OMERO.server 4.4.6 and have started to switch to this version on my server.

I have stopped both web and admin for version 4.4.8 of OMERO.server, and I have stopped the HTTPD service.

I have downloaded and unpacked version 4.4.6 of OMERO.Server into /opt.  I therefore now have the following:

                /opt/OMERO.server-4.4.6-ice33-b102
And          /opt/OMERO.server-4.4.8-ice33-b256

I believe that I have all of my environment variables set correctly, and the correct software versions, for example:

echo $PATH --> /usr/local/bin:/bin:/usr/bin:/home/omero/bin:/usr/java/default/bin:/usr/java/default/bin:/usr/share/Ice-3.3.1/bin
echo $PYTHONPATH --> /usr/lib/python2.4
echo $LD_LIBRARY_PATH  --> /usr/share/java:/usr/lib/
echo $ICE_HOME --> /usr/share/Ice-3.3.1
echo $DYLD_LIBRARY_PATH --> /usr/share/java:/usr/lib/
java –version  -->     java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b10)
Java HotSpot(TM) 64-Bit Server VM (build 23.3-b01, mixed mode)
python –V -->           Python 2.4.3
echo JAVA_HOME  --> /usr/java/default
echo JRE_HOME  --> /usr/java/default

Now, as the “omero” user, I am attempting to run :   “bin/omero admin diagnostics” for both version of OMERO.server.  For the version of Omero that I started on this server with, (4.4.8), this command runs correctly and I see the diagnostic information for OMERO.server, as per the attached file.

However, when I attempt to run : “bin/omero admin diagnostics” for the older version of OMERO.server (4.4.6), I see the following errors:
[omero at v0324 OMERO.server-4.4.6-ice33-b102]$ bin/omero admin diagnostics
Error loading: /opt/OMERO.server-4.4.6-ice33-b102/lib/python/omero/plugins/admin.py
Traceback (most recent call last):
  File "/opt/OMERO.server-4.4.6-ice33-b102/lib/python/omero/cli.py", line 1138, in loadpath
    execfile( str(pathobj), loc )
  File "/opt/OMERO.server-4.4.6-ice33-b102/lib/python/omero/plugins/admin.py", line 434
     finally:
           ^
SyntaxError: invalid syntax
Error loading: /opt/OMERO.server-4.4.6-ice33-b102/lib/python/omero/plugins/node.py
Traceback (most recent call last):
  File "/opt/OMERO.server-4.4.6-ice33-b102/lib/python/omero/cli.py", line 1138, in loadpath
    execfile( str(pathobj), loc )
  File "/opt/OMERO.server-4.4.6-ice33-b102/lib/python/omero/plugins/node.py", line 17, in ?
    from omero.plugins.admin import AdminControl
  File "/opt/OMERO.server-4.4.6-ice33-b102/lib/python/omero/plugins/admin.py", line 434
     finally:
           ^
SyntaxError: invalid syntax
usage: bin/omero [-h] [-v] [-d DEBUG] [--path PATH] [-C] [-s SERVER] [-p PORT]
                 [-g GROUP] [-u USER] [-w PASSWORD] [-k KEY]
                 <subcommand> ...
bin/omero: error: argument <subcommand>: invalid choice: 'admin'

choose from:
        cecog, chgrp, config, db, delete, download, export, group, help,
        hql, import, ldap, load, login, logout, perf, quit, script, search,
        server, sessions, shell, testengine, upload, user, version, web
[omero at v0324 OMERO.server-4.4.6-ice33-b102]$

Can anyone give me any pointers as to why this is not working?

Thanks
John



--------------------------------------------------------------------------------------------------------------------------------------------
John Webber
Computing and Information Services
NBI Partnership Ltd
Norwich Research park
Colney Lane
Norwich
NR4 7UH

E-Mail:  john.webber at nbi.ac.uk<mailto:john.webber at nbi.ac.uk>
Web:     http://www.nbi.ac.uk<http://www.nbi.ac.uk/>
Tel:        +44(0)1603 450 818

The NBI Partnership Ltd provides non-scientific services to the Institute of Food Research, the John Innes Centre, The Genome Analysis Centre and The Sainsbury Laboratory

<admin.diagnostics.txt>_______________________________________________
ome-users mailing list
ome-users at lists.openmicroscopy.org.uk<mailto:ome-users at lists.openmicroscopy.org.uk>
http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users


The University of Dundee is a registered Scottish Charity, No: SC015096
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openmicroscopy.org.uk/pipermail/ome-users/attachments/20130709/9a5a41c4/attachment.html>


More information about the ome-users mailing list