← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #236745]: [1.0.1] cant import urlparse --- scripts should not have same name as imported stuff

 

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

    Status: Answered => Open

rob is still having a problem:
i only ran that script as a test, i have the same problem regardless of
the script name

PS C:\Users\rgonzales.TEAMPOSTOP> runIDE -d 3 -c -r "C:\Users\rgonzales.TEAMPOSTOP\Desktop\oxp\newsc
ript.sikuli"
+++ running this Java
java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b17)
Java HotSpot(TM) Client VM (build 23.25-b01, mixed mode, sharing)
+++ trying to start Sikuli IDE
+++ using: -Xms64M -Xmx512M -Dfile.encoding=UTF-8 -Dsikuli.FromCommandLine -jar C:\sikuliX\sikuli-id
e.jar -d 3 -c -r C:\Users\rgonzales.TEAMPOSTOP\Desktop\oxp\newscript.sikuli
[debug] SikuliIDE: Switching to SikuliScript with option -r, -t or -i
[debug] SikuliScript: CmdOrg: -d 3 -c -r C:\Users\rgonzales.TEAMPOSTOP\Desktop\oxp\newscript.sikuli
[debug] Running on Java 7 (1.7.0_25-b17)
[debug] --- Sikuli parameters ---
[debug] 1: -d
[debug] 2: 3
[debug] 3: -c
[debug] 4: -r
[debug] 5: C:\Users\rgonzales.TEAMPOSTOP\Desktop\oxp\newscript.sikuli
[debug] SikuliScript: givenScriptName: C:\Users\rgonzales.TEAMPOSTOP\Desktop\oxp\newscript.sikuli
[debug] SikuliX Jython Support Build: 1.0.1 4SEP2013191005
[debug] Trying to run script: C:\Users\rgonzales.TEAMPOSTOP\Desktop\oxp\newscript.sikuli\newscript.p
y
[debug] JythonScriptRunner: : executeScriptHeader: adding SikuliX Lib path to sys.path
C:\sikuliX\sikuli-ide.jar\Lib
[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] 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
[debug] ResourceLoaderBasic: SikuliX Package Build: 1.0.1 12SEP2013134834
[debug] ResourceLoaderBasic: check: we are running on arch: x86
[debug] ResourceLoaderBasic: check: using Java at: C:/Program Files/Java/jre7/
[debug] ResourceLoaderBasic: check: Exists Environment.SIKULIX_HOME? YES: C:/sikuliX/libs
[debug] ResourceLoaderBasic: checkLibsDir: C:/sikuliX/libs
[debug] ResourceLoaderBasic: loadLib: WinUtil
[debug] ResourceLoaderBasic: loadLib: Found: WinUtil
[debug] ResourceLoaderBasic: loadLib: Now loaded: WinUtil
[debug] ResourceLoaderBasic: checkLibsDir: Using libs at: C:\sikuliX\libs
[debug] ResourceLoaderBasic: check: Using this as OCR directory (tessdata) too
[debug] ResourceLoaderBasic: loadLib: VisionProxy
[debug] ResourceLoaderBasic: loadLib: Found: VisionProxy
[debug] ResourceLoaderBasic: loadLib: Now loaded: VisionProxy
[debug] Jython: sikuli: Sikuli: import App
[debug] ResourceLoaderBasic: loadLib: Is already loaded: WinUtil
[debug] Screen: initScreens: basic initialization (2 Screen(s) found)
[debug] *** monitor configuration (primary: 0) ***
[debug] Screen 0: S(0)[0,0 1920x1080]
[debug] Screen 1: S(1)[1920,0 1920x1080]
[debug] *** end monitor configuration ***
[debug] Jython: sikuli: Sikuli: import Key
[debug] Jython: sikuli: Sikuli: import from Basics
[debug] Jython: sikuli: Sikuli: import from compare
[debug] Jython: sikuli: Sikuli: init SikuliImporter
[debug] Jython: sikuli: Sikuli: import SikuliScript
[debug] Jython: init SCREEN as ()
[debug] Sikuli-IDE environment setup: 3056
[error] script stopped with error in line 1
[error] ImportError ( !!WHILE IMPORTING!! cannot import name urlparse )
Exception in thread "main" java.lang.IllegalStateException: No match found
        at java.util.regex.Matcher.group(Unknown Source)
        at org.sikuli.scriptrunner.JythonScriptRunner.findErrorSourceWalkTrace(JythonScriptRunner.ja
va:325)
        at org.sikuli.scriptrunner.JythonScriptRunner.findErrorSource(JythonScriptRunner.java:289)
        at org.sikuli.scriptrunner.JythonScriptRunner.runPython(JythonScriptRunner.java:199)
        at org.sikuli.scriptrunner.JythonScriptRunner.runScript(JythonScriptRunner.java:162)
        at org.sikuli.basics.SikuliScript.main(SikuliScript.java:181)
        at org.sikuli.ide.SikuliIDE.main(SikuliIDE.java:212)
PS C:\Users\rgonzales.TEAMPOSTOP>

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