Message145639
Not sure this is by design or not, but I wanted to report this issue (it's rather hard to diagnose). Here the file descriptor limit is reached, and "import" raises an ImportError while it would be more helpful to let the original OS error slip through (which, here, is EMFILE):
>>> import resource
>>> resource.setrlimit(resource.RLIMIT_NOFILE, (2, 100))
>>> import encodings.idna
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named 'idna'
>>> resource.setrlimit(resource.RLIMIT_NOFILE, (100, 100))
>>> import encodings.idna
>>> |
|
Date |
User |
Action |
Args |
2011-10-16 20:25:17 | pitrou | set | recipients:
+ pitrou, brett.cannon, ncoghlan |
2011-10-16 20:25:16 | pitrou | set | messageid: <1318796716.98.0.562997558521.issue13192@psf.upfronthosting.co.za> |
2011-10-16 20:25:16 | pitrou | link | issue13192 messages |
2011-10-16 20:25:16 | pitrou | create | |
|