SikuliX can't find any of the images taken via screenshot when using Eclipse, works when using images taken via IDE

Asked by ghostie on 2017-10-28

I wrote some sample scripts with the IDE and it worked, but when I try to repeat the scripts using the Eclipse it fails to find the image.

FindFailed: img/calc.png: (174x206) in S(0)[0,0 1680x1050] E:Y, T:3.0
  Line 2759, in file Region.java

 at org.sikuli.script.Region.wait(Region.java:2759)
 at org.sikuli.script.Region.find(Region.java:2336)
 at org.sikuli.script.Region.getLocationFromTarget(Region.java:3213)
 at org.sikuli.script.Region.doubleClick(Region.java:3745)
 at org.sikuli.script.Region.doubleClick(Region.java:3730)
 at com.sikulix.tests.Calculator.main(Calculator.java:13)

Eventually, I found the path to the images taken by the SikuliX IDE and put that path into my Eclipse code and it works. But if I revert back to the screenshots taken by OSX, it still fails.

Any ideas as to what I might be doing wrong with the image?

Keep in mind I got this to work correctly back in March, so I'm wondering if there have been any updates which changed the behavior

Question information

Language:
English Edit question
Status:
Expired
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Last query:
2017-10-29
Last reply:
2017-11-15
RaiMan (raimund-hocke) said : #1

which version of Sikuli?

Eclipse with PyDev?

ghostie (hammidfunsho) said : #2

Sikuli version 1.1.1
Eclipse Mars

RaiMan (raimund-hocke) said : #3

Are you using the PyDev plugin?

Did you download and activate Jython 2.7 inside Eclipse?

--- Eventually, I found the path to the images taken by the SikuliX IDE
post an example

Launchpad Janitor (janitor) said : #5

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.