title: Python, pytesseract - TypeError: select() takes 3 positional arguments but 5 were given
body: <p>My code</p>
  <pre><code>import pytesseract
  from PIL import Image
  im = Image.open(&quot;1.png&quot;)
  page_text = pytesseract.image_to_string(im, lang='eng', config=&quot;--oem 3 --psm 6&quot;)
  </code></pre>
  <p>I have the following error:</p>
  <pre><code>Traceback (most recent call last):
    File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;
    File &quot;/data/venv/p39/lib/python3.9/site-packages/pytesseract/pytesseract.py&quot;, line 413, in image_to_string
      return {
    File &quot;/data/venv/p39/lib/python3.9/site-packages/pytesseract/pytesseract.py&quot;, line 416, in &lt;lambda&gt;
      Output.STRING: lambda: run_and_get_output(*args),
    File &quot;/data/venv/p39/lib/python3.9/site-packages/pytesseract/pytesseract.py&quot;, line 284, in run_and_get_output
      run_tesseract(**kwargs)
    File &quot;/data/venv/p39/lib/python3.9/site-packages/pytesseract/pytesseract.py&quot;, line 258, in run_tesseract
      with timeout_manager(proc, timeout) as error_string:
    File &quot;/usr/local/lib/python3.9/contextlib.py&quot;, line 117, in __enter__
      return next(self.gen)
    File &quot;/data/venv/p39/lib/python3.9/site-packages/pytesseract/pytesseract.py&quot;, line 124, in timeout_manager
      yield proc.communicate()[1]
    File &quot;/usr/local/lib/python3.9/subprocess.py&quot;, line 1134, in communicate
      stdout, stderr = self._communicate(input, endtime, timeout)
    File &quot;/usr/local/lib/python3.9/subprocess.py&quot;, line 1979, in _communicate
      ready = selector.select(timeout)
    File &quot;/usr/local/lib/python3.9/selectors.py&quot;, line 324, in select
      r, w, _ = self._select(self._readers, self._writers, [], timeout)
  TypeError: select() takes 3 positional arguments but 5 were given
  </code></pre>
  <p>I have the same error for Python 3.7 and 3.9.</p>
  <p>pytesseract==0.3.8 (tried also 0.3.6 and 0.2.9, no difference).</p>
  <p>I tried to install a new Python from sources (3.9.4) and create a new venv, but nothing changed.</p>
  <p>But it worked before, and it works on another computer.</p>
  <p>I can't find the problem.
  Any tips?</p>