← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #255453]: [1.0.1+] How to use SikuliX API in Netbeans and other IDE's with Python plugin

 

Question #255453 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/255453

Summary changed to:
[1.0.1+] How to use SikuliX API in Netbeans and other IDE's with Python plugin

Description changed to:
for version 1.1.0+
-----------------------------------------------------
- run setup with option 2
- have sikulixapi,jar in projects class path
- in the script use
import org.sikuli.basics.SikulixForJython
from sikuli import *

If you want to have code completion in Eclipse or other IDE's, you just have to put
<sikuli stuff setup folder>/Lib
(which is now created on setup) into your project's python path

-----------------------------------------------------------------

for version 1.0.1 this works:
-------------------------------------------
- work along  http://doc.sikuli.org/faq/040-other-ide.html
- and have a look at:
https://github.com/RaiMan/SikuliX-2014/wiki/Usage-in-Java-programming

-----------------------------------------------------------

Hello. I'm trying to run sikuli script in NetBeans. 
I followed this guideline: http://doc.sikuli.org/faq/040-other-ide.html

- added sikuli lib extracted from sikuli-script.jar to python path in project properties. 
it looks like: /Users/user_name/Documents/Sikuli/Lib/sikuli
-also added link to sikuli-script.jar to java path.

at the beginning of main.py file I write:
from sikuli.Sikuli import*

and getting error:
ImportError: No module named sikuli

did I miss something?

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.