|
From: Mark W. A. <sl...@do...> - 2010-03-28 13:52:56
|
On Tue, Mar 16, 2010 at 06:19:12PM -0500, Qiang Li wrote:
> Hi
>
> I want to use Pyssh. But when I test some code I get this
>
> mycon = pyssh.Ssh('root','10.0.0.186','22')
>
> Traceback (most recent call last):
> File "<pyshell#4>", line 1, in <module>
> mycon = pyssh.Ssh('root','10.0.0.186','22')
> File "C:\Python25\lib\site-packages\pyssh\__init__.py", line 105, in
> __init__
> self.old_handler = signal.getsignal(signal.SIGCHLD)
> AttributeError: 'module' object has no attribute 'SIGCHLD'
>
> My version of Python is 2.5
Probably that pyssh hasn't been touched for several years and not reviewed at
all after Python 2.3. I do not recommend pyssh for any new development.
I recommend you look at paramiko:
http://www.lag.net/paramiko/
It's much more robust and cross-platform than pyssh.
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/
|