[JSR223][Jython] Error during evaluation of script 'file:/openhab/conf/automation/jsr223/python/core/components/100_DirectoryTrigger.py': ImportError: No module name d configuration in <script> at line number 21

OK, I mentioned in another thread that Python didn’t appear in the drop down list in PaperUI. So I decided to start over from scratch and maybe start transitioning my Rules over to Jython (to start). I discovered my original problem was located between my keyboard and chair. When I set it up a long time ago (in Docker) I put the jython.jar file in userdata. I forgot to include that file in my git so I lost it the next time that I rebuild and checked everything back out of git.

So now Python 2.7 does appear in the list on PaperUI, but it doesn’t work. :frowning:

I’m running build #1640.

I followed the instructions here and here. The “helloworld.py” script is not running and I see the following errors.

I think I’ve managed to configure both automation and jsr223 to the same separate log file. I’ve truncated the file a bit to get within the character limit for a post. I can post the full log if it’s needed.

2019-07-18 13:30:57.420 [RuleResourceBundleImporter] - Parse rules from bundle 'org.openhab.core.automation'
2019-07-18 13:30:57.447 [RuleResourceBundleImporter] - Parse rules from bundle 'org.openhab.core.automation.module.script.rulesupport'
2019-07-18 13:30:57.448 [RuleResourceBundleImporter] - Parse rules from bundle 'org.openhab.ui.habot'
2019-07-18 13:30:57.450 [rg.openhab.core.automation] - ServiceEvent REGISTERED - {org.openhab.core.automation.template.RuleTemplateProvider}={service.id=382, service.bundleid=265, service.scope=bundle, Parser.target=(parser.type=parser.template), component.name=org.openhab.core.automation.internal.provider.file.TemplateFileProviderWatcher, component.id=241} - org.openhab.core.automation
2019-07-18 13:30:57.478 [rg.openhab.core.automation] - ServiceEvent REGISTERED - {org.openhab.core.automation.module.provider.i18n.ModuleTypeI18nService}={service.id=383, service.bundleid=265, service.scope=bundle, component.name=org.openhab.core.automation.internal.provider.i18n.ModuleTypeI18nServiceImpl, component.id=242} - org.openhab.core.automation
2019-07-18 13:30:57.487 [rg.openhab.core.automation] - ServiceEvent REGISTERED - {org.openhab.core.automation.type.ModuleTypeProvider, org.openhab.core.automation.handler.ModuleHandlerFactory}={service.id=384, service.bundleid=265, service.scope=bundle, component.name=org.openhab.core.automation.internal.module.provider.AnnotatedActionModuleTypeProvider, component.id=233} - org.openhab.core.automation
2019-07-18 13:30:57.524 [rg.openhab.core.automation] - ServiceEvent REGISTERED - {org.openhab.core.automation.type.ModuleTypeProvider, org.eclipse.smarthome.core.common.registry.Provider}={service.id=385, provider.type=bundle, service.bundleid=265, service.scope=bundle, Parser.target=(parser.type=parser.module.type), component.name=org.openhab.core.automation.internal.provider.ModuleTypeResourceBundleProvider, component.id=238} - org.openhab.core.automation
2019-07-18 13:30:57.552 [rg.openhab.core.automation] - ServiceEvent REGISTERED - {org.openhab.core.automation.template.TemplateRegistry, org.openhab.core.automation.internal.template.RuleTemplateRegistry}={service.id=386, service.bundleid=265, service.scope=bundle, component.name=org.openhab.core.automation.internal.template.RuleTemplateRegistry, component.id=243} - org.openhab.core.automation
2019-07-18 13:30:57.584 [rg.openhab.core.automation] - ServiceEvent REGISTERED - {org.openhab.core.automation.type.ModuleTypeRegistry}={service.id=387, service.bundleid=265, service.scope=bundle, component.name=org.openhab.core.automation.internal.type.ModuleTypeRegistryImpl, component.id=244} - org.openhab.core.automation
2019-07-18 13:30:57.585 [rg.openhab.core.automation] - ServiceEvent REGISTERED - {org.openhab.core.automation.RuleRegistry}={service.id=388, service.bundleid=265, service.scope=bundle, component.name=org.openhab.core.automation.internal.RuleRegistryImpl, component.id=229} - org.openhab.core.automation
2019-07-18 13:30:57.586 [rg.openhab.core.automation] - ServiceEvent REGISTERED - {org.openhab.core.automation.RuleManager, org.eclipse.smarthome.core.common.registry.RegistryChangeListener}={service.id=389, service.bundleid=265, service.scope=bundle, rule.reinitialization.delay=500, component.name=org.openhab.core.automation.internal.RuleEngineImpl, component.id=227} - org.openhab.core.automation
2019-07-18 13:30:57.764 [on.internal.RuleEngineImpl] - ModuleHandlerFactory added CoreModuleHandlerFactory
2019-07-18 13:30:57.764 [on.internal.RuleEngineImpl] - ModuleHandlerFactory added TimerModuleHandlerFactory
2019-07-18 13:30:57.764 [on.internal.RuleEngineImpl] - ModuleHandlerFactory added AnnotatedActionModuleTypeProvider
2019-07-18 13:30:57.772 [rg.openhab.core.automation] - ServiceEvent REGISTERED - {org.eclipse.smarthome.io.console.extensions.ConsoleCommandExtension}={service.id=390, service.bundleid=265, service.scope=bundle, component.name=org.openhab.core.automation.internal.commands.AutomationCommandsPluggable, component.id=230} - org.openhab.core.automation
2019-07-18 13:30:57.816 [rg.openhab.core.automation] - ServiceEvent REGISTERED - {org.openhab.core.automation.type.ModuleTypeProvider}={service.id=391, service.bundleid=265, service.scope=singleton} - org.openhab.core.automation
2019-07-18 13:30:57.818 [rg.openhab.core.automation] - ServiceEvent REGISTERED - {org.openhab.core.automation.template.RuleTemplateProvider}={service.id=392, service.bundleid=265, service.scope=singleton} - org.openhab.core.automation
2019-07-18 13:30:57.835 [rg.openhab.core.automation] - ServiceEvent REGISTERED - {org.openhab.core.automation.type.ModuleTypeProvider, org.openhab.core.automation.handler.ModuleHandlerFactory}={service.id=393, service.bundleid=265, service.scope=bundle, component.name=org.openhab.core.automation.thingsupport.AnnotatedThingActionModuleTypeProvider, component.id=245} - org.openhab.core.automation
2019-07-18 13:30:57.837 [on.internal.RuleEngineImpl] - ModuleHandlerFactory added AnnotatedThingActionModuleTypeProvider
2019-07-18 13:30:57.838 [rg.openhab.core.automation] - BundleEvent STARTED - org.openhab.core.automation
2019-07-18 13:30:57.854 [re.automation.module.media] - BundleEvent STARTING - org.openhab.core.automation.module.media
2019-07-18 13:30:57.857 [re.automation.module.media] - ServiceEvent REGISTERED - {org.openhab.core.automation.type.ModuleTypeProvider}={service.id=394, service.bundleid=266, service.scope=bundle, component.name=org.openhab.core.automation.module.media.internal.MediaActionTypeProvider, component.id=246} - org.openhab.core.automation.module.media
2019-07-18 13:30:57.888 [re.automation.module.media] - ServiceEvent REGISTERED - {org.openhab.core.automation.handler.ModuleHandlerFactory}={service.id=395, service.bundleid=266, service.scope=bundle, component.name=org.openhab.core.automation.module.media.internal.MediaModuleHandlerFactory, component.id=247} - org.openhab.core.automation.module.media
2019-07-18 13:30:57.903 [on.internal.RuleEngineImpl] - ModuleHandlerFactory added MediaModuleHandlerFactory
2019-07-18 13:30:57.904 [re.automation.module.media] - ServiceEvent REGISTERED - {org.openhab.core.automation.module.script.ScriptExtensionProvider}={service.id=396, service.bundleid=266, service.scope=bundle, component.name=org.openhab.core.automation.module.media.internal.MediaScriptScopeProvider, component.id=248} - org.openhab.core.automation.module.media
2019-07-18 13:30:57.907 [re.automation.module.media] - BundleEvent STARTED - org.openhab.core.automation.module.media
2019-07-18 13:30:57.936 [e.automation.module.script] - BundleEvent STARTING - org.openhab.core.automation.module.script
2019-07-18 13:30:57.979 [e.automation.module.script] - ServiceEvent REGISTERED - {org.openhab.core.automation.module.script.ScriptEngineFactory}={service.id=397, service.bundleid=267, service.scope=bundle, component.name=org.openhab.core.automation.module.script.internal.GenericScriptEngineFactory, component.id=249} - org.openhab.core.automation.module.script
2019-07-18 13:30:58.063 [e.automation.module.script] - ServiceEvent REGISTERED - {org.openhab.core.automation.module.script.ScriptEngineFactory}={service.id=398, service.bundleid=267, service.scope=bundle, component.name=org.openhab.core.automation.module.script.internal.NashornScriptEngineFactory, component.id=250} - org.openhab.core.automation.module.script
2019-07-18 13:30:58.120 [e.automation.module.script] - ServiceEvent REGISTERED - {org.openhab.core.automation.module.script.internal.ScriptExtensionManager}={service.id=399, service.bundleid=267, service.scope=bundle, component.name=org.openhab.core.automation.module.script.internal.ScriptExtensionManager, component.id=252} - org.openhab.core.automation.module.script
2019-07-18 13:30:58.126 [e.automation.module.script] - ServiceEvent REGISTERED - {org.openhab.core.automation.module.script.ScriptEngineManager}={service.id=400, service.bundleid=267, service.scope=bundle, component.name=org.openhab.core.automation.module.script.internal.ScriptEngineManagerImpl, component.id=251} - org.openhab.core.automation.module.script
2019-07-18 13:30:58.140 [al.ScriptEngineManagerImpl] - GenericScriptEngineFactory.getScriptTypes(): [py, text/python, application/python, text/x-python, application/x-python, js, application/javascript, application/ecmascript, text/javascript, text/ecmascript]
2019-07-18 13:30:58.141 [al.ScriptEngineManagerImpl] - Added GenericScriptEngineFactory
2019-07-18 13:30:58.143 [al.ScriptEngineManagerImpl] - ScriptEngineFactory details for jython (2.7.0): supports python (2.7) with file extensions [py], names [python, jython], and mimetypes [text/python, application/python, text/x-python, application/x-python]
2019-07-18 13:30:58.144 [al.ScriptEngineManagerImpl] - ScriptEngineFactory details for Oracle Nashorn (1.8.0_192-b01): supports ECMAScript (ECMA - 262 Edition 5.1) with file extensions [js], names [nashorn, Nashorn, js, JS, JavaScript, javascript, ECMAScript, ecmascript], and mimetypes [application/javascript, application/ecmascript, text/javascript, text/ecmascript]
2019-07-18 13:30:58.145 [al.ScriptEngineManagerImpl] - NashornScriptEngineFactory.getScriptTypes(): [js, application/javascript, application/ecmascript, text/javascript, text/ecmascript]
2019-07-18 13:30:58.145 [al.ScriptEngineManagerImpl] - Added NashornScriptEngineFactory
2019-07-18 13:30:58.145 [al.ScriptEngineManagerImpl] - ScriptEngineFactory details for jython (2.7.0): supports python (2.7) with file extensions [py], names [python, jython], and mimetypes [text/python, application/python, text/x-python, application/x-python]
2019-07-18 13:30:58.149 [al.ScriptEngineManagerImpl] - ScriptEngineFactory details for Oracle Nashorn (1.8.0_192-b01): supports ECMAScript (ECMA - 262 Edition 5.1) with file extensions [js], names [nashorn, Nashorn, js, JS, JavaScript, javascript, ECMAScript, ecmascript], and mimetypes [application/javascript, application/ecmascript, text/javascript, text/ecmascript]
2019-07-18 13:30:58.151 [al.ScriptEngineManagerImpl] - GenericScriptEngineFactory.getScriptTypes(): [py, text/python, application/python, text/x-python, application/x-python, js, application/javascript, application/ecmascript, text/javascript, text/ecmascript]
2019-07-18 13:30:58.161 [al.ScriptEngineManagerImpl] - Removed GenericScriptEngineFactory
2019-07-18 13:30:58.162 [al.ScriptEngineManagerImpl] - NashornScriptEngineFactory.getScriptTypes(): [js, application/javascript, application/ecmascript, text/javascript, text/ecmascript]
2019-07-18 13:30:58.162 [al.ScriptEngineManagerImpl] - Removed NashornScriptEngineFactory
2019-07-18 13:30:58.165 [e.automation.module.script] - ServiceEvent REGISTERED - {org.openhab.core.automation.module.script.ScriptExtensionProvider}={service.id=401, service.bundleid=267, service.scope=bundle, component.name=org.openhab.core.automation.module.script.internal.defaultscope.DefaultScriptScopeProvider, component.id=253} - org.openhab.core.automation.module.script
2019-07-18 13:30:58.194 [e.automation.module.script] - ServiceEvent REGISTERED - {org.openhab.core.automation.handler.ModuleHandlerFactory}={service.id=402, service.bundleid=267, service.scope=bundle, component.name=org.openhab.core.automation.module.script.internal.factory.ScriptModuleHandlerFactory, component.id=254} - org.openhab.core.automation.module.script
2019-07-18 13:30:58.205 [al.ScriptEngineManagerImpl] - GenericScriptEngineFactory.getScriptTypes(): [py, text/python, application/python, text/x-python, application/x-python, js, application/javascript, application/ecmascript, text/javascript, text/ecmascript]
2019-07-18 13:30:58.205 [al.ScriptEngineManagerImpl] - Added GenericScriptEngineFactory
2019-07-18 13:30:58.218 [al.ScriptEngineManagerImpl] - ScriptEngineFactory details for jython (2.7.0): supports python (2.7) with file extensions [py], names [python, jython], and mimetypes [text/python, application/python, text/x-python, application/x-python]
2019-07-18 13:30:58.218 [al.ScriptEngineManagerImpl] - ScriptEngineFactory details for Oracle Nashorn (1.8.0_192-b01): supports ECMAScript (ECMA - 262 Edition 5.1) with file extensions [js], names [nashorn, Nashorn, js, JS, JavaScript, javascript, ECMAScript, ecmascript], and mimetypes [application/javascript, application/ecmascript, text/javascript, text/ecmascript]
2019-07-18 13:30:58.218 [al.ScriptEngineManagerImpl] - NashornScriptEngineFactory.getScriptTypes(): [js, application/javascript, application/ecmascript, text/javascript, text/ecmascript]
2019-07-18 13:30:58.218 [al.ScriptEngineManagerImpl] - Added NashornScriptEngineFactory
2019-07-18 13:30:58.218 [al.ScriptEngineManagerImpl] - ScriptEngineFactory details for jython (2.7.0): supports python (2.7) with file extensions [py], names [python, jython], and mimetypes [text/python, application/python, text/x-python, application/x-python]
2019-07-18 13:30:58.218 [al.ScriptEngineManagerImpl] - ScriptEngineFactory details for Oracle Nashorn (1.8.0_192-b01): supports ECMAScript (ECMA - 262 Edition 5.1) with file extensions [js], names [nashorn, Nashorn, js, JS, JavaScript, javascript, ECMAScript, ecmascript], and mimetypes [application/javascript, application/ecmascript, text/javascript, text/ecmascript]
2019-07-18 13:30:58.219 [on.internal.RuleEngineImpl] - ModuleHandlerFactory added ScriptModuleHandlerFactory
2019-07-18 13:30:58.259 [e.automation.module.script] - ServiceEvent REGISTERED - {org.openhab.core.automation.type.ModuleTypeProvider}={service.id=403, service.bundleid=267, service.scope=bundle, component.name=org.openhab.core.automation.module.script.internal.provider.ScriptModuleTypeProvider, component.id=255} - org.openhab.core.automation.module.script
2019-07-18 13:30:58.279 [r.ScriptModuleTypeProvider] - ParameterOptions: [ParameterOption [value="application/python", label="Python (2.7)"], ParameterOption [value="application/javascript", label="ECMAScript (ECMA - 262 Edition 5.1)"]]
2019-07-18 13:30:58.280 [r.ScriptModuleTypeProvider] - ParameterOptions: [ParameterOption [value="application/python", label="Python (2.7)"], ParameterOption [value="application/javascript", label="ECMAScript (ECMA - 262 Edition 5.1)"]]
2019-07-18 13:30:58.281 [e.automation.module.script] - BundleEvent STARTED - org.openhab.core.automation.module.script
2019-07-18 13:30:58.315 [.module.script.rulesupport] - BundleEvent STARTING - org.openhab.core.automation.module.script.rulesupport
2019-07-18 13:30:58.334 [.module.script.rulesupport] - ServiceEvent REGISTERED - {org.openhab.core.automation.module.script.rulesupport.internal.ScriptedCustomModuleHandlerFactory, org.openhab.core.automation.handler.ModuleHandlerFactory}={service.id=404, service.bundleid=268, service.scope=bundle, component.name=org.openhab.core.automation.module.script.rulesupport.internal.ScriptedCustomModuleHandlerFactory, component.id=257} - org.openhab.core.automation.module.script.rulesupport
2019-07-18 13:30:58.355 [on.internal.RuleEngineImpl] - ModuleHandlerFactory added ScriptedCustomModuleHandlerFactory
2019-07-18 13:30:58.360 [.module.script.rulesupport] - ServiceEvent REGISTERED - {org.openhab.core.automation.module.script.rulesupport.internal.ScriptedCustomModuleTypeProvider, org.openhab.core.automation.type.ModuleTypeProvider}={service.id=405, service.bundleid=268, service.scope=bundle, component.name=org.openhab.core.automation.module.script.rulesupport.internal.ScriptedCustomModuleTypeProvider, component.id=258} - org.openhab.core.automation.module.script.rulesupport
2019-07-18 13:30:58.368 [.module.script.rulesupport] - ServiceEvent REGISTERED - {org.openhab.core.automation.module.script.rulesupport.internal.ScriptedPrivateModuleHandlerFactory, org.openhab.core.automation.handler.ModuleHandlerFactory}={service.id=406, service.bundleid=268, service.scope=bundle, component.name=org.openhab.core.automation.module.script.rulesupport.internal.ScriptedPrivateModuleHandlerFactory, component.id=259} - org.openhab.core.automation.module.script.rulesupport
2019-07-18 13:30:58.369 [on.internal.RuleEngineImpl] - ModuleHandlerFactory added ScriptedPrivateModuleHandlerFactory
2019-07-18 13:30:58.532 [l.loader.ScriptFileWatcher] - in queue: {md=[file:/openhab/conf/automation/jsr223/groovy/community/README.md]}
2019-07-18 13:30:58.532 [l.loader.ScriptFileWatcher] - in queue: {groovy=[file:/openhab/conf/automation/jsr223/groovy/core/000_startup_delay.groovy], md=[file:/openhab/conf/automation/jsr223/groovy/community/README.md]}
2019-07-18 13:30:58.533 [l.loader.ScriptFileWatcher] - in queue: {groovy=[file:/openhab/conf/automation/jsr223/groovy/core/000_startup_delay.groovy], md=[file:/openhab/conf/automation/jsr223/groovy/personal/README.md, file:/openhab/conf/automation/jsr223/groovy/community/README.md]}
2019-07-18 13:30:58.533 [l.loader.ScriptFileWatcher] - in queue: {groovy=[file:/openhab/conf/automation/jsr223/groovy/core/000_startup_delay.groovy], md=[file:/openhab/conf/automation/jsr223/groovy/personal/README.md, file:/openhab/conf/automation/jsr223/groovy/community/README.md, file:/openhab/conf/automation/jsr223/python/community/README.md]}
2019-07-18 13:30:58.533 [l.loader.ScriptFileWatcher] - in queue: {groovy=[file:/openhab/conf/automation/jsr223/groovy/core/000_startup_delay.groovy], md=[file:/openhab/conf/automation/jsr223/groovy/personal/README.md, file:/openhab/conf/automation/jsr223/groovy/community/README.md, file:/openhab/conf/automation/jsr223/python/community/README.md], py=[file:/openhab/conf/automation/jsr223/python/core/000_startup_delay.py]}
2019-07-18 13:30:58.533 [l.loader.ScriptFileWatcher] - in queue: {groovy=[file:/openhab/conf/automation/jsr223/groovy/core/000_startup_delay.groovy], md=[file:/openhab/conf/automation/jsr223/groovy/personal/README.md, file:/openhab/conf/automation/jsr223/groovy/community/README.md, file:/openhab/conf/automation/jsr223/python/community/README.md], py=[file:/openhab/conf/automation/jsr223/python/core/components/100_DirectoryTrigger.py, file:/openhab/conf/automation/jsr223/python/core/000_startup_delay.py]}
2019-07-18 13:30:58.533 [l.loader.ScriptFileWatcher] - in queue: {groovy=[file:/openhab/conf/automation/jsr223/groovy/core/000_startup_delay.groovy], md=[file:/openhab/conf/automation/jsr223/groovy/personal/README.md, file:/openhab/conf/automation/jsr223/groovy/community/README.md, file:/openhab/conf/automation/jsr223/python/community/README.md], py=[file:/openhab/conf/automation/jsr223/python/core/components/100_OsgiEventTrigger.py, file:/openhab/conf/automation/jsr223/python/core/components/100_DirectoryTrigger.py, file:/openhab/conf/automation/jsr223/python/core/000_startup_delay.py]}
2019-07-18 13:30:58.533 [l.loader.ScriptFileWatcher] - in queue: {groovy=[file:/openhab/conf/automation/jsr223/groovy/core/000_startup_delay.groovy], md=[file:/openhab/conf/automation/jsr223/groovy/personal/README.md, file:/openhab/conf/automation/jsr223/groovy/community/README.md, file:/openhab/conf/automation/jsr223/python/community/README.md], py=[file:/openhab/conf/automation/jsr223/python/core/components/200_JythonItemChannelLinkProvider.py, file:/openhab/conf/automation/jsr223/python/core/components/100_OsgiEventTrigger.py, file:/openhab/conf/automation/jsr223/python/core/components/100_DirectoryTrigger.py, file:/openhab/conf/automation/jsr223/python/core/000_startup_delay.py]}
2019-07-18 13:30:58.533 [l.loader.ScriptFileWatcher] - in queue: {groovy=[file:/openhab/conf/automation/jsr223/groovy/core/000_startup_delay.groovy], md=[file:/openhab/conf/automation/jsr223/groovy/personal/README.md, file:/openhab/conf/automation/jsr223/groovy/community/README.md, file:/openhab/conf/automation/jsr223/python/community/README.md], py=[file:/openhab/conf/automation/jsr223/python/core/components/200_JythonItemChannelLinkProvider.py, file:/openhab/conf/automation/jsr223/python/core/components/100_OsgiEventTrigger.py, file:/openhab/conf/automation/jsr223/python/core/components/100_DirectoryTrigger.py, file:/openhab/conf/automation/jsr223/python/core/components/200_JythonTransform.py, file:/openhab/conf/automation/jsr223/python/core/000_startup_delay.py]}
2019-07-18 13:30:58.539 [l.loader.ScriptFileWatcher] - in queue: {groovy=[file:/openhab/conf/automation/jsr223/groovy/core/000_startup_delay.groovy], md=[file:/openhab/conf/automation/jsr223/groovy/personal/README.md, file:/openhab/conf/automation/jsr223/groovy/community/README.md, file:/openhab/conf/automation/jsr223/python/community/README.md], py=[file:/openhab/conf/automation/jsr223/python/core/components/200_JythonItemChannelLinkProvider.py, file:/openhab/conf/automation/jsr223/python/core/components/100_OsgiEventTrigger.py, file:/openhab/conf/automation/jsr223/python/core/components/100_DirectoryTrigger.py, file:/openhab/conf/automation/jsr223/python/core/components/200_JythonTransform.py, file:/openhab/conf/automation/jsr223/python/core/000_startup_delay.py, file:/openhab/conf/automation/jsr223/python/core/components/100_StartupTrigger.py]}
2019-07-18 13:30:58.540 [l.loader.ScriptFileWatcher] - in queue: {groovy=[file:/openhab/conf/automation/jsr223/groovy/core/000_startup_delay.groovy], md=[file:/openhab/conf/automation/jsr223/groovy/personal/README.md, file:/openhab/conf/automation/jsr223/groovy/community/README.md, file:/openhab/conf/automation/jsr223/python/community/README.md], py=[file:/openhab/conf/automation/jsr223/python/core/components/200_JythonItemChannelLinkProvider.py, file:/openhab/conf/automation/jsr223/python/core/components/200_JythonThingProvider.py, file:/openhab/conf/automation/jsr223/python/core/components/100_OsgiEventTrigger.py, file:/openhab/conf/automation/jsr223/python/core/components/100_DirectoryTrigger.py, file:/openhab/conf/automation/jsr223/python/core/components/200_JythonTransform.py, file:/openhab/conf/automation/jsr223/python/core/000_startup_delay.py, file:/openhab/conf/automation/jsr223/python/core/components/100_StartupTrigger.py]}
2019-07-18 13:30:58.552 [l.loader.ScriptFileWatcher] - in queue: {groovy=[file:/openhab/conf/automation/jsr223/groovy/core/000_startup_delay.groovy], md=[file:/openhab/conf/automation/jsr223/groovy/personal/README.md, file:/openhab/conf/automation/jsr223/groovy/community/README.md, file:/openhab/conf/automation/jsr223/python/community/README.md], py=[file:/openhab/conf/automation/jsr223/python/core/components/200_JythonItemChannelLinkProvider.py, file:/openhab/conf/automation/jsr223/python/core/components/200_JythonThingProvider.py, file:/openhab/conf/automation/jsr223/python/core/components/100_OsgiEventTrigger.py, file:/openhab/conf/automation/jsr223/python/core/components/200_JythonItemProvider.py, file:/openhab/conf/automation/jsr223/python/core/components/100_DirectoryTrigger.py, file:/openhab/conf/automation/jsr223/python/core/components/200_JythonTransform.py, file:/openhab/conf/automation/jsr223/python/core/000_startup_delay.py, file:/openhab/conf/automation/jsr223/python/core/components/100_StartupTrigger.py]}
2019-07-18 13:30:58.553 [l.loader.ScriptFileWatcher] - in queue: {groovy=[file:/openhab/conf/automation/jsr223/groovy/core/000_startup_delay.groovy], md=[file:/openhab/conf/automation/jsr223/groovy/personal/README.md, file:/openhab/conf/automation/jsr223/groovy/community/README.md, file:/openhab/conf/automation/jsr223/python/community/README.md], py=[file:/openhab/conf/automation/jsr223/python/core/components/200_JythonItemChannelLinkProvider.py, file:/openhab/conf/automation/jsr223/python/core/components/200_JythonThingProvider.py, file:/openhab/conf/automation/jsr223/python/core/components/100_OsgiEventTrigger.py, file:/openhab/conf/automation/jsr223/python/core/components/200_JythonItemProvider.py, file:/openhab/conf/automation/jsr223/python/core/components/100_DirectoryTrigger.py, file:/openhab/conf/automation/jsr223/python/core/components/200_JythonTransform.py, file:/openhab/conf/automation/jsr223/python/core/000_startup_delay.py, file:/openhab/conf/automation/jsr223/python/core/components/100_StartupTrigger.py, file:/openhab/conf/automation/jsr223/python/core/components/200_JythonBindingInfoProvider.py]}
2019-07-18 13:30:58.553 [l.loader.ScriptFileWatcher] - in queue: {groovy=[file:/openhab/conf/automation/jsr223/groovy/core/000_startup_delay.groovy], md=[file:/openhab/conf/automation/jsr223/groovy/personal/README.md, file:/openhab/conf/automation/jsr223/groovy/community/README.md, file:/openhab/conf/automation/jsr223/python/community/README.md], py=[file:/openhab/conf/automation/jsr223/python/core/components/200_JythonItemChannelLinkProvider.py, file:/openhab/conf/automation/jsr223/python/core/components/200_JythonThingProvider.py, file:/openhab/conf/automation/jsr223/python/core/components/100_OsgiEventTrigger.py, file:/openhab/conf/automation/jsr223/python/core/components/200_JythonItemProvider.py, file:/openhab/conf/automation/jsr223/python/core/components/100_DirectoryTrigger.py, file:/openhab/conf/automation/jsr223/python/core/components/200_JythonTransform.py, file:/openhab/conf/automation/jsr223/python/core/000_startup_delay.py, file:/openhab/conf/automation/jsr223/python/core/components/100_StartupTrigger.py, file:/openhab/conf/automation/jsr223/python/core/components/200_JythonBindingInfoProvider.py, file:/openhab/conf/automation/jsr223/python/core/components/200_JythonThingTypeProvider.py]}
2019-07-18 13:30:58.554 [l.loader.ScriptFileWatcher] - in queue: {groovy=[file:/openhab/conf/automation/jsr223/groovy/core/000_startup_delay.groovy], md=[file:/openhab/conf/automation/jsr223/groovy/personal/README.md, file:/openhab/conf/automation/jsr223/groovy/community/README.md, file:/openhab/conf/automation/jsr223/python/community/README.md], py=[file:/openhab/conf/automation/jsr223/python/core/components/200_JythonItemChannelLinkProvider.py, file:/openhab/conf/automation/jsr223/python/core/components/200_JythonThingProvider.py, file:/openhab/conf/automation/jsr223/python/core/components/100_OsgiEventTrigger.py, file:/openhab/conf/automation/jsr223/python/core/components/200_JythonItemProvider.py, file:/openhab/conf/automation/jsr223/python/core/components/100_DirectoryTrigger.py, file:/openhab/conf/automation/jsr223/python/core/components/200_JythonTransform.py, file:/openhab/conf/automation/jsr223/python/core/000_startup_delay.py, file:/openhab/conf/automation/jsr223/python/core/components/200_JythonExtensionProvider.py, file:/openhab/conf/automation/jsr223/python/core/components/100_StartupTrigger.py, file:/openhab/conf/automation/jsr223/python/core/components/200_JythonBindingInfoProvider.py, file:/openhab/conf/automation/jsr223/python/core/components/200_JythonThingTypeProvider.py]}
2019-07-18 13:30:58.554 [l.loader.ScriptFileWatcher] - in queue: {groovy=[file:/openhab/conf/automation/jsr223/groovy/core/000_startup_delay.groovy], md=[file:/openhab/conf/automation/jsr223/groovy/personal/README.md, file:/openhab/conf/automation/jsr223/groovy/community/README.md, file:/openhab/conf/automation/jsr223/python/community/README.md], py=[file:/openhab/conf/automation/jsr223/python/core/components/200_JythonItemChannelLinkProvider.py, file:/openhab/conf/automation/jsr223/python/core/components/200_JythonThingProvider.py, file:/openhab/conf/automation/jsr223/python/core/components/100_OsgiEventTrigger.py, file:/openhab/conf/automation/jsr223/python/core/components/200_JythonItemProvider.py, file:/openhab/conf/automation/jsr223/python/core/components/100_DirectoryTrigger.py, file:/openhab/conf/automation/jsr223/python/core/components/200_JythonTransform.py, file:/openhab/conf/automation/jsr223/python/personal/hello_world.py, file:/openhab/conf/automation/jsr223/python/core/000_startup_delay.py, file:/openhab/conf/automation/jsr223/python/core/components/200_JythonExtensionProvider.py, file:/openhab/conf/automation/jsr223/python/core/components/100_StartupTrigger.py, file:/openhab/conf/automation/jsr223/python/core/components/200_JythonBindingInfoProvider.py, file:/openhab/conf/automation/jsr223/python/core/components/200_JythonThingTypeProvider.py]}
2019-07-18 13:30:58.555 [l.loader.ScriptFileWatcher] - in queue: {groovy=[file:/openhab/conf/automation/jsr223/groovy/core/000_startup_delay.groovy], md=[file:/openhab/conf/automation/jsr223/groovy/personal/README.md, file:/openhab/conf/automation/jsr223/groovy/community/README.md, file:/openhab/conf/automation/jsr223/python/personal/README.md, file:/openhab/conf/automation/jsr223/python/community/README.md], py=[file:/openhab/conf/automation/jsr223/python/core/components/200_JythonItemChannelLinkProvider.py, file:/openhab/conf/automation/jsr223/python/core/components/200_JythonThingProvider.py, file:/openhab/conf/automation/jsr223/python/core/components/100_OsgiEventTrigger.py, file:/openhab/conf/automation/jsr223/python/core/components/200_JythonItemProvider.py, file:/openhab/conf/automation/jsr223/python/core/components/100_DirectoryTrigger.py, file:/openhab/conf/automation/jsr223/python/core/components/200_JythonTransform.py, file:/openhab/conf/automation/jsr223/python/personal/hello_world.py, file:/openhab/conf/automation/jsr223/python/core/000_startup_delay.py, file:/openhab/conf/automation/jsr223/python/core/components/200_JythonExtensionProvider.py, file:/openhab/conf/automation/jsr223/python/core/components/100_StartupTrigger.py, file:/openhab/conf/automation/jsr223/python/core/components/200_JythonBindingInfoProvider.py, file:/openhab/conf/automation/jsr223/python/core/components/200_JythonThingTypeProvider.py]}
2019-07-18 13:30:58.555 [l.loader.ScriptFileWatcher] - in queue: {groovy=[file:/openhab/conf/automation/jsr223/groovy/core/000_startup_delay.groovy], md=[file:/openhab/conf/automation/jsr223/groovy/personal/README.md, file:/openhab/conf/automation/jsr223/groovy/community/README.md, file:/openhab/conf/automation/jsr223/python/personal/README.md, file:/openhab/conf/automation/jsr223/javascript/community/README.md, file:/openhab/conf/automation/jsr223/python/community/README.md], py=[file:/openhab/conf/automation/jsr223/python/core/components/200_JythonItemChannelLinkProvider.py, file:/openhab/conf/automation/jsr223/python/core/components/200_JythonThingProvider.py, file:/openhab/conf/automation/jsr223/python/core/components/100_OsgiEventTrigger.py, file:/openhab/conf/automation/jsr223/python/core/components/200_JythonItemProvider.py, file:/openhab/conf/automation/jsr223/python/core/components/100_DirectoryTrigger.py, file:/openhab/conf/automation/jsr223/python/core/components/200_JythonTransform.py, file:/openhab/conf/automation/jsr223/python/personal/hello_world.py, file:/openhab/conf/automation/jsr223/python/core/000_startup_delay.py, file:/openhab/conf/automation/jsr223/python/core/components/200_JythonExtensionProvider.py, file:/openhab/conf/automation/jsr223/python/core/components/100_StartupTrigger.py, file:/openhab/conf/automation/jsr223/python/core/components/200_JythonBindingInfoProvider.py, file:/openhab/conf/automation/jsr223/python/core/components/200_JythonThingTypeProvider.py]}
2019-07-18 13:30:58.556 [l.loader.ScriptFileWatcher] - in queue: {groovy=[file:/openhab/conf/automation/jsr223/groovy/core/000_startup_delay.groovy], md=[file:/openhab/conf/automation/jsr223/groovy/personal/README.md, file:/openhab/conf/automation/jsr223/groovy/community/README.md, file:/openhab/conf/automation/jsr223/python/personal/README.md, file:/openhab/conf/automation/jsr223/javascript/community/README.md, file:/openhab/conf/automation/jsr223/python/community/README.md], py=[file:/openhab/conf/automation/jsr223/python/core/components/200_JythonItemChannelLinkProvider.py, file:/openhab/conf/automation/jsr223/python/core/components/200_JythonThingProvider.py, file:/openhab/conf/automation/jsr223/python/core/components/100_OsgiEventTrigger.py, file:/openhab/conf/automation/jsr223/python/core/components/200_JythonItemProvider.py, file:/openhab/conf/automation/jsr223/python/core/components/100_DirectoryTrigger.py, file:/openhab/conf/automation/jsr223/python/core/components/200_JythonTransform.py, file:/openhab/conf/automation/jsr223/python/personal/hello_world.py, file:/openhab/conf/automation/jsr223/python/core/000_startup_delay.py, file:/openhab/conf/automation/jsr223/python/core/components/200_JythonExtensionProvider.py, file:/openhab/conf/automation/jsr223/python/core/components/100_StartupTrigger.py, file:/openhab/conf/automation/jsr223/python/core/components/200_JythonBindingInfoProvider.py, file:/openhab/conf/automation/jsr223/python/core/components/200_JythonThingTypeProvider.py], js=[file:/openhab/conf/automation/jsr223/javascript/core/000_startup_delay.js]}
2019-07-18 13:30:58.556 [l.loader.ScriptFileWatcher] - in queue: {groovy=[file:/openhab/conf/automation/jsr223/groovy/core/000_startup_delay.groovy], md=[file:/openhab/conf/automation/jsr223/javascript/personal/README.md, file:/openhab/conf/automation/jsr223/groovy/personal/README.md, file:/openhab/conf/automation/jsr223/groovy/community/README.md, file:/openhab/conf/automation/jsr223/python/personal/README.md, file:/openhab/conf/automation/jsr223/javascript/community/README.md, file:/openhab/conf/automation/jsr223/python/community/README.md], py=[file:/openhab/conf/automation/jsr223/python/core/components/200_JythonItemChannelLinkProvider.py, file:/openhab/conf/automation/jsr223/python/core/components/200_JythonThingProvider.py, file:/openhab/conf/automation/jsr223/python/core/components/100_OsgiEventTrigger.py, file:/openhab/conf/automation/jsr223/python/core/components/200_JythonItemProvider.py, file:/openhab/conf/automation/jsr223/python/core/components/100_DirectoryTrigger.py, file:/openhab/conf/automation/jsr223/python/core/components/200_JythonTransform.py, file:/openhab/conf/automation/jsr223/python/personal/hello_world.py, file:/openhab/conf/automation/jsr223/python/core/000_startup_delay.py, file:/openhab/conf/automation/jsr223/python/core/components/200_JythonExtensionProvider.py, file:/openhab/conf/automation/jsr223/python/core/components/100_StartupTrigger.py, file:/openhab/conf/automation/jsr223/python/core/components/200_JythonBindingInfoProvider.py, file:/openhab/conf/automation/jsr223/python/core/components/200_JythonThingTypeProvider.py], js=[file:/openhab/conf/automation/jsr223/javascript/core/000_startup_delay.js]}
2019-07-18 13:30:58.654 [.module.script.rulesupport] - ServiceEvent REGISTERED - {org.openhab.core.automation.module.script.rulesupport.shared.ScriptedRuleProvider, org.openhab.core.automation.RuleProvider}={service.id=407, service.bundleid=268, service.scope=bundle, component.name=org.openhab.core.automation.module.script.rulesupport.shared.ScriptedRuleProvider, component.id=261} - org.openhab.core.automation.module.script.rulesupport
2019-07-18 13:30:58.657 [.module.script.rulesupport] - ServiceEvent REGISTERED - {org.openhab.core.automation.module.script.ScriptExtensionProvider}={service.id=408, service.bundleid=268, service.scope=bundle, component.name=org.openhab.core.automation.module.script.rulesupport.internal.RuleSupportScriptExtension, component.id=256} - org.openhab.core.automation.module.script.rulesupport
2019-07-18 13:30:58.689 [.module.script.rulesupport] - BundleEvent STARTED - org.openhab.core.automation.module.script.rulesupport
2019-07-18 13:30:58.710 [enhab.core.automation.rest] - BundleEvent STARTING - org.openhab.core.automation.rest
2019-07-18 13:30:58.863 [enhab.core.automation.rest] - ServiceEvent REGISTERED - {org.eclipse.smarthome.io.rest.RESTResource}={service.id=409, service.bundleid=269, service.scope=bundle, component.name=org.openhab.core.automation.rest.internal.ModuleTypeResource, component.id=262} - org.openhab.core.automation.rest
2019-07-18 13:30:59.044 [enhab.core.automation.rest] - ServiceEvent REGISTERED - {org.eclipse.smarthome.io.rest.RESTResource}={service.id=410, service.bundleid=269, service.scope=bundle, component.name=org.openhab.core.automation.rest.internal.RuleResource, component.id=263} - org.openhab.core.automation.rest
2019-07-18 13:30:59.129 [enhab.core.automation.rest] - ServiceEvent REGISTERED - {org.eclipse.smarthome.io.rest.RESTResource}={service.id=411, service.bundleid=269, service.scope=bundle, component.name=org.openhab.core.automation.rest.internal.TemplateResource, component.id=264} - org.openhab.core.automation.rest
2019-07-18 13:30:59.259 [enhab.core.automation.rest] - BundleEvent STARTED - org.openhab.core.automation.rest
2019-07-18 13:31:11.067 [on.internal.RuleEngineImpl] - ModuleHandlerFactory added WebPushNotificationModuleHandlerFactory
2019-07-18 13:31:23.577 [l.loader.ScriptFileWatcher] - Loading script 'javascript/core/000_startup_delay.js'
2019-07-18 13:31:24.435 [al.ScriptEngineManagerImpl] - Added ScriptEngine for language 'js' with identifier: file:/openhab/conf/automation/jsr223/javascript/core/000_startup_delay.js
2019-07-18 13:31:24.752 [ascript.core.startup_delay] - Checking for initialized context
2019-07-18 13:31:24.834 [ascript.core.startup_delay] - Context initialized... waiting 30s before allowing scripts to load
2019-07-18 13:31:54.965 [ascript.core.startup_delay] - Complete
2019-07-18 13:31:54.966 [al.ScriptEngineManagerImpl] - scriptLoaded() is not defined in the script: file:/openhab/conf/automation/jsr223/javascript/core/000_startup_delay.js
2019-07-18 13:31:54.967 [l.loader.ScriptFileWatcher] - Script loaded: javascript/core/000_startup_delay.js
2019-07-18 13:31:54.969 [l.loader.ScriptFileWatcher] - Loading script 'python/core/000_startup_delay.py'
2019-07-18 13:31:59.569 [al.ScriptEngineManagerImpl] - Added ScriptEngine for language 'py' with identifier: file:/openhab/conf/automation/jsr223/python/core/000_startup_delay.py
2019-07-18 13:31:59.628 [.jython.core.startup_delay] - Checking for initialized context
2019-07-18 13:31:59.628 [.jython.core.startup_delay] - Context initialized... waiting 30s before allowing scripts to load
2019-07-18 13:32:29.630 [.jython.core.startup_delay] - Complete
2019-07-18 13:32:29.630 [al.ScriptEngineManagerImpl] - scriptLoaded() is not defined in the script: file:/openhab/conf/automation/jsr223/python/core/000_startup_delay.py
2019-07-18 13:32:29.630 [l.loader.ScriptFileWatcher] - Script loaded: python/core/000_startup_delay.py
2019-07-18 13:32:29.632 [l.loader.ScriptFileWatcher] - Loading script 'python/core/components/100_DirectoryTrigger.py'
2019-07-18 13:32:29.632 [al.ScriptEngineManagerImpl] - Added ScriptEngine for language 'py' with identifier: file:/openhab/conf/automation/jsr223/python/core/components/100_DirectoryTrigger.py
2019-07-18 13:32:30.750 [al.ScriptEngineManagerImpl] - Error during evaluation of script 'file:/openhab/conf/automation/jsr223/python/core/components/100_DirectoryTrigger.py': ImportError: No module named configuration in <script> at line number 21
2019-07-18 13:32:30.750 [l.loader.ScriptFileWatcher] - Script loaded: python/core/components/100_DirectoryTrigger.py
2019-07-18 13:32:30.752 [l.loader.ScriptFileWatcher] - Loading script 'python/core/components/100_OsgiEventTrigger.py'
2019-07-18 13:32:30.753 [al.ScriptEngineManagerImpl] - Added ScriptEngine for language 'py' with identifier: file:/openhab/conf/automation/jsr223/python/core/components/100_OsgiEventTrigger.py
2019-07-18 13:32:31.325 [al.ScriptEngineManagerImpl] - Error during evaluation of script 'file:/openhab/conf/automation/jsr223/python/core/components/100_OsgiEventTrigger.py': ImportError: No module named configuration in <script> at line number 17
2019-07-18 13:32:31.325 [l.loader.ScriptFileWatcher] - Script loaded: python/core/components/100_OsgiEventTrigger.py
2019-07-18 13:32:31.327 [l.loader.ScriptFileWatcher] - Loading script 'python/core/components/100_StartupTrigger.py'
2019-07-18 13:32:31.327 [al.ScriptEngineManagerImpl] - Added ScriptEngine for language 'py' with identifier: file:/openhab/conf/automation/jsr223/python/core/components/100_StartupTrigger.py
2019-07-18 13:32:31.398 [al.ScriptEngineManagerImpl] - Error during evaluation of script 'file:/openhab/conf/automation/jsr223/python/core/components/100_StartupTrigger.py': ImportError: No module named configuration in <script> at line number 16
2019-07-18 13:32:31.399 [l.loader.ScriptFileWatcher] - Script loaded: python/core/components/100_StartupTrigger.py
2019-07-18 13:32:31.400 [l.loader.ScriptFileWatcher] - Loading script 'python/core/components/200_JythonBindingInfoProvider.py'
2019-07-18 13:32:31.401 [al.ScriptEngineManagerImpl] - Added ScriptEngine for language 'py' with identifier: file:/openhab/conf/automation/jsr223/python/core/components/200_JythonBindingInfoProvider.py
2019-07-18 13:32:31.553 [al.ScriptEngineManagerImpl] - Error during evaluation of script 'file:/openhab/conf/automation/jsr223/python/core/components/200_JythonBindingInfoProvider.py': ImportError: No module named configuration in <script> at line number 19
2019-07-18 13:32:31.554 [l.loader.ScriptFileWatcher] - Script loaded: python/core/components/200_JythonBindingInfoProvider.py
2019-07-18 13:32:31.555 [l.loader.ScriptFileWatcher] - Loading script 'python/core/components/200_JythonExtensionProvider.py'
2019-07-18 13:32:31.556 [al.ScriptEngineManagerImpl] - Added ScriptEngine for language 'py' with identifier: file:/openhab/conf/automation/jsr223/python/core/components/200_JythonExtensionProvider.py
2019-07-18 13:32:32.117 [al.ScriptEngineManagerImpl] - Error during evaluation of script 'file:/openhab/conf/automation/jsr223/python/core/components/200_JythonExtensionProvider.py': ImportError: No module named configuration in <script> at line number 29
2019-07-18 13:32:32.117 [l.loader.ScriptFileWatcher] - Script loaded: python/core/components/200_JythonExtensionProvider.py
2019-07-18 13:32:32.119 [l.loader.ScriptFileWatcher] - Loading script 'python/core/components/200_JythonItemChannelLinkProvider.py'
2019-07-18 13:32:32.119 [al.ScriptEngineManagerImpl] - Added ScriptEngine for language 'py' with identifier: file:/openhab/conf/automation/jsr223/python/core/components/200_JythonItemChannelLinkProvider.py
2019-07-18 13:32:32.198 [al.ScriptEngineManagerImpl] - Error during evaluation of script 'file:/openhab/conf/automation/jsr223/python/core/components/200_JythonItemChannelLinkProvider.py': ImportError: No module named configuration in <script> at line number 18
2019-07-18 13:32:32.198 [l.loader.ScriptFileWatcher] - Script loaded: python/core/components/200_JythonItemChannelLinkProvider.py
2019-07-18 13:32:32.200 [l.loader.ScriptFileWatcher] - Loading script 'python/core/components/200_JythonItemProvider.py'
2019-07-18 13:32:32.200 [al.ScriptEngineManagerImpl] - Added ScriptEngine for language 'py' with identifier: file:/openhab/conf/automation/jsr223/python/core/components/200_JythonItemProvider.py
2019-07-18 13:32:32.238 [al.ScriptEngineManagerImpl] - Error during evaluation of script 'file:/openhab/conf/automation/jsr223/python/core/components/200_JythonItemProvider.py': ImportError: No module named configuration in <script> at line number 10
2019-07-18 13:32:32.239 [l.loader.ScriptFileWatcher] - Script loaded: python/core/components/200_JythonItemProvider.py
2019-07-18 13:32:32.240 [l.loader.ScriptFileWatcher] - Loading script 'python/core/components/200_JythonThingProvider.py'
2019-07-18 13:32:32.241 [al.ScriptEngineManagerImpl] - Added ScriptEngine for language 'py' with identifier: file:/openhab/conf/automation/jsr223/python/core/components/200_JythonThingProvider.py
2019-07-18 13:32:32.306 [al.ScriptEngineManagerImpl] - Error during evaluation of script 'file:/openhab/conf/automation/jsr223/python/core/components/200_JythonThingProvider.py': ImportError: No module named configuration in <script> at line number 17
2019-07-18 13:32:32.307 [l.loader.ScriptFileWatcher] - Script loaded: python/core/components/200_JythonThingProvider.py
2019-07-18 13:32:32.309 [l.loader.ScriptFileWatcher] - Loading script 'python/core/components/200_JythonThingTypeProvider.py'
2019-07-18 13:32:32.310 [al.ScriptEngineManagerImpl] - Added ScriptEngine for language 'py' with identifier: file:/openhab/conf/automation/jsr223/python/core/components/200_JythonThingTypeProvider.py
2019-07-18 13:32:32.392 [al.ScriptEngineManagerImpl] - Error during evaluation of script 'file:/openhab/conf/automation/jsr223/python/core/components/200_JythonThingTypeProvider.py': ImportError: No module named configuration in <script> at line number 17
2019-07-18 13:32:32.393 [l.loader.ScriptFileWatcher] - Script loaded: python/core/components/200_JythonThingTypeProvider.py
2019-07-18 13:32:32.395 [l.loader.ScriptFileWatcher] - Loading script 'python/core/components/200_JythonTransform.py'
2019-07-18 13:32:32.395 [al.ScriptEngineManagerImpl] - Added ScriptEngine for language 'py' with identifier: file:/openhab/conf/automation/jsr223/python/core/components/200_JythonTransform.py
2019-07-18 13:32:32.471 [al.ScriptEngineManagerImpl] - Error during evaluation of script 'file:/openhab/conf/automation/jsr223/python/core/components/200_JythonTransform.py': ImportError: No module named configuration in <script> at line number 19
2019-07-18 13:32:32.471 [l.loader.ScriptFileWatcher] - Script loaded: python/core/components/200_JythonTransform.py
2019-07-18 13:32:32.473 [l.loader.ScriptFileWatcher] - Loading script 'python/personal/hello_world.py'
2019-07-18 13:32:32.474 [al.ScriptEngineManagerImpl] - Added ScriptEngine for language 'py' with identifier: file:/openhab/conf/automation/jsr223/python/personal/hello_world.py
2019-07-18 13:32:33.548 [al.ScriptEngineManagerImpl] - Error during evaluation of script 'file:/openhab/conf/automation/jsr223/python/personal/hello_world.py': ImportError: No module named configuration in <script> at line number 5
2019-07-18 13:32:33.549 [l.loader.ScriptFileWatcher] - Script loaded: python/personal/hello_world.py

I spot checked a couple of these files, including hello_world.py and I don’t actually see it trying to import “configuration” anywhere.

Is this another ID10T problem or did I uncover a problem?

:+1:

:partying_face:

Take a look at step 8 of the installation… remove the ‘.example’ from /automation/lib/python/configuration.py.example.

The errors were due to nearly every module and script importing LOG_PREFIX from core.log, and core.log importing LOG_PREFIX from configuration.

Hmmmm. I admit I must have skipped over that step, but why do we have to manually rename it? Shouldn’t there be a default version of the file there that allows the scripts to work as is? I’m sure there is some technical reason but it seems an odd step.

Anyway, I’ve got hello world working.

Ultimately I will probably focus primarily on JSON Rules so I’m closer to where the new users will be working, but I can start to get a feel for the Helper Libraries in the mean time by moving my system off of Rules DSL. It will probably take awhile to become proficient. I bet my Jython Rules will continue to look a whole lot like Rules DSL for the time being. You can write Fortran in any language. :wink:

Thanks!

I did this to eliminate the possibility of people overwriting their settings during an upgrade. The community scripts and modules may also use configuration.py, so they are setup like this too. Similar to when you update an app from a repository and the updated confs come down as some.conf.rpmnew.

2 Likes

Wouldn’t it make sense to have a file named default.configuration.py that is deployed in the distro while the own configuration (if needed - I didn’t edit it at all so far apart from renaming it) would then have to be named configuration.py

I’m working on an install script that will make sure you have a config file in place, if not it will install the default.

I’ve started the work of transferring and have already updated one DP (still one example to go though). As I finish them should I submit them to the docs? Are there any plans to migrate the docs to the OH official docs?

No, I don’t think so… you’d run into the same trouble when there is an update to default.configuration.py. I don’t see a way around making this a manual step.

Updates to the file will be tricky to manage, but we’ll run into the same when I get the addon together.

That would be great! We can then talk through this one too.

I had spent a lot of time separating out all of the non-helper library information, but that all got scrapped with the rewrite, and I haven’t looked back into it due to…

It’s crossed my mind, haven’t come up with a way around it though

ToD is next on my list. I’ve Separation of Behaviors done and will get that checked in this weekend. What do you use to edit pages? I’m used to markdown but the pages are in raw HTML? I’ll use what’s there as a template but if there’s is a VSCode plugin or stead alone editor it might speed the process a bit.

In my opinion, I’d like the helper library become something that is just available by default, in which case the entire docs would move over, right?

Have a look at this page for info on writing docs. They are written in ReStructuredText and built using Sphinx.

I use VS Code. There’s a plugin for reST preview, but it’s been fiddly at times and I’m not sure what I did to get it working again when it stops :slightly_smiling_face:. When I figure it out, I’ll doc it.

This is all a WIP, so it’s tough to answer. A Jython ScriptEngine addon will help with the install of Jython, and the core helper libraries could be easily included inside of it. I’m actually working on putting them into a custom Jython stand-alone jar, which makes the installation for core very easy. BUT once we have a Scripting API, the helper libraries won’t be needed (for the most part). There’s a bit of discussion and effort needed yet to get automation collaboration (with templates) setup too.

So, my crystal ball says that the official OH docs will evolve as the Scripting API is built out and will not include docs for the helper libraries.

When you upgrade a package on a Debian-based OS (e.g. Raspbian, Ubuntu), then some installers will compare configuration files during the upgrade. When they see a difference, then they will prompt with a choice: keep current file, use file from the distribution, start a command shell to compare both files.

I would rather suggest having a configuration file from the distribution, and then check for the existence of a local configuration file. This way, the distribution-specific configuration can be separated from local customisations. The installer then only needs to check the distribution-specific file hasn’t been tampered with, and could then check that a local config file exists (without parsing it).