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.

Changes between Initial Version and Version 3 of Ticket #3028


Ignore:
Timestamp:
01/09/12 11:03:16 (12 years ago)
Author:
jmoore
Comment:

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>

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3028

    • Property Status changed from new to closed
    • Property Remaining Time changed from to 0
    • Property Milestone changed from Unscheduled to OMERO-Beta4.4
    • Property Owner set to jmoore
    • Property Sprint changed from to 2012-01-17 (6)
    • Property Resolution changed from to worksforme
  • Ticket #3028 – Description

    initial v3  
    11{{{ 
    2 C:\omero_dist\bin>echo "client.sf.getConfigService().getConfigValue('omero.data. 
    3 dir')" | omero shell --login 
     2C:\omero_dist\bin>echo client.sf.getConfigService().getConfigValue('omero.data. 
     3dir') | omero shell --login 
    44ERROR:omero.util.UpgradeCheck:<urlopen error (10060, 'Operation timed out')> 
    55Using session 9fa11cb9-4ff5-4715-8a2b-946f345930f5 (root@localhost). Idle timeou 

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

We're Hiring!