sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #00653
Re: [Question #141848]: sikuli x 1.0 rc1 crash
Question #141848 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/141848
Status: Needs information => Answered
RaiMan proposed the following answer:
ok, made my tests on Win7 32 Bit.
I had no problems with the following configuration:
- installed Sikuli X in standard way using the installer
-- It is then in folder c:\Program Files\Sikuli X\
-- the needed entry c:\Program Files\Sikuli X\libs is added by the installer to system path
- added the also needed c:\Java\jre6\bin to system path manually
- so all dynamic libraries will be found in any cases
- used the following .cmd for testing
set SikHome=c:\Program Files\Sikuli X\
set SikScript=%SikHome%sikuli-script.jar
set JavaParm=-Xms64M -Xmx512M -Dfile.encoding=UTF-8
java %JavaParm% -jar "%SikScript%" testunittest.sikuli
pause
the JavaParm are the recommended Java parameters. -Dpython.path ... is
not needed when using sikuli-script.jar to run a script (since java
automatically puts ...jar/Lib into the python sys.path
- content of testunittest.sikuli
import unittest
class TestDemo(unittest.TestCase):
def setUp(self):
print "in Setup"
def tearDown(self):
print "in tearDown"
def test_empty(self):
print "in test"
self.failUnless(True)
def suite():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(TestDemo))
return suite
unittest.TextTestRunner().run(suite())
- running the test I got the following output in all cases (with or
without java parameters)
Sikuli vision engine loaded.
Text Recgonizer inited.
Windows utilities loaded.
VDictProxy loaded.
EventManager loaded.
in Setup
in test
in tearDown
.
----------------------------------------------------------------------
Ran 1 test in 0.000s
OK
[debug] close all ScreenHighlighter
Exception in thread "main" Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Program Files\Sikuli X\sikuli-script.jar\Lib\sikuli\Sikuli.py", line 153, in exit
SystemExit: 0
which means: works (besides from the known bug with the System.exit()
exception)
Recommendation: try out this setup! (use everything from Sikuli X from
its standard places, no copy of Sikuli distribution components somwhere
else)
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.