← Back to team overview

sikuli-driver team mailing list archive

[Bug 1318074] Re: [1.1.0-Beta1] IDE wont load script with an image from a addImagePath() or with a not existing image

 

In Java perhaps.  But I was running from UI this exact code in Jython:

App.open('Google Chrome')
wait(2)
Settings.OcrTextSearch = True
r = selectRegion()
m = r.exists("534438" ,0)

# Chrome had the url http://qoydkw.bay.livefilestore.com/y1pSr0oDju9ndvMzJJfo_qWD2qEvMdDDwoKquMNWWkUYAxgrsVcXmETY8yW_LqIieOKXgwlTt8yxe8eQDY-SCySCFljo59mSSIC/TextOnTheScreen.png?psid=1 listed in that question.
And I still get
[error] Image: could not be loaded from /Users/blah-blah/L10N-test.sikuli/534438.png

over and over.   It does this whether from cmd line or IDE.

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1318074

Title:
  [1.1.0-Beta1] IDE wont load script with an image from a addImagePath()
  or with a not existing image

Status in Sikuli:
  Confirmed

Bug description:
  Worse yet, commenting out this image in the script didn't work either.

  Mac Mavericks 10.9.2, Java 7, SikuliX 1.1.0

  Steps to repo:

  1.  Create an image in a folder to be loaded, e.g. /var/tmp/images/foo.png
  2.  Create a script /Users/me/bar.sikuli/bar.py that loads that image as so:

  addImagePath('/var/tmp/images')
  click('foo.png')

  3.  Save and open the script in the IDE:
  Expected: script to open
  Got: 
  [error] Image: could not be loaded from /var/tmp/images/foo..png
  [error] Can't load file /Users/me/bar.sikuli/ --- check available runners!

  Open the same file in 1.0.1.  It works.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1318074/+subscriptions


References