sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #23760
Re: [Question #242920]: Issue when accessing to MySQL database
Question #242920 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/242920
Status: Answered => Open
rod is still having a problem:
OK, now it's more clear to me.
1) I downloaded the java mysql connector and added an env variable :
CLASSPATH = C:\Program Files (x86)\MySQL\MySQL Connector J\mysql-connector-java-5.1.28-bin
2) I downloaded a standalone jython-standalone-2.5.3.jar in "C:\Jython"
and :
set cp=C:\Program Files (x86)\MySQL\MySQL Connector J\mysql-connector-java-5.1.28-bin.jar
set cp=%cp%;C:\Jython\jython-standalone-2.5.3.jar
3) I opened a Jython session with :
java -cp "%cp%;C:\apps\SikuliX" org.python.util.jython
>>> con = zxJDBC.connect(j, u, p, m)
and I could connect to my Mysql database and make same select without
problems !!
4) Then I tried to import sikuli :
>>> from sikuli import *
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named sikuli
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.