Skip to content

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

@xtremedata

Description

@xtremedata

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
...'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions