timbertson / autonose

autotest-like runner for nosetests
57 stars 8 forks source link

autonose failing with "Too many open files" #20

Open cro opened 13 years ago

cro commented 13 years ago

I used autonose successfully for the better part of a day, and now when I start it up it runs the first set of tests and then fails with "Too many open files." I've tried resetting the allowed number of open files by adding

resource.setrlimit(resource.RLIMIT_NOFILE, (1000, -1))

to the autonose startup script, but it hasn't helped. Mac OS 10.7.1 (Lion), stock Python 2.7.1 in a virtualenv.

My kern.maxfiles is set to 12288. 'limit' in zsh says the number of descriptors is unlimited.

ghost commented 13 years ago

Same for me, on 10.7.1 with Python 2.5.6 in virtualenv

timbertson commented 13 years ago

autonose uses watchdog for the file watching stuff: https://github.com/gorakhargosh/watchdog. I'm afraid I don't use a mac, so can't reproduce. I presume "ulimit -n 1024" (from the watchdog readme) affects the same settingas the rlimit command in the initial report?