sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #50005
Re: [Question #677179]: Sikuli python scripting in visual studio
Question #677179 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/677179
Status: Answered => Open
mohammad is still having a problem:
when adding the libraries from sikulixapi.jar from visual basic like:
sys.path.append("C:\jython2.7.0\Lib\site-packages\sikulixapi")
sys.path.append("C:\jython2.7.0\Lib\site-packages\sikulixapi\Lib")
after running import sikuli I get the following error:
Traceback (most recent call last):
File "c:\program files (x86)\microsoft visual studio\2017\professional\common7\ide\extensions\microsoft\python\core\ptvsd_repl_launcher.py", line 130, in <module>
_run_repl()
File "c:\program files (x86)\microsoft visual studio\2017\professional\common7\ide\extensions\microsoft\python\core\ptvsd_repl_launcher.py", line 114, in _run_repl
backend.execution_loop()
File "c:\program files (x86)\microsoft visual studio\2017\professional\common7\ide\extensions\microsoft\python\core\ptvsd\repl\__init__.py", line 748, in execution_loop
exit, cur_modules, cur_ps1, cur_ps2 = self.run_one_command(cur_modules, cur_ps1, cur_ps2)
File "c:\program files (x86)\microsoft visual studio\2017\professional\common7\ide\extensions\microsoft\python\core\ptvsd\repl\__init__.py", line 672, in run_one_command
self.execute_item = None
File "c:\program files (x86)\microsoft visual studio\2017\professional\common7\ide\extensions\microsoft\python\core\ptvsd\repl\__init__.py", line 670, in run_one_command
self.execute_item()
File "c:\program files (x86)\microsoft visual studio\2017\professional\common7\ide\extensions\microsoft\python\core\ptvsd\repl\__init__.py", line 645, in execute_code_work_item
exec(code, self.exec_mod.__dict__, self.exec_mod.__dict__)
File "<stdin>", line 1, in <module>
File "C:\jython2.7.0\Lib\site-packages\sikulix\Lib\sikuli\__init__.py", line 6, in <module>
from Sikuli import *
File "C:\jython2.7.0\Lib\site-packages\sikulix\Lib\sikuli\Sikuli.py", line 31, in <module>
RUNTIME = RunTime.get()
at org.sikuli.script.RunTime.init(RunTime.java:635)
at org.sikuli.script.RunTime.get(RunTime.java:385)
at org.sikuli.script.RunTime.get(RunTime.java:194)
at org.sikuli.script.RunTime.get(RunTime.java:407)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
java.lang.NullPointerException: java.lang.NullPointerException
An internal error has occurred in the Interactive window. Please restart Visual Studio.
any idea what the issue might be ? my JAVA_HOME is set to "C:\Program Files\Java\jdk1.8.0_191"
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.