You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reporter claims to have a fairly large project size. Is it possible there is a file descriptor leak?
Traceback (most recent call last):
File "/usr/local/bin/prospector", line 9, in <module>
File "/usr/local/lib/python2.7/site-packages/prospector/run.py", line 317, in main
File "/usr/local/lib/python2.7/site-packages/prospector/run.py", line 224, in execute
File "/usr/local/lib/python2.7/site-packages/prospector/tools/pylint/__init__.py", line 182, in run
File "/usr/local/lib/python2.7/site-packages/pylint/lint.py", line 585, in check
File "/usr/local/lib/python2.7/site-packages/pylint/lint.py", line 662, in check_astroid_module
File "/usr/local/lib/python2.7/site-packages/pylint/utils.py", line 804, in walk
File "/usr/local/lib/python2.7/site-packages/pylint/utils.py", line 801, in walk
File "/usr/local/lib/python2.7/site-packages/pylint/checkers/variables.py", line 756, in visit_import
File "/usr/local/lib/python2.7/site-packages/astroid/bases.py", line 110, in cache_generator
File "/usr/local/lib/python2.7/site-packages/astroid/bases.py", line 341, in wrapped
File "/usr/local/lib/python2.7/site-packages/astroid/inference.py", line 212, in infer_import
File "/usr/local/lib/python2.7/site-packages/astroid/mixins.py", line 107, in do_import_module
File "/usr/local/lib/python2.7/site-packages/astroid/scoped_nodes.py", line 361, in import_module
File "/usr/local/lib/python2.7/site-packages/astroid/manager.py", line 125, in ast_from_module_name
OSError: [Errno 24] Too many open files
Indeed, it was a file descriptor leak. Not a leak per se, since the files were closed after Pylint finished analyzing the modules, but since there were already too many open files, it failed to reach that point. In 468534927b4cace0232e6659892942b291996998 I added a new way for retrieving a module's file stream, using a method, which will be used in Pylint 1.4.1 and thus the file will be closed right away. This problem should go away by then. Since the astroid part is finished, I'll close the issue, but you can reopen it if it reoccurs in Pylint 1.4.1.
Originally reported by: BitBucket: jquast, GitHub: @jquast?
This reported duplicated from another project, prospector-dev/prospector#73 (comment)
Reporter claims to have a fairly large project size. Is it possible there is a file descriptor leak?
The text was updated successfully, but these errors were encountered: