Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
xtremedata opened this issue Apr 24, 2023 · 1 comment

Comments

@xtremedata
Copy link

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants