ID 239800 - Importing `UI4` is inconsistent between interactive and render modes

Follow

Problem summary:

Importing the UI4 Python module is different, depending on whether interactive mode or one of the render modes is in use.

Steps to reproduce:

  1. Launch KATANA in shell mode: ./katana --shell
  2. Run the following Python:

from Katana import UI4

Expected behaviour:

As this works in interactive mode, it should also work in render modes.

Actual behaviour:

The following error will occur:

Traceback (most recent call last):  File "<console>", line 1, in <module>ImportError: cannot import name UI4

Workaround:

The following code will work instead:


import UI4

Reproduced versions/platforms:

  • 2.1v5

Customer version/platform:

Not supplied.

    We're sorry to hear that

    Please tell us why