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

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

Bug: Scripts import numpy unecessarily

Reported by: wmoore Owned by: wmoore
Priority: major Milestone: OMERO-4.4
Component: Scripting Version: n.a.
Keywords: n.a. Cc: sylittlewood, jamoore
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: n.a.
Sprint: 2012-06-05 (16)

Description

Need to review the import of numpy and OmeroPopo? in script_utils, since we currently have scripts failing to import these, even if they don't need them.

Traceback (most recent call last):
  File "./script", line 57, in <module>
    import omero.util.script_utils as scriptUtil
  File "c:\omero_dist\lib\python\omero\util\script_utils.py", line 46, in <module>
    from omero.util.OmeroPopo import EllipseData as EllipseData
  File "c:\omero_dist\lib\python\omero\util\OmeroPopo.py", line 33, in <module>
    import numpy;
ImportError: No module named numpy

Change History (5)

comment:1 Changed 12 years ago by jburel

  • Sprint changed from 2012-04-24 (13) to 2012-05-08 (14)

Moved from sprint 2012-04-24 (13)

comment:2 Changed 12 years ago by jburel

  • Sprint changed from 2012-05-08 (14) to 2012-05-22 (15)

Moved from sprint 2012-05-08 (14)

comment:3 Changed 12 years ago by jburel

  • Sprint changed from 2012-05-22 (15) to 2012-06-05 (16)

Moved from sprint 2012-05-22 (15)

comment:4 Changed 12 years ago by wmoore

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

comment:5 Changed 12 years ago by Will Moore <will@…>

(In [bdba79c3a7c53f11c44d10df3e81d082a38d2fc5/ome.git] on branch develop) script_utils.py only imports OmeroPopo? as needed. See #8556

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.83758 sec.)

We're Hiring!