File can't be found on disk

Asked by Ed Garbacz

I am using 1.0rc3 on Windows and recently started getting the following error while running:

[error] USERINFO_USERNAME.png looks like a file, but can't be found on the disk. Assume it's text.

I have the same scripts installed on other Windows and Mac machines and they work with no problems. I have tried uninstalling and reinstalling Sikuli on this machine and still receive the same errors with these scripts. Does anyone know what would cause this? The png files do exist in the project directories.

Thanks,

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
Ed Garbacz
Solved:
Last query:
Last reply:
Revision history for this message
gregory (gregory-grimaux) said :
#1

I just get same error:

[error] IPSEngines.png looks like a file, but can't be found on the disk. Assume it's text.
[info] Text Recognizer inited.

[error] IPSEngines.png looks like a file, but can't be found on the disk. Assume it's text.

[error] IPSEngines.png looks like a file, but can't be found on the disk. Assume it's text.

[error] IPSEngines.png looks like a file, but can't be found on the disk. Assume it's text.

Even with rc2 there following error:

[info] Text Recognizer inited.

This is really strange. It could be nice to have a workaround if someone has found one.

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

what Windows?

Is this only happening with rc3?

Where are the images located? In the .sikuli folder? Do you use import?

Only problems with images containing _ (underscore)?

Revision history for this message
Ed Garbacz (l-kd-c) said :
#3

It is not only files with underscores. I have not tried rc2 or earlier. I was working earlier on this machine and I have no idea what changed that could have caused the problem. The images are located in the .sikuli folder. I have a main program that calls a library program. so main.sikuli as a import xxx reload (xxx) call. the image files are located in the xxx.sikuli directory.

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

I cannot reproduce this on my Win7 64Bit (Sikuli runs 32Bit).

I am using the latest build from (http://sikuli.org/hudson/).

Might be worth to try this (unzip and replace the content of program folder Sikuli X with the content of the downloaded folder Sikuli-IDE.

Revision history for this message
Ed Garbacz (l-kd-c) said :
#5

RaiMan, loading the latest build resolved the problem. Thanks for the suggestion.

Revision history for this message
ThePenguinMaster (thepenguinmaster) said :
#6

For anyone having this error, I have found that when creating a new project, if I do not save BEFORE taking screen shots or regions with the IDE, the images will not save. To avoid this, when you create a new project, save the blank project, then start working. This will allow the IDE to save the images in some cases.

Revision history for this message
Pran (psikchi) said :
#7

Hi RaiMan,
I am just facing the similar issue. I was running my sikuli automation tests till 2 months back.
Now I am trying to run it through the same machine, same code, but it is giving me following error :-
1389280781667.png looks like a file, but can't be found on the disk. Assume it's text.

Could you please help me as the above mentioned link throws a 404 error ?

Really appreciate your help.

Thanks,
Pran

Revision history for this message
Pran (psikchi) said :
#8

Just to get email on your discussion

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

Use Version 1.0.1

Revision history for this message
DenisD (denis-work-acc) said :
#10

The same for scala

[error] chrome.png looks like a file, but not on disk. Assume it's text.
[error] Region.find(text): text search is currently switched off

Tried similar code on Java and it worked. The problem with Screen.doubleClick method. Found 2 possible solutions:
1. Use 2 times "click" method
2. Create a Java class, with method something like:

public void simpleDoubleClickForScala(String img) throws FindFailed{
  Screen s = new Screen();
  s.doubleClick(img);
}

and it works fine.

Revision history for this message
DenisD (denis-work-acc) said :
#11

Update.

I found that now (after I run the script on Java) everything works fine. So, I don't know why and what happen, but now Screen.doubleClick() works well...