openhab-scripters / openhab-helper-libraries

Scripts and modules for use with openHAB
Eclipse Public License 1.0
88 stars 69 forks source link

Under Windows 10 jython does not load #298

Closed kovacsi2899 closed 4 years ago

kovacsi2899 commented 4 years ago

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 4 years ago

Why open another issue?

Duplicate of #297.

kovacsi2899 commented 4 years ago

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 4 years ago

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

kovacsi2899 commented 4 years ago

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 Githubissues.

  • Githubissues is a development platform for aggregating issues.