OS-level file descriptions from tempfile.mkstemp are not closed. Hence, you hit
the ulimit at around 1019 files.
The following patch will close the FDs:
418c412
< testfd, test_file = tempfile.mkstemp()
---
> unused, test_file = tempfile.mkstemp()
424c418
< predfd, pred_file = tempfile.mkstemp()
---
> unused, pred_file = tempfile.mkstemp()
439,441d432
< ## need to close file handles
(http://ubuntuforums.org/showthread.php?t=919340)
< os.fdopen(testfd,'w').close()
< os.fdopen(predfd,'w').close()
Original issue reported on code.google.com by tur...@gmail.com on 6 Aug 2010 at 7:20
Original issue reported on code.google.com by
tur...@gmail.com
on 6 Aug 2010 at 7:20