From: Mark W. A. <sl...@do...> - 2005-01-22 14:39:18
|
On Fri, Jan 21, 2005 at 03:20:27PM -0800, Travis Bear wrote: > Can't import signal: > > [travis@tiny ~]$ cd jython-2.1/ > [travis@tiny jython-2.1]$ ./jython > Jython 2.1 on java1.5.0 (JIT: null) > Type "copyright", "credits" or "license" for more information. > >>> import signal > Traceback (innermost last): > File "<console>", line 1, in ? > ImportError: no module named signal > >>> > > From the JYthon docs, it wasn't clear but I inferred that not all > builtins are supported: > http://www.jython.org/docs/differences.html > > Perhaps signal use can be avoided or redone? Not without significant effort. signal is used to reap child processes and prevent zombies which is a natural consequence of pyssh being a wrapper around the ssh binaries. Google seems to indicate that Java, hence Jython, does not support signals (http://aspn.activestate.com/ASPN/Mail/Message/Jython-users/687321), although I can't get the answer to that post to load. A quick Google for "jython twisted" seems to indicate that Twisted has at least some support for Jython. Maybe you should give Twisted's conch module a look. I'd be interested in what you find. mwa -- Mark W. Alexander sl...@do... The contents of this message authored by Mark W. Alexander are released under the Creative Commons Attribution-NonCommercial license. Copyright of quoted materials, if any, are retained by the original author(s). http://creativecommons.org/licenses/by-nc/2.0/ |