¿ªÔÆÌåÓý

Locked 'signalHeadManagerInstance' not found in 4.9.2?


 

Upgraded from 4.9.1 to 4.9.2 and now it does not like this line from jmridefaults.py and stops dead before showing any of my Layout Editor Panels. Any thoughts?
2017-08-14 21:18:35,692 script.JmriScriptEngineManager ERROR - Exception creating jython system objects [main]

javax.script.ScriptException: AttributeError: type object 'jmri.InstanceManager' has no attribute 'signalHeadManagerInstance' in <script> at line number 21


Randy


 

If you have scripts referring to ¡°jmridefaults.py¡±, please replace that with a reference to ¡°jmri_bindings.py¡±.

Or you could copy the ¡°jmri_bindings.py¡± file to be named ¡°jmridefaults.py¡±. But the first approach is better.

Bob

On Aug 14, 2017, at 6:28 PM, randomburnout@... [jmriusers] <jmriusers@...> wrote:

Upgraded from 4.9.1 to 4.9.2 and now it does not like this line from jmridefaults.py and stops dead before showing any of my Layout Editor Panels. Any thoughts?
2017-08-14 21:18:35,692 script.JmriScriptEngineManager ERROR - Exception creating jython system objects [main]

javax.script.ScriptException: AttributeError: type object 'jmri.InstanceManager' has no attribute 'signalHeadManagerInstance' in <script> at line number 21
--
Bob Jacobsen
jacobsen@... +1-510-708-5988 AIM, Skype JacobsenRG


 

Bob: I don't see where I have made any script references to jmridefaults.py, but renaming jmri_bindings.py to that name resolved my issue. Thank you (again). I had to change some script references to decodeJmriFilename(name) to jmri.util.FileUtil.getExternalFilename(name) to resolve some secondary errors, because that definition reference was buried in the original jmridefaults.py. I probably should have done that long ago anyway. And I have jython.exec=False and my scripts are under 100,000 characters, if that matters.
Randy