From: Sells, F. <fr...@ad...> - 2001-08-07 15:58:27
|
I'm having similar problem with importing my own package. see thread on jythonc debug help no solution yet. -----Original Message----- From: Peter Brinkmann [mailto:bri...@ma...] Sent: Tuesday, August 07, 2001 1:46 AM To: jyt...@li... Subject: [Jython-users] Trouble with 'os' package Hi! I've got some jython code that works fine when run with jython but breaks down when compiled and run with java. Here's the message I'm seeing. > Java Traceback: > > at org.python.core.Py.JavaError(Py.java, Compiled Code) > at org.python.core.PyTableCode.call(PyTableCode.java, Compiled Code) > at org.python.core.imp.createFromCode(imp.java, Compiled Code) > at org.python.core.imp.createFromClass(imp.java, Compiled Code) > at org.python.core.imp.loadPrecompiled(imp.java, Compiled Code) > at org.python.core.imp.loadFromPath(imp.java, Compiled Code) > at org.python.core.imp.loadFromPath(imp.java, Compiled Code) > at org.python.core.imp.load(imp.java, Compiled Code) > at org.python.core.imp.load(imp.java, Compiled Code) > at org.python.core.imp.importName(imp.java, Compiled Code) > at org.python.core.imp.importName(imp.java, Compiled Code) > at org.python.core.ImportFunction.load(__builtin__.java, Compiled Code) > at org.python.core.ImportFunction.__call__(__builtin__.java, Compiled Code) > at org.python.core.PyObject.__call__(PyObject.java, Compiled Code) > at org.python.core.__builtin__.__import__(__builtin__.java, Compiled Code) > at org.python.core.imp.importFromAs(imp.java, Compiled Code) > at pbj.jpy.pbjgraph$_PyInner.main$35(pbjgraph.java, Compiled Code) > [...] > Traceback (innermost last): > File "/home/brinkman/prog/java/train/pbjp/pbjgraph.py", line 0, in main > File "/home/brinkman/prog/java/gumbie/MenuMaker.py", line 0, in main > java.lang.ExceptionInInitializerError: java.lang.NullPointerException > I've narrowed it down to trouble with the 'os' package. It appears that I can import it without trouble, but any attempt to use it (e.g., use 'os.curdir' or 'os.path.join') causes an exception like the one above. Any ideas? Thanks, Peter _______________________________________________ Jython-users mailing list Jyt...@li... http://lists.sourceforge.net/lists/listinfo/jython-users |