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 #12541 (new)

Opened 10 years ago

Last modified 9 years ago

ICE_CONFIG environment variable is ignored by omero shell

Reported by: spli Owned by:
Priority: minor Milestone: Unscheduled
Component: OmeroPy Version: 5.1.0-m0
Keywords: n.a. Cc: python-team@…
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: n.a.
Sprint: n.a.


Using bin/omero shell

In [10]: with open(os.getenv('ICE_CONFIG')) as f: print f.read()

In [11]: client=omero.client()
ClientError                               Traceback (most recent call last)
ClientError: No host specified. Use omero.client(HOSTNAME), ICE_CONFIG, or similar.

If python or ipython are used (with PYTHONPATH pointing to OMERO.server/lib/python) this works.

Change History (1)

comment:1 Changed 9 years ago by jamoore

The fact that ICE_CONFIG is ignored is known and (was at least previously) intentional. The reason was (I think) that some of the properties were causing subsequent errors for some plugins like admin.py. If we can pin that down, perhaps we can skip del os.environ["ICE_CONFIG"] on a plugin by plugin basis.

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.60984 sec.)

We're Hiring!