Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #10346 (closed)

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

Bug: OmeroPy should check ice.compatiblity

Reported by: jamoore Owned by: jamoore
Priority: critical Milestone: OMERO-4.4.7
Component: OmeroPy Version: n.a.
Keywords: n.a. Cc:
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: 0.0d
Sprint: Bugs Fixing

Description

Currently, only bin/omero admin start checks ice_compatibility.

[callan@patience OMERO.py-4.4.4-593-ce1a8a0-ice33-b33]$ bin/omero shell --login
WARNING:omero.util.UpgradeCheck:UPGRADE AVAILABLE:Please upgrade to 4.4.5 See http://trac.openmicroscopy.org.uk/omero for the latest version

Using session d9fd0994-370a-4b3a-a00e-7e8c62d57245 (xxx@localhost:4064). Idle timeout: 10.0 min. Current group: xxx
Python 2.6.6 (r266:84292, Dec  7 2011, 20:48:22) 
Type "copyright", "credits" or "license" for more information.

IPython 0.13.1 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]: client
Out[1]: <omero.clients.BaseClient at 0x359ee10>

In [2]: q = client.getSession().getQueryService()

In [3]: q.get('Experimenter', 1L)
Out[3]: 
object #0 (::Ice::Object)
{
}

3:39
chris/g		[callan@patience OMERO.py-4.4.4-593-ce1a8a0-ice33-b33]$ slice2java -v
3.4.2

Change History (3)

comment:1 Changed 11 years ago by jmoore

  • Owner set to jmoore
  • Sprint set to Bugs Fixing

comment:2 Changed 11 years ago by jmoore

  • Resolution set to fixed
  • Status changed from new to closed
Josh-Moores-MacBook-Pro:dist moore$ bin/omero -w ome login root@localhost
InternalException: Failed to connect: ('Ice version mismatch: %s <> %s', '3.4.2', '3.3.1')
$ PYTHONPATH=lib/python python

In [1]: import omero
In [2]: omero.client()

---------------------------------------------------------------------------
Exception                                 Traceback (most recent call last)
<ipython-input-2-388fc9c31de3> in <module>()
----> 1 omero.client()

/Users/moore/NoBackup/_dev_4_4/dist/lib/python/omero/__init__.pyc in client(*args, **kwargs)
     25 
     26 def client(*args, **kwargs):
---> 27     import omero.clients
     28     return omero.clients.BaseClient(*args, **kwargs)
     29 

/Users/moore/NoBackup/_dev_4_4/dist/lib/python/omero/clients.py in <module>()
     17     if compat[0:2] != vers[0:2]:
     18         raise Exception("Ice version mismatch: %s <> %s",
---> 19                         ".".join(vers), ".".join(compat))
     20 finally:
     21     del compat

Exception: ('Ice version mismatch: %s <> %s', '3.4.2', '3.3.1')

Pushed to https://github.com/openmicroscopy/openmicroscopy/pull/826

comment:3 Changed 11 years ago by jmoore <josh@…>

  • Remaining Time set to 0

(In [693d06261d724c1132d82f124a3d48adce8e0d50/ome.git] on branch develop) Raise Exception() on Ice-mismatch (Fix #10346)

Duplicate the check from omero/plugins/admin.py in
omero/clients.py so that trying to create a client object
fails.

Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.66825 sec.)

We're Hiring!