Skip to content Skip to sidebar Skip to footer

__init__() Got An Unexpected Keyword Argument 'timeout' In Python Subprocess

I am trying to run following code which uses pythos 'subprocess' module. subprocess.call(cli_args, stdout=client_log, stderr=client_log, timeout=10) I am using timeout arguement,

Solution 1:

Judging by your print statements, you are using Python2.x, where subprocess.call does not have a timeout argument:

subprocess.call(args, *, stdin=None, stdout=None, stderr=None, shell=False)

https://docs.python.org/2/library/subprocess.html

Post a Comment for "__init__() Got An Unexpected Keyword Argument 'timeout' In Python Subprocess"