lilydjwg / pssh

Parallel SSH Tools
Other
277 stars 64 forks source link

/usr/lib64/python3.6/signal.py", line 47 - TypeError: \'int\' object is not callable #137

Open xtremedata opened 1 year ago

xtremedata commented 1 year ago

Hi,

I have an exception when using 'pssh' in version 2.3.1 (I apologize if already fixed in newer versions). The exception happens only sometimes and often a subsequent 'pssh' call works properly.

It is a standard package for Rocky8 Linux distribution of 'pssh' in version 2.3.1.

The Stack trace:

...b'Traceback (most recent call last):
...  File "/usr/bin/pssh", line 117, in <module>
...    do_pssh(hosts, cmdline, opts)
...  File "/usr/bin/pssh", line 92, in do_pssh
...    statuses = manager.run()
...  File "/usr/lib/python3.6/site-packages/psshlib/manager.py", line 76, in run
...    self.update_tasks(writer)
...  File "/usr/lib/python3.6/site-packages/psshlib/manager.py", line 126, in update_tasks
...    self.clear_sigchld_handler()
...  File "/usr/lib/python3.6/site-packages/psshlib/manager.py", line 96, in clear_sigchld_handler
...    signal.signal(signal.SIGCHLD, signal.SIG_DFL)
...  File "/usr/lib64/python3.6/signal.py", line 47, in signal
...    handler = _signal.signal(_enum_to_int(signalnum), _enum_to_int(handler))
...TypeError: \'int\' object is not callable
...pssh error 1 stopping disks
...'
lilydjwg commented 1 year ago

Please update to git version. The referred code is nonexistent.