From: Mark W. A. <sl...@do...> - 2005-01-21 13:28:10
|
On Thu, Jan 20, 2005 at 10:51:23PM -0800, Travis Bear wrote: > Sorry if this is a newb question, I've looked at all the documentation > I can find, but so far no luck. If there is a better resource than > this list, I'd be happy to know what it is. Not really. I recently took over as maintainer, and even more recently found the documentation... > Does pyssh work in jython? I don't know. I haven't played much with Jython. But I'm game, if you are ;) > I've struggled to get it going, with no luck. Is pyssh an > implementation of the ssh protocol in python, or is it a wrapper for > pre-existing, native ssh implementations? It's just a wrapper around the ssh binaries. I've stumbled on Twisted's conch (www.twistedmatrix.com) and that appears to be a Python implementation of the SSH prototcol, but I haven't dug very deep. > With c-python, everything seems to work fine. These are my efforts > with jython so far: > > > > >>>import pyssh > Traceback (innermost last): > File "<console>", line 1, in ? > ImportError: no module named pyssh > > so I modified the registry: python.path=/usr/lib/python2.3/site-packages Registry? Your on Windows? If so, you may be in trouble... From what I've read, pyssh was written on *NIX for *NIX but again, I'm willing to work on it. Since it's a wrapper, it would require a CLI Windows ssh binary. What do you use for ssh now? > >>>import pyssh > Traceback (innermost last): > File "<console>", line 1, in ? > File "/usr/lib/python2.3/site-packages/pyssh/__init__.py", line 20, > in ? > ImportError: no module named getpass > > Ok that's a little better, but where is getpass? Doing a quick file > search, I found one in /usr/lib/python2.3. Next registry change: > > python.path=/usr/lib/python2.3/site-packages:/usr/lib/python2.3 > > >>>import pyssh > Traceback (innermost last): > File "<console>", line 1, in ? > File "/usr/lib/python2.3/site-packages/pyssh/__init__.py", line 21, > in ? > ImportError: no module named signal getpass and signal are standard python modules, however I'm not sure if signal is cross-platform. I'm Windows ignorant (by choice), but I think signal is a POSIX feature. There may be a signal for Windows; I don't know. I'll look when I get to a Windows box. > > This was as far as I could get. A global file search showed nothing > that looked useful. > > Thanks in advance, What? For _more_ not useful information ;) I'm interested in supporting Jython, because I may have a future use for it anyway. I'd like to support Windows, so if you are using Windows, then I'd appreciate any suggestions/advice/testing you can provide. 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/ |