Task #12541 (new)
Opened 10 years ago
Last modified 10 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. |
Description
Using bin/omero shell
In [10]: with open(os.getenv('ICE_CONFIG')) as f: print f.read() omero.user=XXX omero.pass=XXX omero.host=XXX 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.
Note: See
TracTickets for help on using
tickets.
You may also have a look at Agilo extensions to the ticket.
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.