Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RaspberryPiShutdown.py not finding shutDownManagerInstance #5633

Closed
mstevetodd opened this issue Aug 10, 2018 · 2 comments
Closed

RaspberryPiShutdown.py not finding shutDownManagerInstance #5633

mstevetodd opened this issue Aug 10, 2018 · 2 comments

Comments

@mstevetodd
Copy link
Contributor

Running https://github.com/JMRI/JMRI/blob/master/jython/RaspberryPiShutdown.py from a button, I get this error:

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?

@bobjacobsen
Copy link
Member

bobjacobsen commented Aug 10, 2018 via email

@mstevetodd
Copy link
Contributor Author

Thanks, @bobjacobsen
Changed per your suggestion, plus added a restart version.
Closing via #5634

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants