python __init__() got an unexpected keyword argument 'timeout'
<p>I have the following code with a timeout set to 60 sec</p>

<pre><code>p = subprocess.Popen(['ocamlopt', file], \
                     stdout=subprocess.PIPE, \
                     stderr=subprocess.PIPE, \
                     timeout=TIMEOUT_ECAML, \
                     )
</code></pre>

<p>I don't understand why I am getting the error message of </p>

<pre><code>__init__() got an unexpected keyword argument 'timeout'
</code></pre>

<p>I have looked into <a href="https://stackoverflow.com/questions/24264922/init-got-an-unexpected-keyword-argument-timeout-in-python-subprocess">this previous post</a> with the same error, but the other user uses <code>subprocess.call()</code> while I am using <code>subprocess.Popen()</code> so I am confused why this is happening.</p>