Task #8555 (new)
Opened 12 years ago
Last modified 9 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 12 years ago by jmoore
- Milestone changed from OMERO-Beta4.4 to Future
comment:2 Changed 12 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 9 years ago by jamoore
- Milestone changed from Future to Unscheduled
Not something we can do now. May take place as part of larger re-working of scripts.