id summary reporter owner description type status priority milestone component version resolution keywords cc port 56789 py27-matplotlib: missing py27-backports-functools_lru_cache dependency mfacorcoran seanfarley "I upgraded to py27-matplotlib@2.2.2 recently and when I started ipython and imported matplotlib I got the following error: {{{ [gs66w-corcoran:~] corcoran% ipython [TerminalIPythonApp] WARNING | Config option `ignore_old_config` not recognized by `TerminalIPythonApp`. Python 2.7.15 (default, May 4 2018, 07:56:34) Type ""copyright"", ""credits"" or ""license"" for more information. IPython 5.4.0 -- An enhanced Interactive Python. ? -> Introduction and overview of IPython's features. %quickref -> Quick reference. help -> Python's own help system. object? -> Details about 'object', use 'object??' for extra details. In [1]: import matplotlib --------------------------------------------------------------------------- ImportError Traceback (most recent call last) in () ----> 1 import matplotlib /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/__init__.pyc in () 129 _backports, mplDeprecation, dedent, get_label, sanitize_sequence) 130 from matplotlib.compat import subprocess --> 131 from matplotlib.rcsetup import defaultParams, validate_backend, cycler 132 133 import numpy /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/rcsetup.py in () 27 from matplotlib import cbook, testing 28 from matplotlib.cbook import mplDeprecation, deprecated, ls_mapper ---> 29 from matplotlib.fontconfig_pattern import parse_fontconfig_pattern 30 from matplotlib.colors import is_color_like 31 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/fontconfig_pattern.py in () 26 from functools import lru_cache 27 except ImportError: ---> 28 from backports.functools_lru_cache import lru_cache 29 30 family_punc = r'\\\-:,' ImportError: No module named functools_lru_cache }}} Following https://github.com/matplotlib/matplotlib/issues/9344, I installed version 1.5 of py27-backports-functools_lru_cache: {{{ sudo port install py27-backports-functools_lru_cache }}} and that seemed to resolve the issue. It looks like the dependency on py27-backports-functools_lru_cache may be missing from the matplotlib package" defect closed Normal ports fixed py-matplotlib