Hi OH community,
UPDATE: Solved! I still had a org.joda.time
import in configuration.py
which caused it to be skipped…
I have been absent from this forum and have not touched OpenHAB for quite a while because I was busy with other stuff (like starting my own business). Currently I am still running OH 2.5 in a container.
I use text-based configuration and copied the basic configuration to a new OH 3.3.0 Docker installation (using the official image), with just a few things, items, InfluxDB persistence and a few Python scripts copied. As part of the Python scripting support I installed the Helper Libaries as described by @CrazyIvan359 in Python Helper Libraries. The scripts did get loaded and a test script triggered, but I still get an error:
[INFO ] [e.automation.internal.RuleEngineImpl] - Rule engine started.
[INFO ] [rulesupport.loader.ScriptFileWatcher] - Loading script '/openhab/conf/automation/jsr223/python/core/000_Startup.py'
[WARN ] [jython.startup ] -
*******************************************************************************
Jython version: 2.7.2.final
Operating system: Linux
OS Version: 5.10.0-15-cloud-amd64
Java vendor: Eclipse Adoptium
Java VM name: OpenJDK 64-Bit Server VM
Java runtime name: OpenJDK Runtime Environment
Java runtime version: 11.0.15+10
configuration.py installed: False
sys.path: /openhab/conf/automation/lib/python
/openhab/userdata/cache/org.eclipse.osgi/245/0/bundleFile/Lib
__classpath__
__pyclasspath__/
*******************************************************************************
[INFO ] [rulesupport.loader.ScriptFileWatcher] - Loading script '/openhab/conf/automation/jsr223/python/core/components/100_DirectoryTrigger.py'
[WARN ] [jython.core.log ] - The 'configuration.py' file is missing from the python.path!
[INFO ] [rulesupport.loader.ScriptFileWatcher] - Loading script '/openhab/conf/automation/jsr223/python/core/components/100_StartupTrigger.py'
[WARN ] [jython.core.log ] - The 'configuration.py' file is missing from the python.path!
[INFO ] [rulesupport.loader.ScriptFileWatcher] - Loading script '/openhab/conf/automation/jsr223/python/personal/hue_set_scene.py'
[WARN ] [jython.core.log ] - The 'configuration.py' file is missing from the python.path!
[INFO ] [rulesupport.loader.ScriptFileWatcher] - Loading script '/openhab/conf/automation/jsr223/python/personal/test.py'
[INFO ] [org.openhab.core.automation.examples] - Hello world!
The file configuration.py
is however present in /openhab/conf/automation/lib/python
.
I must be missing some step… suggestions where to start looking?