-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
py35 and py36 fail in pipes #25
Comments
FWIW, this comment shows how to use |
This sounds similar to the change in Python 2 to 3 in how unbuffered stdin/stdout access is performed. In Python2, specifying a buffer size of 0 works to make a file point unbuffered, but using 0 in Python 3 shows a similar error (whereas using a buffer size of 1 works successfully). Does passing an explicit bufsize of a positive number to popen2 work? Also, I'm having trouble reproducing this, so a minimal example (or even a not-so-minimal example) would help. |
Ok, not so minimal but here goes:
The output for me is:
(I pressed enter a couple times which made the ">>" prompts but this wasn't necessary.) I don't know anything about system calls on Windows so I'm not how hard it is to test with a real popen2 (in C). Or maybe we could try reproducing with Python2's deprecated |
Unfortunately, I don't think I have direct control of that in Octave. |
I can reproduce with Octave (but not with python 2's popen2). So far I've managed to change the error pyexe outputs, but not avoid it. I can get a similar error with something like |
In case it matters, Its possible Octave uses its own popen2 implementation on Windows (rather than a POSIX system call). This stuff is in None of this is urgent from my point of view: I can simply ship py27.exe. |
py27.exe is working fine for me, but the Python 3 version are failing when I run them with popen2.
The relevant part of the error is:
I don't have a minimum working example yet but it involves talking to py.exe with a pipe. My tests using
system()
in Octave work fine. But when I open it with popen2, I get this error message.I can dig deeper later if needed, but thought I'd report first in case its an easy fix.
The text was updated successfully, but these errors were encountered: