Page 1 of 1

CLI problem retrieving user list.

PostPosted: Wed Jun 11, 2014 12:05 pm
by ehrenfeu
Dear all,

using the command line client, I'm experiencing the following problem:

Code: Select all
$ omero user list
Using session 8a19bf1f-fefb-4bd4-86f8-7688ab7204d8 (root@localhost:4064). Idle timeout: 10.0 min. Current group: IMCF
Traceback (most recent call last):
  File "/home/omeronas/OMERO.server/bin/omero", line 125, in <module>
    rv = omero.cli.argv()
  File "/home/omeronas/OMERO.server/lib/python/omero/cli.py", line 1242, in argv
    cli.invoke(args[1:])
  File "/home/omeronas/OMERO.server/lib/python/omero/cli.py", line 791, in invoke
    stop = self.onecmd(line, previous_args)
  File "/home/omeronas/OMERO.server/lib/python/omero/cli.py", line 860, in onecmd
    self.execute(line, previous_args)
  File "/home/omeronas/OMERO.server/lib/python/omero/cli.py", line 940, in execute
    args.func(args)
  File "/home/omeronas/OMERO.server/lib/python/omero/plugins/user.py", line 293, in list
    self.ctx.out(str(tb.build()))
  File "/home/omeronas/OMERO.server/lib/python/omero/util/text.py", line 245, in __str__
    return '\n'.join(self.get_rows())
  File "/home/omeronas/OMERO.server/lib/python/omero/util/text.py", line 241, in get_rows
    for row in self.style.get_rows(self):
  File "/home/omeronas/OMERO.server/lib/python/omero/util/text.py", line 54, in get_rows
    yield self.SEPARATOR.join(table.get_row(i))
  File "/home/omeronas/OMERO.server/lib/python/omero/util/text.py", line 232, in get_row
    x[i].decode("ascii")
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf6' in position 1: ordinal not in range(128)


Is this a bug in OMERO or did we break something?

Cheers
~Niko

Re: CLI problem retrieving user list.

PostPosted: Wed Jun 11, 2014 1:09 pm
by manics
Hi Niko

It's a bug, thanks for reporting it. I've opened a ticket:
https://trac.openmicroscopy.org.uk/ome/ticket/12370

Simon

Re: CLI problem retrieving user list.

PostPosted: Wed Jun 11, 2014 1:26 pm
by ehrenfeu
Thanks, Simon!

Would you mind putting me on CC for the ticket you've created?

~Niko

Re: CLI problem retrieving user list.

PostPosted: Wed Jun 11, 2014 1:42 pm
by manics
Done (you should've received a notification from trac).