sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #05714
[Question #172591]: Region Operations Throw Exception in Win7
New question #172591 on Sikuli:
https://answers.launchpad.net/sikuli/+question/172591
Have been running jUnit tests using Sikuli in Eclipse. Built a dozen tests, and started to use Region operations, like right() and left(). Am getting exceptions thrown. Have had no problems with operations like type, wait, click, and exists.
A simple statement like
Region region = Region.create(100,100,50,50);
will cause the exception in my environment. I am running Win 7 64 bit, with a 32bit JRE and Eclipse in 32 bit. Included sikuli-script.jar in classpath and installed Sikuli into the default location specified by the Windows Installer.
See stacktrace below.
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named sikuli
at org.python.core.PyException.fillInStackTrace(PyException.java:70)
at java.lang.Throwable.<init>(Throwable.java:181)
at java.lang.Exception.<init>(Unknown Source)
at java.lang.RuntimeException.<init>(Unknown Source)
at org.python.core.PyException.<init>(PyException.java:46)
at org.python.core.PyException.<init>(PyException.java:43)
at org.python.core.PyException.<init>(PyException.java:61)
at org.python.core.Py.ImportError(Py.java:264)
at org.python.core.imp.import_first(imp.java:657)
at org.python.core.imp.import_name(imp.java:741)
at org.python.core.imp.importName(imp.java:791)
at org.python.core.ImportFunction.__call__(__builtin__.java:1236)
at org.python.core.PyObject.__call__(PyObject.java:367)
at org.python.core.__builtin__.__import__(__builtin__.java:1207)
at org.python.core.imp.importFromAs(imp.java:869)
at org.python.core.imp.importFrom(imp.java:845)
at org.python.pycode._pyx0.f$0(<string>:1)
at org.python.pycode._pyx0.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:1197)
at org.python.core.Py.exec(Py.java:1241)
at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:138)
at org.sikuli.script.Region.toJythonRegion(Region.java:993)
at org.sikuli.script.Region.create(Region.java:130)
at org.sikuli.script.Region.create(Region.java:104)
at org.sikuli.script.Region.right(Region.java:314)
at org.sikuli.script.Region.right(Region.java:309)
at com.thingbase.tests.TestLogin.testEmptyPassword(TestLogin.java:115)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.