[1.1.1]Images in RobotFramework library .sikuli folder not found

Asked by masuo

***** detailed information about the problem situation can be found in the related bug

Sometimes, images in EditorPane are missing.
Sorry, I could not identify which operation is the cause of this phenomenon.

[environment:]
OS: Windows7
Java version: 1.8.0_77
Sikulix version: SikulixIDE 1.1.1(2016-06-19_01:01nightly)

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

not a bug, but imagepath settings are not appropriate for this kind of RobotFramework usage together with SikuliX

Revision history for this message
RaiMan (raimund-hocke) said :
#2

--- the relevant error message from the main script:
[error] Image: could not be loaded: file:/D:/script/robot_CalcDemoEx1.sikuli/1467617880602.png

--- this is the library setup in RFW script:
*** Settings **
Library D:/script/UserLibForSikuliXEx1.sikuli/UserLibForSikuliXEx1.py

UserLibForSikuliXEx1.sikuli contains the missing image, but is not on the image path!

reason:
only .sikuli scripts, imported by another .sikuli script are automatically put on the image path, so that images can be loaded.

The library UserLibForSikuliXEx1.py is internally imported by RobotFramework, which does not know anything about SikuliX's image path.

solution:
either put all images in one place and take care in main, that this is on the image path or in this case, in main before running robot add an
import UserLibForSikuliXEx1
which would put this folder to the image path.

Revision history for this message
masuo (masuo-ohara) said :
#3

I am going to use addImagePath to add UserLibForSikuliXEx1.sikuli to the image path.

Still, I understand only half.
In the related bugs ,I explaned situation that make Sikuli-IDE aborted.
But in another situation, error does not occur.
For examle,

(1)open file [robot_CalcDemoEx1.sikuli]
(2)run [robot_CalcDemoEx1.sikuli]

I wonder why error doesn't occur in this case.

Revision history for this message
RaiMan (raimund-hocke) said :
#4

ok, I will try to back-track your approach the next days to find out, what might go wrong.

Can you help with this problem?

Provide an answer of your own, or ask masuo for more information if necessary.

To post a message you must log in.