I asked the same question a week ago or something. I was receiving IOError, errno 4 when I was using pipe.readlines() together with pygtk.
However the solution that solved my problem was to wait for the to finish before a was reading its output. I have actually never seen this problem using popen2 and read one line at the time. Řistein On Thu, 2002-12-12 at 20:32, Christian Reis wrote: > On Thu, Dec 12, 2002 at 07:19:10PM +0000, Stephen Kennedy wrote: > > > > I've seen several threads in the pygtk archives over this point, > > but they've recieved no replies :( > > > > pygtk seems to do something strange which causes normal pipe reads to fail > > See: > > ><http://www.google.com/search?hl=en&lr=&ie=ISO-8859-1&safe=off&q=pygtk+interrupted+system+call&btnG=Google+Search> > > If you can give us a *small* testcase or futz a bit with gdb to find out > we may have more luck debugging :-) > > Take care, > -- > Christian Reis, Senior Engineer, Async Open Source, Brazil. > http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL > _______________________________________________ > pygtk mailing list [EMAIL PROTECTED] > http://www.daa.com.au/mailman/listinfo/pygtk > Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/ _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/