Ticket #2267 (closed: fixed)

Opened 10 years ago

Last modified 5 years ago

importing Mantid into a python session with pyc files fails

Reported by: Martyn Gigg Owned by: Martyn Gigg
Priority: major Milestone: Iteration 27
Component: Mantid Keywords:
Cc: Blocked By:
Blocking: Tester: Michael Whitty

Description

Starting the python interpreter with the -B option and then importing the MantidFramework raises an error that it cannot remove a pyc file.

The -B option disables pyc file generation so protection is needed for this.

Change History

comment:1 Changed 10 years ago by Martyn Gigg

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

(In [8881]) Fix a small issue notice in a demo of the Python API where the user had inhibited the generation of pyc files. Fixes #2267

comment:2 Changed 10 years ago by Michael Whitty

  • Status changed from verify to verifying
  • Tester set to Michael Whitty

comment:3 Changed 10 years ago by Michael Whitty

  • Status changed from verifying to closed

-B option not available on 2.4.3 version on RHEL machine mantidlx1, nor 2.5.4 on Windows.

from this source it would seem that the option was only introduced in python 2.6, which we do not support anyway. however, testing it with this does work, so ticket is done.

comment:4 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 3114

Note: See TracTickets for help on using tickets.