[issue16981] ImportError hides real error when there too many open files during an import

2020-03-06 Thread Brett Cannon
Brett Cannon added the comment: Now that importlib is import and it would raise OSError I'm closing this as fixed. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue16981] ImportError hides real error when there too many open files during an import

2013-01-16 Thread Brian Sutherland
New submission from Brian Sutherland: When running Python inside PostgreSQL using plpython on OSX 10.7.5 I started coming across very strange and apparently random ImportErrors. For example, failing to find the stat module while importing site: Traceback (most recent call last):

[issue16981] ImportError hides real error when there too many open files during an import

2013-01-16 Thread R. David Murray
R. David Murray added the comment: I wonder if importlib replicates this behavior, it may need fixing as well. -- nosy: +brett.cannon, eric.snow, r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16981

[issue16981] ImportError hides real error when there too many open files during an import

2013-01-16 Thread Brett Cannon
Brett Cannon added the comment: A quick trace through importlib._bootstrap through hg.python.org would suggest that the OSError would propagate when accessing source (OSError is swallowed when you try and write bytecode, but that's legitimate semantics). --