Message3326

Author tonetheman
Recipients tonetheman
Date 2008-07-15.18:36:01
SpamBayes Score 0.0150269
Marked as misclassified No
Message-id <1216146963.29.0.745466233171.issue1068@psf.upfronthosting.co.za>
In-reply-to
Content
when starting jython, this is the error i get
C:\>jython -v
import: 'exceptions' as org.python.core.exceptions in builtin module
import: 'os' as C:\jython2.5a\Lib\os.py
import: 'errno' as org.python.modules.errno in builtin modules
import: 'java' as java package
import: 'System' as java class
import: 'time' as org.python.modules.time.Time in builtin modules
import: 'stat' as C:\jython2.5a\Lib\stat.py
import: 'sys' as sys in builtin modules
import: 'File' as java class
import: 'org' as java package
import: 'FileDescriptors' as java class
import: 'ntpath' as C:\jython2.5a\Lib\ntpath.py
import: 'POSIXHandler' as java class
import: 'POSIXFactory' as java class
import: 'UserDict' as C:\jython2.5a\Lib\UserDict.py
import: 'jarray' as org.python.modules.jarray in builtin modules
import: 'SecureRandom' as java class
import: 'FileDescriptor' as java class
Jython 2.5a0+ (asm:4929:4937M, Jul 15 2008, 11:47:38)
[Java HotSpot(TM) Client VM (Sun Microsystems Inc.)] on java1.6.0_05
import: 'site' as C:\jython2.5a\Lib\site.py
error importing site
Traceback (most recent call last):
  File "C:\jython2.5a\Lib\site.py", line 415, in <module>
    main()
  File "C:\jython2.5a\Lib\site.py", line 395, in main
    abs__file__()
  File "C:\jython2.5a\Lib\site.py", line 76, in abs__file__
    m.__file__ = os.path.abspath(m.__file__)
  File "C:\jython2.5a\Lib\ntpath.py", line 494, in abspath
    if not isabs(path):
  File "C:\jython2.5a\Lib\ntpath.py", line 54, in isabs
    s = splitdrive(s)[1]
  File "C:\jython2.5a\Lib\ntpath.py", line 120, in splitdrive
    if p[1:2] == ':':
TypeError: 'NoneType' object is unsubscriptable

Here are the environment settings I have
C:\>echo %CLASSPATH%
.

C:\>echo %PATH%
c:\jython2.5a;c:\WINDOWS\SYSTEM32;c:\WINDOWS;c:\WINDOWS\SYSTEM32\WBEM;"c:\Progra
m Files\Java\jdk1.6.0\bin";c:\utils;"c:\Program Files\Vim\vim70"

C:\>java -version
java version "1.6.0_05"
Java(TM) SE Runtime Environment (build 1.6.0_05-b13)
Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode, sharing)
History
Date User Action Args
2008-07-15 18:36:03tonethemansetspambayes_score: 0.0150269 -> 0.0150269
recipients: + tonetheman
2008-07-15 18:36:03tonethemansetspambayes_score: 0.0150269 -> 0.0150269
messageid: <1216146963.29.0.745466233171.issue1068@psf.upfronthosting.co.za>
2008-07-15 18:36:03tonethemanlinkissue1068 messages
2008-07-15 18:36:02tonethemancreate