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 #8555 (new)

Opened 8 years ago

Last modified 4 years ago

Bug: detect ImportError for script and provide different message

Reported by: jamoore Owned by: jamoore
Priority: major Milestone: Unscheduled
Component: Scripting Version: n.a.
Keywords: n.a. Cc: sylittlewood, wmoore
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: n.a.
Sprint: n.a.

Description

Elwood ran into the following error while trying to run Batch_Image_Exports under Windows:

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

This was only visible by manually opening up the stderr uploaded during parsing. There should be more feedback to the user, rather than just "No resource available" or "Cannot load the script: 1" contact admin

Change History (3)

comment:1 Changed 7 years ago by jmoore

  • Milestone changed from OMERO-Beta4.4 to Future

Not something we can do now. May take place as part of larger re-working of scripts.

comment:2 Changed 7 years ago by jmoore

  • Priority changed from minor to major

Similar issue in #1541:

Summary: When PIL is missing (Windows), execution of makemovie.py doesn't upload any stdout/err
Running makemovie.py from the commandline showed an import error. Not sure why processor.py didn't show any output.

comment:3 Changed 4 years ago by jamoore

  • Milestone changed from Future to Unscheduled
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.80607 sec.)

We're Hiring!