Ticket #5231 (closed: invalid)

Opened 8 years ago

Last modified 5 years ago

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

Is there anything we can or should do here?

comment:2 Changed 8 years ago by Nick Draper

  • Milestone changed from Release 2.2 to Release 2.3

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:4 Changed 8 years ago by Martyn Gigg

  • Milestone changed from Release 2.4 to Release 2.5

comment:5 Changed 8 years ago by Martyn Gigg

  • Status changed from assigned to accepted

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

comment:7 Changed 8 years ago by Nick Draper

  • Status changed from verify to verifying
  • Tester set to Nick Draper

comment:8 Changed 8 years ago by Nick Draper

  • Status changed from verifying to closed

Agreed

comment:9 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 6077

Note: See TracTickets for help on using tickets.