[MacPorts] #60089: fail to import matplotlib in python3.x
MacPorts
noreply at macports.org
Fri Feb 14 15:35:12 UTC 2020
#60089: fail to import matplotlib in python3.x
----------------------------+--------------------
Reporter: lpagani91 | Owner: (none)
Type: defect | Status: closed
Priority: Normal | Milestone:
Component: ports | Version: 2.6.2
Resolution: fixed | Keywords:
Port: py-matplotlib |
----------------------------+--------------------
Old 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>
> ----> 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
New 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>
----> 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
}}}
--
Comment (by mf2k):
In the future, please use WikiFormatting.
--
Ticket URL: <https://trac.macports.org/ticket/60089#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list