[python-win32] wexpect and running without a console

Mark Hammond skippy.hammond at gmail.com
Wed Jan 20 23:22:10 CET 2010

On 21/01/2010 1:57 AM, Olof Rutgersson wrote:

> The invalid handle error seems to be related to the fact that I'm not launching python.exe from a console but from another process, can it be related to issue 1124861 (http://bugs.python.org/issue1124861)? Do I need to create different stdin and stdout or spawn the child process in any other way from wexpect? Are there any other ways of solving this problem?

The error is because there is no console, but wexpect is attempting to 
use one.  The solution is to fix the code that assumes a console always 
exists - it doesn't.  I think you need to talk to the wexpect guys and 
see if either (a) you are misusing wexpect or (b) it is a bug in wexpect.



More information about the python-win32 mailing list