Ticket #2254 (closed: fixed)

Opened 10 years ago

Last modified 5 years ago

Python error on MantidPlot startup with RHEL5

Reported by: Martyn Gigg Owned by: Martyn Gigg
Priority: critical Milestone: Iteration 27
Component: Mantid Keywords:
Cc: Blocked By:
Blocking: Tester: Brett Tully

Description

Starting MantidPlot on a RHEL5 machine causes this error:

Traceback (most recent call last):
  File "<string>", line 17, in ?
  File "/SNSlocal/tr9/Mantid/Code/mybuild/bin/MantidFramework.py", line 821, in initialise
    self._importSimpleAPIToMain()     
  File "/SNSlocal/tr9/Mantid/Code/mybuild/bin/MantidFramework.py", line 854, in _importSimpleAPIToMain
    mod = reload(sys.modules[simpleapi])
  File "/home/tr9/.mantid/mantidsimple.py", line 16313
    print 'mtdHelp() - ' + cmd + ' not found in help list'
SystemError: com_backpatch: offset too large
Error running init file "/SNSlocal/tr9/Mantid/Code/mybuild/bin/mantidplotrc.py"

to be raised resulting in the failure to initialize Python.

It looks to be a problem that the mtdHelp() if/elif chain of statements has become too long.

Change History

comment:1 Changed 10 years ago by Martyn Gigg

  • Status changed from new to accepted

comment:2 Changed 10 years ago by Martyn Gigg

(In [8812]) Create the python mtdHelp function in a much smarter way. Aboids a (very long) chain of if/elif statements that the python interpreter on RHEL5 didn't like. This way it doesn't matter how many algorithms we have. Re #2254

comment:3 Changed 10 years ago by Martyn Gigg

  • Status changed from accepted to verify
  • Resolution set to fixed

comment:4 Changed 10 years ago by Brett Tully

  • Status changed from verify to verifying
  • Tester set to Brett Tully

comment:5 Changed 10 years ago by Brett Tully

  • Status changed from verifying to closed

MantidPlot 1.1.9517 successfully starts on RHEL 5.

comment:6 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 3101

Note: See TracTickets for help on using tickets.