ID 376446 - Launching base Nuke script containing a ModelBuilder node throws a popup window and exception

Follow

Problem summary
Launching Nuke ( Not NukeX ) and opening a script with a ModelBuilder node within throws a popup window error and Script Editor callback.

Nuke throws the following error:
Traceback (most recent call last):  File "/opt/thefoundry/nuke/Nuke11.1v4/plugins/nuke/callbacks.py", line 72, in onCreate    _doCallbacks(onCreates)  File "/opt/thefoundry/nuke/Nuke11.1v4/plugins/nuke/callbacks.py", line 46, in _doCallbacks    f[0](*f[1],**f[2])  File "/opt/thefoundry/nuke/Nuke11.1v4/plugins/nukescripts/modelbuilder.py", line 150, in modelbuilderCreateCallback    populateBakeMenu(nuke.thisNode())  File "/opt/thefoundry/nuke/Nuke11.1v4/plugins/nukescripts/modelbuilder.py", line 21, in populateBakeMenu    k.setValues([ "%s\t%s" % (script, label) for label, script in entries ])ValueError: read only variable
 
Popup window:
There currently appears to no other issues occurring, apart from the callback.


Customer reported version
Nuke 11.1v4

Customer reported platform
CentOS 7

Steps to reproduce

1) Open NukeX

2) Create a 'ModelBuilder' node

3) Save the NukeX script

4) Open base Nuke

5) Load the script saved earlier

Result: A popup window is displayed, the exception provided above is displayed in the Script Editor

Workaround
Unknown.

Reproduced by support
This bug has been reproduced in:
Nuke11.2v5 - Windows 7 - Mac10.13 - CentOS7
Nuke11.2v1 - Windows 7
Nuke11.1v1 - Windows 7
Nuke11.0v1 - Windows 7
Nuke10.5v1 - Windows 7
Nuke10.0v1 - Windows 7 - Mac10.13 - CentOS7 - regression

Unable to reproduce bug in:
Nuke9.0v9 - Windows 7 - Mac10.13 - CentOS7

Earliest version tested
Nuke9.0v9 
- This issue no longer appears in this version and has regressed

Expected behaviour
Nuke script containing ModelBuilder node should load without exceptions.

Actual behaviour
An exception is thrown if a ModelBuilder node is within the Node Graph.

    We're sorry to hear that

    Please tell us why