Export to GitHub

parallel-ssh - issue #35

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


Posted on Jan 28, 2011 by Massive Hippo

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

Comment #1

Posted on Jan 28, 2011 by Massive Hippo

It was working just fine in 2.1.1, but broken since then.

Comment #2

Posted on Jan 28, 2011 by Happy Camel

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.

Comment #3

Posted on Jan 30, 2011 by Massive Hippo

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)

Comment #4

Posted on Jan 31, 2011 by Helpful Elephant

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

Attachments

Comment #5

Posted on Jan 31, 2011 by Happy Camel

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.

Comment #6

Posted on Jan 31, 2011 by Massive Hippo

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.

Comment #7

Posted on Feb 2, 2011 by Happy Camel

This should be fixed in 2.2.2. Thanks.

Status: Fixed

Labels:
Type-Defect Priority-Medium