Getting OSError, Could someone suggest?

Steven D'Aprano steve at REMOVE-THIS-cybersource.com.au
Mon Jan 19 06:20:55 EST 2009


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.


-- 
Steven



More information about the Python-list mailing list