Task #12834 (closed)
Opened 9 years ago
Closed 9 years ago
Bug: CLI pipe output to head works, but crashes
Reported by: | khgillen | Owned by: | sbesson |
---|---|---|---|
Priority: | minor | Milestone: | 5.1.1 |
Component: | Client | Version: | 5.1.0 |
Keywords: | cli, python | Cc: | sbesson, spli, jamoore |
Resources: | n.a. | Referenced By: | n.a. |
References: | n.a. | Remaining Time: | n.a. |
Sprint: | n.a. |
Description (last modified by khgillen)
Running a command like bin/omero user list | head -n 1
produces the following:
[omeoruser@server ~]$ OMERO-CURRENT/bin/omero user list | head -n 3 Using session 1d383129-d153-41a1-a9a9-05a0074d4648 (khgillen@localhost:4064). Idle timeout: 10.0 min. Current group: default id | login | first name | last name | email | active | ldap | admin | member of | owner of ------+-------------------+------------------+---------------------------+-------------------------------------+--------+-------+-------+-------------------------------------------+---------------------------------------------------------------------------- 0 | root | root | root | | Yes | False | Yes | | Error printing text Traceback (most recent call last): File "OMERO-CURRENT/bin/omero", line 125, in <module> rv = omero.cli.argv() File "/homes/omerouser/OMERO-CURRENT/lib/python/omero/cli.py", line 1412, in argv cli.invoke(args[1:]) File "/homes/omerouser/OMERO-CURRENT/lib/python/omero/cli.py", line 927, in invoke stop = self.onecmd(line, previous_args) File "/homes/omerouser/OMERO-CURRENT/lib/python/omero/cli.py", line 1004, in onecmd self.execute(line, previous_args) File "/homes/omerouser/OMERO-CURRENT/lib/python/omero/cli.py", line 1086, in execute args.func(args) File "/homes/omerouser/OMERO-CURRENT/lib/python/omero/plugins/user.py", line 200, in list self.output_users_list(a, users, args) File "/homes/omerouser/OMERO-CURRENT/lib/python/omero/cli.py", line 2030, in output_users_list self.ctx.out(str(tb.build())) File "/homes/omerouser/OMERO-CURRENT/lib/python/omero/cli.py", line 523, in out self.safePrint(text, sys.stdout, newline) File "/homes/omerouser/OMERO-CURRENT/lib/python/omero/cli.py", line 464, in safePrint print >>sys.stdout, text IOError: [Errno 32] Broken pipe
Looks exactly like http://stackoverflow.com/questions/14207708/ioerror-errno-32-broken-pipe-python, possibly fixed by http://newbebweb.blogspot.co.uk/2012/02/python-head-ioerror-errno-32-broken.html.
Change History (5)
comment:1 Changed 9 years ago by khgillen
- Description modified (diff)
comment:2 Changed 9 years ago by jamoore
- Cc sbesson spli added; ux@… removed
- Owner jamoore deleted
comment:3 Changed 9 years ago by jamoore
- Cc jamoore added
comment:4 Changed 9 years ago by sbesson
- Owner set to sbesson
- Status changed from new to accepted
comment:5 Changed 9 years ago by sbesson
- Resolution set to fixed
- Status changed from accepted to closed
Note: See
TracTickets for help on using
tickets.
You may also have a look at Agilo extensions to the ticket.
See https://github.com/openmicroscopy/openmicroscopy/pull/3734