|
From: <bc...@wo...> - 2001-07-19 21:37:48
|
[Russo, Tom]
>Thanks, that's very helpful. However, how about this: when I change the
>"import socket" line to:
>
>interp.exec("import os")
>
>I get:
>
><snip>
>Root cause:
>Traceback (innermost last):
> File "", line 1, in ?
>java.lang.ExceptionInInitializerError: java.lang.NullPointerException
></snip>
>
>I assume that this is a different problem? Is there a fix for this one?
Yes, it is fixed in jython-2.1a1.
As a workaround you can assign a value to sys.prefix before importing
"os". The exception is thrown because sys.prefix is null.
regards,
finn
|