← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #685795]: Sikuli 2.0 is not finding images previously found by 1.1.3

 

Question #685795 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/685795

Description changed to:
Sikuli 1.1.3 works like a champ when using the MasterPath folder to
specify the folders which Sikuli can see and pull scripts to images
from:

from sikuli import *

admPath = "C:\\Sikulix\\FMH_Regression\\TS_ADMIN\\"    # Test Cases
if not admPath in sys.path: sys.path.append(admPath)

APMPath = "C:\\Sikulix\\FMH_Regression\\TS_APM\\"    # Test Cases
if not APMPath in sys.path: sys.path.append(APMPath)

prtPath = "C:\\Sikulix\\FMH_Regression\\TS_PRT\\"        # Test Cases
if not prtPath in sys.path: sys.path.append(prtPath)

path19 = "C:\\Sikulix\\FMH_Regression\\Images\\FMH"
addImagePath(path19)

------------------------------------------------------------------------
Path is used by the tests as an alias to MasterPath:

#    Open the Master_Path.sikuli file and create the new entires to support the folder creation
from sikuli import *

masterPath = "C:\\Sikulix\\FMH_Regression\\"
if not masterPath in sys.path: sys.path.append(masterPath)

import Master_Path

------------------------------------------------------------------------
Tests:   uses Import Paths 

#====================================================================
from sikuli import *
import Paths
import FUNC_Log as Log
import NotificationsLib as Noti
import PORTAL_FunctionLib as Port


In Sikuli 2.0, how do I get Sikuli to recognize the images within the folder path:

Folder structure is below -- images are stored in subfolders within the
Images folder

 C:\SikuliX\FMH_Regression\Images


When opening 2.0, Sikuli throws the following errors  -- images are found within the image directories
 [error] ImagePath: find: not there: 1569933177020.png
[error] ImagePath: find: not there: 1569933177020.png
[error] ImagePath: find: not there: 1572965898802.png
[error] ImagePath: find: not there: 1572965898802.png
[error] ImagePath: find: not there: 1570460512259.png
[error] ImagePath: find: not there: 1570460512259.png
[error] ImagePath: find: not there: 1570460512259.png
[error] ImagePath: find: not there: 1570460512259.png


Feb 28 2020, Good Morning Rainman, you can close this issue with my path
issue.   Version 2.0.3 has somewhat resolved the issue.    I moved all
images to the specific function library vs having individual image
libraries.     I am continuing to verify the differences between 1.1.3
and 2....

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.