ImportError: No module named lang - Serious Jython newbie - Please help!

javahead jaredbox at hotmail.com
Wed Oct 8 15:28:05 EDT 2003


I am trying to write a simple gui in Jython that requires the java.awt
and java.lang packages.

Apparently, my installation is screwed up because I keep getting the
following error message indicating that the language package cannot be
found.  For some reason I can access the swing package but not lang or
awt?


>>> import java.lang as lang
Traceback (innermost last):
  File "<console>", line 1, in ?
ImportError: No module named lang
>>>

I am running Windows 2000 along with the following java development
environments versions:

Sun's J2 sdk v1.4.2 and jdk1.3.1_06


Please help!




More information about the Python-list mailing list