sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #50521
Re: [Question #678478]: How to import cx_Oracle library into python SikuliX script --- not possible (C-based)
Question #678478 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/678478
ANTONIO CARLOS PAES NASCIMENTO posted a new comment:
Thanks man,
I found this question
https://answers.launchpad.net/sikuli/+question/286612 and I think this
solve my problem, however when I run rour example I got this errors in
the message area from sikulix IDE:
[error] Error caused by: Traceback (most recent call last): File "C:\Users\BRX Retail\Desktop\Testes_automatic\test)open_app.sikuli\test)open_app.py", line 4, in <module> result = run(cmd) File "C:\Users\BRX Retail\AppData\Roaming\Sikulix\Lib\sikuli\Sikuli.py", line 555, in run return Sikulix.run(cmd) at java.util.Formatter.checkText(Unknown Source)
at java.util.Formatter.parse(Unknown Source)
at java.util.Formatter.format(Unknown Source)
at java.util.Formatter.format(Unknown Source)
at java.lang.String.format(Unknown Source)
at org.sikuli.basics.Debug.log(Debug.java:726)
at org.sikuli.basics.Debug.logx(Debug.java:691)
at org.sikuli.script.RunTime.log(RunTime.java:97)
at org.sikuli.script.RunTime.runcmd(RunTime.java:2952)
at org.sikuli.script.Sikulix.run(Sikulix.java:550)
at org.sikuli.script.Sikulix.run(Sikulix.java:546)
at sun.reflect.GeneratedMethodAccessor72.invoke(Unknown Source)
at sun.reflect.D
elegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
java.util.UnknownFormatConversionException: java.util.UnknownFormatConversionException: Conversion = '1'
This is my script:
python = r"C:\Users\BRX Retail\AppData\Local\Programs\Python\Python38-32\"
pyscript = r"C:\Users\BRX Retail\Desktop\teste.py"
cmd = "%s %s" % (python, pyscript)
result = run(cmd)
print(result)
#teste.py
import cx_Oracle
# Connect as user "hr" with password "welcome" to the "oraclepdb" service running on this computer.
con = cx_Oracle.connect('user/passwd@host')
#cursor = con.cursor()
#cursor.execute("""
# SELECT *
# FROM table
# """)
#res = cursor.fetchmany(numRows=10)
print("BLABLA")
You already see this?
Thanks
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.