Ticket #5231 (closed: invalid)
Scripts in PythonAlgs that import "mantidplot" produce errors while running system tests
Reported by: | Peter Parker | Owned by: | Martyn Gigg |
---|---|---|---|
Priority: | minor | Milestone: | Release 2.5 |
Component: | Mantid | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Tester: | Nick Draper |
Description
This is superficial inasmuch as the errors dont stop the system tests from working, but it is annoying having them pop up for each one. Sample output:
MantidPython-[Notice] Error: Importing module "ForCE" failed". The "mantidplot" module can only be used from within MantidPlot. Cannot open file MantidPython-[Notice] Error: Importing module "IDAtransmission" failed". The "mantidplot" module can only be used from within MantidPlot. Cannot open file
In both cases the line import mantidplot is needed for functionality offered by the script.
Change History
comment:1 Changed 8 years ago by Nick Draper
- Owner set to Martyn Gigg
- Status changed from new to assigned
comment:3 Changed 8 years ago by Nick Draper
- Milestone changed from Release 2.3 to Release 2.4
Moved to release 2.4
comment:6 Changed 8 years ago by Martyn Gigg
- Status changed from accepted to verify
- Resolution set to invalid
This has become invalid as both ForCE & IDATransmission no longer contain the mantidplot import.
Any others that do should simply wrap it in a try...except block
Note: See
TracTickets for help on using
tickets.
Is there anything we can or should do here?