[MacPorts] #58004: python27 @2.7.15_1+universal issue with importing matplotlib

MacPorts noreply at macports.org
Sat Feb 2 13:47:55 UTC 2019


#58004: python27 @2.7.15_1+universal issue with importing matplotlib
-------------------------+--------------------
 Reporter:  mfacorcoran  |      Owner:  (none)
     Type:  defect       |     Status:  new
 Priority:  High         |  Milestone:
Component:  ports        |    Version:
 Keywords:               |       Port:
-------------------------+--------------------
 I just upgraded python version 2 to python27 at 2.7.15_1+universal and I get
 an error importing matplotlib (I've got py27-matplotlib
 @2.2.3_0+cairo+tkinter+webagg active)

 {{{
 Python 2.7.15 (default, Sep 14 2018, 17:22:47)
 [GCC 4.2.1 Compatible Apple LLVM 10.0.0 (clang-1000.10.25.5)] on darwin
 Type "help", "copyright", "credits" or "license" for more information.
 >>> import matplotlib
 Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/matplotlib/__init__.py", line 130, in <module>
     from matplotlib.rcsetup import defaultParams, validate_backend, cycler
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/matplotlib/rcsetup.py", line 29, in <module>
     from matplotlib.fontconfig_pattern import parse_fontconfig_pattern
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/matplotlib/fontconfig_pattern.py", line 28, in <module>
     from backports.functools_lru_cache import lru_cache
 ImportError: No module named backports.functools_lru_cache
 }}}

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


More information about the macports-tickets mailing list