openhab-scripters/openhab-helper-libraries

Under Windows 10 jython does not load

kovacsi2899 opened this issue · 5 comments

I set up everything based on instructions. Javascript rules are working, but Groovy and Python rules are not loading with following error message in openhab.log :

ScriptEngine for py not available

last 3 lines are setnev.bat:
set JAVA=%JAVA_HOME%\bin\java
set EXTRA_JAVA_OPTS=-Xbootclasspath/a:C:\openhab2\conf\automation\jython\jython-standalone-2.7.0.jar -Dpython.home=C:\openhab2\conf\automation\jython -Dpython.path=C:\openhab2\conf\automation\lib\python
:Check_JAVA_END

I have also added as windows enviroment variable, but it does not work.
I think problem is that jython-standalone-2.7.0.jar is not loaded or rule engine can't access.

here is log of ruleengine startup:
OH_Restart_Ruleengine.log

5iver commented

Why open another issue?

Duplicate of #297.

Can you give me a link where should I open it? I can't give a tag and I hasn't found standalone repository.

5iver commented

Sorry! Thought you were familiar with the openHAB forum... https://community.openhab.org/.

Yes I am familiar with it: https://community.openhab.org/t/windows-using-extra-java-opts/75624/4
but my issue is still the same. I have installed 2.5R1 and no change so I used this workarond: https://community.openhab.org/t/windows-all-oh-logs-stop-when-jython-is-in-the-classpath/79654/21 but the problem is when any Phyton or Jythone rules are starting none of the libraries are loaded. I get such error messages: Error during evaluation of script 'file:/C:/openHAB2/conf/automation/jsr223/python/personal/hello_world.py': ImportError: No module named core in <script> at line number 5
line 5:
image