[MacPorts] #56789: missing matplotlib dependency?

MacPorts noreply at macports.org
Mon Jul 9 19:58:15 UTC 2018


#56789: missing matplotlib dependency?
-------------------------+--------------------
 Reporter:  mfacorcoran  |      Owner:  (none)
     Type:  defect       |     Status:  new
 Priority:  Normal       |  Milestone:
Component:  ports        |    Version:
 Keywords:               |       Port:
-------------------------+--------------------
 I upgraded to py27-matplotlib at 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)
 <ipython-input-1-82be63b7783c> in <module>()
 ----> 1 import matplotlib

 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/matplotlib/__init__.pyc in <module>()
     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 <module>()
      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 <module>()
      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

-- 
Ticket URL: <https://trac.macports.org/ticket/56789>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list