← Back to team overview

sikuli-driver team mailing list archive

[Question #257930]: Can't find native libs when running on Jenkins

 

New question #257930 on Sikuli:
https://answers.launchpad.net/sikuli/+question/257930

Hi all,

I am I'm trying to run sikuli scripts written in java, via a Jenkins job. I added the jar dependencies (sikuli-java & sikuli-api-1.0.2-standalone) in my Maven project succesfully. The code compiles and run at least when it comes to capturing the slave's screen. Then when it comes to accessing the libs it fails. Here is the debug log below;

[debug] Screen: initScreens: basic initialization (1 Screen(s) found)
[debug] *** monitor configuration (primary: 0) ***
[debug] Screen 0: S(0)[0,0 1024x768]
[debug] *** end monitor configuration ***
[debug] Screen.capture: java.awt.Rectangle[x=0,y=0,width=1024,height=768]
[debug] RobotDesktop: captureScreen: on 0 using java.awt.Rectangle[x=0,y=0,width=1024,height=768]
[debug] ResourceLoaderBasic: SikuliX Package Build: 1.0.1 12SEP2013135849
[debug] ResourceLoaderBasic: check: we are running on arch: amd64
[debug] ResourceLoaderBasic: check: using Java at: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.55.x86_64/jre/
[debug] ResourceLoaderBasic: check: Exists libs folder at location of jar? NO: /var/lib/jenkins-slave/.m2/repository/sikuli/sikuli/1.0.1/
[debug] ResourceLoaderBasic: check: Exists libs folder in user home folder? NO: /var/lib/jenkins-slave/SikuliX/libs
[debug] ResourceLoaderBasic: check: Exists libs folder in working folder or its parent? NO: /media/ephemeral0/jenkins-slave/workspace/automation_playground_phx/DBCC/regression
[error] ResourceLoaderBasic: check: No valid libs path available until now!
[action] ResourceLoaderBasic: check: Please wait! Trying to extract libs to jar parent folder: /var/lib/jenkins-slave/.m2/repository/sikuli/sikuli/1.0.1/
[debug] ResourceLoaderBasic: extractLibs: Accessing jar: file:/var/lib/jenkins-slave/.m2/repository/sikuli/sikuli/1.0.1/sikuli-1.0.1.jar
[debug] ResourceLoaderBasic: extractLibs: Found 0 Files in META-INF/libs/linux/libs64/
[debug] ResourceLoaderBasic: export: Trying to access package
[debug] ResourceLoaderBasic: export: Accessing jar: file:/var/lib/jenkins-slave/.m2/repository/sikuli/sikuli/1.0.1/sikuli-1.0.1.jar
[debug] ResourceLoaderBasic: export: Found 0 Files in META-INF/libs/tessdata
[debug] ResourceLoaderBasic: checkLibsDir: /var/lib/jenkins-slave/.m2/repository/sikuli/sikuli/1.0.1/libs
[error] ResourceLoaderBasic: checkLibsDir: Not a valid libs dir for SikuliX (amd64): /var/lib/jenkins-slave/.m2/repository/sikuli/sikuli/1.0.1/libs
[error] ResourceLoaderBasic: export: Fatal Error 103: No valid native libraries folder available - giving up!

Do I have to run the same setup-jar file on the slave or should't sikuli fetch the libraries by accessing the jar file?

Thanks.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.