← Back to team overview

sikuli-driver team mailing list archive

[Bug 1474178] Re: Region: doFind: Image not loadable: wechat_icon.png

 

I understand, that you have

-- F:/test/Wechat_automation/hs/Wechat/Wechat.sikuli
    -- folder images
        wechat_icon.png

You seem to use addImagePath("images")

... but you have to give an absolute path

addImagePath(os.path.join(getBundlePath(), "images"))

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

Title:
  Region: doFind: Image not loadable: wechat_icon.png

Status in Sikuli:
  Invalid

Bug description:
  I can not run my sikuli project and the log was following :
  [error] ImagePath: add: class images not found on classpath.
  [error] ImagePath: add: not valid: images 
  [error] Image: could not be loaded: file:/F:/test/Wechat_automation/hs/Wechat/Wechat.sikuli/wechat_icon.png
  [error] Image: Image not valid, but TextSearch is switched off!
  [error] script [ Wechat ] stopped with error in line 40
  [error] FindFailed ( Region: doFind: Image not loadable: wechat_icon.png )
  [error] --- Traceback --- error source first line: module ( function ) statement 13: main ( startwechat ) click("wechat_icon.png")
  36: main ( runTest ) self.startwechat()
  [error] --- Traceback --- end --------------
   

  I put wechat_icon.png into image folder,and image folder was under
  sikuli project folder.

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


References