sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #31934
Re: [Question #265660]: My imports stopped working when I moved to newest version (sys.path issue?)
Question #265660 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/265660
Status: Answered => Open
forrest is still having a problem:
Thank you both for the timely response.
Perhaps I am missing something but I don't see an answer that works in either of the posts.
Given development directories that look like:
c:/sl/bin/sikuli/ListBox.sikuli/
c:/sl/bin/sl/settings.py
SikuliX install is at
C:\usrbin\sikulix
Here is the first 4 lines of my program in ListBox.sikuli
import org.sikuli.basics.SikulixForJython
from sikuli import *
import os, sys
for sp in sys.path: print sp
When I run the IDE, it prints the paths but PYTHONPATH nor any
jython.path nor python.path is ever printed.
IDE Messages
C:\sl\bin\sikuli\ListBox.sikuli
C:\usrbin\sikulix\Lib
C:\usrbin\sikulix\sikulix.jar\Lib
__classpath__
__pyclasspath__/
[error] script [ ListBox ] stopped with error in line 7
[error] ImportError ( No module named sl )
Here is what I see (edited) in the Windows Command Console
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
c:\Users\m\workspace>echo %PYTHONPATH%
C:\sl\bin
c:\Users\m\workspace>java -version
java version "1.7.0_71"
...etc...
c:\Users\m\workspace>C:\usrbin\sikulix\runsikulix.cmd -Djython.path=C:/sl/bin
...etc...
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
...etc...
+++ using: -Xms64M -Xmx512M -Dfile.encoding=UTF-8 -Dsikuli.FromCommandLine -jar C:\usrbin\sikulix\sikulix.jar -Djython.path=C:/sl/bin
[ Same result IDE Messages ]
c:\Users\m\workspace>C:\usrbin\sikulix\runsikulix.cmd -Dpython.path=C:/sl/bin
...etc...
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
...etc...
+++ using: -Xms64M -Xmx512M -Dfile.encoding=UTF-8 -Dsikuli.FromCommandLine -jar C:\usrbin\sikulix\sikulix.jar -Dpython.path=C:/sl/bin
[ Same result IDE Messages ]
Here is everything I have tried after reading the posts...
c:\Users\m\workspace>doskey /h
java -version
set PYTHONPATH=C:\sl\bin
C:\usrbin\sikulix\runsikulix.cmd -Djython.path=C:/sl/bin
C:\usrbin\sikulix\runsikulix.cmd -Djython.path=C:\sl\bin
C:\usrbin\sikulix\runsikulix.cmd -Dpython.path=C:/sl/bin
C:\usrbin\sikulix\runsikulix.cmd -Dpython.path=C:\sl\bin
set PYTHONPATH=C:\sl\bin;
C:\usrbin\sikulix\runsikulix.cmd
C:\usrbin\sikulix\runsikulix.cmd -Djython.path=C:\sl\bin
C:\usrbin\sikulix\runsikulix.cmd -Dpython.path=C:\sl\bin
C:\usrbin\sikulix\runsikulix.cmd --Dpython.path=C:\sl\bin
C:\usrbin\sikulix\runsikulix.cmd --Djython.path=C:\sl\bin
doskey /h
What am I missing here?
Thanks,
forrest
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.