This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients brett.cannon, ncoghlan, pitrou
Date 2011-10-16.20:25:16
SpamBayes Score 1.3528896e-08
Marked as misclassified No
Message-id <1318796716.98.0.562997558521.issue13192@psf.upfronthosting.co.za>
In-reply-to
Content
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
>>>
History
Date User Action Args
2011-10-16 20:25:17pitrousetrecipients: + pitrou, brett.cannon, ncoghlan
2011-10-16 20:25:16pitrousetmessageid: <1318796716.98.0.562997558521.issue13192@psf.upfronthosting.co.za>
2011-10-16 20:25:16pitroulinkissue13192 messages
2011-10-16 20:25:16pitroucreate