Closed melund closed 8 years ago
Hi @melund, thanks for the report; I admit I was not brave enough to test this on Windows :smile:.
No problem. Let me know if I should test other things.
I'm not sure I'd even know where to point you, I'll give it a shot next time I fire up my Windows VM.
I have no idea either. But a little digging reveals that pexpect may not work on the windows platform. There is a port of pexpect to windows, which may be merged into pexpect at some time.
https://bitbucket.org/geertj/winpexpect/wiki/Home
From the homepage:
The API of winpexpect is identical to that of pexpect. The only difference is that you must use the class "winspawn" instead of "spawn". So:
from winpexpect import winspawn
child = winspawn('powershell')
Ah, you hit the nail on the head. There is a minimal version of pexpect in Metakernel, but it uses os.pipe
on Windows (which is what the next version of pexpect
will have to do as well). I have tried Winpexpect and it will not run a Python interpreter in a child process. I'm afraid the lack of a pseudo-tty on Windows is probably a show-stopper.
That doesn't sound very promising... I have never used pexpect, but why can't winpexpect not run a python interpreter in a child process?
I don't know, but it is very frustrating. I tried it a couple of weeks ago. I had the same issue with winpty
.
This will be fixed when #3 is merged.
Hi
I just tried this in my Anaconda distribution on windows.
I got the following error. I don't know if you expected it to work on windows, but I got the following ERROR. Maybe it is useful.