- Platform information:
- Hardware: _CPUArchitecture/RAM/storage_RaspberriPi3
- OS: what OS is used and which version
- Java Runtime Environment: _which java platform is used and what version_jython-standalone-2.7.0
- openHAB version:
After upgrading from 2.4 to 2.5.5 Release build many issues most easily fixed from these forums thanks.
Last issues all seem to be the same the error is
2020-06-16 16:48:02.239 [INFO ] [me.core.service.AbstractWatchService] - Loading script ‘python/core/components/100_OsgiEventTrigger.py’
2020-06-16 16:48:02.712 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - Error during evaluation of script ‘file:/etc/openhab2/automation/jsr223/python/core/components/100_OsgiEventTrigger.py’: ImportError: cannot import name bundle_context in at line number 8
They all seem similar here’s the beginning of the file
This rule trigger responds to events on the OSGi EventAdmin event bus.
scriptExtension.importPreset(None)# fix for compatibility with Jython > 2.7.0
from core.osgi.events import OsgiEventAdmin, event_dict, OSGI_TRIGGERS
from core.log import logging, LOG_PREFIX
Thanks for any help