← Back to team overview

sikuli-driver team mailing list archive

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,

Still am not done. :(

Trying to woke on the Option1 as stated by you.

Have placed the Image in a separate folder
C:\Users\ambigaj\PathToMyImage\ImageX

ImageX.src
=======
from sikuli import *
imgx = "1353581350510.png"
patx = Pattern(imgx).similar(0.7).targetOffset(0,0)

Samp.py (main)
=======
from sikuli import *
PathToMyImage = "C:\Users\ambigaj\PathToMyImage"
sys.path.append(PathToMyImage)
from ImageX import *
Import ImageX
click(imgx)
find(patx)
wait (5)
type("123")


Facing the below error msg:
====================
[info] Sikuli vision engine loaded.
[info] Windows utilities loaded.
[info] VDictProxy loaded.
[error] 1353581350510.png looks like a file, but can't be found on the disk. Assume it's text.
[info] Text Recognizer inited.
[error] 1353581350510.png looks like a file, but can't be found on the disk. Assume it's text.
Traceback (most recent call last):
  File "C:\Users\ambigaj\workspace\sample\src\samp.py", line 21, in <module>
    click(ImageX.imgx)
  Line 24, in file C:\Users\ambigaj\workspace\sample\src\samp.py


	at org.sikuli.script.Region.handleFindFailed(Region.java:420)

        at org.sikuli.script.Region.wait(Region.java:511)

        at org.python.proxies.sikuli.Region$Region$0.super__wait(Unknown
Source)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)

        at java.lang.reflect.Method.invoke(Unknown Source)


org.sikuli.script.FindFailed: FindFailed: can not find 1353581350510.png on the screen.
  Line 24, in file C:\Users\ambigaj\workspace\sample\src\samp.py

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