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.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #7106 (closed)

Opened 13 years ago

Closed 12 years ago

Last modified 12 years ago

Bug: bin/omero export fails on stdout

Reported by: jamoore Owned by: jamoore
Priority: minor Milestone: OMERO-4.4
Component: Client Version: n.a.
Keywords: n.a. Cc:
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: 0.0d
Sprint: 2011-11-29 (3)

Description

~/git/dist $ bin/omero export Image:251 -f - > /dev/null
Using session accd7e1e-e41a-4806-a09a-ab48082b09b0 (root@localhost:4064). Idle timeout: 10.0 min. Current group: default
/Users/moore/GlencoeSoftware.git/git/omero.git/dist/lib/python/omero_ServerErrors_ice.py:35: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
  self.message = message
/Users/moore/GlencoeSoftware.git/git/omero.git/dist/lib/python/omero_api_Exporter_ice.py:93: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
  return _M_omero.api.Exporter._op_generateTiff.invoke(self, ((), _ctx))
<string>:111: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
ApiUsageException: Cannot load image: 251
Traceback (most recent call last):
  File "bin/omero", line 123, in <module>
    rv = omero.cli.argv()
  File "/Users/moore/GlencoeSoftware.git/git/omero.git/dist/lib/python/omero/cli.py", line 1172, in argv
    cli.invoke(args[1:])
  File "/Users/moore/GlencoeSoftware.git/git/omero.git/dist/lib/python/omero/cli.py", line 722, in invoke
    stop = self.onecmd(line, previous_args)
  File "/Users/moore/GlencoeSoftware.git/git/omero.git/dist/lib/python/omero/cli.py", line 791, in onecmd
    self.execute(line, previous_args)
  File "/Users/moore/GlencoeSoftware.git/git/omero.git/dist/lib/python/omero/cli.py", line 871, in execute
    args.func(args)
  File "/Users/moore/GlencoeSoftware.git/git/omero.git/dist/lib/python/omero/plugins/export.py", line 58, in export
    self.handleImages(args, images)
  File "/Users/moore/GlencoeSoftware.git/git/omero.git/dist/lib/python/omero/plugins/export.py", line 131, in handleImages
    os.remove(handle.name)
OSError: [Errno 2] No such file or directory: '<stdout>'

Change History (3)

comment:1 Changed 12 years ago by jmoore

  • Sprint set to 2011-11-29 (3)
  • Status changed from new to accepted

comment:2 Changed 12 years ago by jmoore

  • Remaining Time changed from 0.1 to 0
  • Resolution set to fixed
  • Status changed from accepted to closed

Fixed in my sprint4-bugs branch (to be pushed)

comment:3 Changed 12 years ago by jmoore <josh@…>

(In [987a46d988eff8188f46e7ba38bd646c6bc2b171/ome.git]) Better handling of sys.stdout on export (Fix #7106)

Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

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

We're Hiring!