From: Ype K. <yk...@xs...> - 2001-02-28 18:53:51
|
Barry, you wrote: > >I'd like to do something like the following in jython > >import traceback >try: >#... >except: > traceback.print_exc() > >But the module traceback doesn't seem to be included in jython. Instead I use >something like Module traceback works fine for me under jython 2.0. The other day I was bitten by this: import sys. traceback which gives a somewhat confusing error message about traceback module not found, or something like that. The fix was to use a comma instead of a dot. I hope your case is about as simple. When not do a import sys print sys.path and check that the traceback.py module is on the path (in "jythondir"/Lib IIRC) Good luck, Ype |