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 #10217 (closed)

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

Bug: numpy import handling in Scripts

Reported by: wmoore Owned by: wmoore
Priority: major Milestone: OMERO-4.4.7
Component: Scripting Version: n.a.
Keywords: n.a. Cc: jamoore
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: n.a.
Sprint: 2013-04-09 (7))

Description

Need to provide nicer feedback for scripts that import numpy when the import fails.

E.g. Channel_Offsets has

from numpy import zeros, hstack, vstack

See https://www.openmicroscopy.org/qa2/qa/feedback/4848/

Change History (4)

comment:1 Changed 11 years ago by jburel

  • Sprint changed from 2013-02-12 (5) to 2013-03-12 (6))

Moved from sprint 2013-02-12 (5)

comment:2 Changed 11 years ago by jburel

  • Sprint changed from 2013-03-12 (6)) to 2013-04-09 (7))

Moved from sprint 2013-03-12 (6))

comment:3 Changed 11 years ago by wmoore

  • Resolution set to fixed
  • Status changed from new to closed

comment:4 Changed 11 years ago by wmoore

This is also an issue for PIL import in Figure Scripts. See https://www.openmicroscopy.org/qa2/qa/feedback/4962/

Caused by: omero.ValidationException
    serverStackTrace = ""
    serverExceptionClass = ""
    message = "Can't find params for 9. Stderr is in file 120
               
               ---stderr---
               Traceback (most recent call last):
                 File "./script", line 39, in 
                   import omero.util.figureUtil as figUtil
                 File "/usr/local/Cellar/omero/4.4.6/lib/python/omero/util/figureUtil.py", line 43, in 
                   import Image, ImageDraw, ImageFont # see ticket:2597
               ImportError: No module named Image
               "
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.68914 sec.)

We're Hiring!