sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #14717
Re: [Question #214725]: Facing issue while importing Sikuli script in Eclipse
Question #214725 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/214725
Status: Answered => Open
ambiga is still having a problem:
Hi RaiMan,
I did not add the line "from sikuli import * " in my Sikuli py file.
Just added and still facing some issues.
Below is the code:
Samp.py:
======
import os
import sys
for e in sys.path: print e
from sikuli import *
myScriptPath = "C:\Users\ambigaj\Desktop.sikuli"
if not myScriptPath in sys.path: sys.path.append(myScriptPath)
import Desktop
reload (Desktop)
Desktop.py
=======
from sikuli import *
click("1353412358967.png")
click("File.png")
click("Exit.png")
- Have copied and pasted the sikuli script images under 'Imgs' folder.
- Have copied and pasted the contents from the folder "C:\Program Files\Sikuli X" under 'Sikuli-ide' folder
- Followed the details based on FAQ 2005, as you stated
- Have updated the External libraries as below:
Add zip/jar/egg: C:\Program Files\Sikuli X\sikuli-script.jar
Add Source folder: C:\sikuli-script\Lib
(I have extracted the the zipped version under 'sikuli-script' folder and have choosen the 'Lib' contained folder, as the Source folder)
While running the script, facing the below issue:
===============================
C:\Users\ambigaj\workspace\sample\src
C:\Users\ambigaj\workspace\sample\src
C:\Program Files\Sikuli X\sikuli-script.jar
C:\sikuli-script\Lib
C:\jython2.5.3\Lib
C:\jython2.5.3\Lib\site-packages
C:\Program Files\Java\jre6\lib\resources.jar
C:\Program Files\Java\jre6\lib\rt.jar
C:\Program Files\Java\jre6\lib\jsse.jar
C:\Program Files\Java\jre6\lib\jce.jar
C:\Program Files\Java\jre6\lib\charsets.jar
C:\Program Files\Java\jre6\lib\ext\dnsns.jar
C:\Program Files\Java\jre6\lib\ext\localedata.jar
C:\Program Files\Java\jre6\lib\ext\sunjce_provider.jar
C:\Program Files\Java\jre6\lib\ext\sunmscapi.jar
C:\Program Files\Java\jre6\lib\ext\sunpkcs11.jar
__classpath__
__pyclasspath__/
[info] Sikuli vision engine loaded.
[info] Windows utilities loaded.
[info] VDictProxy loaded.
Traceback (most recent call last):
File "C:\Users\ambigaj\workspace\sample\src\samp.py", line 15, in <module>
import Desktop
File "C:\Users\ambigaj\workspace\sample\src\Desktop.py", line 1, in <module>
click("1353412358967.png")
NameError: name 'click' is not defined
Problems:
======
1 Error and 2 warnings:
Error: Python not configured
Warnings:
Unused import: os
Unused in wild import: Button, Constants, FOREVER,.....
Kindly help me out.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.