Issue1068

classification
Title: jython2.5a startup error
Type: crash Severity: normal
Components: Versions: 2.5alpha1
Milestone:
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: nriley, tonetheman
Priority: Keywords:

Created on 2008-07-15.18:36:03 by tonetheman, last changed 2008-07-15.22:30:00 by nriley.

Messages
msg3326 (view) Author: tonetheman (tonetheman) Date: 2008-07-15.18:36:01
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)
msg3327 (view) Author: Nicholas Riley (nriley) Date: 2008-07-15.22:29:59
This is fixed in Jython 2.5a1, which was released a few hours ago. 
Sorry we didn't test 2.5a0 on Windows.  See
http://fwierzbicki.blogspot.com/ for more information.
History
Date User Action Args
2008-07-15 22:30:00nrileysetstatus: open -> closed
resolution: out of date
messages: + msg3327
nosy: + nriley
2008-07-15 18:36:03tonethemancreate