← Back to team overview

sikuli-driver team mailing list archive

[Bug 1857225] [NEW] [2.0.1] IDE: script load: absolute image filenames produce "not found" errors

 

Public bug reported:

2.0.1-2019-11-22_16:54/Mac10.15.2/Java13(64)13.0.1+9

When I open a script in the IDE I get many Errors regarding ImagePath
e.g.
[error] ImagePath: find: File does not exist: /home/jeff/SikuliScripts_Linux/Code/Data/Images/Ruler.png
[error] ImagePath: find: File does not exist: /home/jeff/SikuliScripts_Linux/Subs/Images/Sikuli.png

There is maybe 40 of these errors listed all to do with where the Images
are stored on different machines


Why do I get these
The Code that is causing this is :-
if g_Running_Version == "Mac":
    v_Image = "/Users/Jeff/Documents/Sikuli_Live/SikuliScripts/Vikings/Code/Data/Images_Mac/Ruler.png"    
    g_This_Ruler = Pattern(v_Image).similar(.9)
else:   
    g_This_Ruler = "/home/jeff/SikuliScripts_Linux/Code/Data/Images/Ruler.png"

The IDE does not know that g_Running_Version = "Mac" on this machine and
will not process this line

** Affects: sikuli
     Importance: High
     Assignee: RaiMan (raimund-hocke)
         Status: Fix Committed

** Changed in: sikuli
       Status: New => Fix Committed

** Changed in: sikuli
   Importance: Undecided => High

** Changed in: sikuli
     Assignee: (unassigned) => RaiMan (raimund-hocke)

** Changed in: sikuli
    Milestone: None => 2.0.2

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

Title:
  [2.0.1] IDE: script load: absolute image filenames produce "not found"
  errors

Status in Sikuli:
  Fix Committed

Bug description:
  2.0.1-2019-11-22_16:54/Mac10.15.2/Java13(64)13.0.1+9

  When I open a script in the IDE I get many Errors regarding ImagePath
  e.g.
  [error] ImagePath: find: File does not exist: /home/jeff/SikuliScripts_Linux/Code/Data/Images/Ruler.png
  [error] ImagePath: find: File does not exist: /home/jeff/SikuliScripts_Linux/Subs/Images/Sikuli.png

  There is maybe 40 of these errors listed all to do with where the
  Images are stored on different machines

  
  Why do I get these
  The Code that is causing this is :-
  if g_Running_Version == "Mac":
      v_Image = "/Users/Jeff/Documents/Sikuli_Live/SikuliScripts/Vikings/Code/Data/Images_Mac/Ruler.png"    
      g_This_Ruler = Pattern(v_Image).similar(.9)
  else:   
      g_This_Ruler = "/home/jeff/SikuliScripts_Linux/Code/Data/Images/Ruler.png"

  The IDE does not know that g_Running_Version = "Mac" on this machine
  and will not process this line

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


Follow ups