← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #155881]: Windows 64-Bit / Eclipse: "no attribute 'getEnviron' in module os" reported at Sikuli startup

 

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

    Status: Needs information => Open

Landy gave more information on the question:
@Railman

1. Yes, I run the test code from command line (plain interactive Jython). P.S.: looks like the sample test code has a minor issue - "import os" should be "import sys". The output is
C:\Users\XXXX\Downloads>jython
Jython 2.5.2 (Release_2_5_2:7206, Mar 2 2011, 23:12:06)
[Java HotSpot(TM) Client VM (Sun Microsystems Inc.)] on java1.6.0_20
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> for e in sys.path: print e
...

C:\jython2.5.2\Lib
__classpath__
__pyclasspath__/
C:\jython2.5.2\Lib\site-packages
>>>

2. If I doesn't configure the PyDev with Sikuli, the same code can run
in a PyDev project in Eclipse. The output is

C:\Users\XXXX\workspace\a\src
C:\eclipse\dropins\plugins\org.python.pydev_2.0.0.2011040403\PySrc
C:\jython2.5.2\Lib
C:\jython2.5.2\Lib\site-packages
C:\Program Files\Java\jre6\lib\resources.jar
C:\Program Files\Java\jre6\lib\rt.jar
C:\Program Files\Java\jre6\lib\jsse.jar
C:\Program Files\Java\jre6\lib\jce.jar
C:\Program Files\Java\jre6\lib\charsets.jar
C:\Program Files\Java\jre6\lib\ext\dnsns.jar
C:\Program Files\Java\jre6\lib\ext\localedata.jar
C:\Program Files\Java\jre6\lib\ext\sunjce_provider.jar
__classpath__
__pyclasspath__
__pyclasspath__/

One interesting thins is the output refer to "C:\Program
Files\Java\jre6\lib/xxxxx", but actually this folde is empty. I've
uninstalled 64 bit jre and installed 32 bit jre before I install Jython
2.5.2.

3. If I configure the PyDev project with Sikuli, the same code can't run
(no "from sikuli.Sikuli import *). The same error message output as I
posted above.

Thanks.

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