gmendonca / parallel-ssh

Automatically exported from code.google.com/p/parallel-ssh
Other
1 stars 0 forks source link

AttributeError: 'module' object has no attribute 'siginterrupt' #35

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Getting this error when I use pssh with -i, -h and a filename with servers 
specified:

=======
Traceback (most recent call last):
  File "/home/frank/pssh/bin/pssh", line 115, in <module>
    do_pssh(hosts, cmdline, opts)
  File "/home/frank/pssh/bin/pssh", line 86, in do_pssh
    statuses = manager.run()
  File "/home/frank/pssh/psshlib/manager.py", line 65, in run
    self.set_sigchld_handler()
  File "/home/frank/pssh/psshlib/manager.py", line 103, in set_sigchld_handler
    signal.siginterrupt(signal.SIGCHLD, False)
AttributeError: 'module' object has no attribute 'siginterrupt'
=======

Latest version 2.2.1

Original issue reported on code.google.com by thasypher on 28 Jan 2011 at 10:03

GoogleCodeExporter commented 8 years ago
It was working just fine in 2.1.1, but broken since then.

Original comment by thasypher on 28 Jan 2011 at 10:32

GoogleCodeExporter commented 8 years ago
Hmm.  I had thought that siginterrupt had been around for a while, but after 
seeing your bug report, I checked and noticed that it was added in Python 2.6.  
I should probably add a check to only run that line if siginterrupt is 
available.

What version of Python are you using?  What distribution are you running?  We 
should probably still support Python 2.5, but it would be helpful to know where 
older versions are being used.  Thanks.

Original comment by amcna...@gmail.com on 28 Jan 2011 at 6:34

GoogleCodeExporter commented 8 years ago
Hmm, apparently I am still using Python 2.5.2 on this specific server.
This is the latest version used in Debian 5.0.8 (Stable)

Original comment by thasypher on 30 Jan 2011 at 3:27

GoogleCodeExporter commented 8 years ago
Most of the "enterprise" distributions use older than 2.6 versions of python as 
shown by :

  RHEL4 (2.3.4) : EOL Feb 2012
  RHEL5 (2.4.3) : EOL Mar 2014
  Debian5 (2.5.2) : EOL ~Feb 2012
  Ubuntu 8.04 (2.5.2) : EOL Apr 2013

Attached patch tested in Debian5 to avoid this traceback

Original comment by care...@gmail.com on 31 Jan 2011 at 8:55

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks for the info about which Python versions are being used by enterprise 
distributions.  Since RHEL5 is still being supported until 2014, we should 
probably keep supporting Python 2.4 for a while.

Original comment by amcna...@gmail.com on 31 Jan 2011 at 5:26

GoogleCodeExporter commented 8 years ago
Thanks for the patch. This is rather a small change, but is working just fine!
Hopefully they'll finally release Debian 6 soon, so we can have a bit more 
up-to-date Python there.

Original comment by thasypher on 31 Jan 2011 at 5:33

GoogleCodeExporter commented 8 years ago
This should be fixed in 2.2.2.  Thanks.

Original comment by amcna...@gmail.com on 2 Feb 2011 at 11:19