← Back to team overview

sikuli-driver team mailing list archive

[Question #289694]: leading slash in path in front of drive letter - java crash

 

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

Hello, 

i experienced interesting issue today... i upgraded from old sikuli to new 1.1.0 and set it up together with java 8.77 on one machine, everything went well, and its working.. in module i was executing first, i have this code:

from sikuli import *
import os
import traceback
print "bundle path:" + getBundlePath()

correct module path is printed out, which is C:/SIKULI

on other machine, which should be the same, meaning same OS (win 7 64b), sikuli and java, when i run sikuli launching this module i get this printed out instead: /C:/SIKULI 
notice the leading slash

few lines below when im importing another module when sikuli uses path above which im adding to paths (the /C:/SIKULI one) it causes a java exception together with NameError While Importing module probably at the point of using that invalid path with leading slash, so i guess it doesnt like the slash there...

Exception in thread "MainThread" java.lang.IllegalStateException: No match found
        at java.util.regex.Matcher.group(Unknown Source)
        at org.sikuli.scriptrunner.JythonScriptRunner.findErrorSourceWalkTrace(JythonScriptRunner.java:356)
        at org.sikuli.scriptrunner.JythonScriptRunner.findErrorSource(JythonScriptRunner.java:321)
        at org.sikuli.scriptrunner.JythonScriptRunner.runPython(JythonScriptRunner.java:226)
        at org.sikuli.scriptrunner.JythonScriptRunner.runScript(JythonScriptRunner.java:183)
        at org.sikuli.scriptrunner.ScriptingSupport$RunBox.run(ScriptingSupport.java:597)
        at org.sikuli.scriptrunner.ScriptingSupport$RunBox.access$400(ScriptingSupport.java:513)
        at org.sikuli.scriptrunner.ScriptingSupport.runscript(ScriptingSupport.java:442)
        at org.sikuli.ide.SikuliIDE.run(SikuliIDE.java:198)
        at org.sikuli.ide.Sikulix.main(Sikulix.java:21)


my question is then, how that could happen? what is the problem here on the second machine? 

thank you for any help! 

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