You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2018-07-06 02:53:25,798 script.JmriScriptEngineManager INFO - ECMAScript ECMA - 262 Edition 5.1 is provided by Oracle Nashorn 1.8.0_65 [AWT-EventQueue-0]
2018-07-06 02:53:25,818 script.JmriScriptEngineManager INFO - python 2.7 is provided by jython 2.7.0 [AWT-EventQueue-0]
2018-07-06 02:54:06,226 jython.RunJythonScript ERROR - Unable to execute script. [AWT-EventQueue-0]
javax.script.ScriptException: AttributeError: type object 'jmri.InstanceManager' has no attribute 'shutDownManagerInstance' in <script> at line number 16
at org.python.jsr223.PyScriptEngine.scriptException(PyScriptEngine.java:202)
at org.python.jsr223.PyScriptEngine.eval(PyScriptEngine.java:42)
at org.python.jsr223.PyScriptEngine.eval(PyScriptEngine.java:47)
at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:249)
at jmri.script.JmriScriptEngineManager.eval(JmriScriptEngineManager.java:316)
at jmri.jmrit.jython.RunJythonScript.invoke(RunJythonScript.java:111)
at jmri.jmrit.jython.RunJythonScript.actionPerformed(RunJythonScript.java:84)
So shutDownManagerInstance has been removed. What has replaced it?
The text was updated successfully, but these errors were encountered:
There’s a predefined “shutdown” accessor, which also shows how to reference the manager:
jython//jmri_bindings.py:shutdown = jmri.InstanceManager.getDefault(jmri.ShutDownManager)
Running https://github.com/JMRI/JMRI/blob/master/jython/RaspberryPiShutdown.py from a button, I get this error:
So shutDownManagerInstance has been removed. What has replaced it?
The text was updated successfully, but these errors were encountered: