[ome-users] Python error

John Webber (NBI) John.Webber at nbi.ac.uk
Tue Jul 9 15:53:29 BST 2013


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
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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openmicroscopy.org.uk/pipermail/ome-users/attachments/20130709/548e5cb8/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: admin.diagnostics.txt
URL: <http://lists.openmicroscopy.org.uk/pipermail/ome-users/attachments/20130709/548e5cb8/attachment.txt>


More information about the ome-users mailing list