From: Barry H. <b.h...@sc...> - 2001-03-01 09:17:35
|
Thanks for that. It seems I was using a CVS version of jython, which didn't include traceback. I've switched to the 2.0 release version and all seems well. cheers Barry On Wed, 28 Feb 2001, Ype Kingma wrote: > 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 > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > http://lists.sourceforge.net/lists/listinfo/jython-users |