[MacPorts] #60089: fail to import matplotlib in python3.x

MacPorts noreply at macports.org
Fri Feb 14 09:30:23 UTC 2020


#60089: fail to import matplotlib in python3.x
-----------------------+-----------------------------
 Reporter:  lpagani91  |      Owner:  (none)
     Type:  defect     |     Status:  new
 Priority:  Normal     |  Milestone:
Component:  ports      |    Version:  2.6.2
 Keywords:             |       Port:  py3x-matplotlib
-----------------------+-----------------------------
 I have updated my macport recently and matplotlib seems to be broken in
 the python3.x (x=6,7,8) versions :

 laurent>ipython
 Python 3.8.1 (default, Jan  5 2020, 21:31:21)
 Type 'copyright', 'credits' or 'license' for more information
 IPython 7.12.0 -- An enhanced Interactive Python. Type '?' for help.

 In [1]: import matplotlib
 ---------------------------------------------------------------------------
 ImportError                               Traceback (most recent call
 last)
 <ipython-input-1-0484cd13f94d> in <module>
 ----> 1 import matplotlib

 /opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8
 /site-packages/matplotlib/__init__.py in <module>
     203
     204
 --> 205 _check_versions()
     206
     207

 /opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8
 /site-packages/matplotlib/__init__.py in _check_versions()
     188     # Quickfix to ensure Microsoft Visual C++ redistributable
     189     # DLLs are loaded before importing kiwisolver
 --> 190     from . import ft2font
     191
     192     for modname, minver in [

 ImportError:
 dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8
 /site-packages/matplotlib/ft2font.cpython-38-darwin.so, 2): Symbol not
 found: _MPL_matplotlib__contour_ARRAY_API
   Referenced from:
 /opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8
 /site-packages/matplotlib/ft2font.cpython-38-darwin.so
   Expected in: flat namespace
  in
 /opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8
 /site-packages/matplotlib/ft2font.cpython-38-darwin.so

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


More information about the macports-tickets mailing list