Hello, I have installed python 2.7 along with winpexpect 1.6 (the fork from here: https://bitbucket.org/weyou/winpexpect/wiki/Home). On Win7 everything worked smooth and perfectly. Now I upgraded to Win10 and suddenly the winspawn command hangs up.
import winpexpect
child = winpexpect.winspawn('c:\windows\system32\cmd.exe')
never comes back. No error message, no exception, no reaction at all.
I run Win10, 64bit, python 2.7 (anaconda) 32bit. When I run a frozen binary (pre-built on the Win7 system, along with a stub), everything still works fine. But I can't rebuild it anymore - or run the script directly in my python environment.
Some further investigations showed that the problem seems to be inside the "_spawn"-method, line 560 of winpexpect.py:
ConnectNamedPipe(cmd_pipe)
This is the command that will never come back.
Any ideas? I'd be in urgent need of a fix or at least some workaround ... :)
Thanks!!