sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #33804
[Question #269456]: sikuli and jython2.7.0
New question #269456 on Sikuli:
https://answers.launchpad.net/sikuli/+question/269456
Hello!
I have some problem using Sikuli with Jython2.7.0 on Windows 7 x64.
I did install Jython2.7.0, and add syspath for sikuli-java.jar.
I tried to import sikuli, but It fails with error "ImportError: cannot import name Debug".
so I added another path, "C:\sikuli\sikuli-java.jar\org", but It doesn't help :(
how can I solve this problem?
thanks for your help.
(below is what I did for import sikuli)
---------------------------------------------------------------------------------------------------------
c:\jython2.7.0\bin>jython
Jython 2.7.0 (default:9987c746f838, Apr 29 2015, 02:25:11)
[Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)] on java1.8.0_45
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path.insert(6,'C:\sikuli\sikuli-java.jar\Lib')
>>> sys.path
['', 'C:\\jython2.7.0\\Lib\\site-packages\\redis-2.10.3-py2.7.egg', 'C:\\jython
.7.0\\Lib', '__classpath__', '__pyclasspath__/', 'C:\\jython2.7.0\\Lib\\site-pa
kages', 'C:\\sikuli\\sikuli-java.jar\\Lib']
>>> from sikuli import *
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\sikuli\sikuli-java.jar\Lib\sikuli\__init__.py", line 5, in <module>
ImportError: cannot import name Debug
>>> sys.path.insert(7,'C:\sikuli\sikuli-java.jar\org')
>>>
>>>
>>> from sikuli import *
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\sikuli\sikuli-java.jar\Lib\sikuli\__init__.py", line 5, in <module>
ImportError: cannot import name Debug
>>> sys.path
['', 'C:\\jython2.7.0\\Lib\\site-packages\\redis-2.10.3-py2.7.egg', 'C:\\jython
.7.0\\Lib', '__classpath__', '__pyclasspath__/', 'C:\\jython2.7.0\\Lib\\site-pa
kages', 'C:\\sikuli\\sikuli-java.jar\\Lib', 'C:\\sikuli\\sikuli-java.jar\\org']
>>>
---------------------------------------------------------------------------------------------------------
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.