Opened 4 years ago

Last modified 4 years ago

#60089 closed defect

fail to import matplotlib in python3.x — at Initial Version

Reported by: lpagani91 Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.6.2
Keywords: Cc:
Port: py-matplotlib

Description

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>


/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_matplotlibcontour_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

Change History (0)

Note: See TracTickets for help on using tickets.