From: Alan K. <jyt...@xh...> - 2010-05-11 08:50:11
|
[Hagai] > I'm trying to call functions from the NLTK library, using Jython. > import nltk [ .. snip ..] > File "C:\jython2.5.1\Lib\ntpath.py", line 121, in splitdrive > if p[1:2] == ':': > TypeError: 'NoneType' object is unsubscriptable Please can you run the following script with jython, and report back on the output? import os.path, sys print "Jython: %s" % sys.version print "Executable: %s" % sys.executable print "Exec dir: %s" % os.path.dirname(sys.executable) Here is the output on my system Jython: 2.5.1 (Release_2_5_1:6813, Sep 26 2009, 13:47:54) [Java HotSpot(TM) Client VM (Sun Microsystems Inc.)] Executable: C:\jython251\jython.bat Exec dir: C:\jython251 Thanks, Alan. |