[issue8006] os.popen in Python 3.1

2010-03-21 Thread Bob Buckley

Bob Buckley  added the comment:

I could not get it to open a write pipe. I am trying to drive GNUplot 
from Python. It worked OK in Python 2.x but does not work well in 3.x.
I have it partially working now ... I am calling subprocess.Popen but I 
cannot get a text mode pipe which is disappointing. I have not yet got 
my head around Python 3's byte vs string stuff.

regards
Bob Buckley

On 21/03/2010 8:02 AM, R. David Murray wrote:
> R. David Murray  added the comment:
>
> Well, actually os.popen in Python3 is implemented by calling subprocess.Popen.
>
> So, Bob, how does it fail?
>
> --
> nosy: +r.david.murray
> priority:  ->  normal
> stage:  ->  test needed
>
> ___
> Python tracker
> <http://bugs.python.org/issue8006>
> ___
>

--

___
Python tracker 
<http://bugs.python.org/issue8006>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8006] os.popen in Python 3.1

2010-08-08 Thread Bob Buckley

Bob Buckley  added the comment:

Sorry I didn't get back to you. Originally, I had trouble with just getting a 
pipe ... but updating my Python software seemed to make that problem go away.
I also had problems with Python 2.6 when drawing more complicated figures. I 
could not tell whether the issue of sending all the data via a pipe is with the 
Python Library, with GNUplot or with Windows pipes.
I also believe the problem I had was with buffering.
I had to get my code working so I found another solution (I write all my 
GNUplot commands to a file, then just send a "load file.txt" command via the 
pipe. I would like to be able to use pipes to communicate so I will try to use 
the new subprocess.Popen and Popen.communicate method and see if I can get that 
working reliably in 2.6 and 3.1
This will give me an idea about whether there is output from GNUplot that might 
be filling some buffer when using the os.popen method.

--
status: pending -> open

___
Python tracker 
<http://bugs.python.org/issue8006>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com