With the newest version, IPython works, though there are some things to be aware of.
Color warning
C:\ome.git\dist>bin\omero shell
WARNING: Readline services not available on this platform.
WARNING: Proper color support under MS Windows requires the pyreadline library.
You can find it at:
http://ipython.scipy.org/moin/PyReadline/Intro
Gary's readline needs the ctypes module, from:
http://starship.python.net/crew/theller/ctypes
(Note that ctypes is already part of Python versions 2.5 and newer).
Defaulting color scheme to 'NoColor'
In [1]: ^Z
Do you really want to exit ([y]/n)? y
Login before piping
C:\ome.git\dist>echo "client.sf.getConfigService().getConfigValue('omero.data.dir')" | omero shell --login
'omero' is not recognized as an internal or external command,
operable program or batch file.
C:\ome.git\dist>echo "client.sf.getConfigService().getConfigValue('omero.data.dir')" | bin\omero shell --login
Previous session expired for root on localhost:24064
Server: [localhost]Username: [root]Traceback (most recent call last):
File "C:\ome.git\dist\bin\\omero", line 123, in <module>
rv = omero.cli.argv()
File "C:\ome.git\dist\lib\python\omero\cli.py", line 1183, in argv
cli.invoke(args[1:])
File "C:\ome.git\dist\lib\python\omero\cli.py", line 733, in invoke
stop = self.onecmd(line, previous_args)
File "C:\ome.git\dist\lib\python\omero\cli.py", line 802, in onecmd
self.execute(line, previous_args)
File "C:\ome.git\dist\lib\python\omero\cli.py", line 882, in execute
args.func(args)
File "C:\ome.git\dist\lib\python\omero\plugins\basics.py", line 76, in __call__
client = self.ctx.conn(args)
File "C:\ome.git\dist\lib\python\omero\cli.py", line 1047, in conn
self.controls["sessions"].login(args)
File "C:\ome.git\dist\lib\python\omero\plugins\sessions.py", line 224, in login
if not name: name = self._get_username(previous[1])
File "C:\ome.git\dist\lib\python\omero\plugins\sessions.py", line 507, in _get_username
rv = self.ctx.input("Username: [%s]" % defuser)
File "C:\ome.git\dist\lib\python\omero\cli.py", line 370, in input
rv = raw_input(prompt)
EOFError: EOF when reading a line
Careful use of quotes
C:\ome.git\dist>echo "client.sf.getConfigService().getConfigValue('omero.data.dir')" | bin\omero shell --login
Using session 1bf8aac2-4a8a-4702-b370-589ac3c0c4ad (root@gretzky.openmicroscopy.org.uk:4064). Idle timeout: 10.0 min. Current group: system
...
In [1]: Out[1]: "client.sf.getConfigService().getConfigValue('omero.data.dir')"
Working version
C:\ome.git\dist>echo client.sf.getConfigService().getConfigValue('omero.data.dir') | bin\omero shell --login
Using session 1bf8aac2-4a8a-4702-b370-589ac3c0c4ad (root@gretzky.openmicroscopy.org.uk:4064). Idle timeout: 10.0 min. Current group: system
...
In [1]: Out[1]: '/OMERO/'
In [2]:
Do you really want to exit ([y]/n)?
C:\ome.git\dist>