osx - Python OSError: [Errno 24] Too many open files -
i use ipython notebook on mac os 10.11.2. run python 3.5.1 , matplotlib 1.5.1 , seaborn version 0.6.0:
%matplotlib inline import matplotlib.pyplot plt import seaborn sns
i started having issues when plotting using matplotlib/seaborn. after generating few plots within same notebook, notebook cell latest plot being generated crashes error:
oserror: [errno 24] many open files: '/library/fonts/arial.ttf'
i still able run other cells same error raised every time try plot within notebook until restart it.
i tried increasing files limit running:
sudo launchctl limit maxfiles 10000000 10000000
it seems have helped bit issue persists. suggestion on how solve issue once , appreciated. !
below exact output of error:
oserror traceback (most recent call last) /users/spfraib/anaconda/lib/python3.5/site-packages/ipython/core/formatters.py in __call__(self, obj) /users/spfraib/anaconda/lib/python3.5/site-packages/ipython/core/pylabtools.py in <lambda>(fig) /users/spfraib/anaconda/lib/python3.5/site-packages/ipython/core/pylabtools.py in print_figure(fig, fmt, bbox_inches, **kwargs) /users/spfraib/anaconda/lib/python3.5/site-packages/matplotlib/backend_bases.py in print_figure(self, filename, dpi, facecolor, edgecolor, orientation, format, **kwargs) /users/spfraib/anaconda/lib/python3.5/site-packages/matplotlib/backends/backend_agg.py in print_png(self, filename_or_obj, *args, **kwargs) /users/spfraib/anaconda/lib/python3.5/site-packages/matplotlib/backends/backend_agg.py in draw(self) /users/spfraib/anaconda/lib/python3.5/site-packages/matplotlib/artist.py in draw_wrapper(artist, renderer, *args, **kwargs) /users/spfraib/anaconda/lib/python3.5/site-packages/matplotlib/figure.py in draw(self, renderer) /users/spfraib/anaconda/lib/python3.5/site-packages/matplotlib/artist.py in draw_wrapper(artist, renderer, *args, **kwargs) /users/spfraib/anaconda/lib/python3.5/site-packages/matplotlib/axes/_base.py in draw(self, renderer, inframe) /users/spfraib/anaconda/lib/python3.5/site-packages/matplotlib/artist.py in draw_wrapper(artist, renderer, *args, **kwargs) /users/spfraib/anaconda/lib/python3.5/site-packages/matplotlib/axis.py in draw(self, renderer, *args, **kwargs) /users/spfraib/anaconda/lib/python3.5/site-packages/matplotlib/axis.py in _get_tick_bboxes(self, ticks, renderer) /users/spfraib/anaconda/lib/python3.5/site-packages/matplotlib/text.py in get_window_extent(self, renderer, dpi) /users/spfraib/anaconda/lib/python3.5/site-packages/matplotlib/text.py in _get_layout(self, renderer) /users/spfraib/anaconda/lib/python3.5/site-packages/matplotlib/backends/backend_agg.py in get_text_width_height_descent(self, s, prop, ismath) /users/spfraib/anaconda/lib/python3.5/site-packages/matplotlib/mathtext.py in parse(self, s, dpi, prop) /users/spfraib/anaconda/lib/python3.5/site-packages/matplotlib/mathtext.py in __init__(self, *args, **kwargs) /users/spfraib/anaconda/lib/python3.5/site-packages/matplotlib/mathtext.py in __init__(self, *args, **kwargs) /users/spfraib/anaconda/lib/python3.5/site-packages/matplotlib/mathtext.py in __init__(self, default_font_prop, mathtext_backend) oserror: [errno 24] many open files: '/library/fonts/arial.ttf'
before starting ipython try increasing file limit, e.g. ulimit -n 4096
4096 file descriptors. el capitan defaults limit of 256 file descriptors.
Comments
Post a Comment