Getting OSError, Could someone suggest?

Patrick Steiger psteiger at
Mon Jan 19 12:33:59 CET 2009

2009/1/19 Steven D'Aprano <steve at>

> On Mon, 19 Jan 2009 15:47:00 +0530, srinivasan srinivas wrote:
> > Hi,
> >  I have written a script which will spawn more than 200 no of
> >  subprocesses. I have used subprocess.Popen to do that.
> >
> >  OSError: [Error 24] Too many open files.
> >
> > Could someone help me in fixing this error?
> Open fewer files.
> As I understand it, each subprocess counts as at least one open file. You
> may be able to increase the number of open files, but that will be
> dependent on the operating system you are using.

Yeah. By his question i supposed that opening less files was not an 'ok'
solution. But of course you can do that, and it is prefered  if it won't
interfere negatively in your program.

"I May Be the Walrus."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list