← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #272164]: SikuliX on sonatype

 

Question #272164 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/272164

Stephen posted a new comment:
Hi, 
Thanks for the speedy response. 

Fundamentally we are providing a way for a Java process to enumerate the
xxx.sikuli‘s, and then for each sikuli using the Jython reflection to
enumerate all the functions. We then provide a facility for the python
function to be called.

The thing that we are falling over on is where we try and include the
Sikuli base python methods:

pythonInterpreter.exec("from sikuli.Sikuli import *");


When this is executed in the absence of the sikuli.jar we get the following error.

Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named sikuli

	at org.python.core.Py.ImportError(Py.java:296)
	at org.python.core.imp.import_first(imp.java:774)
	at org.python.core.imp.import_module_level(imp.java:856)
	at org.python.core.imp.importName(imp.java:936)
	at org.python.core.ImportFunction.__call__(__builtin__.java:1278)
	at org.python.core.PyObject.__call__(PyObject.java:373)
	at org.python.core.__builtin__.__import__(__builtin__.java:1231)
	at org.python.core.imp.importAll(imp.java:1056)
	at org.python.pycode._pyx11.f$0(<string>:1)
	at org.python.pycode._pyx11.call_function(<string>)
	at org.python.core.PyTableCode.call(PyTableCode.java:165)
	at org.python.core.PyCode.call(PyCode.java:18)
	at org.python.core.Py.runCode(Py.java:1302)
	at org.python.core.Py.exec(Py.java:1346)
	at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:206)
	at org.chorusbdd.chorus.sikulix.SikuliManager.populateSikuliPathFromRootsInPythonInterpretor(SikuliManager.java:44)


You can see the current fork with the early sikuli integration code in: 

https://github.com/lakestephen/Chorus/blob/master/chorus-
sikulix/src/main/java/org/chorusbdd/chorus/sikulix/SikuliManager.java

look specifically at the
populateSikuliPathFromRootsInPythonInterpretor() method

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.