I'm trying to call functions from the NLTK library, using Jython.

import nltk

yields the following error:

 

Traceback (most recent call last):

  File "E:\Dev\workspace\NLP\src\Hello.py", line 2, in <module>

    import nltk

  File "C:\jython2.5.1\Lib\nltk\__init__.py", line 83, in <module>

    from collocations import *

  File "C:\jython2.5.1\Lib\nltk\collocations.py", line 38, in <module>

    from nltk.util import ingrams

  File "C:\jython2.5.1\Lib\nltk\util.py", line 12, in <module>

    import pydoc

  File "C:\jython2.5.1\Lib\pydoc.py", line 1812, in <module>

    help = Helper(sys.stdin, sys.stdout)

  File "C:\jython2.5.1\Lib\pydoc.py", line 1626, in __init__

    execdir = os.path.dirname(sys.executable)

  File "C:\jython2.5.1\Lib\ntpath.py", line 209, in dirname

    return split(p)[0]

  File "C:\jython2.5.1\Lib\ntpath.py", line 166, in split

    d, p = splitdrive(p)

  File "C:\jython2.5.1\Lib\ntpath.py", line 121, in splitdrive

    if p[1:2] == ':':

TypeError: 'NoneType' object is unsubscriptable

 

Any