sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #26161
Re: [Question #248599]: “Could not load any NativeLoader” When Using 1.1.0-Beta1-2.jar --- must be prepared using setup
Question #248599 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/248599
Dmitry Nosov requested more information:
Thanks for the fast answer, but the problem persists.
If I do not add the .jar to the path, the interpreter cannot import
org.sikuli.basics.SikuliXforJython
It says
ImportError: No module named sikuli
If I do not add .jar/Lib to the sys path, the interpreter says:
[error] SikuliXforJython: package: sikuli/__init__.py not found: Sikuli might not work
Traceback (most recent call last):
File "test.py", line 4, in <module>
So I add them to the sys path and get:
[error] SikuliXforJython: package: sikuli/__init__.py not found: Sikuli might not work
[debug] Jython: sikuli: __init__: entering
[debug] Jython: sikuli: Sikuli: entering
[debug] Jython: sikuli: Sikuli: constants
[debug] Jython: sikuli: Sikuli: import Region
[debug] Jython: sikuli: Sikuli: import Screen
[debug] Screen: initScreens: basic initialization (1 Screen(s) found)
[debug] Screen: *** monitor configuration (primary: 0) ***
[debug] Screen: 0: S(0)[0,0 1920x1080]
[debug] Screen: *** end monitor configuration ***
[debug] Jython: sikuli: Sikuli: Env.addHotkey
[debug] Jython: sikuli: Sikuli: import Match
[debug] Jython: sikuli: Sikuli: import Pattern
[debug] Jython: sikuli: Sikuli: import Location
[debug] Jython: sikuli: Sikuli: import ScreenUnion
[debug] Jython: sikuli: Sikuli: import Finder
[error] FileManager: Fatal error 121: Could not load any NativeLoader!
[error] Terminating SikuliX after a fatal error(121)! Sorry, but it makes no sense to continue!
If you do not have any idea about the error cause or solution, run again
with a Debug level of 3. You might paste the output to the Q&A board.
[debug] SikuliX: cleanUp: 0
I think that the Lib directory misses the class file for Finder. May it
be the case?
My code is:
import sys
sys.path.append('<path to the sikulixapi.jar>/sikulixapi.jar')
sys.path.append('<path to the sikulixapi.jar>/Lib')
import org.sikuli.basics.SikuliXforJython
from sikuli import *
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.